/* =============================================================================
 * style.css - Alinta Staffing
 * -----------------------------------------------------------------------------
 * Bright, flat, premium: near-white paper fields with flat navy bands, gold as
 * the accent, and sand/cream reserved for small surfaces (chips, cards,
 * borders, pill hovers, the sand form band). Sections meet flat.
 *
 * ALL colors live in the :root block below - nowhere else - so a one-line edit
 * repalettes the site and the build test can enforce "colors only in :root".
 * ========================================================================== */

:root {
  /* ---- Anchor palette (brief §0) - the ONLY place color literals live ---- */
  --navy:      #0B2239;   /* deep navy - anchor, dark bands, employer color */
  --blue:      #1E4B6A;   /* mid blue - text accents on light, pull-quotes */
  --gold:      #C8A24A;   /* brand gold - curves, chips, candidate color */
  --sand:      #EAD9B6;   /* warm sand - full-bleed tints, cards */
  --cream:     #F8F2E6;   /* cream - page base */
  --paper:     #FFFDF9;   /* near-white - hero top, per the client's mockups */
  --ink:       #22303E;   /* body text on cream */
  --gold-soft: rgba(200,162,74,.28);  /* hairline rules, rings, soft borders */

  /* ---- Supporting surface + state colors (hex must stay in :root) ---- */
  --field-bg:    #FFFFFF;   /* form input background */
  --field-border:#D9CCAD;   /* form input border - deep sand */
  --on-navy-mute:#A9B6C2;   /* muted text on navy */
  --success-bg:  #10314A;   /* success strip - deep navy, inside sand card */
  --success-ink: #EAF3EA;   /* success strip text */
  --error-ink:   #B3261E;   /* error region text - accessible red on cream */

  /* ---- Radii + rhythm ---- */
  --r-card: 28px;                          /* base card radius */
  --r-corner: clamp(72px, 11vw, 150px);    /* the signature single-corner sweep */
  --pad-section: clamp(56px, 8vw, 104px);
  --max: 1160px;

  /* ---- Type ---- */
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---- Reset ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; cursor: pointer; }
input, textarea, select, button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 120px; }

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.page { display: flex; flex-direction: column; min-height: 100vh; overflow-x: clip; }
main { flex: 1 0 auto; }

/* =============================================================================
 * TYPE - two-tone stacked serif headline system (the house heading treatment)
 * ========================================================================== */
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.012em; }
h1 { font-size: clamp(2.6rem, 5.2vw, 4.2rem); line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.08; }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.18; }
p { font-size: clamp(1rem, 1.3vw, 1.08rem); }

/* Two-tone headline: line 1 navy, line 2 gold. Each line is a block. */
.tt { display: block; }
.tt--navy { color: var(--navy); }
.tt--gold { color: var(--gold); }
.tt--cream { color: var(--cream); }
/* Safety: a navy-line heading inside a navy band flips to cream, so moving a
 * section onto navy never silently hides its headline. */
.band--navy .tt--navy { color: var(--cream); }

.measure { max-width: 46ch; }
.measure-wide { max-width: 62ch; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: 12px; top: -56px;
  background: var(--navy); color: var(--cream);
  padding: 10px 16px; border-radius: 8px; z-index: 200;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

/* =============================================================================
 * BUTTONS - the brand-coded dual door (signature #5)
 *   navy pill = employers, gold pill = candidates. Sitewide, no exceptions.
 * ========================================================================== */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 15px/1 var(--font-body);
  border-radius: 999px; border: none; cursor: pointer;
  padding: 12px 24px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.pill--navy { background: var(--navy); color: var(--cream); }
.pill--navy:hover { background: var(--blue); }
.pill--gold { background: var(--gold); color: var(--navy); }
.pill--gold:hover { background: var(--sand); }
.pill--sm { padding: 9px 18px; font-size: 14px; }
.pill--block { width: 100%; justify-content: center; }

/* Tertiary text-arrow links (never a primary CTA). */
.arrow-link {
  font: 600 15px/1 var(--font-body);
  color: var(--blue);
  display: inline-flex; align-items: center; gap: 6px;
}
.arrow-link::after { content: '\2192'; transition: transform .18s ease; }
.arrow-link:hover { color: var(--navy); }
.arrow-link:hover::after { transform: translateX(4px); }
.arrow-link--gold { color: var(--gold); }
.arrow-link--on-navy { color: var(--gold); }

/* The CTA pair (rendered in header, hero, panels). */
.doors { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* =============================================================================
 * HEADER - single sticky paper bar at the very top, 2px gold border
 * ========================================================================== */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 2px solid var(--gold);
}
.nav {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 36px);
  padding-block: 16px;
}
/* Logo: the client's finished brand lockup (img/logo-lockup.png = A-mark +
 * ALINTA + STAFFING, tagline cropped for header legibility; full lockup with
 * tagline at img/logo-lockup-full.png). Transparent PNG on the paper bar. */
.logo { display: inline-flex; align-items: center; margin-right: auto; }
.logo__lockup { height: 46px; width: auto; display: block; }

.nav__links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 28px); }
.nav__link { font: 500 15px/1 var(--font-body); color: var(--navy); transition: color .18s ease; }
.nav__link:hover { color: var(--blue); }
.nav__link[aria-current="page"] { color: var(--gold); font-weight: 600; }
.nav__doors { display: flex; align-items: center; gap: 10px; margin-left: 8px; }

/* Mobile menu toggle (pure-CSS checkbox hack - no JS). */
.nav__toggle-cb { position: absolute; opacity: 0; pointer-events: none; }
.nav__toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-left: auto;
  border: 2px solid var(--navy); border-radius: 12px;
  background: transparent; cursor: pointer;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ''; display: block; width: 20px; height: 2px;
  background: var(--navy); position: relative;
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after { position: absolute; top: 6px; }

/* =============================================================================
 * SECTIONS + band backgrounds
 * ========================================================================== */
.band { padding-block: var(--pad-section); position: relative; }
.band--cream { background: var(--paper); }
.band--sand  { background: var(--sand); }
.band--navy  { background: var(--navy); color: var(--cream); }
.band--navy h1, .band--navy h2, .band--navy h3 { color: var(--cream); }
.band--navy p { color: var(--on-navy-mute); }
/* When a navy band flows straight into the navy footer, kill its bottom pad. */
.band--flush-bottom { padding-bottom: 0; }

.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--ink); }
.band--navy .section-head p { color: var(--on-navy-mute); }

/* =============================================================================
 * SIGNATURE #2 - the home hero
 * ========================================================================== */
.hero {
  background: var(--paper);
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  gap: 0;
  overflow: hidden;
}
.hero__copy {
  position: relative; z-index: 2;
  padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 40px);
  max-width: calc(var(--max) * 0.62);
  margin-left: max(0px, calc((100% - var(--max)) / 2));
}
.hero h1 { margin-bottom: 22px; }
.hero__lead { color: var(--ink); margin-bottom: 32px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); }

/* Hero right side: the photo fills the hero's full height (no horizontal crop
 * lines), melting into the page on its left with a soft bottom feather. */
.hero__photo {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: clamp(460px, 52vw, 900px);
  z-index: 1;
  pointer-events: none;
}
.hero__photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 22%),
                      linear-gradient(180deg, black 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, black 22%),
              linear-gradient(180deg, black 82%, transparent 100%);
  mask-composite: intersect;
}

/* The picture slides in once when the site opens (client request, Medovent
 * reference: ~1s slide+fade per page load). Skipped for reduced-motion users.
 * Scoped to screen: in print the hidden entrance states must never apply, or
 * unrevealed content renders as blank pages in a PDF. */
@media screen and (prefers-reduced-motion: no-preference) {
  .hero__photo { animation: hero-slide-in 1.1s ease-out both; }
  @keyframes hero-slide-in {
    from { opacity: 0; transform: translateX(6%); }
    to   { opacity: 1; transform: translateX(0); }
  }
  /* Entrance animations play once per visit: the inline head guard sets
   * .no-entrance on later pages in the session (site.js skips the reveals). */
  .no-entrance .hero__photo { animation: none; }

  /* Photo entrance reveals (client request): every content photo slides in as
   * it enters the viewport - on page load when above the fold, on scroll
   * otherwise. site.js arms [data-reveal] elements; without JS (or with
   * reduced motion) nothing is ever hidden. */
  .reveal-armed { opacity: 0; transform: translateY(32px); transition: opacity .9s ease-out, transform .9s ease-out; }
  .reveal-armed[data-reveal="left"]  { transform: translateX(-48px); }
  .reveal-armed[data-reveal="right"] { transform: translateX(48px); }
  .reveal-armed.is-in { opacity: 1; transform: none; }
}

/* =============================================================================
 * STAT BAND (§2.2) - narrow, oversized serif numbers
 * ========================================================================== */
.stats { max-width: 940px; margin-inline: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); text-align: center; }
.stat__num { font: 500 clamp(2.8rem, 5vw, 4rem)/1 var(--font-display); color: var(--navy); }
.stat__num .suffix { color: var(--gold); }
.stat__label { color: var(--blue); font: 500 clamp(.95rem, 1.3vw, 1.05rem)/1.4 var(--font-body); margin-top: 10px; }
/* Stat band on navy (homepage): cream numbers, muted labels, gold stays. */
.band--navy .stat__num { color: var(--cream); }
.band--navy .stat__label { color: var(--on-navy-mute); }
.band--navy .stats { position: relative; z-index: 2; }
/* Small centered trust line under the stats grid (navy band). */
.stats__trust {
  margin: 28px auto 0;
  max-width: 70ch;
  text-align: center;
  font-size: .98rem;
}
.band--navy .stats__trust { color: var(--on-navy-mute); }

/* Four-icon value band (client mockup, round 3): compact navy strip directly
 * under the hero so scanners get the brand pitch in one glance. */
.value-band { padding-block: clamp(36px, 5vw, 60px); }
.value-grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3.5vw, 48px);
}
.value-grid li { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.value-grid h3 { font: 700 1.05rem/1.3 var(--font-body); }
.value-grid p { font-size: .92rem; line-height: 1.55; margin: 0; }
.value-grid--duo { grid-template-columns: 1fr 1fr; }

/* =============================================================================
 * SIGNATURE #3 - gold-circled icon chips + specialty split row (§2.3)
 * ========================================================================== */
.chip {
  flex: 0 0 auto;
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid var(--gold); background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--navy);
}
.chip svg { width: 26px; height: 26px; }
.chip--lg { width: 64px; height: 64px; }
.chip--lg svg { width: 30px; height: 30px; }
.band--navy .chip { color: var(--cream); }

/* solid-gold circular arrow chip (32px) hard-right on list rows */
.chip-arrow {
  flex: 0 0 auto;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px;
}

.split { display: grid; grid-template-columns: 40fr 60fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.split--reverse { grid-template-columns: 50fr 50fr; }
/* Rail-beside-form ratio (Employers, Contact). Kept as classes - NOT inline
 * styles - so the mobile media query below can collapse them to one column. */
.split--forms { grid-template-columns: 42fr 58fr; }
.split--stretch { align-items: stretch; }
.split__intro p { color: var(--ink); margin: 16px 0 22px; }

.spec-list { display: flex; flex-direction: column; }
.spec-row {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--gold-soft);
  border-radius: 16px;
  transition: background .18s ease;
}
.spec-row:last-child { border-bottom: none; }
.spec-row:hover { background: var(--sand); }
.spec-row__body { flex: 1 1 auto; }
.spec-row__name { font: 500 1.2rem/1.2 var(--font-display); color: var(--navy); }
.spec-row__desc { font: 400 .95rem/1.4 var(--font-body); color: var(--blue); margin-top: 2px; }

/* =============================================================================
 * WHY ALINTA (§2.4) - sculpted photo + gold-chip checklist
 * ========================================================================== */
.sculpt-photo { position: relative; }
.sculpt-photo img {
  position: relative; z-index: 1;
  width: 100%; height: auto;
  aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--r-card) var(--r-card) var(--r-card) var(--r-corner);
  overflow: hidden;
}
.sculpt-photo::before {
  content: ''; position: absolute; z-index: 0;
  inset: 0; transform: translate(-14px, 14px);
  border: 2.5px solid var(--gold);
  border-radius: var(--r-card) var(--r-card) var(--r-card) var(--r-corner);
}

.checklist { list-style: none; display: flex; flex-direction: column; gap: 22px; }
/* Compact two-column variant for short label-only lists (employer roles). */
.checklist--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; max-width: 720px; }
.checklist li { display: flex; gap: 16px; align-items: flex-start; }
.check {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
}
.checklist .lead-in { font-weight: 700; color: var(--navy); }
.checklist p { color: var(--ink); margin: 0; }
.band--navy .check { color: var(--cream); }
.band--navy .checklist .lead-in { color: var(--cream); }
.band--navy .checklist p { color: var(--on-navy-mute); }

/* =============================================================================
 * ARCHED PORTRAIT (§2.5 / §3.3)
 * ========================================================================== */
.arch { position: relative; width: 240px; margin-inline: auto; }
.arch img {
  width: 100%;
  border-radius: 50% 50% 0 0 / 42% 42% 0 0;
  object-fit: cover; aspect-ratio: 3 / 4;
}
.arch::before {
  content: ''; position: absolute; inset: -10px;
  border: 2.5px solid var(--gold);
  border-radius: 50% 50% 0 0 / 42% 42% 0 0;
  pointer-events: none;
}
.arch--lg { width: 300px; }

.founder { max-width: 760px; margin-inline: auto; text-align: center; }
.founder__quote { font: italic 400 clamp(1.2rem, 2.2vw, 1.6rem)/1.5 var(--font-display); color: var(--blue); margin: 28px 0 18px; }
.founder__name { font: 700 1.05rem/1.2 var(--font-body); color: var(--navy); }
.founder__cred { font: 400 .95rem/1.4 var(--font-body); color: var(--blue); margin: 4px 0 16px; }

/* =============================================================================
 * SIGNATURE #5 - the Dual-Door panel (§2.6)
 * ========================================================================== */
.dual-door { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.door {
  position: relative; overflow: hidden;
  padding: clamp(40px, 6vw, 72px);
  display: flex; flex-direction: column; gap: 16px;
}
.door--employers { background: var(--navy); color: var(--cream); border-radius: 0 var(--r-corner) 0 0; }
.door--candidates { background: var(--sand); color: var(--ink); border-radius: var(--r-corner) 0 0 0; }
.door h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.door--employers h3 { color: var(--cream); }
.door__bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 4px 0 8px; }
.door__bullets li { position: relative; padding-left: 22px; font-size: 1rem; }
.door__bullets li::before { content: ''; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.door--employers .door__bullets li { color: var(--on-navy-mute); }
.door--candidates .door__bullets li { color: var(--ink); }
.door .pill { align-self: flex-start; margin-top: auto; }

/* =============================================================================
 * FINAL CTA BAND (§2.7) - named-human inline + gold pill, flows into footer
 * ========================================================================== */
.cta-band { text-align: center; position: relative; }
.cta-band .inner { max-width: 720px; margin-inline: auto; position: relative; z-index: 2; }
.cta-band p { color: var(--on-navy-mute); margin: 16px 0 20px; }
.cta-human { color: var(--cream); font-size: 1.05rem; margin-bottom: 26px; }
.cta-human a { color: var(--gold); font-weight: 600; }
.cta-human a:hover { color: var(--sand); }

/* =============================================================================
 * INTERIOR PAGE-HERO (§3.1) - slim, single-column, mini navy corner chip
 * ========================================================================== */
.page-hero {
  position: relative; background: var(--navy);
  padding-block: clamp(48px, 7vw, 88px);
  min-height: 240px; display: flex; align-items: center;
  overflow: hidden;
}
.page-hero .inner { position: relative; z-index: 2; }
.page-hero h1 { margin-bottom: 12px; }
.page-hero__sub { color: var(--on-navy-mute); font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 60ch; }
/* Navy hero safety: the two-tone headline's navy line flips to cream, and a
 * navy pill would vanish - render it cream with navy text instead. */
.page-hero .tt--navy { color: var(--cream); }
.page-hero .pill--navy { background: var(--cream); color: var(--navy); }
.page-hero .pill--navy:hover { background: var(--sand); }
.cta-band .pill--navy { background: var(--cream); color: var(--navy); }
.cta-band .pill--navy:hover { background: var(--sand); }

/* =============================================================================
 * SIGNATURE #3 (cont.) - arc-card grid (§3.2 specialties, sand asymmetric)
 * ========================================================================== */
.arc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 32px); }
.arc-card {
  background: var(--sand);
  border-radius: var(--r-card) var(--r-card) var(--r-card) 6px;
  padding: clamp(28px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 14px;
}
.arc-card h3 { color: var(--navy); }
.arc-card p { color: var(--ink); margin: 0; }
/* Specialty carousel: the seven photo cards sit in one snap-scrolled row -
 * swipe or scroll natively; the arrow buttons (revealed by site.js) page it.
 * Without JS the arrows stay hidden and the strip still scrolls. */
.spec-carousel { position: relative; }
.spec-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(88%, 520px);
  gap: clamp(20px, 3vw, 32px);
  overflow-x: auto;
  /* Never a vertical bar: with always-visible scrollbars the horizontal bar
   * steals inner height, which would cascade into a useless vertical one. */
  overflow-y: hidden;
  /* proximity, not mandatory: browsers route vertical wheel onto horizontal
   * scrollers, and mandatory snap cancels each tick - the page would stop
   * scrolling wherever the cursor crossed the strip. */
  scroll-snap-type: x proximity;
  scroll-padding-inline: 4px;
  padding: 4px 4px 18px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.spec-track::-webkit-scrollbar { height: 6px; }
.spec-track::-webkit-scrollbar-track { background: none; }
.spec-track::-webkit-scrollbar-thumb { background: var(--gold-soft); border-radius: 3px; }
.spec-track > .spec-card { scroll-snap-align: start; scroll-margin: 100px 16px; }
@media screen and (prefers-reduced-motion: no-preference) {
  .spec-track { scroll-behavior: smooth; }
}
.spec-carousel__nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.spec-nav {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--gold); background: none; color: var(--navy);
  font-size: 19px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .18s ease;
}
.spec-nav:hover { background: var(--gold); }
.spec-nav[disabled] { opacity: .35; cursor: default; }
.spec-nav[disabled]:hover { background: none; }

/* Photo-topped specialty card (client stock photos cap each card, bleeding to
 * the card edges above the copy). Tighter than the base arc-card so a full
 * card plus the carousel arrows fit a laptop viewport. */
.spec-card { --card-pad: clamp(20px, 2.2vw, 26px); padding: var(--card-pad); }
.spec-card p { font-size: .95rem; line-height: 1.55; }
.spec-card__photo {
  margin: calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad)) 6px;
  border-radius: var(--r-card) var(--r-card) 0 0;
  overflow: hidden;
  position: relative;
}
.spec-card__photo img {
  display: block; width: 100%;
  height: clamp(170px, 17vw, 220px);
  object-fit: cover;
  /* Faces sit in the upper part of the client's photos - crop from the top. */
  object-position: top;
}
.spec-card__kicker { font-weight: 700; color: var(--blue); }
/* Deep-linked card flash: focusSpecCard marks the card a specialty link
 * targeted so visitors see exactly where they landed. */
.spec-card.is-linked { outline: 3px solid var(--gold); outline-offset: 3px; }
/* Grouped specialties: each arc-card holds a family of three, every specialty
 * keeping its full name, description, and tag line (nothing hidden). */
.arc-card__links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }

/* =============================================================================
 * ABOUT (§3.3) - arched portrait + timeline
 * ========================================================================== */
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.timeline { list-style: none; margin-top: 28px; padding-left: 20px; border-left: 2px solid var(--gold-soft); display: flex; flex-direction: column; gap: 16px; }
.timeline li { position: relative; font-size: .95rem; color: var(--ink); }
.timeline li::before { content: ''; position: absolute; left: -27px; top: .35em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.about-card {
  background: var(--sand); border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 36px); margin: 28px 0;
}
.about-card h3 { color: var(--navy); margin-bottom: 8px; }
.about-card p { color: var(--ink); margin: 0; }

/* =============================================================================
 * NAMED-CONTACT blocks + process rail (§3.4 / §3.6)
 * ========================================================================== */
.named-contact {
  background: var(--navy); color: var(--cream);
  border-radius: var(--r-card); padding: clamp(28px, 3.5vw, 44px);
  position: relative; overflow: hidden;
}
.named-contact .inner { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 8px; }
.named-contact h3 { color: var(--cream); font-size: 1.6rem; }
.named-contact .title { color: var(--gold); font-weight: 600; margin-bottom: 12px; }
.named-contact a { color: var(--gold); font-weight: 600; font-size: 1.15rem; }
.named-contact a:hover { color: var(--sand); }
.named-contact .meta { color: var(--on-navy-mute); font-size: .95rem; }

/* Inline named-contact (compact, on light) used beside forms/process. */
.contact-inline { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--gold-soft); }
.contact-inline .name { font-weight: 700; color: var(--navy); }
.contact-inline .title { color: var(--blue); font-size: .95rem; margin-bottom: 10px; }
.contact-inline a { color: var(--blue); font-weight: 600; }
.contact-inline a:hover { color: var(--navy); }
.contact-inline .row { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.contact-inline .ic { color: var(--gold); width: 20px; text-align: center; }

.steps { list-style: none; display: flex; flex-direction: column; gap: 26px; position: relative; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step__num {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  font: 500 1.25rem/1 var(--font-display);
}
.step__lead { font-weight: 700; color: var(--navy); }
.step p { color: var(--ink); margin: 2px 0 0; }
/* On-dark variant: the rail also lives inside navy bands (Specialties process).
 * These must come AFTER the light-background defaults above to win the cascade. */
.band--navy .step__num { color: var(--gold); }
.band--navy .step__lead { color: var(--cream); }
.band--navy .step p { color: var(--on-navy-mute); }

/* =============================================================================
 * FORMS - restyled via wrapper/container classes ONLY (markup untouched)
 * ========================================================================== */
.form-card {
  background: var(--sand);
  border-radius: var(--r-card);
  padding: clamp(32px, 5vw, 56px);
}
.form-card h3 { color: var(--navy); margin-bottom: 8px; }
.form-card > p { color: var(--ink); margin-bottom: 24px; }

/* Light lead-in card above a form (candidates "what you can expect"). */
.expect {
  background: var(--paper);
  border: 1px solid var(--gold-soft);
  border-radius: var(--r-card);
  padding: 24px;
  margin-bottom: 28px;
}
.expect h3 { color: var(--navy); margin-bottom: 14px; }
.expect .checklist { gap: 14px; }

.form-wrap { max-width: 640px; }
form.site-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row--3 { grid-template-columns: 2fr 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font: 600 14px/1.3 var(--font-body); color: var(--navy); }
.field .hint { font: 400 13px/1.4 var(--font-body); color: var(--blue); }
form.site-form input,
form.site-form select,
form.site-form textarea {
  width: 100%;
  border: 1px solid var(--field-border);
  background: var(--field-bg);
  padding: 13px 15px;
  border-radius: 12px;
  font: 400 15px var(--font-body);
  color: var(--ink);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
form.site-form textarea { line-height: 1.5; resize: vertical; min-height: 130px; }
form.site-form input[type="file"] { padding: 11px 13px; background: var(--cream); }
/* iOS gives date inputs an intrinsic width and centered value text that break
 * the shared field styling; strip the native appearance so they track the
 * field width and height like every other input. */
form.site-form input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  min-width: 0;
  min-height: 48px;
  text-align: left;
}
/* iOS draws the picked date inside this shadow node, which ignores the
 * input's own text-align. */
form.site-form input[type="date"]::-webkit-date-and-time-value { text-align: left; }
/* Grid cells never let an intrinsically-wide control blow past the track. */
.form-row .field { min-width: 0; }
form.site-form input:focus,
form.site-form select:focus,
form.site-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
form.site-form .pill { align-self: flex-start; }

/* Honeypot - off-screen. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Success panel = rounded navy strip; error = deep red on cream, inside the card. */
.form-success {
  background: var(--success-bg);
  color: var(--success-ink);
  border-radius: var(--r-card);
  padding: clamp(24px, 4vw, 40px);
}
.form-success h2, .form-success h3 { color: var(--success-ink); margin-bottom: 10px; }
.form-success p { color: var(--success-ink); margin: 0; }
.form-error {
  color: var(--error-ink);
  background: var(--cream);
  border-radius: 12px;
  padding: 12px 16px;
  font: 600 14px/1.5 var(--font-body);
}

/* Utility */
.is-hidden { display: none !important; }

/* =============================================================================
 * FOOTER (§1.4)
 * ========================================================================== */
.site-foot { background: var(--navy); color: var(--cream); position: relative; overflow: hidden; }
.foot__inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(44px, 6vw, 72px);
  position: relative; z-index: 2;
}
.foot__brand { font: 500 22px/1 var(--font-display); color: var(--cream); }
.foot__tagline { color: var(--on-navy-mute); margin: 10px 0 12px; max-width: 32ch; font-size: 15px; }
.foot__seo {
  color: var(--on-navy-mute);
  font: 600 11px/1.7 var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.foot__principal { font-size: .95rem; color: var(--on-navy-mute); line-height: 1.7; }
.foot__principal strong { color: var(--cream); font-weight: 600; }
.foot__principal a { color: var(--gold); }
.foot__principal a:hover { color: var(--sand); }
.foot__col-h { font: 600 13px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; display: block; }
.foot__col { display: flex; flex-direction: column; gap: 9px; }
.foot__col a, .foot__col span { font: 400 15px/1.4 var(--font-body); color: var(--on-navy-mute); }
.foot__col a:hover { color: var(--gold); }
/* Door pills keep their brand colors inside the footer - the generic link
 * color above must not gray them out. On the navy footer the navy pill
 * becomes a sand-outline pill so it stays visible. */
.foot__doors .pill--gold { color: var(--navy); }
.foot__doors .pill--gold:hover { color: var(--navy); background: var(--sand); }
.foot__doors .pill--navy {
  background: transparent;
  border: 2px solid var(--sand);
  color: var(--cream);
  padding: 7px 16px;
}
.foot__doors .pill--navy:hover { background: transparent; border-color: var(--gold); color: var(--gold); }
.foot__doors { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot__legal {
  border-top: 1px solid var(--gold-soft);
  padding-block: 20px;
  font: 400 14px/1.5 var(--font-body);
  color: var(--on-navy-mute);
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.foot__legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.foot__legal a:hover { color: var(--gold); }

/* =============================================================================
 * Prose page (privacy policy) - plain long-form text on cream.
 * ========================================================================== */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 30px 0 10px; }
.prose p { margin: 10px 0; }
.prose ul { margin: 10px 0 16px; padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--navy); }

/* Slim sand strip restating the two doors as text links (contact page). */
.door-strip {
  background: var(--sand); border-radius: var(--r-card);
  padding: clamp(20px, 3vw, 32px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.door-strip p { color: var(--navy); font: 500 1.1rem/1.3 var(--font-display); margin: 0; }
.door-strip .links { display: flex; gap: 22px; flex-wrap: wrap; }

/* =============================================================================
 * RESPONSIVE
 * ========================================================================== */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  /* The big hero photo costs too much scroll on phones. */
  .hero__photo { display: none; }
  .split, .split--reverse, .about-grid { grid-template-columns: 1fr; }
  .arc-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .checklist--cols { grid-template-columns: 1fr; }
  .dual-door { grid-template-columns: 1fr; }
  .door--employers { border-radius: 0; }
  .door--candidates { border-radius: 0; }
  .foot__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  /* Collapse the desktop nav; reveal the checkbox-hack mobile menu. */
  .nav__toggle { display: inline-flex; }
  .nav__links, .nav__doors {
    display: none;
    flex-direction: column; align-items: stretch; width: 100%;
    gap: 14px; margin: 0;
  }
  .nav { flex-wrap: wrap; }
  .nav__toggle-cb:checked ~ .nav__links,
  .nav__toggle-cb:checked ~ .nav__doors { display: flex; }
  .nav__toggle-cb:checked ~ .nav__toggle span { background: transparent; }
  .nav__links { padding-top: 16px; }
  .nav__doors { padding-bottom: 8px; }
  .nav__doors .pill { justify-content: center; }
}
@media (max-width: 620px) {
  .stats { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .foot__inner { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
}
