/* Greenrow Garden Care: a sample site for a made-up business. */
@font-face { font-family: "Open Sans Heavy"; src: url("/assets/fonts/opensans-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --gum: #1f4d3a;
  --gum-2: #2f6b4f;
  --leaf: #b8e0a0;
  --mist: #f1f6ee;
  --soil: #1d2621;
  --soil-2: #4b5a51;
  --sun: #ffd166;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --heavy: "Open Sans Heavy", var(--sans);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--mist); color: var(--soil); font: 1.05rem/1.6 var(--sans); }
.wrap { width: min(68rem, 100% - 2.5rem); margin-inline: auto; }
h1, h2, h3, h4 { font-family: var(--heavy); font-weight: 800; line-height: 1.08; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 7.5vw, 4.4rem); max-width: 16ch; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
h3 { font-size: 1.15rem; }
a { color: var(--gum-2); }
:focus-visible { outline: 3px solid var(--gum); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--soil); color: #fff; padding: 0.5rem 1rem; z-index: 200; }
.skip:focus { top: 3.5rem; }

.head { background: var(--gum); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.logo { display: inline-flex; align-items: center; gap: 0.7rem; color: #fff; text-decoration: none; min-height: 44px; }
.logo svg { width: 40px; height: 40px; }
.logo span { font: 800 1.35rem/1 var(--heavy); }
.logo small { display: block; font: 600 0.8rem/1.3 var(--sans); color: var(--leaf); letter-spacing: 0.04em; }
.head :focus-visible, .hero :focus-visible { outline-color: var(--sun); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.65rem 1.4rem; border-radius: 12px; border: 2px solid var(--sun); background: var(--sun); color: var(--soil); font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: #ffc233; border-color: #ffc233; }
.btn-small { min-height: 44px; padding: 0.5rem 1rem; }
.btn-line { background: transparent; border-color: var(--gum); color: var(--gum); }
.btn-line:hover { background: var(--gum); color: #fff; border-color: var(--gum); }

.hero { position: relative; background: var(--gum); color: #fff; padding: 3rem 0 7rem; }
.hello { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 999px; background: rgba(184, 224, 160, 0.16); color: var(--leaf); font-weight: 700; font-size: 0.9rem; }
.lede { font-size: 1.2rem; max-width: 34rem; color: #dcebd5; margin-bottom: 1.8rem; }
.hedge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; }

section { padding: 3.5rem 0; }
.svc { display: grid; gap: 1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.svc li { padding: 1.3rem 1.3rem 1rem; background: #fff; border-radius: 18px; border-left: 6px solid var(--gum-2); box-shadow: 0 6px 20px -14px rgba(29, 38, 33, 0.5); }
.svc p { margin: 0; color: var(--soil-2); }

.quote { background: #fff; }
.quote-in { display: grid; gap: 2rem; }
.progress { counter-reset: s; margin: 1.5rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.progress li { counter-increment: s; display: flex; align-items: center; gap: 0.7rem; color: var(--soil-2); font-weight: 600; }
.progress li::before { content: counter(s); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid #9db3a5; color: var(--soil-2); font-weight: 800; flex: none; }
.progress li.on { color: var(--soil); }
.progress li.on::before { background: var(--gum); border-color: var(--gum); color: #fff; }
.progress li.done::before { content: "✓"; background: var(--leaf); border-color: var(--leaf); color: var(--gum); }

.wizard, .next-up { padding: 1.5rem; border-radius: 20px; background: var(--mist); }
.wizard[hidden], .next-up[hidden] { display: none; }
.step-count { margin: 0 0 0.5rem; font-weight: 700; color: var(--gum-2); }
.step-count:empty { display: none; }
fieldset { border: 0; margin: 0 0 1.5rem; padding: 0; }
legend { font: 800 1.45rem/1.2 var(--heavy); margin-bottom: 0.6rem; padding: 0; }
.js .step { display: none; }
.js .step.current { display: block; }
.hint, .opt { color: var(--soil-2); font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 48px; padding: 0.55rem 1rem; border-radius: 999px; border: 2px solid #9db3a5; background: #fff; font-weight: 600; }
.chip input:checked + span { background: var(--gum); border-color: var(--gum); color: #fff; }
.chip input:checked + span::before { content: "✓ "; white-space: pre; }
.chip input:focus-visible + span { outline: 3px solid var(--gum); outline-offset: 3px; }
.radios { display: grid; gap: 0.5rem; }
.radios label { display: flex; align-items: center; gap: 0.6rem; min-height: 48px; padding: 0.5rem 0.9rem; border-radius: 12px; background: #fff; border: 2px solid #c9d8cd; font-weight: 700; cursor: pointer; }
.radios label span { font-weight: 400; color: var(--soil-2); }
.radios input { width: 1.2rem; height: 1.2rem; accent-color: var(--gum); }
.radios label:has(input:checked) { border-color: var(--gum); }
.q { font-weight: 700; margin-bottom: 0.4rem; }
.f { margin-bottom: 1.1rem; }
.f > label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { width: 100%; min-height: 48px; padding: 0.6rem 0.8rem; border: 2px solid #8fa596; border-radius: 12px; background: #fff; color: var(--soil); font: inherit; }
.err { color: #a4262c; font-weight: 700; margin: 0.4rem 0 0; }
.err:empty { display: none; }
[aria-invalid="true"] { border-color: #a4262c !important; }
.nav-btns { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; }
#back, #next { display: none; }
.js #back, .js #next { display: inline-flex; }
.js #back[hidden], .js #next[hidden], .js #send[hidden] { display: none; }
.next-up dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.3rem 1rem; padding: 1rem; background: #fff; border-radius: 12px; }
.next-up dt { font-weight: 700; }
.next-up dd { margin: 0; }
.next-up h4 { font-size: 1.15rem; margin-top: 1.5rem; }

.area p { max-width: 44rem; }
.area a { display: inline-block; min-height: 24px; }
.foot { background: var(--soil); color: #c9d6cd; padding: 2rem 0; font-size: 0.95rem; }
.foot a { color: var(--leaf); }
.foot :focus-visible { outline-color: var(--leaf); }

@media (min-width: 44em) {
  .svc { grid-template-columns: repeat(3, 1fr); }
  .quote-in { grid-template-columns: 1fr 1.6fr; align-items: start; }
  .wizard, .next-up { padding: 2rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
