/* ============================================================
   Consultex — Site-wide canonical stylesheet
   Single source of truth for nav, footer, page-header, .std
   sections, fade-in, CTA, buttons, and responsive overrides.

   Reference page: about.html
   Loaded by every page via <link rel="stylesheet" href="assets/css/site.css">

   Page-specific styles stay inline in each page's own <style>
   block. Inline rules override site.css when they appear later
   in the cascade.
============================================================ */

/* ── DESIGN TOKENS ── */
:root {
  --navy:  #0f2c53;
  --deep:  #003F74;
  --teal:  #2394ae;
  --orange:#f5a41d;
  --white: #ffffff;
  --off:   #f8f9fb;
  --rule:  #d8dfe8;
  --muted: #6b7a8d;
  --text:  #1a2535;
  --light: #edf1f6;
}

/* ── BASE RESET ── */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
section[id] { scroll-margin-top: 110px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
  font-weight: 300;
}

/* ── UTILITY BAR ── */
.utility-bar {
  position: fixed; top:0; left:0; right:0; z-index:101;
  background: var(--navy);
  height: 32px;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0 64px; gap: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.utility-bar a {
  font-size: 10.5px; font-weight: 400;
  letter-spacing: 0.6px; text-transform: uppercase;
  color: rgba(255,255,255,0.65); text-decoration: none;
  transition: color 0.2s;
}
.utility-bar a:hover { color: var(--white); }
.utility-bar .util-divider { width: 1px; height: 12px; background: rgba(255,255,255,0.18); }
.utility-bar .util-locale { color: rgba(255,255,255,0.5); font-size: 10px; letter-spacing: 0.8px; }

/* ── NAV ── */
nav {
  position: fixed; top:32px; left:0; right:0; z-index:100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
  padding: 0 64px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo-link { display:flex; align-items:center; gap:20px; text-decoration:none; color:inherit; }
.nav-logo-img { height: 20px; display: block; }
.nav-badge {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--teal);
  font-weight: 400;
  letter-spacing: 0.5px;
  border-left: 1px solid var(--rule);
  padding-left: 20px;
  line-height: 1;
}
.nav-right { display:flex; align-items:center; gap:40px; }
.nav-links { display:flex; gap:32px; }
.nav-links a {
  font-size: 12.5px; font-weight: 400;
  color: var(--muted); text-decoration: none;
  letter-spacing: 0.2px; transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); }
.nav-cta {
  font-size: 12px; font-weight: 500;
  color: var(--navy); text-decoration: none;
  border: 1.5px solid var(--navy);
  padding: 9px 22px; letter-spacing: 0.3px;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--navy); color: var(--white); }

.nav-hamburger {
  display: none; background: transparent; border: none; cursor: pointer;
  width: 32px; height: 32px; padding: 0; position: relative;
}
.nav-hamburger span {
  position: absolute; left: 4px; right: 4px; height: 1.5px;
  background: var(--navy);
  transition: transform 0.25s, opacity 0.25s, top 0.25s;
}
.nav-hamburger span:nth-child(1) { top: 10px; }
.nav-hamburger span:nth-child(2) { top: 16px; }
.nav-hamburger span:nth-child(3) { top: 22px; }
.nav-hamburger.open span:nth-child(1) { top: 16px; transform: rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { top: 16px; transform: rotate(-45deg); }

.nav-drawer {
  position: fixed; top: 104px; left: 0; right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 99; padding: 8px 24px 24px;
}
.nav-drawer.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.nav-drawer a {
  display: block; font-size: 15px;
  color: var(--navy); text-decoration: none;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
  font-weight: 400;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer .drawer-cta {
  display: block; text-align: center;
  margin-top: 18px; padding: 14px 24px;
  background: var(--navy); color: var(--white);
  font-size: 12px; letter-spacing: 0.6px; text-transform: uppercase;
  border: 1.5px solid var(--navy); text-decoration: none;
}

/* ── PAGE HEADER ── */
.page-header {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 200px 64px 140px;
  overflow: hidden;
}
.page-header-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(9,36,72,0.82), rgba(9,36,72,0.86)),
    url('../consultex-bg.jpeg') center/cover no-repeat,
    linear-gradient(160deg, #0f2c53 0%, #003F74 50%, #072040 100%);
}
.page-header-rule { display: none; }
.page-header-inner {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
}
.page-header-eyebrow {
  font-size: 10.5px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--teal);
  font-weight: 500; margin-bottom: 24px; display: block;
}
.page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(56px, 8vw, 104px);
  font-weight: 300;
  line-height: 1.02; letter-spacing: -2.5px;
  color: var(--white);
  margin-bottom: 32px;
  max-width: 1000px;
}
.page-header h1 em { font-style: italic; color: var(--teal); font-weight: 300; }
.page-header-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(20px, 2.1vw, 26px);
  font-weight: 300;
  color: rgba(255,255,255,0.78);
  line-height: 1.5;
  max-width: 880px;
  letter-spacing: -0.2px;
  margin-bottom: 40px;
}
.page-header-manifesto {
  display: flex; align-items: flex-start; gap: 56px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 40px;
  max-width: 1100px;
}
.page-header-manifesto p {
  flex: 1;
  font-size: 15.5px;
  line-height: 1.85;
  color: rgba(255,255,255,0.7);
  max-width: 620px;
}
.page-header-manifesto p strong {
  font-weight: 400;
  color: var(--white);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15em;
}
.page-header-stat {
  flex-shrink: 0;
  padding-left: 48px;
  border-left: 1px solid rgba(255,255,255,0.12);
  min-width: 200px;
}
.page-header-stat .stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px; font-weight: 300;
  line-height: 1; letter-spacing: -2px;
  color: var(--white);
  margin-bottom: 8px;
}
.page-header-stat .stat-num em { font-style: normal; color: var(--teal); }
.page-header-stat .stat-lbl {
  font-size: 11px; letter-spacing: 0.4px;
  color: rgba(255,255,255,0.45);
  line-height: 1.55;
  max-width: 220px;
}

/* ── INTRO STRIP (used between page-header and first section on solutions/pricing/brand-solutions) ── */
.intro-strip {
  background: var(--off);
  border-bottom: 1px solid var(--rule);
  padding: 56px 64px;
}
.intro-strip-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 64px;
}
.intro-strip .big-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 300;
  color: var(--navy);
  line-height: 1.3;
  flex: 1;
  letter-spacing: -0.4px;
}
.intro-strip .big-text em { font-style: italic; color: var(--teal); }
.intro-divider {
  width: 1px; height: 80px;
  background: var(--rule);
  flex-shrink: 0;
}
.intro-note {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 320px;
  flex-shrink: 0;
}

/* ── GENERIC SECTION BASE ── */
section.std { padding: 120px 64px; background: var(--white); }
section.std.off { background: var(--off); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
section.std.dark { background: var(--navy); color: rgba(255,255,255,0.85); position: relative; overflow: hidden; }
section.std.dark::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(35,148,174,0.16), transparent 55%),
    radial-gradient(circle at 5% 85%, rgba(15,44,83,0.5), transparent 60%);
  pointer-events: none;
}
.std-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }

.sec-label {
  font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--teal);
  font-weight: 500; margin-bottom: 18px; display: block;
}
.sec-h {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 300; color: var(--navy);
  line-height: 1.06; letter-spacing: -1.2px;
}
.sec-h em { font-style: italic; color: var(--teal); }
section.std.dark .sec-h { color: var(--white); }

/* Two-column section header — recurring pattern */
.two-col-head {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: end;
  padding-bottom: 48px; margin-bottom: 64px;
  border-bottom: 1px solid var(--rule);
}
section.std.dark .two-col-head { border-bottom-color: rgba(255,255,255,0.12); }
.two-col-head .head-body {
  font-size: 15px; line-height: 1.8; color: var(--muted);
  max-width: 480px;
}
section.std.dark .two-col-head .head-body { color: rgba(255,255,255,0.65); }
.two-col-head .head-body p + p { margin-top: 14px; }

/* ── CTA SECTION (closing CTA on every page) ── */
.cta-section {
  position: relative;
  background: #051a3a;
  padding: 140px 64px;
  border-top: 1px solid var(--rule);
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.cta-art {
  position: absolute; inset: 0;
  background: url('../consultex-bg.jpeg') center/cover no-repeat;
  z-index: 0; pointer-events: none;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(5,20,42,0.75); z-index: 1; pointer-events: none;
}
.cta-inner {
  position: relative; z-index: 2;
  max-width: 880px; margin: 0 auto;
}
.cta-eyebrow {
  font-size: 10.5px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--teal);
  font-weight: 500; margin-bottom: 24px; display: block;
}
.cta-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 300;
  color: #fff; line-height: 1.06;
  letter-spacing: -1.5px;
  margin-bottom: 28px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.cta-section h2 em { font-style: italic; color: var(--teal); }
.cta-section p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(18px, 1.9vw, 22px);
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
  margin: 0 auto 44px;
  max-width: 640px;
}
.cta-actions { display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; }
.btn-solid {
  background: var(--teal); color: #fff;
  font-size: 12.5px; font-weight: 500;
  padding: 14px 32px; text-decoration: none;
  letter-spacing: 0.3px;
  border: 1.5px solid var(--teal);
  transition: all 0.2s;
  display: inline-block;
}
.btn-solid:hover {
  background: transparent; color: var(--teal);
  box-shadow: 0 0 0 4px rgba(35,148,174,0.15);
  transform: translateY(-1px);
}
.btn-ghost {
  font-size: 12.5px; font-weight: 400;
  color: rgba(255,255,255,0.7); text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--white); border-color: rgba(255,255,255,0.7); }

/* ── FOOTER ── */
.ft-wrap { background: var(--navy); color: rgba(255,255,255,0.55); }
.ft-grid {
  max-width: 1200px; margin: 0 auto;
  padding: 80px 64px 64px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 64px;
}
.ft-logo { display: flex; align-items: center; gap: 10px; }
.ft-logo-img { height: 22px; }
.ft-brand .ft-tag {
  font-size: 10.5px; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
  margin: 20px 0 14px;
}
.ft-brand .ft-desc { font-size: 13px; line-height: 1.7; max-width: 320px; }
.ft-col h4 {
  font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.35);
  margin-bottom: 20px; font-weight: 400;
}
.ft-col ul { list-style: none; }
.ft-col ul li { margin-bottom: 12px; }
.ft-col ul a {
  font-size: 13px; color: rgba(255,255,255,0.55);
  text-decoration: none; transition: color 0.2s;
}
.ft-col ul a:hover { color: var(--white); }
.ft-bar {
  max-width: 1200px; margin: 0 auto;
  padding: 24px 64px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,0.3);
}
.ft-certs { display: flex; gap: 12px; }
.cert {
  font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.12); padding: 4px 8px;
  color: rgba(255,255,255,0.3);
}

/* ── FADE-IN ON SCROLL ── */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in.d1 { transition-delay: 0.08s; }
.fade-in.d2 { transition-delay: 0.16s; }
.fade-in.d3 { transition-delay: 0.24s; }
.fade-in.d4 { transition-delay: 0.32s; }
.fade-in.d5 { transition-delay: 0.40s; }

/* ── RESPONSIVE (canonical breakpoints) ── */
@media (max-width: 900px) {
  .utility-bar, nav { padding: 0 28px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: inline-block; }
  .nav-badge { font-size: 16px; padding-left: 16px; }
  .page-header { padding: 160px 28px 96px; }
  .page-header-manifesto { flex-direction: column; gap: 32px; }
  .page-header-stat { padding-left: 0; border-left: none; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 28px; }
  .intro-strip { padding: 48px 28px; }
  .intro-strip-inner { flex-direction: column; align-items: start; gap: 28px; }
  .intro-divider { display: none; }
  section.std { padding: 80px 28px; }
  .two-col-head { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .cta-section { padding: 100px 28px; }
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 40px; padding: 60px 28px 40px; }
  .ft-bar { flex-direction: column; gap: 14px; padding: 24px 28px; text-align: center; }
}
@media (max-width: 600px) {
  .utility-bar { height: 28px; padding: 0 20px; gap: 14px; }
  .utility-bar a { font-size: 9.5px; }
  nav { top: 28px; padding: 0 20px; height: 64px; }
  .nav-drawer { top: 92px; }
  section[id] { scroll-margin-top: 92px; }
  .page-header { padding: 140px 20px 72px; }
  .page-header-rule { top: 92px; }
  .page-header-stat .stat-num { font-size: 52px; }
  .intro-strip { padding: 40px 20px; }
  section.std { padding: 64px 20px; }
  .cta-section { padding: 80px 20px; }
  .ft-grid { grid-template-columns: 1fr; padding: 48px 20px 32px; }
}

/* ─────────────────────────────────────────────────────────
   Divisions dropdown + Site search (added by apply-nav.py)
   ───────────────────────────────────────────────────────── */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-dropdown-toggle {
  background: none; border: none; padding: 0; font: inherit;
  font-size: 12.5px; font-weight: 400; color: var(--muted);
  letter-spacing: 0.2px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.2s;
}
.nav-dropdown-toggle:hover,
.nav-dropdown[data-open="true"] .nav-dropdown-toggle { color: var(--navy); }
.nav-dropdown-caret {
  display: inline-block; width: 8px; height: 8px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transform-origin: 60% 60%;
  transition: transform 0.2s ease; margin-bottom: 2px;
}
.nav-dropdown[data-open="true"] .nav-dropdown-caret { transform: rotate(-135deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 340px; background: #fff;
  border: 1px solid var(--rule); border-radius: 0;
  box-shadow: 0 18px 48px rgba(7, 32, 64, 0.18);
  padding: 8px; opacity: 0; visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 200;
}
.nav-dropdown-menu::before {
  content: ""; position: absolute; top: -7px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px; background: #fff;
  border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown[data-open="true"] .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
  display: block; text-decoration: none; padding: 12px 14px;
  border-radius: 0; border-left: 3px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.nav-dropdown-item:hover { background: #f4f7fb; }
.nav-dropdown-item.is-current { background: #f4f7fb; border-left-color: var(--orange, #f5a41d); }
.nav-dropdown-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.2;
}
.nav-dropdown-desc { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.nav-dropdown-url  { display: block; margin-top: 4px; font-size: 12px; color: var(--teal);  line-height: 1.4; }
.nav-dropdown-ext  { font-size: 11px; color: var(--muted); transform: translateY(-1px); }

.drawer-group-label {
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--muted); margin-top: 8px; margin-bottom: 4px;
}
.drawer-sub { padding-left: 12px !important; font-size: 14px !important; }
.drawer-sub small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

.nav-search { position: relative; display: inline-flex; align-items: center; }
.nav-search-input {
  appearance: none; -webkit-appearance: none;
  width: 220px; height: 36px; padding: 0 14px 0 36px;
  font: inherit; font-size: 12.5px; color: var(--navy); background: #fff;
  border: 1px solid var(--rule); border-radius: 999px; outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, width .2s ease;
}
.nav-search-input::placeholder { color: var(--muted); }
.nav-search-input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(7,32,64,0.08); }
.nav-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.nav-search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--muted); pointer-events: none;
}
.nav-search-results {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 380px; max-height: 70vh; overflow-y: auto;
  background: #fff; border: 1px solid var(--rule); border-radius: 8px;
  box-shadow: 0 18px 48px rgba(7, 32, 64, 0.18); padding: 6px; z-index: 200;
}
.nav-search-results[hidden] { display: none; }
.nav-search-result {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px;
  text-decoration: none; border-radius: 6px; color: inherit; cursor: pointer;
}
.nav-search-result:hover, .nav-search-result.is-active { background: #f4f7fb; }
.nav-search-result-main { flex: 1 1 auto; min-width: 0; }
.nav-search-result-title {
  font-size: 13.5px; font-weight: 600; color: var(--navy); line-height: 1.25; margin: 0;
}
.nav-search-result-desc {
  font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nav-search-result mark {
  background: rgba(35,148,174,0.18); color: inherit; padding: 0 1px; border-radius: 2px;
}
.nav-search-chip {
  flex: 0 0 auto; font-size: 9.5px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--rule); border-radius: 4px;
  padding: 3px 6px; margin-top: 2px; white-space: nowrap;
}
.nav-search-empty { padding: 14px 12px; font-size: 12.5px; color: var(--muted); }
.nav-search-empty a { color: var(--navy); text-decoration: underline; }

.drawer-search { display: flex; gap: 8px; margin-bottom: 16px; }
.drawer-search input {
  flex: 1 1 auto; height: 40px; padding: 0 14px;
  font: inherit; font-size: 14px; color: var(--navy); background: #fff;
  border: 1px solid var(--rule); border-radius: 999px; outline: none;
}
.drawer-search input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(7,32,64,0.08); }

@media (max-width: 900px) {
  .nav-search-input   { width: 160px; }
  .nav-search-results { width: 320px; }
}
@media (max-width: 700px) {
  .nav-search { display: none; }
}
