/* ==========================================================================
   Layout — header/nav, hero, section shell, grid & two-col, footer.
   Mobile-first; breakpoints at 640px (tablet) and 960px (desktop).
   ========================================================================== */

.wrap{ max-width:1180px; margin:0 auto; padding:0 var(--space-5); }

/* ---------- header / nav ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:var(--bg-elevated);
  border-bottom:1px solid var(--border);
}
.nav{
  max-width:1180px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  padding:var(--space-3) var(--space-5);
  gap:var(--space-4);
}
.nav__logo{
  font-family:var(--font-display);
  font-weight:700;
  font-size:14px;
  letter-spacing:.02em;
  color:var(--text-primary);
  display:flex; flex-direction:column; line-height:1.2;
}
.nav__logo span{ color:var(--accent-hover); }
.nav__logo:hover{ color:var(--text-primary); }

.nav__toggle{
  display:flex; flex-direction:column; justify-content:center; gap:5px;
  width:32px; height:32px;
  padding:0;
}
.nav__toggle span{
  display:block; height:2px; width:100%;
  background:var(--text-primary);
  border-radius:2px;
  transition:transform .25s ease, opacity .2s ease;
}
.nav__toggle.is-open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2){ opacity:0; }
.nav__toggle.is-open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.nav__links{
  position:fixed; inset:60px 0 0 0;
  background:var(--bg);
  display:flex; flex-direction:column;
  padding:var(--space-6) var(--space-5);
  gap:var(--space-1);
  transform:translateX(100%);
  transition:transform .3s ease;
  overflow-y:auto;
}
.nav__links.is-open{ transform:translateX(0); }
.nav__links li{ border-bottom:1px solid var(--border); }
.nav__links a{
  display:block; padding:var(--space-4) 0;
  font-size:16px; font-weight:500;
  color:var(--text-primary);
}
.nav__links a[aria-current="page"]{ color:var(--accent-hover); }

.nav__actions{ display:flex; align-items:center; gap:var(--space-3); }
.theme-toggle{
  width:36px; height:36px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:var(--text-primary);
  border:1px solid var(--border);
  flex-shrink:0;
}
.theme-toggle:hover{ border-color:var(--accent); color:var(--accent-hover); }
.nav__cta{ white-space:nowrap; }

@media (min-width:960px){
  .nav__toggle{ display:none; }
  .nav__links{
    position:static; inset:auto; transform:none;
    flex-direction:row; padding:0; gap:var(--space-6);
    background:transparent; overflow:visible;
  }
  .nav__links li{ border-bottom:none; }
  .nav__links a{ padding:0; font-size:14px; position:relative; }
  .nav__links a[aria-current="page"]::after{
    content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px;
    background:var(--accent); border-radius:2px;
  }
}
/* ---------- hero ---------- */
.hero{
  position:relative;
  min-height:64vh;
  display:flex; align-items:center;
  background-size:cover; background-position:center;
  padding:var(--space-8) var(--space-5);
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(120deg, rgba(10,22,38,.94), rgba(16,35,61,.78) 55%, rgba(193,88,46,.4));
}
.hero__inner{ position:relative; z-index:1; max-width:640px; margin:0 auto; }
.hero .eyebrow{ color:#F3D9C9; }
.hero h1{ color:#fff; margin:var(--space-3) 0 var(--space-4); }
.hero .lede{ color:rgba(255,255,255,.85); }
.hero .actions{ display:flex; flex-wrap:wrap; gap:var(--space-3); margin-top:var(--space-6); }

.hero--compact{ min-height:38vh; }
.hero--short{ min-height:30vh; }
@media (min-width:960px){
  .hero{ min-height:70vh; }
  .hero__inner{ margin:0; }
  .hero--compact{ min-height:40vh; }
  .hero--short{ min-height:30vh; }
}

/* ---------- section shell ---------- */
.section{
  padding:var(--space-8) var(--space-5);
  max-width:1180px; margin:0 auto;
  border-bottom:1px solid var(--border);
}
.section:last-of-type{ border-bottom:none; }
.section--sunken{ max-width:none; background:var(--bg-sunken); }
.section--sunken > *{ max-width:1180px; margin-left:auto; margin-right:auto; }

.section__head{ max-width:620px; margin-bottom:var(--space-6); }
.section__head h2{ margin-top:2px; }
.section__cta{ text-align:center; margin-top:var(--space-6); }

/* Scroll-in reveal, added by js/reveal.js — section-level only, once. */
.reveal{ opacity:0; transform:translateY(8px); transition:opacity .5s ease, transform .5s ease; }
.reveal.is-visible{ opacity:1; transform:translateY(0); }

/* ---------- grid ---------- */
.grid{ display:grid; gap:var(--space-4); grid-template-columns:1fr; }
@media (min-width:640px){
  .grid--3, .grid--4{ grid-template-columns:repeat(2,1fr); }
}
@media (min-width:960px){
  .grid--3{ grid-template-columns:repeat(3,1fr); }
  .grid--4{ grid-template-columns:repeat(4,1fr); }
}

/* ---------- two-col ---------- */
.two-col{
  display:grid; gap:var(--space-6); align-items:center;
  grid-template-columns:1fr;
}
.two-col img{ border-radius:var(--radius-l); }
.two-col__body p{ color:var(--text-body); margin-top:var(--space-4); line-height:1.75; }
.two-col__body p:first-of-type{ margin-top:var(--space-3); }
.two-col__body .btn{ margin-top:var(--space-5); }
@media (min-width:900px){
  .two-col{ grid-template-columns:1fr 1fr; gap:var(--space-8); }
  .two-col--rev > *:first-child{ order:2; }
}

/* ---------- cta band ---------- */
.cta-band{
  background:var(--brand-navy);
  text-align:center;
  padding:var(--space-8) var(--space-5);
}
.cta-band h2{ color:#fff; margin-bottom:var(--space-5); font-size:clamp(22px,4vw,28px); }

/* ---------- footer ---------- */
.site-footer{
  background:var(--brand-navy-deep);
  color:var(--on-navy-muted);
  padding:var(--space-7) var(--space-5) var(--space-5);
}
.footer__inner{
  max-width:1180px; margin:0 auto;
  display:grid; gap:var(--space-6);
  grid-template-columns:1fr;
  margin-bottom:var(--space-6);
}
.footer__wordmark{
  font-family:var(--font-display); font-weight:700;
  color:#fff; font-size:15px; margin-bottom:var(--space-3);
}
.footer__brand p{ font-size:13px; line-height:1.6; max-width:240px; }
.footer__social{ display:flex; gap:var(--space-3); margin-top:var(--space-4); }
.footer__social a{
  width:32px; height:32px; border-radius:50%;
  border:1px solid rgba(255,255,255,.2);
  display:flex; align-items:center; justify-content:center;
  color:#fff;
}
.footer__social a:hover{ border-color:var(--accent); color:var(--accent-hover); }
.footer__col h2{ color:#fff; font-size:12.5px; letter-spacing:.06em; text-transform:uppercase; margin-bottom:var(--space-3); font-family:var(--font-mono); font-weight:500; }
.footer__col ul{ display:flex; flex-direction:column; gap:var(--space-3); }
.footer__col a{ font-size:13.5px; color:var(--on-navy-muted); }
.footer__col a:hover{ color:var(--accent-hover); }
.footer__bottom{
  max-width:1180px; margin:0 auto;
  border-top:1px solid rgba(255,255,255,.12);
  padding-top:var(--space-4);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:var(--space-2);
  font-size:12px;
}
@media (min-width:640px){
  .footer__inner{ grid-template-columns:1.4fr 1fr 1fr 1fr; }
}
