/* GroundSet Digital — Shared Site Styles (v3) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0B1929;
  --navy2:  #0F2035;
  --cream:  #F5F0E4;
  --cream2: #EDE8DA;
  --orange: #C6531A;
  --orange-deep: #A04015;
  --orange-light: #E07A35; /* aa-contrast-v1 */
  --white:  #F8F4EE;
  --muted:  rgba(248,244,238,0.5);
  --muted2: rgba(248,244,238,0.25);
  --rule-cream-strong: rgba(244,238,224,0.28);
  --font:   'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;
  --max:    1320px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle noise texture */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* NAV */
nav#nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(11,25,41,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  padding: 0 56px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  transition: border-color 0.3s, box-shadow 0.3s;
}
nav#nav.scrolled {
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 1px 48px rgba(0,0,0,0.35);
}

.nav-logo { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.nav-logo-mark { display: flex; flex-direction: column; gap: 3.5px; width: 24px; }
.nav-logo-mark span { display: block; height: 2.5px; border-radius: 2px; background: var(--orange); }
.nav-logo-mark span:nth-child(1) { width: 100%; }
.nav-logo-mark span:nth-child(2) { width: 68%; }
.nav-logo-mark span:nth-child(3) { width: 40%; }
.nav-wordmark { font-size: 12.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--white); }

.nav-center { display: flex; align-items: center; gap: 40px; list-style: none; }
.nav-center a {
  font-size: 13px; font-weight: 500; color: var(--muted);
  text-decoration: none; letter-spacing: 0.01em;
  position: relative; transition: color 0.2s;
  padding-bottom: 2px;
}
.nav-center a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1.5px; background: var(--orange);
  transition: width 0.25s ease;
}
.nav-center a:hover { color: var(--white); }
.nav-center a:hover::after, .nav-center a.active::after { width: 100%; }
.nav-center a.active { color: var(--white); }

.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-phone { font-size: 13px; font-weight: 600; color: var(--orange-light); text-decoration: none; transition: opacity 0.2s; }
.nav-phone:hover { opacity: 0.75; }

/* Mobile nav burger — see assets/site-nav.css (new structure: .nav-burger>.nb-bars>span). Legacy 3-span rules removed to prevent background leak onto .nb-bars. */

/* Mobile nav overlay */
.nav-mobile {
  position: fixed; inset: 0; z-index: 199;
  background: var(--navy2);
  display: flex; flex-direction: column;
  justify-content: center; padding: 80px 40px 48px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile ul { list-style: none; display: flex; flex-direction: column; margin-bottom: 40px; }
.nav-mobile a {
  font-size: clamp(28px, 7vw, 44px); font-weight: 800;
  letter-spacing: -0.025em; color: var(--white);
  text-decoration: none; line-height: 1.25;
  display: block; padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.18s;
}
.nav-mobile ul li:last-child a { border-bottom: none; }
.nav-mobile a:hover { color:var(--orange-light); }
.nav-mobile-contact {
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column; gap: 10px;
}
.nav-mobile-contact a { font-size: 15px; font-weight: 600; color: var(--orange-light); text-decoration: none; }
.nmc-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted2); margin-bottom: 4px;
}

/* Buttons — aligned to home/about source-of-truth */
/* F47c: white-space:nowrap prevents button labels from wrapping when their
   container is narrow (e.g., CTA band with long PT/locale headlines).
   Affects all .btn variants. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 22px; border-radius: 10px;
  font-family: var(--font); font-weight: 700; font-size: 14px; letter-spacing: 0.01em;
  cursor: pointer; text-decoration: none; border: 2px solid transparent;
  -webkit-font-smoothing: antialiased; white-space: nowrap;
  transition: background 0.18s, transform 0.15s, border-color 0.18s, opacity 0.18s, color 0.18s;
}
.btn-primary { background: var(--orange); color: #FFFFFF; border: none; }
.btn-primary:hover { background: var(--orange-deep); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); background: var(--orange-deep); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.22); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.55); transform: translateY(-1px); }
.btn-ghost:active { transform: translateY(0); }
.btn-ghost-dark { background: transparent; color: var(--navy); border: 1.5px solid rgba(11,25,41,0.2); }
.btn-ghost-dark:hover { border-color: rgba(11,25,41,0.5); transform: translateY(-1px); }
.btn-ghost-dark:active { transform: translateY(0); }
.btn-dark { background: var(--navy); color: var(--white); border: none; }
.btn-dark:hover { background: #162437; transform: translateY(-1px); }
.btn-dark:active { transform: translateY(0); }
.btn-lg { font-size: 14px; padding: 13px 30px; }

/* Focus states */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Lang strip */
.lang-strip {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 22px 56px;
  /* PR E: pills stack UNDER "Support available in" header at all viewports */
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.lang-strip-label {
  /* PR F: bumped from var(--muted2) (0.25 opacity, 2.13:1) to var(--muted) (0.5 opacity, 4.82:1) for WCAG AA. */
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
.lang-strip-langs { display: flex; align-items: center; gap: 10px; }
.lang-pill {
  font-size: 12px; font-weight: 600; color: var(--muted);
  padding: 4px 12px; border: 1px solid rgba(255,255,255,0.1); border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.lang-pill:hover { border-color: rgba(255,255,255,0.25); color: var(--white); }

/* Footer (Variant A canonical — PR D / Lesson 125) */
footer { background: var(--navy); color: var(--cream); border-top: 1px solid rgba(244,238,224,0.14); padding: 80px 32px 40px; }
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px;
  margin-bottom: 48px;
}
.footer-brand {
  font-weight: 800; font-size: 18px; letter-spacing: 0.04em;
  margin-bottom: 18px; display: flex; align-items: center; gap: 11px;
  color: var(--cream);
}
.footer-blurb { font-size: 14px; color: rgba(244,238,224,0.74); line-height: 1.55; max-width: 280px; }
.footer-col h5 {
  font-weight: 800; font-size: 11px; color: var(--orange-light);
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--cream); text-decoration: none; font-size: 14px; transition: color 0.18s; white-space: nowrap; }
.footer-col a:hover { color: var(--orange-light); }
.footer-bottom {
  max-width: var(--max); margin: 0 auto;
  padding-top: 24px; border-top: 1px solid rgba(244,238,224,0.14);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(244,238,224,0.74);
}
.footer-bottom span { color: rgba(244,238,224,0.74); }
.footer-bottom a { color: var(--orange-light); text-decoration: none; }
/* Phone numbers must never break at the dash (Lesson 121). The hyphen between
   area code and prefix is a real U+002D HYPHEN-MINUS, which the line-breaker
   treats as a soft-break opportunity. At narrow viewports inside .footer-links
   (and any tel: anchor), the number was wrapping to 3 lines ("857-/233-/8382").
   Use white-space: nowrap on every tel: link site-wide. */
a[href^="tel:"] { white-space: nowrap; }

/* Reveal animations — progressive enhancement so no-JS / no-scroll users still see content */
.reveal { opacity: 1; transform: none; }
html.js-ready .reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
html.js-ready .reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html.js-ready .reveal { opacity: 1; transform: none; transition: none; }
}
.d1 { transition-delay: 0.07s; }
.d2 { transition-delay: 0.14s; }
.d3 { transition-delay: 0.21s; }
.d4 { transition-delay: 0.28s; }

/* Shared primitives */
.eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--orange-light); margin-bottom: 16px;
}
.eyebrow-dark { color: var(--orange-deep); }

/* Audit CTA block (used on service/about/article pages) */
.audit-cta-block {
  background: var(--orange);
  padding: 72px 56px;
}
.audit-cta-block-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 48px;
}
.acb-heading {
  font-size: clamp(22px, 2.8vw, 38px); font-weight: 800;
  letter-spacing: -0.025em; color: #0B1929; line-height: 1.2; text-wrap: balance;
}
.acb-sub { font-size: 14.5px; color: rgba(11,25,41,0.6); margin-top: 8px; }

/* Mobile */
@media (max-width: 960px) {
  nav#nav { padding: 0 24px; }
  .nav-center { display: none; }
  .nav-right .btn { display: none; }
  .nav-right .nav-phone { display: none; }

  footer { padding: 56px 24px 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .footer-inner > .footer-col:first-child { grid-column: 1 / -1; max-width: none; }
  .footer-brand { margin-bottom: 12px; }
  .footer-blurb { max-width: 560px; }
  .lang-strip { padding: 20px 24px; flex-direction: column; gap: 14px; }

  .audit-cta-block { padding: 56px 24px; }
  .audit-cta-block-inner { flex-direction: column; align-items: flex-start; }
}

/* footer-contrast-fix-2026-05-04 — AA contrast under Variant A on --navy bg */
footer .footer-blurb,
footer .footer-bottom,
footer .footer-bottom span { color: #D6D0C2; }
footer .footer-col a { color: #E8E2D4; }
footer .footer-col h5 { color: var(--orange-light); }

/* footer-mobile-2col-2026-05-07 — keep 2x2 grid all the way down to phone width
   (was collapsing to 1fr below 600px which produced one giant scroll-y list). The
   brand block keeps its full-width row above the 4 columns via grid-column 1/-1. */
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-inner > .footer-col:first-child { grid-column: 1 / -1; }
}

/* langpills-row-2026-05-07 — when the legacy `.lang-strip-inner` markup is
   used (about/privacy/audit/home inline page_css), the pills are direct
   children of the inner column-flex. Force pills onto a single wrap-able
   row UNDER the label by giving the label flex-basis:100% so it consumes
   its own row, and removing column behaviour for the pill children.
   Scoped to `.lang-strip` so this never leaks to any other element that
   might happen to use a generic `.lang-strip-inner` class in the future. */
.lang-strip .lang-strip-inner { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; }
.lang-strip .lang-strip-inner > .lang-strip-label { flex: 0 0 100%; text-align: center; margin-bottom: 4px; }

/* aa-contrast-v2-pr49 — WCAG AA normal-text propagation (audit C-1): 
   --orange (#C6531A) fails 4.5:1 on navy and cream. Swapped to
   --orange-light (E07A35 / 5.91:1) on navy and --orange-deep
   (A04015 / 5.22:1) on cream for normal text. Button bg, brand
   mark, and focus ring still use --orange (decorative / 3:1 OK). */
