/* ============================================================
   Hassle Free Roofing — instant estimate landing page
   Palette derived from the reference design:
   cream ground, forest-green primary, Fraunces + Plus Jakarta Sans
   ============================================================ */

:root {
  --cream: #fdfcf7;
  --surface: #ffffff;
  --card: #f5f2e8;
  --ink: #1c2b23;
  --ink-muted: #5c6b62;
  --forest: #264a3c;
  --forest-hover: #1f3e31;
  --forest-deep: #22392e;      /* dark section background */
  --on-forest: #f5f2ea;         /* text on dark green */
  --on-forest-muted: #b7c7bd;
  --sage: #dce8de;              /* pale green pill */
  --border: #e7e2d5;
  --border-dark: rgba(245, 242, 234, 0.16);
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(28, 43, 35, .04), 0 6px 20px rgba(28, 43, 35, .05);
  --shadow-md: 0 2px 6px rgba(28, 43, 35, .06), 0 18px 44px rgba(28, 43, 35, .08);
  --maxw: 1120px;
  --font-display: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }

.center { text-align: center; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--forest); color: var(--on-forest); padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  border: none; border-radius: 999px; cursor: pointer;
  padding: 14px 26px; transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
.btn-primary { background: var(--forest); color: var(--on-forest); }
.btn-primary:hover { background: var(--forest-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-lg { padding: 18px 34px; font-size: 17px; width: 100%; max-width: 560px; }
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-ghost {
  background: transparent; color: var(--ink); border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--ink-muted); }
.btn .arrow { font-weight: 400; transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[disabled]:hover { background: var(--forest); transform: none; }

.microcopy { font-size: 14px; color: var(--ink-muted); }

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sage); color: var(--forest);
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px;
}
.eyebrow-pill svg { color: var(--forest); }

.section-label {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 252, 247, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  background: var(--forest); color: var(--on-forest);
  font-family: var(--font-body); font-weight: 700; font-size: 14px; letter-spacing: 0.02em;
}
.brand-mark.small { width: 34px; height: 34px; font-size: 12px; }
.brand-name { font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }

/* ---------- Hero ---------- */
.hero { padding: 78px 0 64px; }
.hero-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 760px; }
.hero-title { font-size: clamp(40px, 7vw, 76px); font-weight: 600; }
.hero-sub { font-size: clamp(17px, 2.1vw, 20px); color: var(--ink-muted); max-width: 60ch; }
.hero .btn-lg { max-width: 620px; }

/* ---------- Value props ---------- */
.valueprops { padding: 20px 0 60px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.vp {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.vp h3 { font-size: 20px; margin-bottom: 8px; }
.vp p { font-size: 15px; color: var(--ink-muted); line-height: 1.5; }

/* ---------- Estimator ---------- */
.estimator-section { padding: 44px 0 72px; }
.estimator-head { text-align: center; max-width: 620px; margin: 0 auto 28px; }
.estimator-head h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 12px; }
.estimator-head p { color: var(--ink-muted); font-size: 18px; }
.estimator-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 36px; max-width: 720px; margin: 0 auto; min-height: 340px;
}
.microcopy.center { text-align: center; margin-top: 18px; }

/* wizard internals */
.wiz-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.wiz-step-label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--forest); }
.wiz-time { font-size: 13px; color: var(--ink-muted); }
.wiz-progress { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; margin-bottom: 26px; }
.wiz-progress span { display: block; height: 100%; background: var(--forest); border-radius: 999px; transition: width .35s ease; }
.wiz-question { font-family: var(--font-display); font-size: 27px; font-weight: 600; margin-bottom: 8px; }
.wiz-help { color: var(--ink-muted); font-size: 15px; margin-bottom: 24px; }
.wiz-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.opt {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; text-align: left; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: 14px; padding: 18px 20px;
  font-family: var(--font-body); font-size: 16px; font-weight: 500; color: var(--ink); cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.opt:hover { border-color: var(--forest); }
.opt.selected { border-color: var(--forest); background: var(--card); }
.opt .radio { width: 20px; height: 20px; border-radius: 999px; border: 2px solid var(--border); flex: none; position: relative; }
.opt.selected .radio { border-color: var(--forest); }
.opt.selected .radio::after { content: ""; position: absolute; inset: 3px; border-radius: 999px; background: var(--forest); }
.opt:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }

.wiz-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.wiz-field label { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: 0.01em; }
.wiz-field input {
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  border: 1.5px solid var(--border); border-radius: 12px; padding: 15px 16px; background: var(--surface);
  transition: border-color .15s ease;
}
.wiz-field input:focus { outline: none; border-color: var(--forest); }
.wiz-field input::placeholder { color: #a7ab9f; }

.wiz-actions { display: flex; gap: 12px; align-items: center; margin-top: 28px; }
.wiz-actions .btn-primary { flex: 1; }

/* result */
.result-badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--forest); margin-bottom: 14px; }
.result-label { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.result-range { font-family: var(--font-display); font-size: clamp(40px, 7vw, 58px); font-weight: 600; color: var(--ink); margin: 6px 0 14px; letter-spacing: -0.02em; }
.result-note { color: var(--ink-muted); font-size: 15px; margin-bottom: 26px; max-width: 52ch; }
.result-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 26px; }
.result-fact .k { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.result-fact .v { font-size: 16px; font-weight: 600; margin-top: 4px; }
.result-verify h3 { font-size: 22px; margin-bottom: 8px; }
.result-verify p { color: var(--ink-muted); font-size: 15px; margin-bottom: 20px; }
.result-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.result-cta-row .btn { flex: 1; min-width: 200px; }
.result-fineprint { font-size: 13px; color: var(--ink-muted); margin-top: 18px; }

/* ---------- How it works (dark) ---------- */
.howitworks { background: var(--forest-deep); color: var(--on-forest); padding: 84px 0; }
.hiw-head { max-width: 720px; margin-bottom: 52px; }
.hiw-head h2 { color: var(--on-forest); font-size: clamp(32px, 5vw, 52px); margin-bottom: 18px; }
.hiw-head p { color: var(--on-forest-muted); font-size: 19px; margin-bottom: 24px; }
.flow-label { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-forest); background: rgba(245,242,234,.08); border: 1px solid var(--border-dark); padding: 8px 16px; border-radius: 999px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { border: 1px solid var(--border-dark); border-radius: var(--radius); padding: 30px 28px 34px; }
.step-num { display: block; font-family: var(--font-display); font-size: 64px; font-weight: 500; line-height: 1; color: transparent; -webkit-text-stroke: 1.4px var(--on-forest-muted); margin-bottom: 22px; opacity: .8; }
.step h3 { color: var(--on-forest); font-size: 22px; margin-bottom: 10px; }
.step p { color: var(--on-forest-muted); font-size: 15.5px; }

/* ---------- Philosophy ---------- */
.philosophy { padding: 88px 0; }
.philo-lead { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.philo-lead h2 { font-size: clamp(28px, 4.2vw, 44px); margin-bottom: 22px; }
.philo-lead p { color: var(--ink-muted); font-size: 18px; margin-bottom: 14px; }
.philo-emph { color: var(--ink) !important; font-weight: 600; font-size: 19px !important; }
.expect { max-width: var(--maxw); text-align: center; }
.expect .grid-4 { text-align: left; }
.expect-item h4 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.expect-item p { font-size: 15px; color: var(--ink-muted); }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--card); padding: 84px 0; }
.testimonials h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 44px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-sm); }
.review p { font-size: 16.5px; line-height: 1.55; margin-bottom: 18px; }
.review cite { font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); }

/* ---------- Final CTA ---------- */
.final-cta { padding: 92px 0; }
.final-cta h2 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 16px; }
.final-cta p { color: var(--ink-muted); font-size: 19px; margin-bottom: 30px; }
.final-cta .btn-lg { margin: 0 auto; }
.final-cta .microcopy { margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: var(--on-forest); padding: 48px 0 30px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--border-dark); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { display: block; font-size: 17px; }
.footer-brand span { color: var(--on-forest-muted); font-size: 13px; }
.footer-links { display: flex; gap: 26px; }
.footer-links a { color: var(--on-forest); text-decoration: none; font-size: 15px; font-weight: 500; }
.footer-links a:hover { color: var(--on-forest-muted); }
.footer-legal { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; color: var(--on-forest-muted); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .result-facts { grid-template-columns: 1fr; gap: 12px; text-align: left; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .grid-4 { grid-template-columns: 1fr; }
  .estimator-card { padding: 24px 20px; }
  .header-inner { height: 64px; }
  .brand-name { font-size: 17px; }
  .btn-sm { padding: 10px 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-legal { flex-direction: column; }
  .wiz-actions { flex-direction: column-reverse; }
  .wiz-actions .btn { width: 100%; }
}
