/* ============================================================
   CapitalCareers — styles.css
   A Rancho Cordova & Roseville Area Chamber initiative.
   Brand tokens live in assets/brand-tokens.css.
   ============================================================ */

@import url("assets/brand-tokens.css?v=4");

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, picture { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-strong);
  line-height: 1.14;
  font-weight: 500;
  letter-spacing: 0;
}
h1 { font-size: var(--fs-h1); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { max-width: var(--maxw-text); }

/* ---------- Accessibility helpers ---------- */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--gold); color: var(--navy); padding: 0.75rem 1.25rem;
  font-weight: 600; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.section { padding-block: var(--section-y); }
.section--snow  { background: var(--snow); }
.section--white { background: var(--paper, #FCFBFA); }
.section--navy  { background: var(--navy); color: #E9EEF4; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #C7D2E0; }
.center { text-align: center; }
.center p { margin-inline: auto; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.9rem;
  display: inline-block;
}
.section--navy .eyebrow { color: var(--teal-bright); }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; }
.section-head .lead { font-size: var(--fs-lead); color: var(--granite-soft); margin-top: 1rem; }
.section--navy .section-head .lead { color: #C7D2E0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 500; font-size: 1rem;
  padding: 0.85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease), color 0.18s var(--ease);
  text-decoration: none; line-height: 1; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Primary = Catalyst Gold fill, navy label (never gold text) */
.btn--primary { background: var(--gold-btn, #FEA722); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--gold-btn, #FEA722); box-shadow: var(--shadow-md); }

/* Secondary = River Teal outline */
.btn--secondary { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn--secondary:hover { background: var(--teal); color: #fff; }

/* Hero secondary — celeste (light teal) outline, fills celeste on hover */
.btn--ghost { background: transparent; color: var(--teal-bright); border-color: var(--teal-bright); font-weight: 500; }
.btn--ghost:hover { background: var(--teal-bright); color: var(--navy); border-color: var(--teal-bright); }

.btn--lg { padding: 1rem 2rem; font-size: 1.0625rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.75rem; }
.center .btn-row { justify-content: center; }

/* ---------- Top navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,245,240,0.85); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 500; color: var(--navy); font-size: 1.18rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand b { font-weight: 500; }
.brand span { color: var(--teal); }

.nav__links { display: flex; align-items: center; gap: 1.6rem; list-style: none; padding: 0; }
.nav__links a { color: var(--granite); font-weight: 500; font-size: 0.97rem; }
.nav__links a:hover { color: var(--navy); text-decoration: none; }
.nav__links a[aria-current="page"] { color: var(--navy); }
.nav__links a[aria-current="page"]::after { content: ""; display: block; height: 2px; background: var(--teal); border-radius: 2px; margin-top: 3px; }
.nav__cta { display: flex; align-items: center; gap: 0.75rem; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem; color: var(--navy); }
/* hamburger → X morph */
.nav__burger { display: block; position: relative; width: 26px; height: 16px; }
.nav__burger i { position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 2px; background: currentColor;
  transition: transform 0.32s var(--ease), opacity 0.2s var(--ease); }
.nav__burger i:nth-child(1) { top: 0; }
.nav__burger i:nth-child(2) { top: 50%; margin-top: -1.25px; }
.nav__burger i:nth-child(3) { bottom: 0; }
.nav__toggle[aria-expanded="true"] .nav__burger i:nth-child(1) { transform: translateY(6.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__burger i:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle[aria-expanded="true"] .nav__burger i:nth-child(3) { transform: translateY(-6.75px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed; inset: 68px 0 auto 0; background: var(--snow);
    border-bottom: 1px solid var(--border); padding: 1.25rem clamp(1.1rem,4vw,2.5rem) 1.75rem;
    flex-direction: column; align-items: flex-start; gap: 1.1rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; box-shadow: var(--shadow-md);
  }
  .nav__menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links { flex-direction: column; align-items: flex-start; gap: 1.1rem; width: 100%; }
  .nav__cta { flex-direction: column; align-items: stretch; width: 100%; }
  .nav__cta .btn { width: 100%; }
}
.nav__menu { display: flex; align-items: center; gap: 1.6rem; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero::before { /* soft glow behind copy */
  content: ""; position: absolute; left: -10%; top: -20%; width: 60%; height: 80%;
  background: radial-gradient(closest-side, rgba(15,143,140,0.18), transparent 70%);
  pointer-events: none;
}
.hero__inner { display: flex; align-items: center; min-height: calc(98vh - 69px); padding-block: clamp(3rem, 6vw, 5rem); }
.hero__copy { position: relative; z-index: 2; max-width: clamp(380px, 48vw, 640px); }
.hero h1 { color: #fff; }
.hero .lead { font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem); color: #C7D2E0; margin-top: 1.1rem; max-width: 52ch; }
.hero .eyebrow { color: var(--teal-bright); }

/* Hero media — rotating marquee. Bleeds to the hero top & bottom edges; the right
   edge keeps the same gutter as the left content (symmetric with the text). */
.hero__media { position: absolute; top: 0; bottom: 0;
  right: calc(max((100% - var(--maxw)) / 2, 0px) + clamp(1.1rem, 4vw, 2.5rem));
  width: min(35%, 520px); z-index: 1; }
.hero__marquee { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; height: 100%; overflow: hidden; }
.marq-col { overflow: hidden; }
.marq-track { display: flex; flex-direction: column; will-change: transform; }
.marq-col--up   .marq-track { animation: marqUp   36s linear infinite; }
.marq-col--down .marq-track { animation: marqDown 36s linear infinite; }
.marq-track figure { flex: 0 0 auto; margin: 0 0 14px; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg); position: relative; background: var(--navy-deep); }
.marq-track figure::after { content: ""; position: absolute; inset: 0; border-radius: 20px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }
.marq-track img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes marqUp   { from { transform: translateY(0); }     to { transform: translateY(-50%); } }
@keyframes marqDown { from { transform: translateY(-50%); }  to { transform: translateY(0); } }

/* floating product card over the marquee (home) */
.hero__float { position: absolute; left: 12px; right: 12px; bottom: 14px; z-index: 4; }
.hero__float .match-card { box-shadow: 0 18px 44px -18px rgba(0,0,0,0.6); }

@media (max-width: 860px) {
  .hero__inner { display: block; min-height: 0; padding-block: clamp(2.5rem, 7vw, 3.5rem); }
  .hero__copy { max-width: none; margin-bottom: clamp(2.5rem, 6vw, 3.5rem); }
  .hero h1, .hero .lead { max-width: none; }
  .hero__media { position: static; width: auto; margin-inline: calc(-1 * clamp(1.1rem, 4vw, 2.5rem)); }
  .hero__marquee { grid-template-columns: 1fr; gap: 14px; height: auto; }
  .marq-track { display: flex; flex-direction: row; width: max-content; }
  .marq-track figure { flex: 0 0 auto; width: min(64vw, 440px); margin: 0 14px 0 0; aspect-ratio: 16 / 10; }
  .marq-col--up   .marq-track { animation-name: marqLeft; }
  .marq-col--down .marq-track { animation-name: marqRight; }
  @keyframes marqLeft  { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
  @keyframes marqRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }
}
@media (prefers-reduced-motion: reduce) { .marq-track { animation: none !important; } }

/* ---------- Match card motif (signature product visual) ---------- */
.match-stack { display: grid; gap: 0.85rem; }
.match-card {
  background: var(--paper, #FCFBFA); color: var(--granite); border-radius: var(--radius);
  padding: 1.05rem 1.2rem; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border: 1px solid rgba(255,255,255,0.6);
}
.match-card__role { font-family: var(--font-display); font-weight: 500; color: var(--navy); font-size: 1.05rem; }
.match-card__meta { font-size: 0.85rem; color: var(--granite-soft); margin-top: 2px; }
.match-badge {
  flex-shrink: 0; font-family: var(--font-display); font-weight: 500; font-size: 0.95rem;
  color: #0B6E6B; background: rgba(15,143,140,0.12); border: 1px solid rgba(15,143,140,0.3);
  padding: 0.4rem 0.7rem; border-radius: 999px; white-space: nowrap;
}

/* ---------- Audience fork cards ---------- */
.fork { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2rem); }
@media (max-width: 760px) { .fork { grid-template-columns: 1fr; } }
.fork-card {
  border-radius: var(--radius); padding: clamp(1.75rem, 3vw, 2.5rem); position: relative; overflow: hidden;
  border: 1px solid var(--border); background: var(--paper, #FCFBFA); box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.fork-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.fork-card__tag { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-eyebrow); letter-spacing: 0.16em; text-transform: uppercase; }
.fork-card h3 { margin: 0.6rem 0 0.75rem; font-size: var(--fs-h3); }
.fork-card p { color: var(--granite-soft); }
.fork-card .btn { margin-top: 1.5rem; }
.fork-card--veteran { border-top: 5px solid var(--navy); }
.fork-card--veteran .fork-card__tag { color: var(--navy); }
.fork-card--employer { border-top: 5px solid var(--teal); }
.fork-card--employer .fork-card__tag { color: var(--teal); }

/* ---------- Steps (how it works) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 3vw, 2rem); counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; }
.step__num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 500; color: var(--navy);
  background: rgba(243,156,18,0.16); border: 2px solid var(--gold); margin-bottom: 1rem;
}
.section--navy .step__num { color: #fff; background: rgba(243,156,18,0.2); }
.step h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.97rem; color: var(--granite-soft); }
.section--navy .step p { color: #C7D2E0; }

/* Vertical stepper (For Veterans) */
.stepper { display: grid; gap: 0; max-width: 760px; }
.stepper__item { display: grid; grid-template-columns: 56px 1fr; gap: 1.25rem; padding-bottom: 2.25rem; position: relative; }
.stepper__item:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 52px; bottom: 0; width: 2px; background: linear-gradient(var(--teal), rgba(15,143,140,0.25)); }
.stepper__num { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; color: #fff; background: var(--teal); }
.stepper__item h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.stepper__item p { color: var(--granite-soft); }

/* ---------- Stat blocks ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2rem); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }
.stat { padding: 1.5rem 0; border-top: 3px solid var(--gold); }
.stat__num { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 4vw, 2.75rem); color: var(--navy); line-height: 1; }
.stat__label { margin-top: 0.6rem; font-size: 0.9rem; letter-spacing: 0.04em; color: var(--granite-soft); text-transform: uppercase; font-weight: 600; }

/* ---------- Generic card grid (3-up) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2rem); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .cards--2 { grid-template-columns: 1fr; } }
.card {
  background: var(--paper, #FCFBFA); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2rem); box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 1.2rem; margin-bottom: 0.55rem; }
.card p { color: var(--granite-soft); font-size: 0.98rem; }
.card--feature { border-top: 4px solid var(--teal); }
.card--accent { border-top: 4px solid var(--gold); background: var(--snow); }
/* colored top line, all on white cards */
.card--line-navy { border-top: 4px solid var(--navy); }
.card--line-teal { border-top: 4px solid var(--teal-bright); }
.card--line-gold { border-top: 4px solid var(--gold); }
.card__icon { width: 46px; height: 46px; margin-bottom: 1rem; color: var(--teal); }

/* Logo placeholder (partner cards — swap for a real <img> when provided) */
.logo-ph { height: 72px; max-width: 180px; margin: 0 auto 1.25rem; display: grid; place-items: center;
  border: 1px dashed var(--border); border-radius: 10px; background: var(--snow);
  color: var(--granite-soft); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- Chamber cards (About) ---------- */
.chamber-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 760px) { .chamber-grid { grid-template-columns: 1fr; } }
.chamber { position: relative; background: var(--paper, #FCFBFA); border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.chamber:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.chamber::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; z-index: 1; }
.chamber--rc::before { background: var(--navy); }
.chamber--rv::before { background: var(--teal); }
.chamber__logo { margin: 1.9rem 1.9rem 0; height: 96px; border-radius: 12px; background: var(--snow); border: 1px dashed var(--border);
  display: grid; place-items: center; color: var(--granite-soft); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; text-align: center; padding: 0 1rem; }
.chamber__body { padding: 1.4rem 1.9rem 1.9rem; flex: 1; display: flex; flex-direction: column; }
.chamber__body h3 { font-size: 1.3rem; margin-bottom: 0.7rem; }
.chamber--rc .chamber__body h3 { color: var(--navy); }
.chamber--rv .chamber__body h3 { color: var(--teal); }
.chamber__body p { color: var(--granite-soft); }
.chamber__link { margin-top: auto; padding-top: 1.25rem; font-family: var(--font-display); font-weight: 500; }

/* ---------- Role cards (explore) ---------- */
.role-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 980px) { .role-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .role-grid { grid-template-columns: 1fr; } }
.role-card { background: var(--paper, #FCFBFA); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.role-card h3 { font-size: 1.05rem; color: var(--navy); }
.role-card p { font-size: 0.9rem; color: var(--granite-soft); margin-top: 0.35rem; }

/* ---------- Bento grid (3-col, mixed widths, generous — no gradients) ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: minmax(304px, auto); grid-auto-rows: minmax(264px, auto); gap: 16px; }
.bento > * { border-radius: 22px; overflow: hidden; position: relative; }
.bento figure { margin: 0; }
.bento img { width: 100%; height: 100%; min-height: 264px; object-fit: cover; display: block; }
.bento figure::after { content: ""; position: absolute; inset: 0; border-radius: 22px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05); }

/* Solid-color tiles (no gradients) */
.b-tile { background: var(--paper, #FCFBFA); border: 1px solid var(--border); padding: clamp(1.6rem, 2.5vw, 2.4rem); display: flex; flex-direction: column; justify-content: center; box-shadow: var(--shadow-sm); }
.b-tile .eyebrow { margin-bottom: 0.9rem; }
/* lead + guide tiles share this mid-size heading (between h2 and h3) */
.b-tile h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.05rem); margin-bottom: 0.9rem; }
.b-tile h3 { font-size: 1.55rem; margin-bottom: 0.6rem; color: var(--navy); }
.b-tile p { color: var(--granite-soft); font-size: 1rem; }
.b-tile--teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.b-tile--teal .eyebrow, .b-tile--teal h3 { color: #fff; }
.b-tile--teal p, .b-tile--teal .b-numlabel { color: rgba(255,255,255,0.92); }
.b-tile--navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.b-tile--navy .eyebrow { color: var(--teal-bright); }
.b-tile--navy h3 { color: #fff; }
.b-tile--navy p { color: #C7D2E0; }
.b-tile--gold { background: var(--gold); border-color: var(--gold); }
.b-tile--gold .eyebrow { color: var(--navy); }
.b-tile--gold h2 { color: var(--navy); }
.b-tile--gold p { color: #5c3d00; }

.b-bignum { font-family: var(--font-display); font-weight: 600; font-size: clamp(3rem, 6vw, 4.4rem); line-height: 0.95; letter-spacing: -0.03em; }
.b-numlabel { margin-top: 0.75rem; font-size: 1rem; }

/* Image + text tile (white text over an image; solid scrim for contrast, no gradient) */
.b-imgtext { color: #fff; padding: clamp(1.6rem, 2.5vw, 2.4rem); display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; }
.b-imgtext img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: cover; z-index: 0; }
.b-imgtext::after { content: ""; position: absolute; inset: 0; background: rgba(22,46,75,0.6); z-index: 1; }
.b-imgtext > * { position: relative; z-index: 2; }
.b-imgtext .b-numlabel { color: rgba(255,255,255,0.92); }

/* span map (3-col, mixed widths) — matches the approved wireframe */
.bento .a-lead  { grid-column: 1 / 3; grid-row: 1; }
.bento .a-imgA  { grid-column: 3;     grid-row: 1; }
.bento .a-blue  { grid-column: 1;     grid-row: 2 / 4; }
.bento .a-guide { grid-column: 2 / 4; grid-row: 2; }
.bento .a-free  { grid-column: 2;     grid-row: 3; }
.bento .a-imgB  { grid-column: 3;     grid-row: 3; }

@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: minmax(220px, auto); }
  .bento > * { grid-column: auto !important; grid-row: auto !important; }
  .bento .a-lead, .bento .a-guide { grid-column: 1 / 3 !important; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento .a-lead, .bento .a-guide, .bento .a-blue { grid-column: 1 !important; grid-row: auto !important; }
}

/* ---------- Split (image/text, alternating) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
@media (min-width: 861px) { .split--reverse .split__media { order: -1; } }
.split__text .eyebrow { margin-bottom: 0.7rem; }
.split__media { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--navy-deep); aspect-ratio: 4 / 3; box-shadow: var(--shadow-md); }
.split__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Duo panels (two colored blocks, side by side) ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }
.duo__panel { border-radius: 20px; padding: clamp(2rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.duo__panel .eyebrow { margin-bottom: 0.3rem; }
.duo__panel h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); margin: 0.6rem 0 1rem; }
.duo__panel--navy { background: var(--navy); color: #fff; }
.duo__panel--navy h2 { color: #fff; }
.duo__panel--navy .eyebrow { color: var(--teal-bright); }
.duo__panel--navy p { color: #C7D2E0; }
.duo__panel--light { background: var(--paper, #FCFBFA); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.duo__panel--light p { color: var(--granite-soft); }

/* ---------- Feature with background photo (two columns over a scrim) ---------- */
.feature-photo { position: relative; background: var(--navy); color: #fff; overflow: hidden; min-height: min(74vh, 660px); display: grid; align-items: center; padding-block: clamp(4rem, 8vw, 7rem); }
.feature-photo__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.feature-photo::after { content: ""; position: absolute; inset: 0; background: rgba(22,46,75,0.82); z-index: 1; }
.feature-photo__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); }
@media (max-width: 760px) { .feature-photo__inner { grid-template-columns: 1fr; gap: 2.5rem; } }
@media (min-width: 761px) { .feature-photo__col:first-child { padding-right: clamp(1.5rem, 4vw, 3.5rem); border-right: 1px solid rgba(255,255,255,0.16); } }
.feature-photo__col .eyebrow { color: var(--teal-bright); margin-bottom: 0.5rem; }
.feature-photo__col h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); margin-bottom: 1rem; }
.feature-photo__col p { color: #C7D2E0; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; }
.faq details { border-bottom: 1px solid var(--border); padding: 1.1rem 0; }
.faq summary { font-family: var(--font-display); font-weight: 500; color: var(--navy); font-size: 1.1rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--teal); transition: transform 0.2s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 0.75rem; color: var(--granite-soft); }

/* ---------- CTA band (full-width gold) ---------- */
.cta-band { background: var(--gold); color: var(--navy); text-align: center; }
.cta-band h2 { color: var(--navy); max-width: 18ch; margin-inline: auto; }
.cta-band p { color: #5c3d00; margin: 1rem auto 0; }
.cta-band .btn--primary { background: var(--navy); color: #fff; font-weight: 500; }
.cta-band .btn--primary:hover { background: var(--navy-deep); }
.cta-band .btn--secondary { color: var(--navy); border-color: var(--navy); }
.cta-band .btn--secondary:hover { background: var(--navy); color: #fff; }

/* ---------- Connect form ---------- */
.connect { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .connect { grid-template-columns: 1fr; } }
.form { background: var(--paper, #FCFBFA); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 0.4rem; font-size: 0.95rem; }
.field .req { color: var(--red); }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--granite);
  padding: 0.8rem 0.95rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--snow); transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,143,140,0.15); background: var(--paper, #FCFBFA); }
.field textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-consent { font-size: 0.82rem; color: var(--granite-soft); margin-top: 0.25rem; }
.form .form-consent { margin-bottom: 1.1rem; }
.form-status { margin-top: 1rem; font-size: 0.95rem; border-radius: var(--radius-sm); padding: 0.85rem 1rem; display: none; }
.form-status.show { display: block; }
.form-status.success { background: rgba(15,143,140,0.12); color: #0B6E6B; border: 1px solid rgba(15,143,140,0.3); }
.form-status.error { background: rgba(166,24,46,0.08); color: var(--red); border: 1px solid rgba(166,24,46,0.3); }
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
/* Form submit button — fill sweeps in from the right + Lucide chevron on hover */
.form .btn--primary { position: relative; overflow: hidden; z-index: 0; width: 100%; gap: 0; }
.form .btn--primary::before { content: ""; position: absolute; inset: 0; background: var(--navy); transform: scaleX(0); transform-origin: right center; transition: transform 0.4s var(--ease); z-index: -1; }
.form .btn--primary:hover { color: #fff; background: var(--gold-btn, #FEA722); }
.form .btn--primary:hover::before { transform: scaleX(1); }
/* Lucide chevron-right — appears only on hover */
.form .btn--primary::after { content: ""; width: 0; height: 19px; opacity: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: width 0.25s var(--ease), opacity 0.25s var(--ease), margin-left 0.25s var(--ease); }
.form .btn--primary:hover::after { width: 19px; opacity: 1; margin-left: 0.55rem; }

/* ---------- Trust strip ---------- */
.trust { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: center; }
.trust__item { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.03em; color: #C7D2E0; text-transform: uppercase; }
.trust__item::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-bright); }

/* ---------- Logo lockup (chambers) ---------- */
.lockup { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.5rem, 5vw, 3.5rem); }
.lockup img { height: 56px; width: auto; }
.lockup .placeholder { color: #C7D2E0; border: 1px dashed var(--border-navy); border-radius: var(--radius-sm); padding: 0.9rem 1.25rem; font-size: 0.85rem; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #C7D2E0; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer a { color: #C7D2E0; }
.footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 2.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border-navy); }
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr; gap: 2rem; } }
.footer__brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 500; color: #fff; font-size: 1.2rem; }
.footer__brand img { width: 32px; height: 32px; }
.footer__tag { margin-top: 0.85rem; max-width: 48ch; color: #9FB1C6; }
.footer__chambers { margin-top: 1.5rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer__chambers img { height: 44px; width: auto; }
.footer__col h4 { font-family: var(--font-display); color: #fff; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__col ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.footer__col a { font-size: 0.95rem; }
.footer__bottom { padding-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; font-size: 0.82rem; color: #8FA2B8; }
.footer__funder { margin-top: 1.4rem; font-size: 0.85rem; color: #8FA2B8; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Reveal animation hook ---------- */
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(28px); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal, .js .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- Prose (About / Partners text blocks) ---------- */
.prose p + p { margin-top: 1.1rem; }
.prose { max-width: var(--maxw-text); }
.prose--wide { max-width: 860px; }
.prose h2 { font-size: var(--fs-h3); margin-top: 2.5rem; margin-bottom: 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin-top: 1.75rem; margin-bottom: 0.5rem; }
.prose ul { margin: 0.75rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.5rem; color: var(--granite-soft); }
/* Legal / text page header */
.legal-head h1 { font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); }
.lead { font-size: var(--fs-lead); }


/* --- a11y: larger tap targets for text links on touch/mobile --- */
@media (max-width: 860px) {
  .nav__links a, .footer__col a, .footer__legal a { display: inline-block; padding-block: 0.55rem; }
}
