/* ─────────────────────────────────────────────────────────────────────────────
   fortify-landing.css — Public landing page structural styles.
   Loaded exclusively by static/layouts/home.html.
   Replaces msc-landing.css. Depends on fortify.css being loaded first
   (via _head component) so all --color-* and --radius-* tokens are available.
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Body ──────────────────────────────────────────────────────────────────── */

.home-page {
  background-color: var(--color-background) !important;
  color: var(--color-text-primary) !important;
}

/* ── Section spacing ───────────────────────────────────────────────────────── */

.page-section {
  padding: 6rem 0;
}

/* ── Divider accent ────────────────────────────────────────────────────────── */

hr.divider {
  border: none;
  border-top: 3px solid var(--color-primary);
  max-width: 3rem;
  margin: 1rem auto 2rem;
  opacity: 1;
}

/* ── XL button (hero CTA) ──────────────────────────────────────────────────── */

.btn-xl {
  padding: 1rem 2.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: none;
}

/* ── Navbar ────────────────────────────────────────────────────────────────── */

#mainNav {
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  background-color: transparent;
  box-shadow: none;
}

#mainNav .navbar-brand img {
  height: 32px;
  width: auto;
}

/* Dark logo visible on hero (dark bg) */
#mainNav .logo-dark  { display: block; }
#mainNav .logo-light { display: none;  }

/* Scrolled state — white bar */
#mainNav.navbar-scrolled {
  background-color: #ffffff !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
#mainNav.navbar-scrolled .logo-dark  { display: none;  }
#mainNav.navbar-scrolled .logo-light { display: block; }

/* Scrolled state — make light-variant buttons readable on white */
#mainNav.navbar-scrolled .btn-outline-light {
  color: var(--color-text-primary) !important;
  border-color: var(--color-text-primary) !important;
  background-color: transparent !important;
}
#mainNav.navbar-scrolled .btn-outline-light:hover {
  background-color: var(--color-text-primary) !important;
  color: #ffffff !important;
}

#mainNav .nav-link {
  font-weight: 600;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85) !important;
  padding: 0 0.85rem;
  transition: color 0.15s;
}
#mainNav .nav-link:hover {
  color: #ffffff !important;
}
#mainNav.navbar-scrolled .nav-link {
  color: var(--color-text-primary) !important;
}
#mainNav.navbar-scrolled .nav-link:hover {
  color: var(--color-primary) !important;
}

/* Light-page variant — navbar sits over light content, so the top state needs
   the dark logo + dark links; scrolled (white bar) is handled by home.js. */
#mainNav.navbar-on-light .logo-dark  { display: none; }
#mainNav.navbar-on-light .logo-light { display: block; }
#mainNav.navbar-on-light .nav-link,
#mainNav.navbar-on-light .nav-link:hover {
  color: var(--color-text-primary) !important;
}
#mainNav.navbar-on-light .btn-outline-light {
  color: var(--color-text-primary) !important;
  border-color: var(--color-text-primary) !important;
  background-color: transparent !important;
}
#mainNav.navbar-on-light .btn-outline-light:hover {
  background-color: var(--color-text-primary) !important;
  color: #ffffff !important;
}

@media (max-width: 991.98px) {
  #mainNav {
    background-color: var(--color-text-navy) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  }
  #mainNav .logo-dark  { display: block !important; }
  #mainNav .logo-light { display: none  !important; }
}

/* ── Hero / Masthead ───────────────────────────────────────────────────────── */

header.masthead {
  position: relative;
  padding-top: 10rem;
  padding-bottom: 8rem;
  background:
    linear-gradient(to bottom, rgba(4, 20, 77, 0.72) 0%, rgba(35, 46, 88, 0.65) 100%),
    url("/img/photo.jpg") center center / cover no-repeat;
  color: #ffffff;
  overflow: hidden;
}

@media (min-width: 992px) {
  header.masthead {
    min-height: 100vh;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
  }
}

header.masthead h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
}

@media (min-width: 992px) {
  header.masthead h1 { font-size: 3.25rem; }
}

header.masthead .lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Feature pillars ───────────────────────────────────────────────────────── */

.ft-pillar-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.ft-pillar-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--color-white);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ft-pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ft-pillar-body {
  padding: 1.25rem;
}

.ft-pillar-icon {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

/* ── Post cards (blog + podcast teasers) ───────────────────────────────────── */

.ft-post-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--color-white);
  height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.ft-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  color: inherit;
}

.ft-post-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.ft-post-card-img-placeholder {
  width: 100%;
  height: 160px;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-primary);
}

.ft-post-card-body {
  padding: 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ft-post-card-title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.ft-post-card-excerpt {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ft-post-card-meta {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin-top: 0.75rem;
}

/* ── Section backgrounds ───────────────────────────────────────────────────── */

.bg-ft-light {
  background-color: var(--color-background-alt);
}

.bg-ft-navy {
  background-color: var(--color-text-navy);
  color: #ffffff;
}

/* Dark navy sections: lift muted/body-secondary text to a light tone. The
   ft-pillar-card exception keeps the white founder card's gray text intact. */
.bg-ft-navy .ft-text-body-secondary {
  color: rgba(255, 255, 255, 0.72);
}

.bg-ft-navy .ft-pillar-card .ft-text-body-secondary {
  color: var(--color-text-secondary);
}

/* ── Footer ────────────────────────────────────────────────────────────────── */

.ft-landing-footer {
  background-color: var(--color-text-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem;
}

.ft-landing-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.15s;
}

.ft-landing-footer a:hover {
  color: var(--color-primary);
}

.ft-landing-footer .ft-footer-disclaimer {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  max-width: 640px;
  margin: 0 auto;
}

/* ── Instagram feed tiles ───────────────────────────────────────────────────── */

.insta-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--color-primary-light);
  text-decoration: none;
}

.insta-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.insta-tile:hover img {
  transform: scale(1.05);
}

.insta-tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 20, 77, 0);
  color: #ffffff;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.insta-tile:hover .insta-tile-overlay {
  opacity: 1;
  background: rgba(4, 20, 77, 0.45);
}

/* ── Static marketing pages ─────────────────────────────────────────────────── */

.page-top {
  padding-top: 6rem;
  padding-bottom: 3rem;
  background: var(--color-background-alt);
}

.ft-legal-body {
  max-width: 760px;
  margin: 0 auto;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--color-text-primary);
}

.ft-legal-body h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-navy);
}

.ft-legal-body p,
.ft-legal-body li {
  color: var(--color-text-secondary);
}

.ft-contact-email {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.ft-contact-email:hover {
  text-decoration: underline;
}
