/* ==========================================================================
   Radhouses — stylesheet
   No external dependencies: fonts, icons and imagery are all local or CSS.
   Keeping the page dependency-free is a deliberate Core Web Vitals decision.
   ========================================================================== */

:root {
  --timber:      #8A5A32;
  --timber-dark: #6B4526;
  --forest:      #1F3D2B;
  --forest-mid:  #2E5940;
  --lime:        #9CB86F;
  --lime-dark:   #7A9651;
  --paper:       #F7F4EE;
  --paper-warm:  #EFE9DE;
  --ink:         #23201B;
  --ink-soft:    #5A544A;
  --line:        #DCD4C6;
  --white:       #FFFFFF;
  --danger:      #A6412F;

  --bg:        var(--paper);
  --surface:   var(--white);
  --text:      var(--ink);
  --text-soft: var(--ink-soft);
  --border:    var(--line);

  --wrap: 1140px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(35, 32, 27, .06), 0 8px 24px rgba(35, 32, 27, .06);

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #16130F;
    --surface:   #1E1A15;
    --paper-warm:#241F19;
    --text:      #EDE7DC;
    --text-soft: #A79E90;
    --border:    #352E25;
    --forest:    #C7DCB4;
    --forest-mid:#A9C892;
    --timber:    #C9946A;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
  }
}
:root[data-theme="dark"] {
  --bg:        #16130F;
  --surface:   #1E1A15;
  --paper-warm:#241F19;
  --text:      #EDE7DC;
  --text-soft: #A79E90;
  --border:    #352E25;
  --forest:    #C7DCB4;
  --forest-mid:#A9C892;
  --timber:    #C9946A;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
}
:root[data-theme="light"] {
  --bg:        #F7F4EE;
  --surface:   #FFFFFF;
  --paper-warm:#EFE9DE;
  --text:      #23201B;
  --text-soft: #5A544A;
  --border:    #DCD4C6;
  --forest:    #1F3D2B;
  --forest-mid:#2E5940;
  --timber:    #8A5A32;
  --shadow: 0 1px 2px rgba(35, 32, 27, .06), 0 8px 24px rgba(35, 32, 27, .06);
}

/* ---------- base ---------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p  { margin: 0 0 1.1em; }
a  { color: var(--forest-mid); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--timber); }
img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
section.tight { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.alt { background: var(--paper-warm); }
.dark-panel { background: var(--forest); color: #F2EEE4; }
.dark-panel h2, .dark-panel h3 { color: #FFF; }
.dark-panel a { color: var(--lime); }
@media (prefers-color-scheme: dark) {
  .dark-panel { background: #101A13; color: #DCD5C7; }
}

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--timber); margin-bottom: .8rem;
}
.lede { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--text-soft); max-width: 62ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--forest); color: #fff; padding: .75rem 1.25rem;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand-name { font-weight: 800; font-size: 1.28rem; letter-spacing: .01em; }
.brand-sub {
  font-size: .62rem; letter-spacing: .17em; text-transform: uppercase;
  color: var(--text-soft); display: block; margin-top: -4px; font-weight: 600;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: var(--text-soft); text-decoration: none; font-size: .93rem; font-weight: 600; }
.nav a:hover { color: var(--timber); }
.nav-tools { display: flex; align-items: center; gap: .6rem; }

.lang { display: flex; gap: .3rem; font-size: .8rem; font-weight: 700; }
.lang a { color: var(--text-soft); padding: 2px 5px; border-radius: 3px; text-decoration: none; }
.lang a[aria-current="true"] { background: var(--forest); color: #fff; }

.theme-toggle {
  background: none; border: 1px solid var(--border); color: var(--text-soft);
  width: 34px; height: 34px; border-radius: var(--radius); cursor: pointer;
  display: grid; place-items: center; font-size: 15px; line-height: 1;
}
.theme-toggle:hover { border-color: var(--timber); color: var(--timber); }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: .9rem;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 1.25rem 20px 1.5rem;
  }
  .nav.open .nav-tools { margin-top: .4rem; }
  .nav-toggle {
    display: grid; place-items: center; margin-left: auto;
    width: 40px; height: 40px; background: none; cursor: pointer;
    border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--text); font-size: 18px;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: var(--radius);
  font-weight: 700; font-size: .97rem; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; transition: .15s ease;
}
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-mid); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary { color: #12180F; } .btn-primary:hover { color:#12180F; } }
.btn-outline { border-color: var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--timber); color: var(--timber); }
.btn-lime { background: var(--lime); color: #1B2411; }
.btn-lime:hover { background: var(--lime-dark); color: #1B2411; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.8rem; }

/* ---------- hero ---------- */

.hero { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: 0; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--timber); }

.price-flag {
  display: inline-flex; flex-direction: column; gap: 2px;
  border-left: 3px solid var(--lime); padding: .3rem 0 .3rem 1rem; margin: 1.4rem 0 0;
}
.price-flag .amount { font-size: 1.85rem; font-weight: 800; letter-spacing: -.02em; }
.price-flag .note { font-size: .86rem; color: var(--text-soft); font-weight: 600; }

/* Placeholder imagery — replace .ph blocks with real photography. */
.ph {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background:
    linear-gradient(150deg, rgba(255,255,255,.10), rgba(0,0,0,.16)),
    repeating-linear-gradient(96deg, var(--timber) 0 14px, var(--timber-dark) 14px 28px);
  box-shadow: var(--shadow);
  display: grid; place-items: center;
}
.ph::after {
  content: attr(data-label);
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: rgba(255,255,255,.85); text-align: center;
  padding: .5rem 1rem; background: rgba(0,0,0,.32); border-radius: 3px;
  max-width: 85%;
}
.ph-hero { aspect-ratio: 4 / 3; }
.ph-wide { aspect-ratio: 16 / 9; }
.ph-sq   { aspect-ratio: 1 / 1; }
/* Fixed hues: these must not follow the theme tokens, which invert in dark mode. */
.ph-forest {
  background:
    linear-gradient(160deg, rgba(255,255,255,.08), rgba(0,0,0,.2)),
    repeating-linear-gradient(96deg, #2E5940 0 14px, #1F3D2B 14px 28px);
}

/* Real photography, once it replaces the .ph placeholders.
   See web/images/README.md. Combine with .ph-hero / .ph-wide / .ph-sq to force
   a crop: <img class="ph-img ph-wide" ...>. */
.ph-img {
  width: 100%; height: auto; display: block; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.model .ph-img { border-radius: 0; aspect-ratio: 1 / 1; }

/* ---------- trust bar ---------- */

.trust {
  border-block: 1px solid var(--border); background: var(--surface);
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.trust .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; padding-block: 1.6rem;
}
@media (max-width: 780px) { .trust .wrap { grid-template-columns: repeat(2, 1fr); } }
.trust-item strong { display: block; font-size: 1.35rem; letter-spacing: -.02em; }
.trust-item span { font-size: .84rem; color: var(--text-soft); line-height: 1.4; display: block; }

/* ---------- comparison ---------- */

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
@media (max-width: 780px) { .compare { grid-template-columns: 1fr; } }

.compare-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; background: var(--surface);
}
.compare-card.them { opacity: .92; }
.compare-card.us { border-color: var(--lime); border-width: 2px; box-shadow: var(--shadow); }
.compare-card h3 { margin-bottom: .2em; }
.compare-card .tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-soft); display: block; margin-bottom: 1rem;
}
.compare-card.us .tag { color: var(--lime-dark); }
.ledger { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.ledger li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem 0; border-bottom: 1px dashed var(--border);
}
.ledger li:last-child { border-bottom: none; }
.ledger .amt { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.ledger .add { color: var(--danger); }
.ledger .inc { color: var(--lime-dark); font-weight: 700; }
.ledger-total {
  display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem;
  padding-top: 1rem; border-top: 2px solid var(--border);
  font-weight: 800; font-size: 1.12rem;
}

/* ---------- models ---------- */

.models { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.5rem; margin-top: 2.75rem; }
.model {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); display: flex; flex-direction: column; overflow: hidden;
}
.model.flag { border-color: var(--lime); border-width: 2px; }
.model .ph { border-radius: 0; }
.model-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.model h3 { margin-bottom: .15em; }
.model .meta { font-size: .84rem; color: var(--text-soft); margin-bottom: .9rem; font-weight: 600; }
.model p { font-size: .94rem; }
.model .price { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); }
.model .price b { font-size: 1.42rem; letter-spacing: -.02em; display: block; }
.model .price span { font-size: .82rem; color: var(--text-soft); }
.badge {
  position: absolute; top: .8rem; left: .8rem; z-index: 2;
  background: var(--lime); color: #1B2411; font-size: .68rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 3px;
}
.model-wrap { position: relative; }

/* ---------- included / excluded ---------- */

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 2.5rem; }
@media (max-width: 780px) { .two-col { grid-template-columns: 1fr; gap: 2rem; } }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { padding: .45rem 0 .45rem 1.9rem; position: relative; font-size: .96rem; }
.checklist li::before {
  position: absolute; left: 0; top: .45rem; font-weight: 800; font-size: 1rem;
}
.checklist.yes li::before { content: "✓"; color: var(--lime-dark); }
.checklist.no  li::before { content: "—"; color: var(--danger); }

/* ---------- legal / routes table ---------- */

.table-scroll { overflow-x: auto; margin-top: 2.25rem; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .93rem; }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th {
  font-size: .75rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-soft); border-bottom-width: 2px;
}
tbody tr:hover { background: var(--paper-warm); }
td strong { color: var(--text); }

.callout {
  border-left: 3px solid var(--timber); background: var(--surface);
  padding: 1.25rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 2rem; font-size: .96rem; box-shadow: var(--shadow);
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--timber); }

/* ---------- calculator ---------- */

.calc {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem;
  margin-top: 2.5rem; align-items: start;
}
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

.calc-inputs { display: grid; gap: 1.5rem; }
.field label { display: flex; justify-content: space-between; gap: 1rem; font-weight: 700; font-size: .92rem; margin-bottom: .5rem; }
.field label output { font-variant-numeric: tabular-nums; color: var(--lime); font-weight: 800; }
.dark-panel .field label { color: #F2EEE4; }

input[type="range"] {
  width: 100%; height: 4px; border-radius: 2px; appearance: none;
  background: rgba(255,255,255,.22); cursor: pointer; margin: 0;
}
.dark-panel input[type="range"] { background: rgba(255,255,255,.22); }
input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--lime); border: none; cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--lime); border: none; cursor: pointer;
}
input[type="range"]:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }

.calc-out {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 1.75rem;
}
.calc-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .95rem;
}
.calc-row:last-of-type { border-bottom: none; }
.calc-row b { font-variant-numeric: tabular-nums; }
.calc-headline {
  margin-top: 1.25rem; padding-top: 1.25rem; border-top: 2px solid rgba(255,255,255,.22);
}
.calc-headline .big { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; color: var(--lime); line-height: 1.1; }
.calc-headline .cap { font-size: .82rem; opacity: .8; }
.calc-note { font-size: .8rem; opacity: .72; margin-top: 1.25rem; }

/* ---------- faq ---------- */

.faq { margin-top: 2.5rem; max-width: 820px; }
details {
  border-bottom: 1px solid var(--border); padding: .35rem 0;
}
summary {
  cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 700; font-size: 1.02rem;
  list-style: none; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--timber); line-height: 1;
}
details[open] summary::after { content: "−"; }
summary:hover { color: var(--timber); }
details > div { padding: 0 2rem 1.2rem 0; color: var(--text-soft); font-size: .96rem; }
details > div p:last-child { margin-bottom: 0; }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2.5rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }

.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 700; font-size: .89rem; margin-bottom: .4rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: .75rem .9rem; font: inherit; font-size: .96rem;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--lime-dark);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 30%, transparent);
}

.contact-detail { list-style: none; margin: 1.5rem 0 0; padding: 0; font-size: .97rem; }
.contact-detail li { padding: .5rem 0; border-bottom: 1px solid var(--border); }
.contact-detail li:last-child { border-bottom: none; }
.contact-detail span { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); font-weight: 700; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--forest); color: #CFD9C6; padding: 3.5rem 0 2rem; font-size: .9rem;
}
@media (prefers-color-scheme: dark) { .site-footer { background: #101A13; } }
.site-footer a { color: #E4EBDA; text-decoration: none; }
.site-footer a:hover { color: var(--lime); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: .28rem 0; }
.footer-bottom {
  margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .82rem; opacity: .8;
}
.footer-brand svg { width: 34px; height: 34px; margin-bottom: .75rem; }

/* ---------- utilities ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
