/* ═══════════════════════════════════════════════════════════
   Shared styles for the legal / statement pages
   (privacy-policy.html · terms-of-use.html · accessibility.html)
   ═══════════════════════════════════════════════════════════ */

/* ─── ARCHIVO — self-hosted variable font (300–700) ─── */
@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #1B2A4A;
  --stone:     #FAF7F1;
  --pipeline:  #FCB504;
  --hydro:     #2B6ED4;
  --concrete:  #E8E5E0;
  --gray-text: #6E6C66;
  --pad-x:     100px;
}

html { overflow-x: clip; scroll-behavior: smooth; }

body {
  font-family: 'Archivo', sans-serif;
  background-color: var(--stone);
  color: var(--navy);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 247, 241, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease;
}
nav.scrolled { border-bottom-color: var(--concrete); }
.nav-inner {
  padding: 0 60px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: auto; width: auto; max-height: 96px; display: block; }
.nav-links { display: flex; align-items: center; gap: 48px; list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none;
  color: var(--navy); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -3px;
  width: 0; height: 1.5px; background: currentColor;
  transition: width 0.28s ease;
}
.nav-links a:hover::after { width: 100%; }
.btn-nav-cta {
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: #fff !important;
  background: var(--navy); padding: 10px 22px; border-radius: 100px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.25s ease;
}
.btn-nav-cta::after { display: none !important; }
.btn-nav-cta:hover { transform: scale(1.03); }
.btn-arrow { width: 18px; height: 18px; filter: brightness(0) invert(1); transition: transform 0.25s ease; }
.btn-nav-cta:hover .btn-arrow { transform: rotate(45deg); }

/* ─── HAMBURGER / MOBILE MENU ─────────────────────────── */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none;
  cursor: pointer; padding: 4px; z-index: 200;
}
.nav-hamburger span {
  display: block; width: 24px; height: 1.5px; background: var(--navy);
  border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
nav.menu-open .nav-hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
nav.menu-open .nav-hamburger span:nth-child(2) { opacity: 0; }
nav.menu-open .nav-hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 160;
  background: var(--stone); flex-direction: column;
  justify-content: center; padding: 100px 40px 120px;
}
.mobile-menu.open { display: flex; }
.mobile-menu-close {
  position: absolute; top: 20px; right: 20px; width: 44px; height: 44px;
  background: none; border: none; cursor: pointer; display: flex;
  align-items: center; justify-content: center; font-size: 28px;
  color: var(--navy); line-height: 1;
}
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.mobile-menu ul li a {
  font-size: 26px; font-weight: 500; color: var(--navy); text-decoration: none;
  letter-spacing: -0.01em; line-height: 1.3; display: block; padding: 8px 0;
  border-bottom: 1px solid var(--concrete);
}
.mobile-menu ul li:last-child a { border-bottom: none; }
.mobile-menu-cta { margin-top: 40px; }
.mobile-menu-cta a {
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: #fff; background: var(--navy);
  padding: 14px 28px; border-radius: 100px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}

/* ─── PAGE LAYOUT ─────────────────────────────────────── */
.legal-header { padding: 180px var(--pad-x) 0; }
.legal-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gray-text); margin-bottom: 22px;
}
.legal-eyebrow::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--hydro); display: inline-block; flex-shrink: 0;
}
.legal-header h1 {
  font-size: clamp(30px, 3.6vw, 54px);
  font-weight: 700; line-height: 1.08; color: var(--navy);
  margin-bottom: 20px; max-width: 780px;
}
.legal-updated {
  font-size: 14px; font-weight: 400; color: var(--gray-text);
  letter-spacing: 0.02em;
}
.legal-body { padding: 56px var(--pad-x) 120px; max-width: calc(760px + var(--pad-x) * 2); }
.legal-body h2 {
  font-size: 20px; font-weight: 600; color: var(--navy);
  margin: 48px 0 14px; line-height: 1.3;
}
.legal-body p {
  font-size: 17px; font-weight: 300; line-height: 1.75;
  color: rgba(27,42,74,0.75); margin-bottom: 16px;
}
.legal-body > p:first-child { margin-bottom: 24px; }
.legal-body ul { margin: 0 0 16px 20px; }
.legal-body li {
  font-size: 17px; font-weight: 300; line-height: 1.75;
  color: rgba(27,42,74,0.75); margin-bottom: 8px;
}
.legal-body a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.legal-body a:hover { color: var(--hydro); }
.legal-body strong { font-weight: 600; color: var(--navy); }
.legal-note {
  margin-top: 48px; padding: 20px 24px;
  border-left: 2px solid var(--pipeline); background: rgba(232,229,224,0.5);
}
.legal-note p { margin-bottom: 0; font-size: 15px; }

/* ─── CLOSING CTA (markup injected by cta.js) ─────────── */
#cta {
  position: relative;
  background: var(--navy);
  padding: 58px var(--pad-x);
}
#cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('energy flow.jpg') center/cover no-repeat;
  filter: grayscale(100%);
  opacity: 0.12;
  pointer-events: none;
}
.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}
.cta-left { flex: 1; }
.cta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
  padding-bottom: 6px;
}
.cta-headline-link {
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 500;
  color: var(--stone);
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.2s;
}
.cta-headline-link:hover { opacity: 0.75; }
.cta-arrow-img {
  width: 28px; height: 28px;
  filter: brightness(0) invert(1);
  transition: transform 0.25s ease;
}
.cta-headline-link:hover .cta-arrow-img { transform: rotate(45deg); }
.cta-contact { display: flex; flex-direction: column; gap: 14px; }
.cta-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 300;
  color: var(--stone);
  text-decoration: none;
  transition: opacity 0.2s;
}
.cta-contact-item:hover { opacity: 0.75; }

/* ─── FOOTER (markup injected by footer.js) ───────────── */
footer {
  background: var(--navy);
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(250,247,241,0.08);
}
.footer-logo {
  height: auto; width: auto; max-height: 86px;
  display: block; filter: brightness(0) invert(1);
}
.footer-copy { font-size: 13px; color: rgba(250,247,241,0.6); }
.footer-copy a:hover { color: var(--stone); }

/* ─── KEYBOARD FOCUS (WCAG 2.4.7) ─────────────────────── */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--hydro);
  outline-offset: 3px;
  border-radius: 2px;
}
#cta a:focus-visible, footer a:focus-visible { outline-color: var(--pipeline); }

/* ─── REDUCED MOTION (WCAG 2.3.3) ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 1024px) { :root { --pad-x: 48px; } }
@media (max-width: 860px) {
  :root { --pad-x: 24px; }
  .nav-inner { padding: 0 24px; }
  .legal-header { padding: 128px var(--pad-x) 0; }
  .legal-header h1 { font-size: 32px; }
  .legal-body { padding: 40px var(--pad-x) 80px; }
  .legal-body h2 { font-size: 18px; margin-top: 36px; }
  .legal-body p, .legal-body li { font-size: 16px; }
  #cta { padding: 48px var(--pad-x); }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 32px; }
  .cta-right { align-items: flex-start; }
  .cta-headline-link { font-size: 34px; }
  footer { flex-direction: column; gap: 16px; text-align: center; padding: 32px 24px; }
  .footer-copy { font-size: 12px; line-height: 1.8; }

  /* ─── TOUCH TARGETS ───────────────────────────────
     Fingertip-sized tap areas. Padding only — type size,
     colour and desktop layout are untouched. */
  .footer-copy a { display: inline-block; padding: 9px 6px; }
  .cta-contact-item { padding: 7px 0; }
  .cta-headline-link { padding: 6px 0; }
  .what-we-do-link { padding: 11px 0; }
  .audience-cta { padding: 9px 0; }
  .nav-links a, .mobile-menu ul li a { padding-top: 10px; padding-bottom: 10px; }
  .team-linkedin { padding: 9px; margin: -9px; }

  /* ─── HEADING LEADING (mobile) ────────────────────
     Desktop runs 1.05–1.1, which is right for large type but too
     tight once headings drop to phone sizes. */
  h1, .page-header h1, .contact-inner h1, .legal-header h1,
  .opp-heading, .what-header h2, .why-now-heading,
  .stage-headline, .audience-heading, .streams-note,
  .process-item-title, .philosophy-headline { line-height: 1.2; }


  /* ─── FOOTER (mobile) ─────────────────────────────
     Tighter stacking, slightly larger mark. Tap areas kept. */
  #cta { padding: 34px var(--pad-x) 28px; }
  .cta-inner { gap: 22px; }
  .cta-contact { gap: 8px; }
  .cta-right { padding-bottom: 0; }
  footer { gap: 4px; padding: 12px 24px 18px; }
  .footer-logo { max-height: 104px; }
  .footer-copy { font-size: 12px; line-height: 1.45; }
  .footer-copy a { padding: 7px 5px; }

}
