/* ============================================================
   Good Hands Homes — landing
   Palette: warm cream paper · deep forest ink · clay accent
   Type: Fraunces (display serif) · Hanken Grotesk (body)
   ============================================================ */

:root {
  --paper:      #FBF6EC;
  --paper-2:    #F3EADA;
  --ink:        #1E2A23;   /* deep forest */
  --ink-soft:   #3A4A40;
  --clay:       #C8623E;   /* terracotta accent */
  --clay-deep:  #A84C2C;
  --sage:       #7C8B72;
  --cream-line: #E4D8C4;

  --max: 1180px;
  --r:   18px;

  --serif: "Playfair Display", Georgia, serif;
  --sans:  "Hanken Grotesk", -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--clay); color: var(--paper); }

a { color: inherit; text-decoration: none; }

.serif-ital { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ───────────── NAV ───────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, padding .3s;
}
.nav.scrolled { border-bottom-color: var(--cream-line); padding-top: 12px; padding-bottom: 12px; }

.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand-mark { color: var(--clay); display: grid; place-items: center; }
.brand-name {
  font-family: var(--serif); font-weight: 600; font-size: 1.18rem;
  letter-spacing: -.01em; line-height: 1; display: flex; gap: .3em; align-items: baseline;
}
.brand-name-sub { color: var(--clay); font-style: italic; font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.nav-links a { font-size: .92rem; font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink); color: var(--paper) !important;
  padding: 9px 18px; border-radius: 999px;
  transition: background .25s, transform .2s;
}
.nav-cta:hover { background: var(--clay); transform: translateY(-1px); }

.nav-right { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); }
.lang-select {
  font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .03em;
  color: var(--ink-soft); background-color: transparent;
  border: 1px solid var(--cream-line); border-radius: 999px;
  padding: 7px 30px 7px 13px; cursor: pointer; line-height: 1;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%233A4A40' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
  transition: border-color .2s, color .2s;
}
.lang-select:hover { border-color: var(--clay); color: var(--ink); }
.lang-select:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }

/* ───────────── HERO ───────────── */
.hero {
  position: relative;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(64px, 12vh, 130px) clamp(20px, 5vw, 56px) clamp(40px, 7vh, 80px);
  text-align: center;
}
.hero-glow {
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 80vw; max-width: 900px; height: 560px; z-index: -1;
  background: radial-gradient(ellipse at center,
              color-mix(in srgb, var(--clay) 26%, transparent), transparent 62%);
  filter: blur(20px);
}

.eyebrow {
  display: inline-block;
  font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--clay-deep);
  padding: 7px 16px; border: 1px solid var(--cream-line); border-radius: 999px;
  background: color-mix(in srgb, var(--paper-2) 60%, transparent);
  margin-bottom: 30px;
}

.hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.9rem, 8vw, 6.4rem);
  line-height: .98; letter-spacing: -.025em;
  margin-bottom: 28px;
}
.hero-title span { display: block; }
.hero-title .serif-ital { color: var(--clay); }

/* triad variant: three stacked value lines */
.hero-title-triad { font-size: clamp(2.5rem, 7vw, 5.6rem); line-height: 1.02; }
.hero-title-triad span:not(.serif-ital) { color: var(--ink); }

.hero-lede {
  max-width: 640px; margin: 0 auto 38px;
  font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--ink-soft);
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-note {
  margin: 20px auto 0; max-width: 440px;
  font-size: .92rem; color: var(--ink-soft);
  text-align: center; text-wrap: balance;
}
.hero-note::before {
  content: "•"; color: var(--clay); font-weight: 700; margin-right: 7px;
}
.hero-note strong { color: var(--ink); font-weight: 600; }

.hero-trust {
  list-style: none; display: flex; gap: clamp(20px, 4vw, 48px);
  justify-content: center; flex-wrap: wrap;
  margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--cream-line);
}
.hero-trust li { font-size: .95rem; color: var(--ink-soft); }
.hero-trust strong { font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 1.15rem; }

/* ───────────── BUTTONS ───────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s, background .25s, box-shadow .25s, color .25s;
}
.btn-primary {
  background: var(--clay); color: var(--paper);
  box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--clay) 75%, transparent);
}
.btn-primary:hover { background: var(--clay-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn-arrow { transition: transform .25s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ───────────── MARQUEE ───────────── */
.marquee {
  overflow: hidden; border-block: 1px solid var(--cream-line);
  background: var(--paper-2); padding: 16px 0;
}
.marquee-track {
  display: flex; gap: 28px; width: max-content;
  animation: slide 32s linear infinite;
  font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--ink-soft);
  white-space: nowrap;
}
.marquee-track .dot { color: var(--clay); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ───────────── SECTIONS ───────────── */
.section {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(72px, 12vh, 140px) clamp(20px, 5vw, 56px);
}
.section-head { max-width: 720px; margin-bottom: clamp(44px, 7vh, 76px); }
.section-index {
  font-family: var(--serif); font-size: .9rem; font-weight: 600;
  color: var(--clay); letter-spacing: .1em;
  display: inline-block; padding-bottom: 6px; border-bottom: 2px solid var(--clay);
  margin-bottom: 22px;
}
.section-index.light { color: var(--clay); border-color: var(--clay); }
.section-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.04; letter-spacing: -.02em;
}
.section-title em { font-style: italic; color: var(--clay); }
.section-sub { margin-top: 20px; font-size: 1.12rem; color: var(--ink-soft); max-width: 560px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 22px; }
.card {
  background: var(--paper-2); border: 1px solid var(--cream-line);
  border-radius: var(--r); padding: 34px 28px 30px;
  transition: transform .35s, box-shadow .35s, border-color .35s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px -28px rgba(30,42,35,.5);
  border-color: var(--clay);
}
.card-num {
  font-family: var(--serif); font-style: italic; font-size: 1.7rem; color: var(--clay);
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  border: 1px solid var(--clay); border-radius: 50%; margin-bottom: 22px;
}
.card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: 1rem; }

/* full-bleed sections (dark + soft) */
.section-dark, .section-soft {
  max-width: none; margin-top: 0; border-radius: 0;
}
.section-dark { background: var(--ink); color: var(--paper); }
.section-soft { background: var(--paper-2); border-block: 1px solid var(--cream-line); }
.section-dark .section-head, .section-dark .cards,
.section-soft .section-head, .section-soft .steps { max-width: var(--max); margin-inline: auto; }
.section-dark .section-sub { color: color-mix(in srgb, var(--paper) 78%, transparent); }
.section-dark .section-title em { color: #E89B72; }
.section-dark .section-index.light { color: #E89B72; border-color: #E89B72; }

/* cards on the dark panel */
.cards-on-dark .card {
  background: color-mix(in srgb, var(--paper) 7%, transparent);
  border-color: color-mix(in srgb, var(--paper) 16%, transparent);
}
.cards-on-dark .card:hover { border-color: #E89B72; box-shadow: 0 22px 44px -26px rgba(0,0,0,.6); }
.cards-on-dark .card h3 { color: var(--paper); }
.cards-on-dark .card p { color: color-mix(in srgb, var(--paper) 76%, transparent); }
.cards-on-dark .card-num { color: #E89B72; border-color: #E89B72; }

/* steps (on light background) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step { position: relative; padding-top: 28px; border-top: 1px solid var(--cream-line); }
.step-no {
  font-family: var(--serif); font-size: 2.6rem; font-weight: 500;
  color: var(--clay); display: block; margin-bottom: 14px; line-height: 1;
}
.step h3 { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; margin-bottom: 10px; }
.step p { color: var(--ink-soft); }

/* ───────────── STATEMENT (the split) ───────────── */
.statement {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 50% -8%, color-mix(in srgb, var(--clay) 15%, transparent), transparent 58%),
    var(--paper);
  color: var(--ink); text-align: center;
  padding: clamp(80px, 15vh, 168px) clamp(20px, 5vw, 56px);
  border-block: 1px solid var(--cream-line);
}
.statement-inner { max-width: 940px; margin: 0 auto; }
.eyebrow-on-dark {
  color: #E89B72;
  border-color: color-mix(in srgb, var(--paper) 22%, transparent);
  background: color-mix(in srgb, var(--paper) 6%, transparent);
}
.statement-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.3rem, 6vw, 4.6rem); line-height: 1.06; letter-spacing: -.02em;
  margin-top: 26px;
}
.statement-title .serif-ital { color: var(--clay); }
.statement-sub {
  max-width: 620px; margin: 28px auto 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-soft);
}
.assurances {
  list-style: none; max-width: 900px; margin: 36px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 30px; text-align: left;
}
.assurances li {
  position: relative; padding-left: 28px; font-size: .98rem; line-height: 1.45;
  color: var(--ink-soft);
}
.assurances li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--clay); font-weight: 700;
}

/* ───────────── RELIEF LIST ───────────── */
.reliefs {
  list-style: none; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px;
}
.relief {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 4px; border-top: 1px solid var(--cream-line);
  font-size: clamp(1.05rem, 2vw, 1.28rem); font-weight: 500; color: var(--ink);
}
.relief-mark {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--clay); color: var(--paper); font-size: .9rem; font-weight: 700;
}

/* ───────────── STATS + QUOTE ───────────── */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-bottom: clamp(56px, 9vh, 100px);
}
.stat { text-align: center; padding: 18px; }
.stat-num, .stat-suffix {
  font-family: var(--serif); font-weight: 600; font-size: clamp(3rem, 7vw, 4.6rem);
  line-height: 1; color: var(--ink);
}
.stat-suffix { color: var(--clay); }
.stat p { margin-top: 14px; color: var(--ink-soft); font-size: 1rem; max-width: 240px; margin-inline: auto; }

.quote {
  max-width: 860px; margin: 0 auto; text-align: center;
  padding: clamp(36px, 6vw, 60px);
  background: var(--paper-2); border: 1px solid var(--cream-line); border-radius: var(--r);
  position: relative;
}
.quote::before {
  content: "\201C"; font-family: var(--serif); font-size: 6rem; color: var(--clay);
  position: absolute; top: 6px; left: 28px; line-height: 1; opacity: .5;
}
.quote blockquote {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(1.3rem, 3vw, 2rem); line-height: 1.3; color: var(--ink);
}
.quote figcaption { margin-top: 24px; font-size: 1rem; }
.quote-name { font-weight: 700; }
.quote-role { color: var(--ink-soft); }

/* ───────────── CTA ───────────── */
.cta {
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--clay) 22%, transparent), transparent 45%),
    var(--ink);
  color: var(--paper);
  padding: clamp(72px, 13vh, 150px) clamp(20px, 5vw, 56px);
}
.cta-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.cta-title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.02; letter-spacing: -.02em;
}
.cta-title .serif-ital { color: #E89B72; }
.cta-sub {
  margin: 22px auto 38px; max-width: 540px;
  color: color-mix(in srgb, var(--paper) 80%, transparent); font-size: 1.1rem;
}
.cta-form {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 16px;
}
.cta-form input, .cta-form select {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 14px 18px; border-radius: 999px; border: 1px solid transparent;
  background: var(--paper); min-width: 220px; flex: 1 1 220px; max-width: 300px;
}
.cta-form input:focus, .cta-form select:focus { outline: 2px solid var(--clay); }
.cta-form .btn-primary { flex: 0 0 auto; }
.cta-fine { font-size: .9rem; color: color-mix(in srgb, var(--paper) 62%, transparent); }

/* honeypot — hidden from people, visible to bots */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* form submit feedback */
.form-status { min-height: 1.3em; margin: 4px 0 12px; font-size: .96rem; font-weight: 500; }
.form-status.is-success { color: #BFE3B0; }
.form-status.is-error { color: #F0A98C; }

/* ───────────── FOOTER ───────────── */
.footer {
  max-width: var(--max); margin: 0 auto;
  padding: 44px clamp(20px, 5vw, 56px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-lockup { display: flex; align-items: center; gap: 11px; }
.footer-brand .brand-name { font-size: 1.3rem; }
.footer-brand p { color: var(--ink-soft); font-size: .95rem; margin-top: 6px; }
.footer-meta { display: flex; gap: 22px; align-items: center; font-size: .9rem; color: var(--ink-soft); }
.footer-meta a:hover { color: var(--clay); }

/* ───────────── REVEAL ANIMATIONS ───────────── */
.reveal, .reveal-up { opacity: 0; }
.reveal { transform: translateY(18px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.reveal-up { transform: translateY(34px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal-up.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-up { opacity: 1; transform: none; }
}

/* ───────────── RESPONSIVE ───────────── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .cards, .steps, .stats, .reliefs, .assurances { grid-template-columns: 1fr; }
  .hero-trust { gap: 24px; }
  .marquee { display: none; }
}
