/* ============================================================
   HUMAN FIRST — home-v5  ·  HUMAAN-PARITY REBUILD (2026-06-09)
   Built TO the measured humaan.com/about reference, in HF brand.
   Loaded after style-v3 + home-v4 so it overrides them.
   Reference facts driving this file:
   - One type family (Humaan = Neue Montreal) -> HF uses General Sans
     (Fontshare, free, same neo-grotesque feel), weight 500/600.
   - Colour-DRENCHED sections + a centered pill nav (NOT a white page).
   - Giant, tight display type (Humaan hero ~240px). HF goes large too;
     this deliberately overrides impeccable's 6rem hero ceiling because
     the task is MATCH-TO-REFERENCE (Alex, 2026-06-09).
   - No photography yet -> image areas become colour panels + bold type
     (the team gallery gets a tasteful "coming soon" later increment).
   ============================================================ */

:root {
  /* type — single family, like the reference */
  --font-display: 'General Sans', 'Switzer', system-ui, sans-serif;
  --font-body:    'General Sans', 'Switzer', system-ui, sans-serif;

  /* ink + brand */
  --ink:        #1B1714;   /* warm near-black */
  --ink-soft:   #45403B;
  --ink-mute:   #6A645D;
  --orange:     #FF6020;
  --orange-ink: #9A370B;   /* darker rust: ≥4.5:1 on peach/sage/paper drenches */

  /* colour DRENCHES (deliberate, brand-derived — NOT generic cream) */
  --d-peach:    #F6D8C4;   /* warm peach (hero) */
  --d-peach-2:  #F1C7AD;
  --d-sage:     #D6E0DC;   /* cool counter-tone */
  --d-char:     #211D1A;   /* dark drench */
  --d-orange:   #FF6020;   /* full-punch drench */
  --paper:      #F3EEE9;   /* warm off-white base (rarely fully exposed) */
}

/* ---- Global base: kill the "grossly white", adopt the type ---- */
html.js-motion { scroll-behavior: auto !important; } /* stop CSS smooth fighting Lenis */
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  padding-top: 0 !important;   /* kill old fixed-nav offset → hero meets top, no strip */
  margin-top: 0 !important;
}
#main { padding-top: 0; margin-top: 0; }
h1, h2, h3, h4, .hhero-title { font-family: var(--font-display); }

/* ============================================================
   NAV — centered pill (reference parity)
   ============================================================ */
.hnav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 16px; padding: 20px clamp(18px, 4vw, 40px);
  background: transparent; height: auto; border: 0;
  box-shadow: none;            /* kill the old .site-nav top strip */
  transition: padding .3s ease;
}
.hnav.scrolled { padding-top: 12px; padding-bottom: 12px; background: transparent; box-shadow: none; }
.hnav::before, .hnav::after { content: none; display: none; }
.hnav-logo { justify-self: start; display: inline-flex; align-items: center; }
.hnav-logo img { height: 30px; width: auto; }

.hnav-pill {
  justify-self: center;
  display: flex; align-items: center; gap: 2px;
  padding: 6px;
  background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(27,23,20,0.06);
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(27,23,20,0.08);
}
.hnav-pill a {
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  color: var(--ink); text-decoration: none;
  padding: 9px 17px; border-radius: 999px; line-height: 1;
  transition: background .2s ease, color .2s ease;
}
.hnav-pill a:hover:not(.active) { background: rgba(27,23,20,0.06); }
.hnav-pill a.active { background: var(--ink); color: #fff; }
/* kill the legacy underline indicator inherited from .nav-links */
.hnav-pill a::after { content: none !important; display: none !important; }
/* Make a Referral lives inside the pill, as the orange accent */
/* ink text on orange fill = AA (5.8:1) while keeping the vibrant orange */
.hnav-pill .hnav-pill-cta { background: var(--orange); color: var(--ink); font-weight: 600; margin-left: 4px; }
.hnav-pill .hnav-pill-cta:hover { background: #ED4F12; color: var(--ink); }

.hnav-cta {
  justify-self: end;
  background: var(--orange); color: #fff;
  font-size: 14px; font-weight: 600; text-decoration: none;
  padding: 11px 20px; border-radius: 999px; line-height: 1;
  transition: transform .18s ease, background .2s ease;
}
.hnav-cta:hover { background: #ED4F12; transform: translateY(-1px); }
.hnav .nav-hamburger { justify-self: end; display: none; }

@media (max-width: 860px) {
  .hnav { grid-template-columns: 1fr auto; }
  .hnav-pill { display: none; }
  .hnav-cta { display: none; }
  .hnav .nav-hamburger { display: inline-flex; }
}

/* ============================================================
   HERO — colour-drenched, giant display (reference parity)
   ============================================================ */
.hhero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(120px, 18vh, 200px) clamp(18px, 4vw, 40px) clamp(80px, 12vh, 140px);
  background: var(--d-peach);
}
/* atmosphere instead of a photo: large soft brand blobs */
.hhero-bg {
  position: absolute; inset: -20% -10% -10% -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(46% 50% at 82% 18%, rgba(255,96,32,0.38), rgba(255,96,32,0) 60%),
    radial-gradient(40% 46% at 12% 88%, rgba(255,176,120,0.55), rgba(255,176,120,0) 62%),
    radial-gradient(60% 60% at 50% 50%, rgba(241,199,173,0.5), rgba(246,216,196,0) 70%);
  filter: saturate(1.05);
}
.hhero-inner { width: 100%; max-width: 1180px; margin: 0 auto; }

.hhero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--orange-ink); margin-bottom: 26px;
}
.hhero-eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--orange); border-radius: 2px; }

.hhero-title {
  /* deliberate large scale to match the reference (overrides 6rem default) */
  font-size: clamp(3.4rem, 11.5vw, 9.5rem);
  font-weight: 600; line-height: 0.92; letter-spacing: -0.035em;
  color: var(--ink); margin: 0; text-wrap: balance;
}
.hhero-title .dot { color: var(--orange); }

.hhero-lead {
  font-size: clamp(1.1rem, 1.7vw, 1.5rem); font-weight: 400; line-height: 1.5;
  color: var(--ink-soft); max-width: 34ch; margin: 28px 0 0;
}
.hhero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hbtn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; text-decoration: none; line-height: 1;
  padding: 16px 28px; border-radius: 999px; transition: transform .18s ease, background .2s ease, color .2s ease;
}
.hbtn--solid { background: var(--ink); color: #fff; }
.hbtn--solid:hover { transform: translateY(-2px); background: #000; }
.hbtn--ghost { background: transparent; color: var(--ink); border: 1.5px solid rgba(27,23,20,0.35); }
.hbtn--ghost:hover { border-color: var(--ink); background: rgba(27,23,20,0.04); }

/* floating truths card */
.hhero-card {
  position: absolute; right: clamp(18px, 4vw, 40px); bottom: clamp(28px, 6vh, 64px);
  z-index: 2; width: min(360px, 42vw);
  background: rgba(255,255,255,0.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(27,23,20,0.07); border-radius: 22px;
  padding: 24px 26px; box-shadow: 0 18px 50px rgba(27,23,20,0.12);
}
.hhero-truths { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hhero-truths li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.35; }
.hhero-truth-mark { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 999px; background: var(--orange); }
.hhero-card-note { font-size: 13px; line-height: 1.5; color: var(--ink-mute); margin: 0; padding-top: 14px; border-top: 1px solid rgba(27,23,20,0.08); }
.hhero-card-note a { color: var(--orange-ink); font-weight: 600; text-decoration: none; }
.hhero-card-note a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .hhero { min-height: auto; padding-top: 120px; }
  .hhero-card { position: static; width: 100%; margin-top: 40px; }
}

/* ============================================================
   SECTIONS — colour-drench rotation + big type (system-wide)
   ============================================================ */
.section { color: var(--ink); }
#about        { background: #FBF6F1; }          /* warm paper */
#services     { background: var(--d-sage); }    /* cool */
#team         { background: var(--d-peach); }   /* warm */
#testimonials { background: #FBF6F1; }          /* warm paper */
#work         { background: var(--d-char); }    /* dark */
#contact      { background: var(--d-sage); }    /* cool */

/* section headings: big, tight, General Sans */
.hf-section-head h2, .section h2 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.2vw, 4.4rem);
  font-weight: 600; line-height: 0.98; letter-spacing: -0.03em;
  color: var(--ink); text-wrap: balance;
}
.hf-section-head .eyebrow, .section .eyebrow {
  color: var(--orange-ink); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px;
}
.hf-section-head > p, .section--white .hf-section-head p, .section--grey .hf-section-head p { color: var(--ink-soft); }
.hf-accent, .hf-glyph { color: var(--orange); }

/* dark section (work) text */
#work .hf-section-head h2, #work h2, #work h3, #work .hf-work-quality-title { color: #fff; }
#work .hf-section-head p, #work .hf-work-quality-body, #work .hf-work-list, #work .hf-work-cta-note { color: rgba(255,255,255,0.78); }
#work .eyebrow { color: #FFB088; }
#work .hf-accent { color: var(--orange); }

/* about — stats + values legible on warm paper */
.hf-about-lead { color: var(--ink); }
.hf-about-body p { color: var(--ink-soft); }
.hf-stat-num { color: var(--orange); font-family: var(--font-display); }
.hf-stat-label { color: var(--ink-mute); }
.hf-value-title { font-family: var(--font-display); color: var(--ink); }
.hf-value p { color: var(--ink-soft); }

/* service rows — readable on sage */
.hf-service-title { font-family: var(--font-display); color: var(--ink); font-weight: 600; }
.hf-service-tag { color: var(--orange-ink); font-weight: 600; letter-spacing: .04em; }
.hf-service-desc { color: var(--ink-soft); }
.hf-service-dot { background: var(--orange); }
.hf-service-row { border-color: rgba(27,23,20,0.14) !important; }

/* team cards on peach drench — fix contrast (was orange-on-peach) */
.team-card-name { font-family: var(--font-display); color: var(--ink); }
.team-card-role { color: var(--ink-soft); }
.team-card-bio  { color: var(--ink-soft); }
.team-card-readmore { color: var(--ink); font-weight: 600; }
.team-card-readmore:hover { color: var(--orange-ink); }
.hf-team-subhead { color: var(--ink-soft); }

/* ---- gate fixes: contrast + radius consistency (root, not patches) ---- */
/* orange-on-peach labels were 2.24:1 -> dark rust */
.hf-director-role, .hf-gallery-hint, .hf-gallery-cta, [class*="-hint"] { color: var(--orange-ink); }
.hf-director-tag { border-radius: 999px; }
/* orange-fill CTAs: ink text passes AA (5.8:1) while keeping the vibrant orange */
.hnav-pill-cta, #work .btn-primary, .btn-primary.btn--orange { color: var(--ink); }
.hnav-pill-cta:hover, #work .btn-primary:hover { color: var(--ink); }
/* skip-link: never white-on-orange */
.skip-link { background: var(--ink); color: #fff; }
/* primary submit not undersized */
.form-section button[type=submit], .form-section .btn, .btn--lg { font-size: 1rem; }

/* big display numbers: deepened orange that clears 3:1 (large) on light drenches */
.hf-stat-num, .hf-philosophy-num { color: #DE4E0C; }
/* photo placeholder tile is dark charcoal -> light label + brighter orange initials */
.photo-initials { color: #FF8A50; }
/* footer (dark) text: legible + readable size (was dim grey 3.2:1 / 9.6px) */
.site-footer { background: var(--d-char); }
.site-footer, .site-footer p, .site-footer li, .site-footer a, .site-footer span, .site-footer div { color: rgba(255,255,255,0.82); }
.site-footer .footer-col-title { color: #fff; font-size: 0.8rem; }
.site-footer a:hover { color: #fff; }
/* inline orange tel links on light surfaces -> AA rust */
.form-section a[href^="tel:"], #contact a[href^="tel:"] { color: var(--orange-ink) !important; }
/* "Photo Coming" placeholder: light label on the dark tile */
.photo-label { color: rgba(255,255,255,0.78); font-size: 0.72rem; }
.hf-director-tag { font-size: 0.72rem; }

/* contact cards / form on sage */
.hf-contact-label { color: var(--ink-mute); }
.hf-contact-value, .hf-contact-value a { color: var(--ink); }
.hf-contact-value a:hover { color: var(--orange-ink); }

/* lift cards to a soft surface so they read on the drench */
.hf-contact-card, .hf-stat, .hf-work-quality, .hf-value {
  background: transparent;
}

/* buttons used in lower sections -> match hero button language */
.btn.btn-primary, .btn-primary { background: var(--ink); color: #fff; border-radius: 999px; }
.btn.btn-primary:hover { background: #000; }
.btn.btn-secondary, .btn-secondary { border-radius: 999px; }
#work .btn-primary { background: var(--orange); }
#work .btn-primary:hover { background: #ED4F12; }

/* footer */
footer, .site-footer { background: var(--d-char); color: rgba(255,255,255,0.8); }
footer a, .site-footer a { color: rgba(255,255,255,0.8); }
footer a:hover, .site-footer a:hover { color: #fff; }

/* ============================================================
   REFERRAL — soft orange misty background on the form section.
   Dark top hero (.page-hero) is kept as-is.
   ============================================================ */
.form-section { position: relative; isolation: isolate; background: var(--d-peach); overflow: hidden; }
.form-section::before {
  content: ""; position: absolute; inset: -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(46% 50% at 82% 12%, rgba(255,96,32,0.30), rgba(255,96,32,0) 60%),
    radial-gradient(40% 46% at 10% 88%, rgba(255,176,120,0.45), rgba(255,176,120,0) 62%),
    radial-gradient(60% 60% at 50% 40%, rgba(241,199,173,0.45), rgba(246,216,196,0) 70%);
}
.form-section .container { position: relative; z-index: 1; }

/* MARKETING FORM LANGUAGE (global, not per-section — fixes the contact
   form that was square because the rule was scoped to .form-section).
   Rounded + glass surface like the nav pill, on every marketing form. */
.form-input,
.form-select,
.form-textarea {
  border-radius: 14px;
  background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(27,23,20,0.10);
}
.form-textarea { border-radius: 14px; }   /* unify w/ inputs */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  background: #fff; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,96,32,0.14);
}
/* on-brand, rounded native controls (were default square/black) */
input[type=checkbox], input[type=radio] { accent-color: var(--orange); width: 18px; height: 18px; }
/* form labels: comfortable scanning (were ~12.5px) */
.form-label { font-size: 0.82rem; }
/* progress bar: rounder + glass, readable inactive steps */
.form-section .form-progress {
  border-radius: 999px; border-color: rgba(27,23,20,0.10);
  background: rgba(255,255,255,0.55);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.form-section .form-progress-step {
  background: transparent; border-right-color: rgba(27,23,20,0.10);
  color: rgba(27,23,20,0.72); font-size: 0.7rem;
}
.form-section .form-progress-step.active { background: var(--ink); color: #fff; border-radius: 999px; }
/* form copy legible on the misty peach */
.form-section .form-section-desc { color: var(--ink-soft); }
.form-section .form-section-title { color: var(--ink); }
.form-section a { color: var(--orange-ink); }
.form-section .form-hint, .form-section small, .form-section .muted { color: var(--ink-soft); }

/* reveal gating respects motion.js; keep content visible without JS.
   (.reveal must be visible by default — pages without motion.js, e.g.
   referral.html, were stuck hidden because base CSS pre-hid .reveal.) */
.reveal { opacity: 1; transform: none; }
html.js-motion .reveal { opacity: 0; }
html.js-motion .hero-animate { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html.js-motion .hero-animate { opacity: 1; }
  html.js-motion { scroll-behavior: auto !important; }
}
