/* =========================================================
   First Hire — Design tokens + base + nav + hero
   ========================================================= */

:root {
  /* Color — dark theme (default) */
  --bg: #0a1226;
  --bg-alt: #0d1730;
  --bg-footer: #070d1c;
  --surface-border: rgba(201, 169, 110, 0.28);
  --surface-border-strong: rgba(201, 169, 110, 0.35);

  --text-heading: #f6f1e6;
  --text-body: #e8ecf4;
  --text-secondary: #a2afc6;
  --text-caption: #8190a9;

  --gold: #c9a96e;
  --gold-hover: #d9bf8a;
  --gold-active: #e3cc9b;
  --blue: #6f8fd8;

  --on-gold: #0a1226;

  /* Typography */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, Segoe UI, sans-serif;

  /* Spacing / layout */
  --section-pad: 120px;
  --section-pad-tight: 72px;
  --container-width: 1240px;
  --gutter: 24px;

  /* Motion */
  --transition-fast: 180ms ease;
  --transition: 260ms ease;
  --transition-slow: 420ms ease;
}

:root[data-theme="light"] {
  --bg: #f6f8fc;
  --bg-alt: #eaeff7;
  --bg-footer: #0a1226;
  --surface-border: rgba(138, 109, 47, 0.28);
  --surface-border-strong: rgba(138, 109, 47, 0.4);

  --text-heading: #0a1226;
  --text-body: #19233f;
  --text-secondary: #4a5675;
  --text-caption: #5b6680;

  --gold: #8a6d2f;
  --gold-hover: #6f571f;
  --gold-active: #5c481a;
  --blue: #44629f;

  --on-gold: #f6f8fc;
}

/* Dark is the default for everyone; light only after the visitor picks it
   with the toggle (saved in localStorage as fh-theme). */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

html {
  scroll-behavior: smooth;
  -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;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-display: swap;
  transition: background var(--transition), color var(--transition);
  min-width: 360px;
}

main { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-heading);
  line-height: 1.12;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.rule {
  border: none;
  border-top: 1px solid var(--surface-border-strong);
  width: 72px;
  margin: 24px 0;
}

.italic-gold {
  font-style: italic;
  color: var(--gold);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -140%);
  background: var(--gold);
  color: var(--on-gold);
  padding: 10px 20px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 200;
  transition: transform var(--transition-fast);
}
.skip-link:focus {
  transform: translate(-50%, 0%);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}
.btn-solid {
  background: var(--gold);
  color: var(--on-gold);
  border-color: var(--gold);
}
.btn-solid:hover, .btn-solid:focus-visible {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
}
.btn-outline {
  background: transparent;
  color: var(--text-heading);
  border-color: var(--surface-border-strong);
}
.btn-outline:hover, .btn-outline:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-sm {
  padding: 11px 20px;
  font-size: 11px;
}

/* ---------- Site header / nav ---------- */
.site-header {
  position: relative;
  z-index: 100;
  border-bottom: 1px solid var(--surface-border);
  background: var(--bg);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 14px;
  gap: 20px;
  padding: 20px var(--gutter);
  max-width: var(--container-width);
  margin: 0 auto;
}

.wordmark {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--text-heading);
}

.wordmark-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  min-width: 0;
  flex-wrap: wrap;
  row-gap: 6px;
}

.nav-link {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.nav-link:hover, .nav-link:focus-visible {
  color: var(--text-heading);
  border-bottom-color: var(--gold);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.toggle-btn:hover, .toggle-btn:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}
.toggle-btn svg { width: 16px; height: 16px; }
.icon-sun, [data-theme="light"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: block; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--surface-border);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--text-secondary);
  margin: 0 auto;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-drawer {
  display: none;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .nav-drawer {
    display: none;
    flex-direction: column;
    gap: 2px;
    border-top: 1px solid var(--surface-border);
    background: var(--bg);
    padding: 12px var(--gutter) 20px;
  }
  .nav-drawer.is-open { display: flex; }
  .nav-drawer .nav-link {
    padding: 14px 0;
    border-bottom: 1px solid var(--surface-border);
    font-size: 14px;
  }
  .nav-drawer .nav-drawer-controls {
    display: flex;
    gap: 10px;
    padding-top: 16px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 var(--section-pad);
  background: var(--bg);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--surface-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--surface-border) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.045;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -180px;
  right: -180px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(111, 143, 216, 0.28), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-headline {
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.01em;
}

.hero-sub {
  margin-top: 26px;
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

/* ---- Sample project view card ---- */
.sample-card {
  position: relative;
  border: 1px solid var(--surface-border-strong);
  background: var(--bg-alt);
  padding: 28px;
}

.sample-card-label {
  position: absolute;
  top: -11px;
  left: 28px;
  background: var(--bg-alt);
  padding: 0 10px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-caption);
}

.sample-card-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-heading);
  margin-bottom: 20px;
}

.stage-tracker {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
}
.stage-tracker span {
  flex: 1;
  height: 4px;
  background: var(--surface-border);
}
.stage-tracker span.is-complete { background: var(--gold); }
.stage-tracker span.is-current { background: var(--blue); }

.sample-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  margin-bottom: 22px;
}

.sample-metric-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-caption);
  margin-bottom: 6px;
}

.sample-metric-value {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--text-heading);
}
.sample-metric-value.is-accent { color: var(--blue); }

.budget-bars {
  margin-bottom: 18px;
}
.budget-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 11px;
  color: var(--text-caption);
}
.budget-bar-row .budget-bar-label { width: 56px; flex-shrink: 0; letter-spacing: 0.06em; text-transform: uppercase; }
.budget-bar-row .budget-bar-value {
  width: 48px;
  flex-shrink: 0;
  text-align: right;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-heading);
}
.budget-bar-track {
  flex: 1;
  height: 6px;
  background: var(--surface-border);
}
.budget-bar-fill { height: 100%; background: var(--gold); }
.budget-bar-fill.is-actual { background: var(--blue); }

.sample-risk-line {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--surface-border);
  font-size: 12px;
  color: var(--text-secondary);
}
.sample-risk-line strong { color: var(--text-heading); font-weight: 600; }

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  border-bottom: 1px solid var(--surface-border);
  background: var(--bg-alt);
}
.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px var(--gutter);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-caption);
  text-align: center;
}
.trust-dot { color: var(--gold); }

/* =========================================================
   Section scaffolding
   ========================================================= */
.section {
  padding: var(--section-pad) 0;
}
.section-alt { background: var(--bg-alt); }
.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--surface-border);
  border-left: 1px solid var(--surface-border);
}

.service-panel {
  padding: 44px 36px;
  border-right: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
  transition: background var(--transition-fast);
}
.service-panel:hover { background: rgba(201, 169, 110, 0.04); }

.service-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  color: var(--gold);
  margin-bottom: 26px;
}
.service-icon svg { width: 100%; height: 100%; }

.service-panel h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.service-panel p {
  font-size: 14px;
  color: var(--text-secondary);
}

@media (max-width: 860px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- Lifecycle ---------- */
.lifecycle-stages {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  margin-bottom: 48px;
}

.stage-btn {
  background: transparent;
  border: none;
  border-top: 2px solid var(--surface-border);
  text-align: left;
  padding: 18px 14px 0;
  cursor: pointer;
  color: var(--text-secondary);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.stage-btn .stage-num {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--text-caption);
  margin-bottom: 8px;
  transition: color var(--transition-fast);
}
.stage-btn .stage-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.stage-btn:hover { color: var(--text-heading); }
.stage-btn[aria-selected="true"] {
  border-top-color: var(--gold);
  color: var(--text-heading);
}
.stage-btn[aria-selected="true"] .stage-num { color: var(--gold); }

.lifecycle-panel {
  border: 1px solid var(--surface-border-strong);
  padding: 48px;
}
.lifecycle-panel h3 {
  font-size: 28px;
  margin-bottom: 14px;
}
.lifecycle-panel .lifecycle-desc {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 56ch;
  margin-bottom: 32px;
}
.lifecycle-receive-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.lifecycle-deliverables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
}
.lifecycle-deliverables li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  color: var(--text-body);
  padding-top: 12px;
  border-top: 1px solid var(--surface-border);
}
.lifecycle-deliverables li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: 4px;
  background: var(--gold);
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .lifecycle-stages { grid-template-columns: repeat(3, 1fr); }
  .lifecycle-panel { padding: 32px 24px; }
  .lifecycle-deliverables { grid-template-columns: 1fr; }
}

/* ---------- Results band ---------- */
.results-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--surface-border-strong);
  border-bottom: 1px solid var(--surface-border-strong);
}
.result-item {
  padding: 48px 28px;
  border-left: 1px solid var(--surface-border);
  text-align: center;
}
.result-item:first-child { border-left: none; }
.result-number {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 56px);
  color: var(--gold);
}
.result-label {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

@media (max-width: 760px) {
  .results-band { grid-template-columns: repeat(2, 1fr); }
  .result-item { border-left: none; border-top: 1px solid var(--surface-border); }
  .result-item:nth-child(odd) { border-right: 1px solid var(--surface-border); }
}

/* ---------- Sectors ---------- */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.sector-col {
  border-top: 1px solid var(--surface-border-strong);
  padding-top: 24px;
}
.sector-col h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.sector-col p {
  font-size: 14px;
  color: var(--text-secondary);
}

@media (max-width: 860px) {
  .sectors-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 28px; }
}
@media (max-width: 480px) {
  .sectors-grid { grid-template-columns: 1fr; }
}

/* ---------- ContractIQ panel ---------- */
.contractiq-panel {
  position: relative;
  border: 1px solid var(--surface-border-strong);
  padding: 64px;
  display: grid;
  grid-template-columns: 1.1fr auto;
  gap: 40px;
  align-items: center;
}
.contractiq-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--blue);
}
.contractiq-panel h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  margin-bottom: 18px;
}
.contractiq-panel p {
  color: var(--text-secondary);
  max-width: 54ch;
}
.contractiq-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 240px;
}

@media (max-width: 760px) {
  .contractiq-panel {
    grid-template-columns: 1fr;
    padding: 40px 28px;
  }
}

/* ---------- Why First Hire ---------- */
.why-content {
  max-width: 720px;
}

.why-points {
  margin: 36px 0;
}
.why-points li {
  padding: 18px 0;
  border-top: 1px solid var(--surface-border);
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-heading);
}
.why-points li:last-child { border-bottom: 1px solid var(--surface-border); }

.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.credentials li {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Where we work ---------- */
.locations-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--text-heading);
}
.locations-list li:not(:last-child)::after {
  content: "•";
  font-style: normal;
  color: var(--gold);
  margin: 0 22px;
  font-family: var(--font-body);
  font-size: 16px;
}

/* ---------- FAQ ---------- */
.faq-list {
  border-top: 1px solid var(--surface-border);
  max-width: 820px;
}
.faq-item {
  border-bottom: 1px solid var(--surface-border);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: transparent;
  border: none;
  text-align: left;
  padding: 26px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-heading);
}
.faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform var(--transition-fast);
}
.faq-icon::before { top: 50%; left: 0; width: 100%; height: 1px; transform: translateY(-50%); }
.faq-icon::after { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: translateX(-50%) scaleY(0); }

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--transition-slow);
}
.faq-answer p {
  color: var(--text-secondary);
  padding-bottom: 26px;
  max-width: 64ch;
}

/* ---------- Start a Conversation / contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.contact-grid > * {
  min-width: 0;
}

.contact-form-panel {
  border: 1px solid var(--surface-border-strong);
  padding: 48px;
}

.field {
  min-width: 0;
  margin-bottom: 28px;
}
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-caption);
  margin-bottom: 10px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--surface-border-strong);
  color: var(--text-heading);
  font-size: 15px;
  padding: 8px 2px;
  transition: border-color var(--transition-fast);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 6px) center, calc(100% - 1px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.field select option { background: var(--bg); color: var(--text-heading); }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
  min-width: 0;
}
.field-error {
  display: none;
  font-size: 12px;
  color: #d98a7a;
  margin-top: 8px;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-bottom-color: #d98a7a;
}
.field.has-error .field-error { display: block; }

.field-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 32px;
}
.field-consent input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  flex-shrink: 0;
}
.field-consent label {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: normal;
}

.form-status {
  margin-top: 20px;
  font-size: 14px;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success { color: var(--gold); }
.form-status.is-error { color: #d98a7a; }

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-info {
  border: 1px solid var(--surface-border);
  padding: 44px;
}
.contact-info h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 22px;
}
.contact-info-list {
  margin-bottom: 32px;
}
.contact-info-list li {
  padding: 14px 0;
  border-top: 1px solid var(--surface-border);
  font-size: 15px;
  color: var(--text-secondary);
}
.contact-info-list li:last-child { border-bottom: 1px solid var(--surface-border); }
.contact-info-list a {
  transition: color var(--transition-fast);
}
.contact-info-list a:hover,
.contact-info-list a:focus-visible {
  color: var(--gold);
}
.contact-info-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-panel { padding: 32px 24px; }
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--surface-border);
  padding: 64px 0 36px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: 20px;
  margin-top: 10px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  padding-top: 28px;
  border-top: 1px solid var(--surface-border);
  font-size: 12px;
  color: var(--text-caption);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer-legal a { transition: color var(--transition-fast); }

/* The footer background stays dark navy in both themes (see README
   assumptions), so its text must stay fixed to the dark-theme
   palette too — not the swappable tokens, which go too dark for a
   light theme and fail contrast against this always-dark footer. */
.site-footer .wordmark { color: #f6f1e6; }
.site-footer .wordmark-mark { color: #c9a96e; border-color: #c9a96e; }
.site-footer .footer-tagline { color: #c9a96e; }
.site-footer .footer-links a { color: #a2afc6; }
.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus-visible { color: #c9a96e; }
.site-footer .footer-bottom { color: #8190a9; }
.site-footer .footer-legal a { color: #a2afc6; }
.site-footer .footer-legal a:hover,
.site-footer .footer-legal a:focus-visible,
.site-footer .footer-legal a[aria-current="page"] { color: #c9a96e; }

/* =========================================================
   Scroll reveal (progressive enhancement — content is fully
   visible by default; JS opts elements into the fade-in)
   ========================================================= */
.reveal.js-reveal-ready {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.js-reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Current-page marker (nav + footer)
   ========================================================= */
.nav-link[aria-current="page"] {
  color: var(--text-heading);
  border-bottom-color: var(--gold);
}
.site-footer .footer-links a[aria-current="page"] { color: #c9a96e; }

/* Small gold text on the alternate surface falls just under AA (4.22:1)
   in light mode, so deepen it there. Large text and rules are unaffected. */
:root[data-theme="light"] .section-alt .eyebrow,
:root[data-theme="light"] .section-alt .lifecycle-receive-label {
  color: #7f6527;
}

/* =========================================================
   Tools page
   ========================================================= */
.hero--page { padding: 80px 0 88px; }
.hero--page .hero-inner { grid-template-columns: 1fr; }
.hero--page .hero-copy { max-width: 760px; }
.hero--page .hero-sub { max-width: 58ch; }

/* ---------- Filter chips ---------- */
.tools-filter {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 40px;
}
.chip {
  background: transparent;
  border: 1px solid var(--surface-border-strong);
  border-radius: 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 11px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.chip:hover,
.chip:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}
.chip[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--on-gold);
}

/* ---------- Template cards ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--surface-border-strong);
  padding: 32px 28px;
  transition: border-color var(--transition);
}
.tool-card[hidden] { display: none; }
.tool-card:hover { border-color: var(--gold); }

.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.tool-stage {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.tool-badge {
  flex-shrink: 0;
  border: 1px solid var(--surface-border-strong);
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.tool-card h3 {
  font-size: 26px;
  margin-bottom: 10px;
}
.tool-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.tool-inside-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-caption);
  margin-bottom: 4px;
}
.tool-inside {
  margin-bottom: 28px;
}
.tool-inside li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--surface-border);
  font-size: 13px;
  color: var(--text-body);
}
.tool-inside li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: 3px;
  background: var(--gold);
  flex-shrink: 0;
}
.tool-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: auto;
}
.tool-size {
  font-size: 12px;
  color: var(--text-caption);
}

/* ---------- Using the templates ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.steps-grid .sector-col { min-width: 0; }

/* ---------- Closing band ---------- */
.cta-band {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 40px;
  align-items: center;
  border: 1px solid var(--surface-border-strong);
  padding: 56px;
}
.cta-band h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  margin-bottom: 14px;
}
.cta-band p {
  color: var(--text-secondary);
  max-width: 54ch;
}

@media (max-width: 960px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .cta-band { grid-template-columns: 1fr; padding: 36px 24px; }
}
@media (max-width: 640px) {
  .chip { padding: 11px 6px; letter-spacing: 0.1em; }
  .tools-grid { grid-template-columns: 1fr; }
  .tool-card { padding: 28px 22px; }
}

/* =========================================================
   Legal pages (privacy.html, terms.html)
   ========================================================= */
.legal { max-width: 760px; }
.legal-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-caption);
  margin-bottom: 40px;
}
.legal h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin: 48px 0 16px;
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-heading);
  margin: 28px 0 10px;
}
.legal p,
.legal li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
}
.legal p { margin-bottom: 16px; }
.legal ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 16px;
}
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--gold); }
.legal strong { color: var(--text-heading); font-weight: 600; }
.legal a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal a:hover { color: var(--gold-hover); }
.legal-contact {
  border-left: 2px solid var(--gold);
  padding-left: 20px;
}

/* Consent-label link on the contact form */
.field-consent label a {
  color: var(--text-heading);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

/* =========================================================
   Book page (book.html)
   ========================================================= */
.book-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
}
.book-aside h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 32px;
}

/* Three ruled points */
.expect-list li {
  padding: 24px 0;
  border-top: 1px solid var(--surface-border);
}
.expect-list li:last-child { border-bottom: 1px solid var(--surface-border); }
.expect-list h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.expect-list p { color: var(--text-secondary); }

/* The element's own display value would otherwise beat [hidden] */
.book-widget [hidden],
.book-direct [hidden] { display: none !important; }

.book-open { margin-bottom: 16px; }

/* Google's page cannot be themed and renders light, so it sits on a
   fixed off-white card in both site themes. */
.book-frame {
  background: #f6f8fc;
  border: 1px solid var(--gold);
  padding: 16px;
}
.book-frame iframe {
  display: block;
  width: 100%;
  min-height: 720px;
  border: 0;
}

.book-soon,
.book-direct {
  border: 1px solid var(--surface-border-strong);
  padding: 40px;
}
.book-soon p { margin-bottom: 24px; }
.book-soon--static p { margin-bottom: 0; }
.book-soon a:not(.btn) {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.book-actions .btn { min-width: 0; white-space: normal; text-align: center; overflow-wrap: anywhere; }

.book-direct {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 40px;
  align-items: center;
  padding: 56px;
}
.book-direct > * { min-width: 0; }
/* One column, so every button stretches to the width of the widest */
.book-direct .book-actions {
  display: grid;
  grid-template-columns: 1fr;
  min-width: 260px;
}
.book-direct h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  margin-bottom: 14px;
}
.book-direct p { color: var(--text-secondary); max-width: 54ch; }

@media (max-width: 960px) {
  .book-grid { grid-template-columns: 1fr; gap: 48px; }
  .book-direct { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .book-soon { padding: 28px 22px; }
  .book-direct { padding: 36px 24px; }
  .book-frame { padding: 8px; }
}
