:root {
  --sky: #1B2E2A;
  --pine: #1E3B30;
  --pine-deep: #132520;
  --kaolin: #EEF0EC;
  --paper: #F8F9F6;
  --galv: #9BA5A8;
  --cedar: #C4803F;
  --cedar-dark: #8A5624;
  --barn: #7A2E26;
  --ink: #1A1F1C;
  --muted: #4A5550;
  --glow: #F2C46D;

  --display: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--kaolin);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.hidden { display: none; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--glow); color: var(--ink); padding: .6rem 1rem; border-radius: 4px;
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 2px; }

/* Buttons */
.btn {
  display: inline-block;
  font: 600 1rem/1 var(--body);
  padding: 1rem 1.5rem;
  border-radius: 4px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-cedar { background: var(--cedar); color: var(--ink); }
.btn-cedar:hover { background: var(--glow); }
.btn-ghost { border-color: rgba(238, 240, 236, .55); color: var(--kaolin); }
.btn-ghost:hover { border-color: var(--kaolin); background: rgba(238, 240, 236, .08); }
.btn-ink { background: var(--pine); color: var(--kaolin); }
.btn-ink:hover { background: var(--pine-deep); }
.btn-large { padding: 1.2rem 2rem; font-size: 1.1rem; }

.text-link { font-weight: 600; color: var(--cedar-dark); text-underline-offset: 4px; }
.text-link:hover { color: var(--barn); }

/* Hero */
.hero {
  background:
    radial-gradient(ellipse 42% 40% at 78% 86%, rgba(242, 196, 109, .6), rgba(242, 196, 109, 0) 100%),
    linear-gradient(180deg, var(--sky) 0%, var(--sky) 38%, #2F4A43 66%, #9A8358 86%, #D9A45B 100%);
  color: var(--kaolin); position: relative;
  display: flex; flex-direction: column;
  min-height: min(100svh, 1000px);
}
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: 1.25rem;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark { width: 40px; height: 32px; color: var(--cedar); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.35rem; }
.brand-place { font-size: .8rem; opacity: .75; letter-spacing: .01em; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.75rem); font-weight: 500; font-size: .98rem; }
.nav a { text-decoration: none; opacity: .85; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.nav .nav-call {
  opacity: 1; border: 2px solid var(--cedar); color: var(--kaolin);
  padding: .55rem .95rem; border-radius: 4px;
}
.nav .nav-call:hover { background: var(--cedar); color: var(--ink); text-decoration: none; }
.menu-toggle { display: none; }

.hero-copy {
  padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: 1rem; position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem 4rem; align-items: end;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.3vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  max-width: 19ch;
}
.lede { max-width: 30rem; font-size: clamp(1.05rem, 1.3vw, 1.18rem); opacity: .88; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero .actions .btn { padding-inline: 1.2rem; }

.scene { flex: 1 1 auto; min-height: 340px; position: relative; margin-top: -1rem; }
.scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Lights coming on at dusk */
.glow { fill: #3A4744; animation: lights-on .9s ease-out forwards; }
.halo { opacity: 0; animation: halo-on 1.4s ease-out forwards; }
@keyframes lights-on { to { fill: var(--glow); } }
@keyframes halo-on { to { opacity: .45; } }
.g1 { animation-delay: .5s; }
.g2 { animation-delay: .85s; }
.g3 { animation-delay: 1.1s; }
.g4 { animation-delay: 1.35s; }
.g5 { animation-delay: 1.6s; }
.g6 { animation-delay: 1.8s; }
.g7 { animation-delay: 2s; }
.g8 { animation-delay: 2.2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow { animation: none; fill: var(--glow); }
  .halo { animation: none; opacity: .45; }
}

.hero-rto {
  margin-top: 1.5rem; padding-left: 1rem; max-width: 30rem;
  border-left: 3px solid var(--glow); font-size: 1.02rem; opacity: .95;
}
.hero-rto strong { color: var(--glow); }
.hero-rto a { color: var(--kaolin); font-weight: 600; text-underline-offset: 4px; white-space: nowrap; }

/* Sections */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2, .craft h2, .prices h2, .contact h2 { font-size: clamp(2.1rem, 3.8vw, 3.2rem); }
.section-head p { margin-top: 1rem; font-size: 1.15rem; color: var(--muted); }

/* Buildings */
.buildings { background: var(--kaolin); }
.model {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(2rem, 4vw, 3rem);
}
.model + .model { border-top: 1px solid rgba(26, 31, 28, .12); }
.model-flip .model-art { order: 2; }
.model-art svg { width: 100%; height: auto; max-height: 360px; }
.model-art .ground { stroke: var(--pine); stroke-opacity: .35; stroke-width: 2; }
.dim path { stroke: var(--cedar-dark); stroke-width: 1.5; fill: none; }
.dim-bg { fill: var(--kaolin); }
.dim text { font: 600 14px var(--body); fill: var(--cedar-dark); text-anchor: middle; }
.model-text h3 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.model-text p { margin-top: 1rem; max-width: 34rem; }
.model-text .standard { color: var(--muted); font-size: .98rem; }
.model-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 1.75rem; }

.more {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 3px solid var(--pine);
}
.more h3 { font-size: 1.75rem; }
.more-list {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 2.5rem; margin: 1.75rem 0 0;
}
.more-list dt { font-weight: 700; font-size: 1.05rem; }
.more-list dd { margin: .3rem 0 0; color: var(--muted); font-size: .97rem; }

.prices-actions { display: grid; gap: .9rem; justify-items: start; }
.prices-alt { font-weight: 600; text-underline-offset: 4px; }
.prices-alt:hover { color: var(--pine-deep); }

/* Rent-to-own */
.rto { background: var(--barn); color: var(--kaolin); }
.rto-head { max-width: 44rem; }
.rto h2 { font-size: clamp(2.3rem, 4.4vw, 3.8rem); }
.rto-head p { margin-top: 1.25rem; font-size: 1.15rem; opacity: .9; }
.rto-terms {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 2.5rem;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
}
.rto-terms div { border-top: 3px solid var(--glow); padding-top: 1.1rem; }
.rto-terms dt { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.05; }
.rto-terms dd { margin: .6rem 0 0; opacity: .88; }
.rto-how {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding: clamp(1.5rem, 3vw, 2.25rem);
  background: rgba(0, 0, 0, .18); border-radius: 4px;
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem 3rem; align-items: center;
}
.rto-how h3 { font-size: 1.6rem; }
.rto-how p { margin-top: .6rem; max-width: 40rem; opacity: .92; }
.rto-actions { display: grid; gap: .9rem; justify-items: start; }
.btn-light { background: var(--kaolin); color: var(--barn); }
.btn-light:hover { background: #fff; }
.rto-link { font-weight: 600; text-underline-offset: 4px; }

/* Design your own */
.design { background: var(--sky); color: var(--kaolin); }
.design-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.design h2 { font-size: clamp(2.3rem, 4.4vw, 3.8rem); }
.design-copy > p { margin-top: 1.25rem; font-size: 1.15rem; opacity: .88; max-width: 32rem; }
.design .actions { margin-top: 2rem; }
.design-note { margin-top: 1.25rem; opacity: .75; }
.design-note a { color: var(--glow); font-weight: 600; }
.blueprint { border: 2px solid rgba(238, 240, 236, .18); border-radius: 4px; background: #203733; }
.blueprint svg { width: 100%; height: auto; }
.bp-line { fill: none; stroke: var(--kaolin); stroke-width: 2.5; stroke-linejoin: round; }
.bp-dim path { fill: none; stroke: var(--cedar); stroke-width: 1.5; }
.bp-bg { fill: #203733; }
.bp-dimtext { font: 600 13px var(--body); fill: var(--cedar); text-anchor: middle; }
.bp-lead path { fill: none; stroke: var(--glow); stroke-width: 1.5; }
.bp-lead circle { fill: var(--glow); }
.bp-label { font: 600 15px var(--body); fill: var(--glow); }
.bp-left { text-anchor: end; }

/* Craft */
.craft { background: var(--pine); color: var(--kaolin); }
.craft-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.craft-intro { position: sticky; top: 2rem; }
.craft-intro p { margin-top: 1.25rem; font-size: 1.15rem; opacity: .85; max-width: 30rem; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 2.25rem 2.5rem; margin: 0; }
.specs div { border-top: 3px solid var(--cedar); padding-top: 1rem; }
.specs dt { font-family: var(--display); font-weight: 700; font-size: 1.4rem; line-height: 1.15; }
.specs dd { margin: .5rem 0 0; opacity: .82; }

/* Process */
.process { background: var(--paper); }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3.5rem);
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block;
  font: 700 4.5rem/1 var(--display);
  color: var(--cedar);
  margin-bottom: .75rem;
}
.steps h3 { font-size: 1.6rem; }
.steps p { margin-top: .6rem; color: var(--muted); max-width: 22rem; }
.steps .timing { margin-top: 1rem; padding-left: .9rem; border-left: 3px solid var(--cedar); color: var(--ink); line-height: 1.7; }
.done a:not(.btn) { color: var(--glow); }

/* Prices */
.prices { background: var(--cedar); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.prices-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem 4rem; flex-wrap: wrap; }
.prices-inner > div { max-width: 40rem; }
.prices p { margin-top: 1rem; font-size: 1.12rem; }

/* Contact */
.contact { background: var(--kaolin); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.visit > p { margin-top: 1.25rem; font-size: 1.15rem; color: var(--muted); max-width: 30rem; }
.visit-details { margin-top: 2.25rem; display: grid; gap: 1.5rem; }
.visit-details strong { font-family: var(--display); font-size: 1.2rem; }
.visit-details a { color: var(--cedar-dark); font-weight: 600; overflow-wrap: anywhere; }

.quote {
  background: var(--paper);
  border: 1px solid rgba(26, 31, 28, .14);
  border-top: 6px solid var(--pine);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: grid; gap: 1.1rem;
}
.quote h3 { font-size: 1.7rem; margin-bottom: .25rem; }
.quote label { display: grid; gap: .4rem; font-weight: 600; font-size: .95rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.quote input, .quote select, .quote textarea {
  font: 400 1rem/1.4 var(--body);
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #B9C0BC;
  border-radius: 4px;
  padding: .75rem .85rem;
  width: 100%;
}
.quote input:focus, .quote select:focus, .quote textarea:focus {
  outline: 3px solid var(--cedar); outline-offset: 0; border-color: var(--cedar-dark);
}
.quote ::placeholder { color: #7D8782; }
.quote button { justify-self: start; margin-top: .5rem; }

/* Footer */
.footer { background: var(--pine-deep); color: var(--kaolin); padding-block: 2.5rem; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; }
.footer-brand + p { margin-top: .25rem; }
.footer .footer-contact { margin-top: .5rem; opacity: 1; }
.footer-contact a { color: var(--glow); text-underline-offset: 3px; overflow-wrap: anywhere; }
.footer p { opacity: .75; }
.footer .footer-brand { font-family: var(--display); font-weight: 700; font-size: 1.2rem; opacity: 1; }

/* Success page */
.done { min-height: 100svh; display: grid; place-items: center; text-align: left; background: var(--sky); color: var(--kaolin); }
.done h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.done p { margin-top: 1rem; max-width: 32rem; font-size: 1.15rem; opacity: .88; }
.done .btn { margin-top: 2rem; }

/* Responsive */
@media (max-width: 960px) {
  .rto-terms { grid-template-columns: 1fr 1fr; }
  .rto-how { grid-template-columns: 1fr; }
  .design-grid { grid-template-columns: 1fr; }
  .more-list { grid-template-columns: 1fr 1fr; }
  .craft-grid { grid-template-columns: 1fr; }
  .craft-intro { position: static; }
}

@media (max-width: 1100px) {
  .nav a:not(.nav-call) { font-size: .92rem; }
  .hero-copy { grid-template-columns: 1fr; }
  .hero h1 { max-width: 20ch; }
}

@media (max-width: 1080px) {
  .menu-toggle {
    display: block;
    font: 600 .95rem var(--body);
    color: var(--kaolin); background: none;
    border: 2px solid rgba(238, 240, 236, .5); border-radius: 4px;
    padding: .5rem .9rem; cursor: pointer;
  }
  .topbar { flex-wrap: wrap; }
  .nav {
    display: none; width: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    border-top: 1px solid rgba(238, 240, 236, .2);
  }
  .nav.open { display: flex; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid rgba(238, 240, 236, .12); opacity: 1; font-size: 1rem; }
  .nav .nav-call { margin-top: 1rem; text-align: center; border-bottom: 2px solid var(--cedar); }
}

@media (max-width: 900px) {
  .model { grid-template-columns: 1fr; }
  .model-flip .model-art { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-copy { grid-template-columns: 1fr; }
  .scene { flex: none; height: 320px; min-height: 0; margin-top: 0; }
}

@media (max-width: 560px) {
  .more-list, .specs, .field-row, .rto-terms { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.15rem; }
  .actions .btn { flex: 1 1 auto; text-align: center; }
}
