:root {
  --spruce: #1f3d36;
  --spruce-2: #2c5449;
  --slate: #4b5963;
  --birch: #f6f7f3;
  --fog: #e6ece8;
  --lupine: #6b4fa0;
  --ink: #18221f;
  --line: #cfd8d3;
  --display: "Bitter", Georgia, serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --wrap: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--birch);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--body);
}
img { max-width: 100%; display: block; }
a { color: var(--spruce); }
:focus-visible { outline: 3px solid var(--lupine); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; color: var(--spruce); }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { background: var(--birch); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.05rem; white-space: nowrap; color: var(--spruce); text-decoration: none; }
.header-call { font-weight: 700; text-decoration: none; white-space: nowrap; font-size: 1rem; }
@media (max-width: 400px) { .header-call span { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.5rem; padding: 0 1.6rem;
  border-radius: 999px; border: 2px solid var(--spruce);
  font: 700 1.125rem/1 var(--body); text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--spruce); color: #fff; }
.btn-primary:hover { background: var(--spruce-2); border-color: var(--spruce-2); }
.btn-ghost { background: transparent; color: var(--spruce); }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 0 0 3rem; }
.hero-grid { display: grid; gap: 1.75rem; }
.hero-photo { margin: 0 -1.25rem; }
.hero-copy { padding-top: .25rem; }
.status {
  display: inline-flex; align-items: center; gap: .55rem;
  background: #fff; border: 2px solid var(--lupine); color: var(--lupine);
  font-weight: 700; padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.status::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--lupine); }
.is-full .status { border-color: var(--slate); color: var(--slate); }
.is-full .status::before { background: var(--slate); }
.price { font-family: var(--display); font-size: 1.9rem; font-weight: 700; color: var(--ink); margin-bottom: .2rem; }
.price small { font-family: var(--body); font-size: 1.05rem; font-weight: 400; color: var(--slate); }
.hero-sub { color: var(--slate); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-actions .btn { flex: 1 1 12rem; }

@media (min-width: 52rem) {
  .hero { padding: 3rem 0 4rem; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 3rem; }
  .hero-photo { margin: 0; order: 2; }
  .hero-actions .btn { flex: 0 0 auto; }
}

/* Photo placeholders (swap for <img> when photos arrive) */
.ph {
  aspect-ratio: 4 / 3; width: 100%;
  background: repeating-linear-gradient(135deg, var(--fog) 0 14px, #dde5e0 14px 28px);
  display: grid; place-items: center; color: var(--slate); font-weight: 700;
}
.hero-photo .ph, .hero-photo img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center; width: 100%; height: auto; }
@media (min-width: 52rem) { .hero-photo .ph, .hero-photo img { border-radius: 14px; } }

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lede { color: var(--slate); max-width: 40rem; margin-bottom: 2rem; }

/* Included vs you pay */
.split { display: grid; gap: 1.25rem; }
@media (min-width: 44rem) { .split { grid-template-columns: 1.6fr 1fr; } }
.ledger { border: 2px solid var(--spruce); border-radius: 14px; padding: 1.5rem; background: #fff; }
.ledger.pay { border-color: var(--line); background: var(--birch); }
.ledger h3 { margin-bottom: .9rem; }
.ledger ul { list-style: none; margin: 0; padding: 0; }
.ledger li { padding: .55rem 0 .55rem 2rem; border-top: 1px solid var(--line); position: relative; }
.ledger li:first-child { border-top: 0; }
.ledger li::before { position: absolute; left: 0; top: .5rem; font-weight: 700; }
.ledger.inc li::before { content: "✓"; color: var(--spruce); }
.ledger.pay li::before { content: "–"; color: var(--slate); }
.ledger li span { display: block; color: var(--slate); font-size: 1rem; }

/* Features */
.features { display: grid; gap: 0; margin: 0; }
@media (min-width: 44rem) { .features { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.features div { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.features dt { font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--spruce); }
.features dd { margin: .2rem 0 0; color: var(--slate); }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.gallery figure { margin: 0; }
.gallery .ph, .gallery img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; object-position: center; width: 100%; height: auto; font-size: .95rem; }
.g-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; }
.lightbox { border: 0; padding: 0; background: #0e1714; color: #fff; width: min(100vw, 64rem); max-width: 100vw; max-height: 100vh; }
.lightbox::backdrop { background: rgba(14,23,20,.92); }
.lightbox img { width: 100%; max-height: 72vh; object-fit: contain; background: #0e1714; }
.lightbox p { margin: .6rem 1rem 0; color: #d5e2dc; }
.lb-nav { display: flex; gap: .5rem; padding: .8rem 1rem 1rem; }
.lb-nav button { flex: 1; min-height: 3rem; border-radius: 999px; border: 2px solid #d5e2dc; background: transparent; color: #fff; font: 700 1rem var(--body); cursor: pointer; }
.gallery figcaption { font-size: .95rem; color: var(--slate); padding: .35rem .1rem 0; }
@media (min-width: 44rem) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }

/* Details table */
.details { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.details th, .details td { text-align: left; padding: .85rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }
.details tr:first-child th, .details tr:first-child td { border-top: 0; }
.details th { width: 38%; font-weight: 700; color: var(--spruce); }

/* Location */
.loc { display: grid; gap: 1.5rem; }
@media (min-width: 44rem) { .loc { grid-template-columns: 1fr 1fr; align-items: start; } }
.addr { font-family: var(--display); font-size: 1.25rem; color: var(--ink); line-height: 1.5; }
.drive { list-style: none; padding: 0; margin: 0; }
.drive li { display: flex; justify-content: space-between; padding: .6rem 0; border-top: 1px solid var(--line); }
.drive li:first-child { border-top: 0; }
.drive b { color: var(--spruce); }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--spruce); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: .6rem 0 0; color: var(--slate); max-width: 42rem; }

/* Closing CTA */
.closing { background: var(--spruce); color: #fff; text-align: center; padding: 3.5rem 0; }
.closing h2 { color: #fff; }
.closing p { color: #d5e2dc; }
.closing .btn-primary { background: #fff; color: var(--spruce); border-color: #fff; }
.closing a.call { color: #fff; }

.site-footer { padding: 2rem 0 6rem; color: var(--slate); font-size: 1rem; line-height: 1.7; }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(246,247,243,.96); border-top: 1px solid var(--line);
  display: flex; gap: .6rem;
}
.sticky-cta .btn { flex: 1; min-height: 3.2rem; }
.sticky-cta .btn-ghost { flex: 0 0 auto; padding: 0 1.2rem; }
@media (min-width: 52rem) { .sticky-cta { display: none; } .site-footer { padding-bottom: 2rem; } }

/* ============ Apply flow ============ */
.apply-body { min-height: 100vh; display: flex; flex-direction: column; }
.progress { height: 6px; background: var(--fog); }
.progress span { display: block; height: 100%; width: 0; background: var(--lupine); transition: width .25s ease; }
.apply-main { flex: 1; padding: 2rem 0 3rem; }
.apply-main .wrap { max-width: 36rem; }
.step { display: none; }
.step.active { display: block; }
.step h1 { font-size: clamp(1.6rem, 5vw, 2.1rem); }
.step-hint { color: var(--slate); margin-top: -.25rem; }
.choices { display: grid; gap: .7rem; margin-top: 1.5rem; }
.choice {
  width: 100%; min-height: 3.6rem; padding: .8rem 1.2rem;
  background: #fff; border: 2px solid var(--line); border-radius: 12px;
  font: 700 1.125rem/1.3 var(--body); color: var(--ink); text-align: left; cursor: pointer;
}
.choice:hover { border-color: var(--spruce); }
.choice.picked { border-color: var(--spruce); background: var(--fog); }
.back { background: none; border: 0; color: var(--slate); font: 400 1rem var(--body); padding: .5rem 0; margin-bottom: 1rem; cursor: pointer; text-decoration: underline; }
.note { background: #f1edf8; border-left: 4px solid var(--lupine); padding: .9rem 1rem; border-radius: 6px; margin-top: 1.25rem; color: var(--ink); }

.field { margin-top: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; min-height: 3.4rem; padding: .7rem 1rem;
  border: 2px solid var(--line); border-radius: 10px; background: #fff;
  font: 400 1.125rem/1.4 var(--body); color: var(--ink);
}
.field textarea { min-height: 6rem; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--spruce); outline: none; box-shadow: 0 0 0 3px rgba(107,79,160,.35); }
.consent { display: flex; gap: .7rem; align-items: flex-start; margin-top: 1.25rem; font-size: 1rem; color: var(--slate); }
.consent input { width: 1.4rem; height: 1.4rem; margin-top: .15rem; flex: 0 0 auto; accent-color: var(--spruce); }
.form-error { color: #a12a2a; font-weight: 700; margin-top: 1rem; }
.fine { font-size: .95rem; color: var(--slate); margin-top: 1rem; }

/* Thank-you */
.ty { text-align: center; padding: 3.5rem 0; }
.ty .wrap { max-width: 34rem; }
.ty .phone-ring { width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--fog); display: grid; place-items: center; margin: 0 auto 1.5rem; }
.ty-call { font-family: var(--display); font-size: 1.6rem; font-weight: 700; color: var(--ink); }
.ty ol { text-align: left; margin: 2rem 0; padding-left: 1.4rem; }
.ty ol li { margin-bottom: .7rem; }
