/* ============================================================
   California Technical Media — Base Stylesheet
   Design system foundation per WEBSITE-BRIEF.md:
   tokens, typography, and the reusable component library
   (nav + mega-menu, hero banner, breadcrumb, section header,
   service/industry/case cards, cross-link grid, CTA banner,
   contact form, footer). Page-specific layouts live elsewhere.
   ============================================================ */

/* ── RESET ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── DESIGN TOKENS ── */
:root {
  /* Color — Navy (primary, #0a1628 → #1a3155 range per brief) */
  --navy: #0a1628;
  --navy-mid: #12233d;
  --navy-light: #1a3155;

  /* Color — Gold (accent, used sparingly per brief) */
  --gold: #c49a5c;
  --gold-light: #d4af75;
  --gold-pale: #f0e6d3;

  /* Color — Neutrals */
  --white: #ffffff;
  --off-white: #f8f6f3; /* alternating section background */
  --gray-100: #f2f0ed;
  --gray-200: #e5e2dc;
  --gray-400: #9e9a93;
  --gray-600: #6b6660;
  --gray-800: #3a3632; /* primary body text */

  /* Typography */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Source Sans 3', 'Segoe UI', sans-serif;

  /* Spacing scale (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;  /* min section padding per brief */
  --space-24: 100px; /* max section padding per brief */

  /* Layout */
  --max-w: 1280px;
  --gutter: 40px;
  --gutter-sm: 20px;

  /* Motion */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Elevation */
  --shadow-card: 0 12px 40px rgba(10, 22, 40, 0.08);
  --shadow-card-strong: 0 16px 48px rgba(10, 22, 40, 0.12);
}

/* ── BASE ── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

/* ── TOPBAR ── */
.topbar {
  background: var(--navy);
  color: var(--gray-400);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color var(--transition);
}
.topbar a:hover {
  color: var(--gold-light);
}
.topbar-contact {
  display: flex;
  gap: var(--space-6);
}

/* ── HEADER ── */
header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--gold);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}
.logo-name {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.logo-tagline {
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ── PRIMARY NAV ── */
.primary-nav {
  display: flex;
  align-items: center;
}
.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-item > a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-item > a:hover,
.nav-item:hover > a,
.nav-item:focus-within > a {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}
.nav-item > a.cta-nav {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  margin-left: var(--space-2);
}
.nav-item > a.cta-nav:hover {
  background: var(--gold-light);
  color: var(--navy);
}

/* ── HAMBURGER TOGGLE (mobile) ── */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 36px;
  height: 36px;
  padding: 8px 6px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 5px;
  z-index: 102;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}
.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);
}

/* ── MEGA-MENU (Services / Industries / About dropdowns) ── */
.nav-item .caret {
  font-size: 0.7rem;
  opacity: 0.6;
  transition: transform var(--transition);
}
.nav-item:hover .caret,
.nav-item:focus-within .caret {
  transform: rotate(180deg);
}
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 640px;
  background: var(--white);
  border-top: 2px solid var(--gold);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-card-strong);
  padding: var(--space-8);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2) var(--space-8);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 110;
}
.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mega-menu a {
  color: var(--gray-800);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: all var(--transition);
}
.mega-menu a:hover {
  background: var(--off-white);
  color: var(--navy);
}
.mega-menu a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  opacity: 0.6;
}

/* Industries — 12 items, slightly wider grid */
.mega-menu--wide {
  min-width: 720px;
}

/* About — 4 items, single column, narrow */
.mega-menu--small {
  min-width: 240px;
  grid-template-columns: 1fr;
  padding: var(--space-5);
}

/* Right-anchored — for dropdowns near the right edge of the nav */
.mega-menu--right {
  left: auto;
  right: 0;
  transform: translateY(-8px);
}
.nav-item:hover .mega-menu--right,
.nav-item:focus-within .mega-menu--right {
  transform: translateY(0);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px var(--space-8);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition);
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  line-height: 1;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--gray-200);
}
.btn-outline-dark:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── SECTION HELPERS ── */
section {
  padding: var(--space-24) 0;
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}
.section-label {
  font-size: 0.9rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.section-title {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: var(--space-4);
}
.section-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 700px;
  margin: 0 auto;
  font-weight: 300;
}
.section-alt {
  background: var(--off-white);
}
.section-dark {
  background: var(--navy);
  color: var(--white);
}
.section-dark .section-title {
  color: var(--white);
}
.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.55);
}

/* ── HERO BANNER (interior pages) ──
   Per brief: "Hero Banner — dark navy background, serif headline,
   subtitle, optional breadcrumb. Used on every interior page." */
.hero-banner {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: var(--space-20) 0 var(--space-16);
}
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(196, 154, 92, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 30%, rgba(26, 49, 85, 0.5) 0%, transparent 60%);
  pointer-events: none;
}
.hero-banner .section-inner {
  position: relative;
}
.hero-banner-label {
  font-size: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.hero-banner h1 {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: var(--space-5);
  max-width: 820px;
}
.hero-banner p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  max-width: 680px;
  font-weight: 300;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-6);
  color: rgba(255, 255, 255, 0.5);
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition);
}
.breadcrumb a:hover {
  color: var(--gold-light);
}
.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
}
.breadcrumb [aria-current='page'] {
  color: var(--gold);
}
/* Light variant — for breadcrumb on white page sections */
.breadcrumb-light {
  color: var(--gray-600);
}
.breadcrumb-light a {
  color: var(--gray-600);
}
.breadcrumb-light a:hover {
  color: var(--navy);
}
.breadcrumb-light .breadcrumb-sep {
  color: var(--gray-400);
}
.breadcrumb-light [aria-current='page'] {
  color: var(--navy);
}

/* ── SERVICE CARD (reusable) ── */
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-10) 28px;
  text-align: center;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.service-card:hover::after {
  transform: scaleX(1);
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  font-size: 1.4rem;
  color: var(--gold);
}
.service-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-3);
}
.service-card p {
  font-size: 0.98rem;
  color: var(--gray-600);
  line-height: 1.6;
}
.service-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.92rem;
  color: var(--gold);
  font-weight: 600;
  margin-top: var(--space-4);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: gap var(--transition);
}
.service-card:hover .learn-more {
  gap: var(--space-2);
}

/* ── INDUSTRY ITEM (reusable) ── */
.industry-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6) 28px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: var(--gray-800);
  background: var(--white);
}
.industry-item:hover {
  border-color: var(--gold);
  background: var(--off-white);
  transform: translateX(4px);
}
.industry-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.industry-item span {
  font-size: 0.95rem;
  font-weight: 500;
}

/* ── CASE STUDY CARD (reusable) ── */
.case-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}
.case-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.case-card-thumb {
  aspect-ratio: 16 / 10;
  background: var(--gray-100);
  position: relative;
  overflow: hidden;
}
.case-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.case-card:hover .case-card-thumb img {
  transform: scale(1.04);
}
.case-card-body {
  padding: var(--space-6) 28px var(--space-8);
}
.case-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.case-card h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: var(--space-3);
}
.case-card p {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ── CROSS-LINK SECTION ──
   Per brief: "Related Services" / "Related Case Studies" grid
   appearing on service, industry, and case study pages. */
.cross-link {
  background: var(--off-white);
}
.cross-link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.cross-link-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.cross-link-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(
    135deg,
    var(--navy) 0%,
    var(--navy-mid) 50%,
    var(--navy-light) 100%
  );
  padding: var(--space-20) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(196, 154, 92, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(196, 154, 92, 0.05) 0%, transparent 50%);
}
.cta-banner .section-inner {
  position: relative;
}
.cta-banner h2 {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--white);
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.cta-banner p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.05rem;
  margin-bottom: var(--space-8);
  font-weight: 300;
}
.cta-banner .btn-gold {
  padding: var(--space-4) var(--space-10);
  font-size: 0.95rem;
}

/* ── CONTACT FORM ── */
.form {
  display: grid;
  gap: var(--space-5);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-800);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.form-label .required {
  color: var(--gold);
  margin-left: 2px;
}
.form-input,
.form-select,
.form-textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 12px var(--space-4);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 154, 92, 0.15);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
}
.form-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}
.form-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gray-600) 50%),
    linear-gradient(135deg, var(--gray-600) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: var(--space-10);
}
.form-help {
  font-size: 0.78rem;
  color: var(--gray-600);
}
.form-error {
  font-size: 0.78rem;
  color: #b34747;
}
.form-input[aria-invalid='true'],
.form-select[aria-invalid='true'],
.form-textarea[aria-invalid='true'] {
  border-color: #b34747;
}

/* ── FOOTER ── */
footer {
  background: var(--navy);
  border-top: 2px solid var(--gold);
  padding: var(--space-16) 0 var(--space-8);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}
.footer-brand .logo-name {
  font-size: 1.45rem;
  margin-bottom: var(--space-1);
}
.footer-brand .logo-tagline {
  font-size: 0.75rem;
  margin-bottom: var(--space-4);
  display: block;
}
.footer-brand p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
  max-width: 340px;
}
.footer-col h4 {
  font-size: 0.85rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-bottom: var(--space-5);
}
.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.98rem;
  padding: 5px 0;
  transition: color var(--transition);
}
.footer-col a:hover {
  color: var(--gold-light);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.3);
}
.footer-bottom-links {
  display: flex;
  gap: var(--space-5);
}
.footer-bottom-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-bottom-links a:hover {
  color: var(--gold);
}

/* ── ACCESSIBILITY LINK (footer) ── */
.footer-a11y-link {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 1.05em;
}
.footer-a11y-link:hover {
  color: var(--gold) !important;
}

/* ── CONTACT PAGE LAYOUT ── */
.contact-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  max-width: 1080px;
  margin: 0 auto;
}


/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-banner h1 {
    font-size: 2.4rem;
  }
  .cross-link-grid,
  .cross-link-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .mega-menu {
    min-width: 480px;
    grid-template-columns: 1fr;
  }
  .mega-menu--wide {
    min-width: 520px;
  }
}

@media (max-width: 768px) {
  .topbar {
    display: none;
  }
  .header-inner {
    height: 64px;
    padding: 0 var(--gutter-sm);
    position: relative;
  }
  /* Show hamburger, switch nav to mobile drawer */
  .nav-toggle {
    display: flex;
  }
  .primary-nav {
    position: fixed;
    top: 64px;
    right: 0;
    bottom: 0;
    width: min(340px, 88vw);
    background: var(--navy);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.4);
    z-index: 99;
    padding: var(--space-2) 0 var(--space-8);
    align-items: stretch;
  }
  .primary-nav.is-open {
    transform: translateX(0);
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .nav-item {
    display: block;
    width: 100%;
  }
  .nav-item > a {
    width: 100%;
    padding: 14px var(--space-6);
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    justify-content: space-between;
  }
  .nav-item .caret {
    display: none;
  }
  /* Mobile mega-menu: always visible, indented under parent */
  .mega-menu,
  .mega-menu--wide,
  .mega-menu--small,
  .mega-menu--right {
    position: static;
    transform: none;
    visibility: visible;
    opacity: 1;
    background: rgba(0, 0, 0, 0.25);
    box-shadow: none;
    border-radius: 0;
    border-top: 0;
    display: flex;
    flex-direction: column;
    padding: var(--space-2) 0;
    min-width: 0;
    grid-template-columns: 1fr;
    left: auto;
    right: auto;
    gap: 0;
  }
  .nav-item:hover .mega-menu,
  .nav-item:focus-within .mega-menu,
  .nav-item:hover .mega-menu--right,
  .nav-item:focus-within .mega-menu--right {
    transform: none;
  }
  .mega-menu a {
    color: rgba(255, 255, 255, 0.7);
    padding: 10px var(--space-6) 10px var(--space-12);
    font-size: 0.9rem;
    border-radius: 0;
  }
  .mega-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
  }
  .mega-menu a::before {
    background: var(--gold);
    opacity: 0.5;
  }
  /* CTA in mobile drawer — separated, padded, button-styled */
  .nav-item > a.cta-nav {
    margin: var(--space-4) var(--space-6) var(--space-2);
    text-align: center;
    border-bottom: 0;
    border-radius: var(--radius-sm);
    padding: 14px var(--space-4);
    width: auto;
    justify-content: center;
  }
  /* Lock body scroll when drawer is open */
  body.nav-open {
    overflow: hidden;
  }
  .section-inner {
    padding: 0 var(--gutter-sm);
  }
  section {
    padding: var(--space-16) 0;
  }
  .section-title {
    font-size: 2rem;
  }
  .hero-banner {
    padding: var(--space-16) 0 var(--space-12);
  }
  .hero-banner h1 {
    font-size: 1.85rem;
  }
  .hero-banner p {
    font-size: 1rem;
  }
  .cta-banner h2 {
    font-size: 1.85rem;
  }
  .cross-link-grid,
  .cross-link-grid--2,
  .cross-link-grid--4 {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-8);
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }
  .hero-ctas {
    flex-wrap: wrap;
  }
  .logo-name {
    font-size: 1.2rem;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ── PRINT (per brief: case studies & articles must print well) ── */
@media print {
  .topbar,
  header,
  nav,
  .cta-banner,
  footer,
  .breadcrumb {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
    font-size: 11pt;
    line-height: 1.5;
  }
  section {
    padding: 16pt 0;
    page-break-inside: avoid;
  }
  .section-inner {
    max-width: none;
    padding: 0;
  }
  .section-title,
  .hero-banner h1,
  .case-card h3,
  .service-card h3 {
    color: #000;
  }
  .hero-banner {
    background: #fff;
    color: #000;
    padding: 0 0 16pt;
  }
  .hero-banner::before {
    display: none;
  }
  .hero-banner h1,
  .hero-banner p {
    color: #000;
  }
  .service-card,
  .industry-item,
  .case-card {
    border-color: #999;
    box-shadow: none !important;
    transform: none !important;
    page-break-inside: avoid;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
}

/* ============================================================
   HOMEPAGE LAYOUTS
   Page-specific styles for index.html only.
   These are NOT part of the reusable component library.
   ============================================================ */

/* ── HOME: HERO ── */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(196, 154, 92, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 30%, rgba(26, 49, 85, 0.5) 0%, transparent 60%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-24) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-20);
  align-items: center;
}
.hero-text h1 {
  font-family: var(--serif);
  font-size: 3.4rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: var(--space-6);
}
.hero-text h1 span {
  color: var(--gold);
}
.hero-text p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: var(--space-10);
  font-weight: 300;
}
.hero-ctas {
  display: flex;
  gap: var(--space-4);
}

/* ── HOME: HERO STATS ── */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}
.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: var(--space-8) 28px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}
.stat-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(196, 154, 92, 0.2);
  transform: translateY(-2px);
}
.stat-number {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.hero-text {
  animation: fadeUp 0.8s ease-out;
}
.hero-stats {
  animation: fadeUp 0.8s ease-out 0.2s both;
}

/* ── HOME: SERVICES ── */
.services {
  background: var(--off-white);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

/* ── HOME: INDUSTRIES ── */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

/* ── HOME: DIFFERENTIATORS ── */
.differentiators {
  background: var(--navy);
  color: var(--white);
}
.differentiators .section-title {
  color: var(--white);
}
.differentiators .section-subtitle {
  color: rgba(255, 255, 255, 0.5);
}
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-10);
}
.diff-card {
  padding: var(--space-10);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--transition);
}
.diff-card:hover {
  border-color: rgba(196, 154, 92, 0.3);
  background: rgba(255, 255, 255, 0.04);
}
.diff-number {
  font-family: var(--serif);
  font-size: 2.25rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: var(--space-4);
  opacity: 0.6;
}
.diff-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--white);
}
.diff-card p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

/* ── HOME: PROCESS ── */
.process {
  background: var(--off-white);
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--gray-200);
}
.process-step {
  text-align: center;
  padding: 0 var(--space-6);
  position: relative;
}
.step-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  margin: 30px auto var(--space-6);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--off-white), 0 0 0 8px var(--gold);
}
.step-num {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.process-step h4 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-2);
}
.process-step p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ── HOME: RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  .hero-text h1 {
    font-size: 2.6rem;
  }
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .diff-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    padding: 60px var(--gutter-sm);
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .industries-grid {
    grid-template-columns: 1fr;
  }
  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
  .process-steps::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .stat-card {
    padding: var(--space-4) var(--space-3);
  }
  .stat-number {
    font-size: 2rem;
  }
  .process-steps {
    grid-template-columns: 1fr;
  }
}
