/* ==========================================================
   public.css — shared styles for 'public' pages (DRY refactor, cascade order)
   ========================================================== */

html, body {
  overflow-x: clip; max-width: 100%;
}
* {
  scrollbar-width: none;
}
*::-webkit-scrollbar {
  display: none;
}
html {
  scroll-behavior: smooth;
}

/* ── shared tokens for all public pages ──
   base.css provides the app-wide defaults; these override the couple of
   values every public page shares. Individual pages (loaded after) override
   further (e.g. landing sets --blue-accent back to #2563eb).

   --blue-accent points at navy so About, Contact, Terms and Privacy use one
   deep navy for all heading/accent text — no bright blue. (Pale --blue-light
   tints for icon-badge backgrounds are unaffected.) */
:root {
  --bg: #f4f6fb;
  --blue-accent: var(--navy);
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
}

nav {
  position: sticky;
      top: 0;
      z-index: 100;
      background: #fff;
      border-bottom: 1px solid var(--border);
      padding: 0 24px;
      height: 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
}
.nav-logo {
  display: inline-flex;
      align-items: center;
      gap: 8px;
      font-family: 'Poppins', sans-serif;
      font-size: 1.15rem;
      font-weight: 800;
      color: var(--navy);
      letter-spacing: -0.01em;
      text-decoration: none;
}
.nav-links {
  display: flex;
      align-items: center;
      gap: 32px;
      list-style: none;
}
.nav-links a {
  font-size: 0.92rem;
      font-weight: 600;
      text-decoration: none;
      transition: color 0.2s;
}
/* The shared primary-button class owns CTA foreground colours. */
.nav-links a:not(.btn-navy) {
  color: var(--navy);
}
.nav-links a.active {
  color: var(--blue-accent);
      text-decoration: underline;
      text-underline-offset: 6px;
}
.nav-links a:hover {
  color: var(--blue-accent);
}
.btn-nav {
  display: inline-flex; align-items: center; justify-content: center; padding: 10px 24px; border-radius: 10px; font-weight: 700 !important; transition: background 0.2s, transform 0.15s !important; }
.btn-nav:hover {
  transform: translateY(-1px); }
.hamburger {
  display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      padding: 4px;
      background: none;
      border: none;
}
.mobile-nav {
  display: none;
      position: fixed;
      inset: 0;
      z-index: 200;
      background: rgba(15,32,68,0.5);
      backdrop-filter: blur(4px);
}
.mobile-nav.open {
  display: flex; justify-content: flex-end;
}
.mobile-nav-panel {
  background: #fff;
      width: 75%;
      max-width: 300px;
      height: 100%;
      padding: 32px 24px;
      display: flex;
      flex-direction: column;
      gap: 24px;
      animation: slideIn 0.25s ease;
}
.mobile-nav-close {
  align-self: flex-end;
      background: none;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
      color: var(--navy);
}
.mobile-nav-links {
  list-style: none;
      display: flex;
      flex-direction: column;
      gap: 20px;
}
.mobile-nav-links a {
  font-size: 1rem;
      font-weight: 600;
      color: var(--text-main);
      text-decoration: none;
}
.mobile-nav-links a.active {
  color: var(--blue-accent);
}

/* hamburger icon bars (shared by every public page) */
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}

/* login CTA inside the mobile drawer (shared) — needs to sit above the
   generic `.mobile-nav-links a` rule, hence the compound selector */
.mobile-nav-links a.mobile-nav-login {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 700;
}

/* ── PUBLIC PAGE HEADER (shared) ──
   Contact, Terms and Privacy each open with a `.page-header`. The heading
   typography is unified here to match the About hero's <h1> (navy Poppins
   800) so every public page reads as one design system. Individual pages
   set only their own `.page-header` container width/alignment. */.page-header p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── FOOTER (shared base; pages tweak background/border) ── */
footer {
  text-align: center;
  padding: 28px 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================
   Shared rules consolidated from page <style> blocks (DRY refactor)
   ========================================================== */
@keyframes slideIn {from { transform: translateX(100%); } to { transform: translateX(0); }}
@media (max-width: 767px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
