/* ============================================================
   LAYOUT: Jessica Madani. A fresh layout on the starter kit's data engine
   (js/site.js + js/main.js); chrome and listings render from js/jm.js.
   Concept: "Highway 9". Felton, Ben Lomond, Brookdale and Boulder Creek sit
   in a line on one road, so her sales are shown as stops on a route diagram.
   Class names avoid .menu-toggle / .nav (main.js binds its own toggle to those).
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 400 16.5px/1.7 var(--body); color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -.005em; text-wrap: balance; }
h2 { font-size: clamp(34px, 4.2vw, 56px); }
h3 { font-size: clamp(24px, 2.2vw, 30px); }
p { margin: 0 0 1.1em; text-wrap: pretty; }
[hidden] { display: none !important; } /* carried over from the kit: elements with their own display ignore [hidden] otherwise */
.num { white-space: nowrap; }
a[href^="mailto:"], [data-email] { overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--burgundy); color: #fff; padding: 10px 16px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
@media (max-width: 520px) { .wrap { width: calc(100% - 36px); } }
section { padding-block: clamp(72px, 9vw, 128px); }
.lede { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.75; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }

/* Buttons: sentence case, quiet tracking */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 26px;
  font: 500 14.5px/1 var(--body); letter-spacing: .03em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--radius); transition: background .2s, color .2s, border-color .2s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-solid { background: var(--burgundy); color: #fff; }
.btn-solid:hover { background: var(--burgundy-hover); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.on-ink .btn-line { border-color: var(--on-ink); color: var(--on-ink); }
.on-ink .btn-line:hover { background: var(--on-ink); color: var(--ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--burgundy); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.link-arrow:hover { color: var(--burgundy-hover); }
.on-ink .link-arrow { color: var(--on-ink); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { text-decoration: none; display: grid; line-height: 1; }
.brand b { font: 400 25px/1 var(--display); letter-spacing: .005em; }
.brand small { font-size: 11.5px; letter-spacing: .06em; color: var(--muted); margin-top: 6px; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { font-size: 14px; font-weight: 500; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--burgundy); }
.site-nav .btn { min-height: 44px; padding: 0 20px; font-size: 13.5px; border-bottom: 1px solid var(--ink); }
.site-nav .btn:hover { border-bottom-color: var(--ink); }
.burger { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink); }
.burger svg { width: 26px; height: 26px; }
@media (max-width: 960px) {
  /* backdrop-filter makes the header the containing block for position:fixed children, which squeezed the
     full-screen menu into the header's 76px. Phones get a solid header instead. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .burger { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper); flex-direction: column; align-items: flex-start;
    gap: 0; padding: 20px 24px 40px; overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .2s, visibility 0s .2s;
  }
  .site-nav.open { visibility: visible; opacity: 1; transition: opacity .2s; }
  .site-nav a { font: 400 30px/1.2 var(--display); padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { color: var(--burgundy); border-bottom-color: var(--line); }
  .site-nav .btn { margin-top: 28px; font: 500 15px/1 var(--body); width: 100%; min-height: 54px; }
}

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 84px) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: clamp(40px, 7vw, 110px); align-items: end; }
.hero h1 { font-size: clamp(64px, 10.2vw, 148px); line-height: .9; letter-spacing: -.012em; margin-bottom: 30px; }
.hero h1 span { display: block; }
.hero-role { font-size: clamp(17px, 1.5vw, 20px); font-weight: 500; margin-bottom: 18px; }
.hero-role .sep { color: var(--line); margin-inline: .4em; }
.hero .lede { margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.portrait { margin: 0; }
.portrait-mat { background: #fff; padding: 14px; border: 1px solid var(--line); }
.portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.portrait figcaption span { white-space: nowrap; }
.portrait figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 12.5px; color: var(--muted); padding-top: 12px; letter-spacing: .02em; }
@media (max-width: 860px) {
  /* Name first, then a smaller portrait, then the story (brand-first on phones too) */
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero-grid > div:first-child { display: contents; }
  .hero h1 { order: 1; margin-bottom: 18px; }
  .hero-role { order: 2; }
  .hero-grid > .portrait { order: 3; width: min(300px, 78%); margin: 12px 0 30px; }
  .hero .lede { order: 4; }
  .hero-actions { order: 5; }
}

/* Highway 9 strip (hero foot): a horizontal route with the four valley towns */
.hwy { margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); padding-top: 22px; }
.hwy-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); margin-bottom: 26px; }
.hwy-head b { font-weight: 500; color: var(--ink); }
.hwy ol { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0 18px; position: relative; }
.hwy ol::before { /* the road */
  content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--ink);
  transform-origin: left; animation: road 1.6s cubic-bezier(.6, 0, .2, 1) .3s both;
}
@keyframes road { from { transform: scaleX(0); } }
.hwy li { position: relative; padding-top: 28px; }
.hwy li::before { /* the stop */
  content: ""; position: absolute; left: 0; top: 0; width: 13px; height: 13px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--ink); animation: stop .4s ease both; animation-delay: calc(.5s + var(--i, 0) * .32s);
}
.hwy li.has-sales::before { background: var(--burgundy); border-color: var(--burgundy); }
@keyframes stop { from { transform: scale(0); } }
.hwy li a, .hwy span.town { font: 400 clamp(20px, 2vw, 27px)/1.1 var(--display); text-decoration: none; display: block; }
.hwy li a:hover { color: var(--burgundy); }
.hwy small { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
@media (max-width: 900px) and (min-width: 641px) { .hwy small { font-size: 12px; } }
@media (max-width: 640px) {
  .hwy ol { grid-auto-flow: row; grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .hwy ol::before { display: none; }
  .hwy li { padding: 0 0 0 26px; }
  .hwy li::before { top: 7px; }
}

/* ---------- Figures (sourced numbers) ---------- */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); margin: 0; }
.figures div { padding: 30px 26px 28px 0; }
.figures div + div { padding-left: 26px; border-left: 1px solid var(--line); }
.figures dt { font: 400 clamp(36px, 3.6vw, 50px)/1 var(--display); margin-bottom: 12px; }
.figures dd { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; max-width: 26ch; }
@media (max-width: 860px) {
  .figures { grid-template-columns: 1fr 1fr; }
  .figures div:nth-child(3) { padding-left: 0; border-left: 0; }
  .figures div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) { .figures div { padding-right: 16px; } .figures div + div { padding-left: 16px; } .figures dt { font-size: 34px; } }
@media (max-width: 340px) {
  .figures { grid-template-columns: 1fr; }
  .figures div, .figures div + div { padding: 24px 0; border-left: 0; }
  .figures div + div { border-top: 1px solid var(--line); }
}

/* ---------- Section heads ---------- */
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.head p { margin: 0; color: var(--muted); max-width: 52ch; }
.head.solo { grid-template-columns: minmax(0, 760px); }
@media (max-width: 860px) { .head { grid-template-columns: 1fr; } }

/* ---------- Sales along the valley ---------- */
.valley { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.route { position: sticky; top: calc(var(--header-h) + 40px); }
.route p { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.route ol { list-style: none; margin: 0; padding: 0; position: relative; }
.route ol::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--ink); }
.route li { position: relative; padding: 0 0 34px 34px; }
.route li:last-child { padding-bottom: 0; }
.route li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--ink); transition: background .3s, border-color .3s, transform .3s;
}
.route a { font: 400 22px/1.15 var(--display); text-decoration: none; transition: color .3s; }
.route small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.route li.is-here::before { background: var(--burgundy); border-color: var(--burgundy); transform: scale(1.25); }
.route li.is-here a { color: var(--burgundy); }
.route li.no-sales a { color: var(--muted); }
.sales { display: grid; gap: clamp(48px, 6vw, 80px); }
.town-group h3 { display: flex; align-items: baseline; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.town-group h3 small { font: 400 13px/1 var(--body); color: var(--muted); }
.sale-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
.sale { margin: 0; }
.sale .shot { display: block; position: relative; overflow: hidden; background: var(--fog); aspect-ratio: 3 / 2; text-decoration: none; color: inherit; }
.row-shot { text-decoration: none; color: inherit; }
.sale .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.sale:hover .shot img { transform: scale(1.03); }
.sale .tag { position: absolute; left: 0; bottom: 0; background: var(--paper); font-size: 12.5px; font-weight: 500; padding: 8px 12px; letter-spacing: .02em; }
.sale .tag.sold { background: var(--ink); color: var(--on-ink); }
.sale .tag.live { background: var(--burgundy); color: #fff; }
.sale figcaption { padding-top: 16px; }
.sale .addr { font: 400 23px/1.2 var(--display); margin: 0 0 6px; }
.sale .price { font-size: 16px; font-weight: 600; letter-spacing: .01em; }
.sale .price small { font-weight: 400; color: var(--muted); font-size: 14px; margin-left: 6px; }
.sale .spec { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.sale .side { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.sale .price { margin: 0; }
/* Typeset card for homes whose photos belong to another brokerage: the address set like a plate */
.tile { display: grid; align-content: center; justify-items: center; gap: 10px; height: 100%; padding: 20px; text-align: center; background: var(--fog); box-shadow: inset 0 0 0 10px var(--fog), inset 0 0 0 11px var(--line); }
.tile small { font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.tile b { font: 400 clamp(22px, 2.3vw, 30px)/1.15 var(--display); max-width: 12ch; }

/* Off the road (e.g. Capitola): a dashed stop, and no road segment leading on from it */
.route li.off-road::before { border-style: dashed; }
.route li.off-road a { font-size: 19px; }
.row-more { list-style: none; padding: 16px 0 4px; }

/* Ledger (home page): one row per home */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.town-group .ledger { border-top: 0; }
.row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.row-shot { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--fog); }
.row-shot img { width: 100%; height: 100%; object-fit: cover; }
.row-shot .tile { box-shadow: inset 0 0 0 5px var(--fog), inset 0 0 0 6px var(--line); padding: 8px; }
.row-shot .tile small { display: none; }
.row-shot .tile b { font-size: 12.5px; }
.row-main { display: grid; gap: 4px; min-width: 0; }
.row-addr { font: 400 22px/1.2 var(--display); text-decoration: none; }
.row-addr:hover { color: var(--burgundy); }
.row-spec { font-size: 13.5px; color: var(--muted); }
.row-price { text-align: right; display: grid; gap: 4px; }
.row-price b { font-weight: 600; font-size: 16px; }
.row-price span { font-size: 13px; color: var(--muted); }
.row-price .is-live { color: var(--burgundy); font-weight: 500; }
@media (max-width: 560px) {
  .row { grid-template-columns: 96px minmax(0, 1fr); gap: 6px 16px; align-items: start; }
  .row-shot { grid-row: span 2; }
  .row-price { text-align: left; grid-column: 2; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
  .row-addr { font-size: 19px; }
}
.valley > * { min-width: 0; }
@media (max-width: 860px) {
  .valley { grid-template-columns: minmax(0, 1fr); }
  .route { position: sticky; top: var(--header-h); z-index: 5; background: var(--paper); margin-inline: -24px; padding: 14px 24px 12px; border-bottom: 1px solid var(--line); }
  .route p { display: none; }
  .route ol { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
  .route ol::-webkit-scrollbar { display: none; }
  .route ol::before { display: none; }
  /* the road is drawn per stop, so it runs the full scrolled width */
  .route li { padding: 22px 22px 0 0; flex: none; background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 6px / 100% 1px; }
  .route li:last-child { background-size: 13px 1px; }
  .route li.off-road { background: none; }
  .town-group { scroll-margin-top: calc(var(--header-h) + 96px); } /* clear the sticky strip on #town jumps */
  .route li::before { top: 0; }
  .route a { font-size: 18px; white-space: nowrap; }
  .route small { display: none; }
}
@media (max-width: 640px) { .sale-list { grid-template-columns: 1fr; } }

.alt { background: var(--fog); }
.sources { margin-top: 30px; font-size: 13px; color: var(--muted); max-width: 80ch; }

/* ---------- Full-width photo band ---------- */
.band { margin: 0; position: relative; }
.band img { width: 100%; height: clamp(320px, 52vw, 680px); object-fit: cover; }
.band figcaption { font-size: 12.5px; color: var(--muted); padding-top: 12px; }

/* ---------- Ways to work together ---------- */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.way { padding: 36px 36px 8px 0; display: flex; flex-direction: column; }
.way + .way { padding-left: 36px; border-left: 1px solid var(--line); }
.way h3 { margin-bottom: 16px; }
.way p { color: var(--muted); }
.way .link-arrow { margin-top: auto; align-self: flex-start; }
@media (max-width: 860px) {
  .ways { grid-template-columns: 1fr; }
  .way, .way + .way { padding: 30px 0; border-left: 0; }
  .way + .way { border-top: 1px solid var(--line); }
}

/* ---------- Dark band ---------- */
.on-ink { background: var(--ink); color: var(--on-ink); }
.on-ink .muted, .on-ink .lede, .on-ink .head p { color: var(--on-ink-muted); }
.roots { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.roots figure { margin: 0; }
.roots img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.roots figcaption { font-size: 12.5px; color: var(--on-ink-muted); padding-top: 12px; }
.roots h2 { margin-bottom: 26px; }
.roots dl { display: grid; grid-template-columns: auto 1fr; gap: 14px 22px; margin: 34px 0 0; padding-top: 28px; border-top: 1px solid var(--line-on-ink); font-size: 15px; }
.roots dt { font: 400 22px/1.2 var(--display); }
.roots dd { margin: 0; color: var(--on-ink-muted); align-self: center; }
@media (max-width: 860px) { .roots { grid-template-columns: 1fr; } .roots img { aspect-ratio: 3 / 2; } }
@media (max-width: 560px) { .roots dl { grid-template-columns: 1fr; gap: 4px; } .roots dd + dt { margin-top: 14px; } }

/* ---------- Words from clients (published by Room Real Estate) ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px 56px; }
.quote { margin: 0; }
.quote blockquote {
  margin: 0; border-left: 1px solid var(--burgundy); padding-left: 24px;
  font: 400 clamp(20px, 1.7vw, 23px)/1.45 var(--display); text-indent: -.42em;
}
.quote figcaption { padding: 16px 0 0 25px; font-size: 13.5px; color: var(--muted); }
.quote figcaption b { color: var(--ink); font-weight: 500; }

/* Score cards (rendered by main.js from window.REVIEWS) */
.scores { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; margin-top: 56px; }
.score { display: grid; grid-template-columns: auto auto; align-items: center; gap: 4px 14px; padding: 18px 22px; border: 1px solid var(--line); text-decoration: none; min-width: 230px; transition: border-color .2s; }
a.score:hover { border-color: var(--ink); }
.score-num { font: 400 40px/1 var(--display); grid-row: span 2; }
.stars { --r: 5; font-size: 15px; letter-spacing: 2px; background: linear-gradient(90deg, var(--burgundy) calc(var(--r) / 5 * 100%), var(--line) 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.score-src { font-size: 13px; color: var(--muted); }
.score.is-ph { border-style: dashed; color: var(--muted); }
.scores-note { flex-basis: 100%; font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }
.rating-line { display: inline-flex; align-items: baseline; gap: 12px; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.rating-line b { font: 400 30px/1 var(--display); }
.rating-line .rating-text { font-size: 14.5px; color: var(--muted); }
.rating-line:hover { border-bottom-color: var(--ink); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.direct { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 22px; }
.direct li { display: grid; gap: 4px; }
.direct small { font-size: 12.5px; color: var(--muted); }
.direct a, .direct span { font: 400 26px/1.2 var(--display); text-decoration: none; }
.direct a:hover { color: var(--burgundy); }
.office-photo { margin: 40px 0 0; max-width: 480px; }
.office-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.office-photo figcaption { font-size: 12.5px; color: var(--muted); padding-top: 10px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 13.5px; font-weight: 500; }
.hint { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 0;
  padding: 13px 14px; width: 100%; min-height: 50px; -webkit-appearance: none; appearance: none;
}
select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23211F1F' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
textarea { min-height: 130px; resize: vertical; }
.choices { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.choices legend { margin-bottom: 10px; padding: 0; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); font-size: 14.5px; cursor: pointer; background: #fff; transition: border-color .2s, background .2s, color .2s; }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.choice input:focus-visible + span { outline: 2px solid var(--burgundy); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.form-foot small { font-size: 13px; color: var(--muted); max-width: 40ch; }
.form-status { margin-top: 18px; padding: 16px 18px; background: var(--fog); font-size: 14.5px; }
.form-status button { font: inherit; background: none; border: 0; padding: 0; color: var(--burgundy); text-decoration: underline; cursor: pointer; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }

/* ---------- Inner pages ---------- */
.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(46px, 6.6vw, 92px); line-height: .98; margin-bottom: 24px; max-width: 16ch; }
.page-head .lede { margin: 0; }
.prose { max-width: 680px; }
.prose p { font-size: 17.5px; }
.prose h2 { font-size: clamp(30px, 3.2vw, 42px); margin: 1.6em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(40px, 7vw, 110px); align-items: start; }
.aside-card { position: sticky; top: calc(var(--header-h) + 32px); border-top: 1px solid var(--ink); padding-top: 22px; }
.aside-card h2 { font-size: 26px; margin-bottom: 14px; }
.aside-card p { font-size: 15px; color: var(--muted); }
.facts-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.facts-list li { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.facts-list b { font-weight: 500; }
.facts-list span { color: var(--muted); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .aside-card { position: static; } }
@media (max-width: 520px) { .facts-list li { grid-template-columns: 1fr; gap: 4px; } }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 64px 1fr; gap: 8px 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font: 400 26px/1.1 var(--display); color: var(--burgundy); }
.steps h3 { font-size: 24px; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.cta-band h2 { max-width: 20ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink); padding: 80px 0 40px; font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-name { font: 400 32px/1.1 var(--display); margin-bottom: 10px; }
.site-footer p, .site-footer .muted { color: var(--on-ink-muted); margin-bottom: .6em; }
.site-footer h2 { font: 500 13px/1.4 var(--body); color: var(--on-ink-muted); margin-bottom: 14px; letter-spacing: .02em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.room-logo { width: 150px; height: auto; margin-top: 22px; }
.foot-legal { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-on-ink); display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; font-size: 12.5px; color: var(--on-ink-muted); }
.foot-legal p { margin: 0; max-width: 90ch; }
.eho { display: inline-flex; align-items: center; gap: 8px; }
.eho svg { width: 20px; height: 20px; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* Mobile call bar */
.call-bar { display: none; }
@media (max-width: 760px) {
  .call-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--ink); padding-bottom: env(safe-area-inset-bottom); }
  .call-bar a { color: var(--on-ink); text-align: center; padding: 16px 0; font-size: 15px; font-weight: 500; text-decoration: none; }
  .call-bar a + a { background: var(--burgundy); color: #fff; }
  body { padding-bottom: 54px; }
}

/* Reveal on scroll (main.js adds .in) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
/* Hero entrance (CSS only, replays on every load) */
.rise { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .rise, .hwy ol::before, .hwy li::before { opacity: 1; transform: none; transition: none; animation: none; }
}
