/* ============================================================
   EduShieldID — layouts/landing-shell.css
   Loaded by landing_base.html. The marketing-site chrome every
   page sits inside: page shell/section rhythm, sticky navbar,
   hero, the partner-logos strip, and the footer. Page-specific
   marketing sections (solutions/pricing/contact/etc.) live in
   pages/landing.css.
   ============================================================ */

/* ── Shell / section rhythm ──────────────────────────────────── */
.landing-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.landing-main { flex: 1; }

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-heading {
  font-size: var(--text-3xl);
  text-align: center;
  margin-bottom: var(--sp-3);
}
.section-sub {
  text-align: center;
  color: var(--clr-text-muted);
  max-width: 560px;
  margin: 0 auto var(--sp-12);
  font-size: var(--text-lg);
}


/* ── Navbar ───────────────────────────────────────────────────── */
.nav-landing {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--clr-border);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--clr-text);
  text-decoration: none;
  margin-right: auto;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand strong { color: var(--clr-primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a,
.nav-dropdown a {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--clr-text-muted);
  text-decoration: none;
}
.nav-links a:hover { color: var(--clr-text); text-decoration: none; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-nav-outline,
.btn-nav-solid {
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  white-space: nowrap;
}
.btn-nav-outline:hover,
.btn-nav-solid:hover { text-decoration: none; }
.btn-nav-outline {
  color: var(--clr-primary);
  border: 1px solid var(--clr-primary-light);
  background: var(--clr-primary-light);
}
.btn-nav-outline:hover { background: #d9e6fd; }
.btn-nav-solid {
  color: #fff;
  background: var(--clr-primary);
  border: 1px solid var(--clr-primary);
}
.btn-nav-solid:hover { background: var(--clr-primary-dark); }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero-section {
  padding: 88px 24px 96px;
  background: linear-gradient(180deg, var(--clr-primary-light) 0%, var(--clr-bg) 65%);
}
.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-copy {
  display: flex;
  flex-direction: column;
}
.hero-headline {
  font-size: var(--text-5xl);
  line-height: 1.15;
  letter-spacing: var(--tracking-snug);
  margin-bottom: var(--sp-5);
}
.hero-sub {
  font-size: var(--text-lg);
  color: var(--clr-text-muted);
  max-width: 480px;
  margin-bottom: var(--sp-8);
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: var(--sp-8);
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--clr-text-muted);
}
.hero-mockup { width: 100%; }
.hero-mockup svg { width: 100%; height: auto; display: block; }
/* Quiet, but present. It has to be readable by anyone who reads the numbers
   in the drawing above it, which rules out hiding it from sighted users. */
.hero-mockup-caption {
  margin: var(--sp-2) 0 0;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--clr-text-muted);
}
.form-success-message { color: var(--clr-success); font-weight: var(--weight-semibold); }

/* ── Logos strip ─────────────────────────────────────────────── */
.logos-section {
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  background: var(--clr-surface);
}
.logos-label {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-6);
}
.logos-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px 40px;
}
.logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  font-weight: var(--weight-semibold);
  color: var(--clr-text-muted);
  opacity: .75;
  filter: grayscale(1);
}
.logo-chip img { max-height: 32px; }


/* ── Footer ───────────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  padding: 40px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid var(--clr-border);
  background: var(--clr-surface);
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  /* Centred, because "Cookie Settings" is a <button> among <a>s: without it
     the button's own box height pushes it off the row's baseline and the
     wrapped line reads as ragged rather than as one row of links. */
  align-items: center;
  gap: 10px 20px;
}
.site-footer a { color: var(--clr-text-muted); }
.site-footer a:hover { color: var(--clr-text); }
.cookie-settings-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  line-height: inherit;
  color: var(--clr-text-muted);
  cursor: pointer;
  text-decoration: none;
}
.cookie-settings-link:hover { color: var(--clr-text); text-decoration: underline; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-inner {
    gap: 20px;
  }
  .nav-links {
    gap: 18px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-mockup {
    display: none;
  }
  .hero-sub {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-inner {
    height: auto;
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .nav-brand {
    font-size: var(--text-base);
  }
  .nav-links {
    order: 3;
    flex: 1 1 100%;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
  }
  .nav-actions {
    margin-left: auto;
    flex-wrap: wrap;
    gap: 8px;
  }
  .btn-nav-outline,
  .btn-nav-solid {
    padding: 7px 12px;
    font-size: var(--text-sm);
  }

  .hero-section {
    padding: 48px 16px 56px;
  }
  .hero-headline {
    font-size: var(--text-3xl);
  }
  .hero-sub {
    font-size: var(--text-base);
    margin-bottom: 24px;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-primary-lg,
  .btn-outline-lg {
    justify-content: center;
    width: 100%;
  }
  .hero-badges {
    gap: 12px 16px;
  }

  .logos-section {
    padding: 28px 16px;
  }
  .logos-strip {
    gap: 16px 24px;
  }

  .site-footer {
    padding: 24px 16px;
    text-align: center;
  }
  .site-footer nav {
    gap: 12px 16px;
  }
}

@media (max-width: 480px) {
  .nav-actions {
    width: 100%;
    justify-content: stretch;
  }
  .nav-actions a {
    flex: 1;
    text-align: center;
  }

  .hero-headline {
    font-size: var(--text-2xl);
  }
  .hero-badges {
    flex-direction: column;
    gap: 10px;
  }

  .logos-strip {
    gap: 14px 18px;
  }
  .logo-chip {
    font-size: var(--text-xs);
  }

  /* The footer stays `space-between` from its base rule, so on a phone the
     copyright sat hard left while the nav — stacked into a one-per-line
     column — hugged the right edge, ragged and eight rows tall. Stacking the
     footer itself and letting the links wrap in centred rows is both tidier
     and a third of the height. */
  .site-footer {
    font-size: var(--text-xs);
    flex-direction: column;
    justify-content: center;
    gap: 14px;
  }
  .site-footer nav {
    justify-content: center;
    gap: 10px 16px;
  }
}
