/* =========================================================
   Cagle Expert Witness Services — brand-compliant styles
   Per Cagle Branding Style Guide (merged 03.19.2026):
     • Colors: Dark Blue #0031DA · Light Blue #70D6FF · Tag-line Gray #808080
     • Type:   ITC Avant Garde Gothic family (geometric sans).
               Web fallback: Jost (Google Fonts) — closest geometric sans.
     • Body copy 80% black; colored heads at 100%.
     • Wave motif used as accent graphic on hero & contact bands.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
  /* brand palette — verbatim from style guide */
  --blue-dark:  #0031DA;          /* Pantone 293C */
  --blue-light: #70D6FF;          /* Pantone 292C */
  --tag-gray:   #808080;          /* Pantone 9C  */

  /* derived neutrals */
  --paper:   #FFFFFF;
  --paper-2: #F4F8FF;             /* faint blue tint */
  --paper-3: #E9F3FE;
  --ink:     #1A1A1A;             /* body @ ~90% */
  --ink-80:  #333333;             /* body @ 80% per guide */
  --ink-50:  #808080;             /* tagline gray */
  --rule:    #D8E2EC;
  --rule-strong: #B8C6D6;
  --blue-deep: #001F8E;           /* hover/pressed */
  --tint:    rgba(112,214,255,.14);

  /* type families — single family per guide */
  --sans:    'Jost', 'ITC Avant Garde Gothic', 'Avant Garde', 'Century Gothic', 'URW Gothic', system-ui, sans-serif;
  --sans-cn: 'Jost', 'ITC Avant Garde Gothic Condensed', 'Avant Garde', 'Century Gothic', sans-serif;

  /* layout */
  --gutter: clamp(20px, 4vw, 56px);
  --col-max: 1320px;
  --reading: 64ch;

  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-80);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-dark); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--blue-deep); }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- LAYOUT ---------- */
.wrap        { width: 100%; max-width: var(--col-max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
.section     { padding: clamp(56px, 8vw, 112px) 0; }
.mt-24 { margin-top: 24px; }
.muted { color: var(--ink-50); }
.small { font-size: 13px; }

/* ---------- TYPE SCALE ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--sans);
  color: var(--blue-dark);                  /* colored heads @ 100% per guide */
  letter-spacing: -.005em;
  line-height: 1.1;
  font-weight: 700;
  margin: 0;
}
.display {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.04;
  letter-spacing: -.015em;
  color: var(--blue-dark);
}
.display .lt { color: var(--blue-light); font-weight: 500; }
.display .gy { color: var(--ink-50); font-weight: 400; font-style: italic; }
.lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--ink-80);
  font-weight: 400;
  max-width: 56ch;
}
.eyebrow {
  display: inline-flex; gap: 10px; align-items: center;
  font-family: var(--sans);
  text-transform: uppercase; letter-spacing: .14em;
  font-size: 11px; font-weight: 600; color: var(--blue-dark);
}
.eyebrow .sec { color: var(--blue-light); font-weight: 700; }
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--blue-light);
}

/* ---------- NAV ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-nav .row {
  display: flex; align-items: center; gap: 24px;
  min-height: 72px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; text-decoration: none; }
.brand img.logo { height: 44px; width: auto; display: block; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a {
  color: var(--ink-80); font-weight: 500; font-size: 13px;
  text-transform: uppercase; letter-spacing: .08em;
  position: relative; padding: 6px 0; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--blue-dark); }
.nav-links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--blue-light);
}
.nav-cta { margin-left: 8px; flex: 0 0 auto; }
.nav-cta.btn { padding: 12px 18px; font-size: 12px; white-space: nowrap; }
.nav-burger {
  display: none;
  margin-left: auto;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-80); font-weight: 600;
  cursor: pointer; flex: 0 0 auto;
}
.nav-burger:hover { color: var(--blue-dark); border-color: var(--blue-dark); }
.nav-burger .label-close { display: none; }
.site-nav.is-open .nav-burger .label-open  { display: none; }
.site-nav.is-open .nav-burger .label-close { display: inline; }

/* TABLET — squeeze CTA, slightly tighter links */
@media (max-width: 1180px) {
  .nav-links { gap: 18px; }
  .nav-cta.btn { padding: 10px 14px; font-size: 11.5px; }
}

/* MOBILE — collapse to burger drawer */
@media (max-width: 1024px) {
  .nav-cta   { display: none; }
  .nav-burger { display: inline-flex; align-items: center; gap: 6px; }
  .site-nav .row { min-height: 64px; padding: 10px 0; }
  .brand img.logo { height: 38px; }

  .site-nav .nav-links {
    display: flex; flex-direction: column;
    position: fixed; left: 0; right: 0; top: 64px;
    background: #fff;
    border-bottom: 1px solid var(--rule);
    padding: 24px var(--gutter) 28px;
    gap: 4px;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform .3s var(--ease), opacity .25s var(--ease);
    box-shadow: 0 24px 60px rgba(0,49,218,.10);
    z-index: 50;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .site-nav.is-open .nav-links {
    transform: translateY(0); opacity: 1;
  }
  .site-nav .nav-links a {
    font-size: 16px; padding: 14px 0;
    border-bottom: 1px solid var(--rule);
    letter-spacing: .04em;
  }
  .site-nav .nav-links a:last-of-type { border-bottom: 0; }
  .site-nav .nav-links a.is-active::after { display: none; }
  .site-nav .nav-links a.is-active { color: var(--blue-dark); }
  .site-nav .nav-links .mobile-cta {
    margin-top: 14px;
    background: var(--blue-dark); color: #fff !important;
    border-radius: 999px; padding: 14px 22px;
    text-align: center; text-transform: uppercase; font-weight: 600;
    letter-spacing: .04em; font-size: 14px;
    border-bottom: 0 !important;
  }
  body.menu-open { overflow: hidden; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  background: var(--blue-dark); color: #fff !important;
  font-family: var(--sans); font-weight: 600;
  font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid var(--blue-dark);
  transition: background .2s var(--ease), transform .2s var(--ease);
  cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); transform: translateY(-1px); }
.btn .arrow { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--blue-dark) !important; border-color: var(--blue-dark); }
.btn.ghost:hover { background: var(--blue-dark); color: #fff !important; }
.btn.light { background: #fff; color: var(--blue-dark) !important; border-color: #fff; }
.btn.light:hover { background: var(--blue-light); color: var(--blue-dark) !important; border-color: var(--blue-light); }

/* ---------- HERO ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(80px, 11vw, 160px) 0 clamp(40px, 6vw, 80px);
  background: var(--paper);
}

/* ---- Brand hero: full-bleed blue plate w/ optional bg image ---- */
.brand-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(420px, 56vh, 600px);
  display: flex; align-items: flex-end;
  color: #fff;
}
.brand-hero .bg {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(180deg, rgba(0,21,90,0.30) 0%, rgba(0,21,90,0.62) 60%, rgba(0,21,90,0.92) 100%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 14px, rgba(255,255,255,0) 14px 28px),
    linear-gradient(180deg, #0a3fa8 0%, #001b7a 100%);
  background-size: cover;
  background-position: center;
}
.brand-hero .bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(180deg, transparent 0 78%, var(--paper) 100%);
  pointer-events: none;
}
.brand-hero .slot {
  position: absolute; top: 24px; right: 28px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); z-index: 1; font-weight: 500;
}
.brand-hero .wrap {
  position: relative; z-index: 1; width: 100%;
  padding-top: clamp(80px, 10vw, 120px);
  padding-bottom: clamp(56px, 7vw, 88px);
}
.brand-hero .meta {
  display: flex; flex-wrap: wrap; gap: 14px 28px;
  margin-bottom: 26px; padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.22);
}
.brand-hero .meta .eyebrow { color: #fff; }
.brand-hero .meta .eyebrow .sec { color: var(--blue-light); }
.brand-hero .meta .eyebrow::before { background: var(--blue-light); }
.brand-hero h1 {
  color: #fff;
  font-size: clamp(30px, 4.2vw, 60px);
  line-height: 1.08; letter-spacing: -0.01em; font-weight: 700;
  max-width: 22ch;
  margin: 0;
}
.brand-hero h1 em { font-style: normal; color: var(--blue-light); }
.brand-hero .lead {
  color: rgba(255,255,255,0.88);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55; max-width: 60ch;
  margin-top: 24px;
}
.brand-hero .actions {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 28px;
}
.brand-hero .actions .btn { background: #fff; color: var(--blue-dark) !important; border-color: #fff; }
.brand-hero .actions .btn:hover { background: var(--blue-light); border-color: var(--blue-light); color: var(--blue-dark) !important; }
.brand-hero .actions .ghost-link {
  color: #fff; font-weight: 600; font-size: 14px;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 10px 4px; border-bottom: 1px solid rgba(255,255,255,0.45);
}
.brand-hero .actions .ghost-link:hover { color: var(--blue-light); border-color: var(--blue-light); }
.page-hero .meta {
  display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 36px;
}
.page-hero h1 { margin-top: 14px; }
.page-hero .lead { margin-top: 28px; }
.page-hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

/* signature wave shape (per brand guide) */
.wave {
  position: absolute; left: 0; right: 0; pointer-events: none;
  height: 220px;
}
.wave svg { width: 100%; height: 100%; display: block; }
.wave--bottom { bottom: -1px; }
.wave--top    { top: -1px; transform: scaleY(-1); }

/* ---------- SECTION HEAD ---------- */
.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  margin-bottom: 56px; align-items: end;
}
.section-head h2 { font-size: clamp(32px, 3.6vw, 56px); line-height: 1.06; }
.section-head .lead-col p { font-size: 17px; line-height: 1.55; color: var(--ink-80); margin: 0; max-width: 52ch; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- CARDS / GRIDS ---------- */
.card {
  background: #fff; border: 1px solid var(--rule); border-radius: 14px;
  padding: 32px; transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { border-color: var(--blue-light); transform: translateY(-2px); box-shadow: 0 12px 36px rgba(0,49,218,.07); }
.card h3 { color: var(--blue-dark); font-size: 22px; margin-bottom: 12px; }
.card p { color: var(--ink-80); font-size: 15px; line-height: 1.55; }
.card .num {
  display: inline-block; font-weight: 700; color: var(--blue-light);
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

/* ---------- BANDS ---------- */
.band-blue {
  background: var(--blue-dark); color: #fff; position: relative;
}
.band-blue h1, .band-blue h2, .band-blue h3, .band-blue h4 { color: #fff; }
.band-blue p { color: rgba(255,255,255,.85); }
.band-blue .eyebrow { color: var(--blue-light); }
.band-blue .eyebrow .sec { color: #fff; }
.band-blue .eyebrow::before { background: var(--blue-light); }

.band-tint { background: var(--paper-2); }

/* ---------- PHOTO PLACEHOLDER ---------- */
.photo {
  position: relative; overflow: hidden; border-radius: 12px;
  background:
    linear-gradient(135deg, var(--blue-light) 0%, var(--blue-dark) 100%);
  color: rgba(255,255,255,.92);
}
.photo::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.06) 25%, transparent 25%, transparent 50%,
                            rgba(255,255,255,.06) 50%, rgba(255,255,255,.06) 75%, transparent 75%, transparent);
  background-size: 22px 22px;
}
.photo > span {
  position: absolute; left: 16px; bottom: 14px; right: 16px;
  font-family: var(--sans); font-weight: 500; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; opacity: .92;
}
.photo[data-label]::after {
  content: attr(data-label);
  position: absolute; left: 16px; top: 14px;
  font-family: var(--sans); font-weight: 500; font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; opacity: .85;
  color: #fff;
}

/* ---------- IMAGERY SECTIONS (stock photo slots) ---------- */
.imagery-section { display: none; } /* deprecated — use inline figures */

/* Inline editorial figures, used next to relevant content */
.section-figure {
  position: relative; border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,49,218,0.10);
  background: var(--paper-3);
}
.section-figure img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 16/9;
}
.section-figure.tall img { aspect-ratio: 4/5; }
.section-figure.wide img { aspect-ratio: 21/9; }
.section-figure.square img { aspect-ratio: 1/1; }
.section-figure figcaption {
  position: absolute; bottom: 14px; left: 14px;
  background: var(--blue-dark); color: #fff;
  padding: 7px 14px; border-radius: 999px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  max-width: calc(100% - 28px);
}

/* Split: content + figure side by side */
.split-figure {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.split-figure.flip { grid-template-columns: 1fr 1.05fr; }
@media (max-width: 880px) {
  .split-figure, .split-figure.flip { grid-template-columns: 1fr; }
}

/* Hero background w/ photo */
.brand-hero .bg.has-photo {
  background-image:
    linear-gradient(180deg, rgba(0,21,90,0.45) 0%, rgba(0,21,90,0.70) 60%, rgba(0,21,90,0.94) 100%),
    var(--hero-img, none);
  background-size: cover;
  background-position: center;
}

/* ---------- STAT ROWS ---------- */
.stat {
  display: flex; align-items: baseline; gap: 14px; padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.stat:last-child { border-bottom: 1px solid var(--rule); }
.stat .n {
  font-family: var(--sans); font-weight: 700; color: var(--blue-dark);
  font-size: clamp(40px, 4.5vw, 64px); letter-spacing: -.02em; line-height: 1;
  min-width: 4ch;
}
.stat .l { font-size: 14px; color: var(--ink-80); max-width: 36ch; }

/* ---------- FORM ---------- */
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: var(--blue-dark);
}
.field input, .field textarea, .field select {
  border: 1px solid var(--rule-strong); border-radius: 8px;
  padding: 12px 14px; background: #fff; color: var(--ink);
  font-family: var(--sans); font-size: 15px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--blue-light); border-color: var(--blue-dark);
}
.field textarea { min-height: 140px; resize: vertical; }

/* ---------- TABLES ---------- */
table.brand-table {
  width: 100%; border-collapse: collapse; font-size: 14.5px;
}
.brand-table th, .brand-table td {
  padding: 14px 16px; border-bottom: 1px solid var(--rule); vertical-align: top;
}
.brand-table th {
  text-align: left; color: var(--blue-dark); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; font-size: 11px;
  border-bottom: 2px solid var(--blue-dark);
}
.brand-table tr:hover td { background: var(--paper-2); }

/* ---------- FOOTER (light, brand) ---------- */
.site-footer {
  background: var(--paper-2);
  color: var(--ink-80);
  border-top: 2px solid var(--blue-dark);
  padding: 64px 0 28px;
  position: relative;
}
.site-footer .grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px;
}
.site-footer .footer-brand .logo-wrap { display: inline-block; }
.site-footer .footer-brand img { height: 64px; width: auto; display: block; }
.site-footer .footer-brand p {
  margin-top: 16px; max-width: 36ch; font-size: 13px; color: var(--ink-80); line-height: 1.55;
}
.site-footer h4 {
  color: var(--blue-dark); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 700; margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-80); font-size: 14px; text-decoration: none; }
.site-footer a:hover { color: var(--blue-dark); }
.site-footer .contact-line { display: grid; gap: 4px; font-size: 14px; }
.site-footer .contact-line a { font-weight: 600; color: var(--blue-dark); }
.site-footer .colophon {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule);
  font-size: 12px; color: var(--ink-50);
}
@media (max-width: 800px) { .site-footer .grid { grid-template-columns: 1fr 1fr; } }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- MISC LEGACY (back-compat for existing markup) ---------- */
.brand-mark, .brand-sub, .amp { display: none; }   /* hide old text mark; logo image used */
.lead-col { /* alias */ }
