/* GoodHands Home Cleaning — brand tokens from the brand guide */
:root {
  --ink: #24372E;
  --green: #2F5D46;
  --sage: #DCE9D7;
  --sunshine: #F7D872;
  --butter: #FDF0C0;
  --cream: #FFFCF5;
  --heart: #E2573B;
  --white: #FFFFFF;
  --muted: #4E6157;

  --radius: 18px;
  --radius-sm: 12px;
  --border: 2px solid var(--ink);
  --shadow: 6px 6px 0 var(--sage);
  --shadow-ink: 4px 4px 0 var(--ink);

  --font-head: "Caprasimo", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--heart); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.fine { font-size: .85rem; color: var(--muted); margin: .75em 0 0; }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin: 0 0 .5em; }
.eyebrow.light { color: var(--sunshine); }

/* Checker band */
.checker {
  height: 14px;
  background:
    repeating-conic-gradient(var(--sage) 0 25%, #A9C6A6 0 50%) 0 0 / 14px 14px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--sage); box-shadow: 0 4px 16px rgba(36, 55, 46, .06); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-size: 1.7rem; letter-spacing: -.01em; }
.brand-sub { font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin-top: 4px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:hover { color: var(--green); text-decoration: underline; text-decoration-color: var(--sunshine); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--sunshine); color: var(--ink);
  border: var(--border); border-radius: 999px;
  padding: 14px 26px; font: 800 1.05rem/1 var(--font-body);
  text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-ink);
  transition: transform .12s ease, box-shadow .12s ease, background .12s;
  white-space: nowrap;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); background: #F9DF8A; }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-sm { padding: 10px 18px; font-size: .95rem; box-shadow: 3px 3px 0 var(--ink); }
.btn-lg { padding: 18px 34px; font-size: 1.15rem; }
.btn-block { width: 100%; padding: 17px 24px; font-size: 1.12rem; }

/* Pills */
.pill {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; border: var(--border);
  background: var(--sage); margin: 0 0 18px;
}
.pill-sun { background: var(--sunshine); }
.pill-cream { background: var(--cream); }

/* Cards */
.card {
  background: var(--white); border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px;
}
.card-butter { background: var(--butter); }

/* Hero */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.hero h1 { margin-bottom: .35em; }
.mark { position: relative; white-space: nowrap; z-index: 0; }
.mark::after {
  content: ""; position: absolute; z-index: -1; left: -.06em; right: -.06em; bottom: .06em; height: .32em;
  background: var(--sunshine); border-radius: 6px; transform: rotate(-1.2deg);
}
.lede { font-size: clamp(1.08rem, 1.6vw, 1.22rem); max-width: 40em; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.hero-points li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.08rem; }
.tick {
  flex: none; width: 26px; height: 26px; border-radius: 50%; border: var(--border); background: var(--sage);
  position: relative;
}
.tick::after {
  content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px;
  border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}

/* Form */
.form-card { position: relative; padding: 30px; box-shadow: 8px 8px 0 var(--green); }
.form-head h2 { font-size: clamp(1.8rem, 3vw, 2.2rem); margin-bottom: .25em; }
.form-head .muted { margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field-row { display: grid; gap: 12px; }
.field-row.three { grid-template-columns: 1.2fr 1fr 1fr; }
.field-row.two { grid-template-columns: 1fr 1fr; }
label { font-weight: 700; font-size: .92rem; }
.opt { font-weight: 500; color: var(--muted); }
input, select, textarea {
  width: 100%; font: 500 1rem var(--font-body); color: var(--ink);
  background: var(--cream); border: var(--border); border-radius: var(--radius-sm);
  padding: 13px 14px; min-height: 50px; appearance: none; -webkit-appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2324372E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
input::placeholder { color: #8FA096; }
input:focus, select:focus { outline: none; background: var(--white); box-shadow: 0 0 0 3px var(--sunshine); }
.field.invalid input, .field.invalid select { border-color: var(--heart); background: #FFF4F1; }
.form-error { color: #B23A22; font-weight: 700; margin: 12px 0 0; }
.hidden-field { position: absolute; left: -9999px; }
.form-success { text-align: center; padding: 30px 6px; }
.form-success img { margin: 0 auto 16px; }
.form-success h2 { font-size: 2.2rem; }
button[disabled] { opacity: .7; cursor: progress; }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-sage { background: var(--sage); border-block: var(--border); }
.section-green { background: var(--green); color: var(--cream); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head .lede { margin-inline: auto; }

/* Deal */
.deal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.deal-grid .card { text-align: center; padding: 34px 26px; }
.big-num { font-family: var(--font-head); font-size: 4rem; line-height: 1; margin: 0 0 12px; color: var(--green); }
.heart-num svg { margin: 4px auto 0; }
.deal-grid h3 { margin-bottom: .4em; }
.deal-grid p:last-child { margin: 0; }

.why { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; margin-top: clamp(56px, 8vw, 96px); }
.why-copy p { font-size: 1.12rem; }
.why-copy .btn { margin-top: 8px; }

.receipt {
  background: var(--white); border: var(--border); border-radius: 14px; box-shadow: var(--shadow);
  padding: 26px 26px 0; max-width: 380px; margin: 0 auto; transform: rotate(-2deg);
  font-variant-numeric: tabular-nums; position: relative;
}
.receipt::after { /* torn edge */
  content: ""; display: block; height: 14px; margin: 18px -26px -2px;
  background:
    linear-gradient(135deg, var(--cream) 50%, transparent 50%) 0 0 / 16px 14px repeat-x,
    linear-gradient(225deg, var(--cream) 50%, transparent 50%) 0 0 / 16px 14px repeat-x;
  border-radius: 0 0 12px 12px;
}
.receipt-top { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 2px dashed var(--ink); }
.receipt-title { font-family: var(--font-head); font-size: 1.5rem; line-height: 1; margin: 0; }
.receipt-sub { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin: 4px 0 0; }
.receipt dl { margin: 14px 0 0; }
.receipt dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dotted #A9B8AF; }
.receipt dt { font-weight: 600; }
.receipt dd { margin: 0; font-weight: 800; }
.receipt .total { border-bottom: 0; border-top: 2px dashed var(--ink); margin-top: 8px; padding-top: 14px; font-size: 1.3rem; }
.receipt .total dd { color: var(--heart); }
.receipt-foot { text-align: center; font-weight: 700; margin: 14px 0 0; }
.receipt-foot span { color: var(--heart); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: none; }
.steps li { background: var(--cream); border: var(--border); border-radius: var(--radius); padding: 26px 22px; box-shadow: 6px 6px 0 var(--green); }
.step-num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--sunshine); border: var(--border); font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 16px;
}
.steps h3 { font-size: 1.3rem; margin-bottom: .35em; }
.steps p { margin: 0; }
.after-note { max-width: 760px; margin: 40px auto 0; text-align: center; font-size: 1.02rem; }

/* Rooms */
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 28px; }
.rooms h3 { padding-bottom: 14px; border-bottom: 2px dashed var(--sage); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 5px;
  background: var(--sage); border: 2px solid var(--ink);
}
.checks li::after {
  content: ""; position: absolute; left: 6px; top: 7px; width: 5px; height: 9px;
  border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Jed */
.jed { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; max-width: 960px; }
.jed-photo {
  width: clamp(220px, 26vw, 300px); aspect-ratio: 519 / 677; border-radius: var(--radius);
  border: 3px solid var(--cream); box-shadow: 8px 8px 0 var(--ink); overflow: hidden; background: var(--sage);
}
.jed-photo img { width: 100%; height: 100%; object-fit: cover; }
.jed-copy h2 { color: var(--cream); }
.jed-copy p { font-size: 1.15rem; max-width: 34em; }
.sig { font-weight: 800; color: var(--sunshine); margin-top: 1.4em; }

/* Chips */
.chips { list-style: none; padding: 0; margin: 0 auto 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 900px; }
.chips li { background: var(--butter); border: var(--border); border-radius: 999px; padding: 10px 18px; font-weight: 700; }
.chips li:first-child, .chips li:last-child { background: var(--sage); }

/* FAQ */
.faq { display: grid; gap: 14px; }
.faq details { background: var(--cream); border: var(--border); border-radius: var(--radius-sm); box-shadow: 4px 4px 0 var(--green); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 800; font-size: 1.1rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--sunshine); border: 2px solid var(--ink);
  display: grid; place-items: center; font-size: 1.2rem; line-height: 1; transition: transform .2s;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 20px; margin: 0; font-size: 1.05rem; }

/* CTA band */
.cta-band { background: var(--butter); border-top: var(--border); padding: clamp(48px, 7vw, 80px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-inner h2 { margin-bottom: .25em; }
.cta-inner p { margin: 0; font-size: 1.15rem; }

/* Footer */
.site-footer { background: var(--green); color: var(--cream); padding: 44px 0 40px; border-top: var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.site-footer .brand-sub { color: var(--sage); }
.footer-contact { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 700; }
.footer-contact a { text-decoration: none; border-bottom: 2px solid var(--sunshine); }
.footer-fine { width: 100%; margin: 8px 0 0; font-size: .85rem; opacity: .8; }

/* Mobile sticky bar */
.mobile-bar { display: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1020px) {
  .nav { display: none; }
  .header-inner .btn { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .form-card { max-width: 620px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .deal-grid, .rooms { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .why-copy { text-align: center; }
  .jed { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .jed-copy p { margin-inline: auto; }
  .cta-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .header-inner { min-height: 64px; gap: 12px; }
  .brand img { width: 36px; height: 36px; }
  .brand-name { font-size: 1.4rem; }
  .brand-sub { font-size: .56rem; letter-spacing: .12em; }
  .header-inner .btn { display: none; }
  .steps { grid-template-columns: 1fr; }
  .field-row.three { grid-template-columns: 1fr 1fr; }
  .field-row.three .field:first-child { grid-column: 1 / -1; }
  .field-row.two { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 22px 18px; box-shadow: 6px 6px 0 var(--green); }
  .card { padding: 24px 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-inner .brand { justify-content: center; }
  .footer-contact { justify-content: center; }

  .mobile-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--ink); color: var(--cream); padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    transform: translateY(110%); transition: transform .25s ease;
  }
  .mobile-bar.show { transform: none; }
  .mobile-bar span { display: flex; flex-direction: column; line-height: 1.2; }
  .mobile-bar small { color: var(--sage); font-size: .82rem; }
  .mobile-bar .btn { box-shadow: none; border-color: var(--sunshine); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .mobile-bar { transition: none; }
}
