/* Cody Portwood · site and swipe app. Shared tokens and components.
   v2 (2026-10-27), from his design form: navy with warm sand, friendly rounded
   type, calm and coastal, clean like Apple. The Haven logo is black in light mode, white in dark mode. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-offset); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: var(--font-size-body)/var(--line-height-body) var(--font-body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; line-height: var(--line-height-heading); margin: 0 0 .45em; letter-spacing: 0; }
h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { .wrap { padding: 0 var(--gutter-wide); } }
.eyebrow { font-size: var(--font-size-eyebrow); color: var(--muted); font-weight: 600; margin: 0 0 .5em; }
.muted { color: var(--muted); }
.small { font-size: var(--font-size-small); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: var(--control-height); padding: 0 24px; border-radius: var(--radius-button); border: 1.5px solid var(--ink);
  background: transparent; color: var(--ink); font: 600 .95rem var(--font-body); letter-spacing: var(--tracking-label);
  text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, transform var(--dur-fast) ease;
}
/* L5B (Rik 2026-11-13): every button is an outline; ghost is the quieter, second one */
.btn.ghost { border-color: var(--line-strong); }
.btn.block { width: 100%; }
.btn:focus-visible, .chip:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.chip {
  display: inline-flex; align-items: center; min-height: var(--control-height-sm); padding: 0 16px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-strong); background: var(--panel); color: var(--ink);
  font: 600 .95rem var(--font-body); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--sea); border-color: var(--sea); color: var(--sea-ink); }
.tag { display: inline-block; padding: 3px 11px; border-radius: var(--radius-pill); background: var(--panel-2); font-size: var(--font-size-tag); color: var(--ink); }
.tag.love { background: color-mix(in srgb, var(--love) 18%, transparent); }
.tag.pass { background: color-mix(in srgb, var(--pass) 16%, transparent); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Site ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); } /* P1A: solid */
.top > .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.lockup { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); min-width: 0; }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; letter-spacing: .01em; white-space: nowrap; }
.lockup .cp-mark { height: 38px; width: auto; flex: none; margin-right: -4px; }
.top .wrap > nav { display: flex; gap: 22px; align-items: center; }
.top .wrap > nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.top .wrap > nav a:not(.btn):hover { text-decoration: underline; }
.top .wrap > nav .btn { min-height: 42px; padding: 0 18px; white-space: nowrap; font-size: .92rem; }
/* L7C: light or dark switch */
.theme-btn { width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; flex: none; }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.theme-btn .i-sun, :root[data-theme="dark"] .theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
.theme-btn:hover { border-color: var(--ink); }
@media (max-width: 900px) { .top .wrap > nav a:not(.btn) { display: none; } }
/* Phone menu: below 900px the section links move behind a round button next to Text Cody */
.menu-btn { display: none; width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; place-items: center; }
.menu-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-btn line { transform-origin: 10px 10px; transition: transform .2s ease; }
.menu-btn[aria-expanded="true"] .l1 { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .l2 { transform: translateY(-3px) rotate(-45deg); }
.phone-menu { border-top: 1px solid var(--line); }
.phone-menu[hidden] { display: none; }
.phone-menu .wrap { padding-top: 6px; padding-bottom: 10px; }
.phone-menu a { display: block; padding: 13px 0; font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.phone-menu a:last-child { border-bottom: 0; }
@media (max-width: 900px) { .menu-btn { display: grid; } .top .wrap > nav { gap: 10px; } }
@media (min-width: 901px) { .phone-menu { display: none; } }
@media (prefers-reduced-motion: reduce) { .menu-btn line { transition: none; } }
@media (max-width: 460px) { .lockup .cp-mark { height: 30px; } .lockup .rule { display: none; } .lockup img { height: 26px; } .wordmark { font-size: 1.05rem; } .lockup { gap: 8px; } .top .wrap > nav { gap: 6px; } .top .wrap > nav .btn { padding: 0 12px; min-height: 38px; } .theme-btn, .menu-btn { width: 38px; height: 38px; } .top > .wrap { gap: 8px; } }
/* Below 420px the bar has no room for the Haven logo next to 2 buttons; it stays in the footer */
@media (max-width: 420px) { .lockup img { display: none; } }
/* Below 380px the CP mark stands alone so the 3 header buttons fit (the name is in the hero and footer) */
@media (max-width: 379px) { .wordmark { display: none; } }

.hero { position: relative; min-height: min(86vh, 780px); display: flex; align-items: center; text-align: center; color: #fff; background: var(--navy) url(img/places/hero-slo-sunset.jpg) center 55% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--scrim) 30%, transparent) 0%, color-mix(in srgb, var(--scrim) 38%, transparent) 45%, color-mix(in srgb, var(--scrim) 62%, transparent) 100%); } /* P2B: an even veil for centered text */
.hero .wrap { position: relative; width: 100%; padding-top: 120px; padding-bottom: clamp(40px, 8vh, 80px); }
.hero h1 { font-size: var(--font-size-hero); line-height: .95; letter-spacing: var(--tracking-hero); margin: 0 auto .25em; max-width: 12ch; text-wrap: balance; }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 36em; margin: 0 auto 28px; color: rgba(255,255,255,.92); }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero .btn { color: #fff; border-color: rgba(255,255,255,.85); }
.hero .btn.ghost { border-color: rgba(255,255,255,.55); }
.hero .credit { position: absolute; right: 16px; bottom: 10px; font-size: .72rem; color: rgba(255,255,255,.7); margin: 0; z-index: 2; }
/* Hero reel (js/hero.js): still photos with a slow pan and zoom */
.hero { overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media .shot { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; will-change: transform, opacity; }
.hero::before { z-index: 1; }
.hero .wrap { z-index: 2; }
.hero-pause { position: absolute; right: 16px; bottom: 34px; z-index: 2; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); background: color-mix(in srgb, var(--scrim) 35%, transparent); color: #fff; cursor: pointer; padding: 0; }
.hero-pause[hidden] { display: none; }
.hero-pause:hover { background: color-mix(in srgb, var(--scrim) 60%, transparent); }
.hero-pause:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hero-pause svg { width: 14px; height: 14px; fill: currentColor; }
.hero-pause .i-play, .hero-pause.is-paused .i-pause { display: none; }
.hero-pause.is-paused .i-play { display: block; }
@media (max-width: 600px) { .hero-pause { top: 14px; bottom: auto; } }
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lead, .hero .ctas { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero .lead { animation-delay: .12s; } .hero .ctas { animation-delay: .22s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

section.block { padding: var(--space-section) 0; }
section.block.tint { background: var(--panel-2); }
.section-head { max-width: 40em; margin-bottom: 32px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* Sales numbers under the hero */
.stats { padding: clamp(32px, 5vw, 48px) 0; background: var(--navy-deep); color: #fff; }
/* dark mode: the page is already deep navy, so the band steps up a shade */
:root[data-theme="dark"] .stats { background: var(--navy); }
.stat-row { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; }
.stat { display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; padding: 6px 12px; }
.stat + .stat { border-left: 1px solid rgba(232, 217, 191, .28); }
.stat dd { margin: 0; font: 600 clamp(2.2rem, 5.5vw, 3.6rem)/1 var(--font-display); color: #fff; }
.stat dt { color: var(--sand); font-size: clamp(.82rem, 1.6vw, .98rem); letter-spacing: var(--tracking-label); }
@media (max-width: 420px) { .stat { padding: 4px 6px; } .stat dt { font-size: .76rem; } }

.sold-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.arrow { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer; background: transparent; color: var(--ink); border: 1px solid var(--line-strong); transition: background .2s, color .2s, opacity .2s; }
.arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.arrow:hover:not(:disabled) { background: var(--sea); color: var(--sea-ink); border-color: var(--sea); }
.arrow:disabled { opacity: .35; cursor: default; }
.sold-card { min-width: 0; }
.sold-card .photo { position: relative; border-radius: var(--radius-photo); overflow: hidden; aspect-ratio: 4 / 3; background: var(--panel-2); }
.sold-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.sold-card:hover .photo img { transform: scale(1.03); }
.sold-card .status { position: absolute; left: 14px; top: 14px; margin: 0; }
.sold-card h3 { font-size: 1.25rem; margin: 16px 0 2px; }
.sold-card .where { color: var(--muted); margin: 0 0 6px; font-size: .95rem; }
.sold-card .price { font: 600 1.6rem/1.2 var(--font-display); margin: 0 0 2px; }
.sold-card .facts { color: var(--muted); margin: 0; font-size: .92rem; }

/* Recent listings: an endless loop from right to left (Rik, 2026-11-14; js/home.js).
   The cards are drawn twice; the row moves half its width, then starts again. */
.loop-pause { width: 44px; height: 44px; flex: none; margin-bottom: 32px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; }
.loop-pause svg { width: 13px; height: 13px; fill: currentColor; }
.loop-pause .i-play, .loop-pause.is-paused .i-pause { display: none; }
.loop-pause.is-paused .i-play { display: block; }
.marquee { overflow: hidden; padding: 0 0 6px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.sold-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; width: max-content; animation: soldLoop var(--loop-time, 60s) linear infinite; }
.sold-track .sold-card { width: clamp(250px, 27vw, 340px); flex: none; }
@keyframes soldLoop { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 12px)); } }
.marquee:hover .sold-track, .marquee:focus-within .sold-track, .marquee.paused .sold-track, .marquee.offscreen .sold-track { animation-play-state: paused; }
.marquee.still { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; padding: 0 var(--gutter) 6px; }
.marquee.still .sold-track { animation: none; }
.marquee.still .sold-card { scroll-snap-align: start; }
@media (max-width: 600px) { .sold-track { gap: 16px; } .sold-track .sold-card { width: 72vw; } @keyframes soldLoop { to { transform: translateX(calc(-50% - 8px)); } } }

/* For sale now */
/* P9B (Rik 2026-11-13): a wide row, words on one side and the photo on the other, like Montecito */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.feature h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 400; margin: 0 0 4px; }
.feature .offered { font: italic 500 clamp(1.4rem, 2.4vw, 1.9rem)/1.2 var(--font-display); margin: 6px 0 10px; }
.feature .photo { border-radius: var(--radius-photo); overflow: hidden; aspect-ratio: 3 / 2; background: var(--panel-2); }
.feature .photo img { width: 100%; height: 100%; object-fit: cover; }
.status { display: inline-block; font-weight: 700; font-size: .9rem; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--sand); color: var(--navy); margin-bottom: 14px; }
.feature .facts { color: var(--muted); margin-bottom: 14px; }
.feature .links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.browse { margin-top: clamp(32px, 5vw, 56px); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 24px 0 0; border-top: 1px solid var(--line); }
.browse p { margin: 0; font-size: 1.1rem; max-width: 34em; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } .feature .photo { order: -1; } }

/* Sales map */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filters[hidden], .more-wrap[hidden], .more-wrap .btn[hidden], .map-tip[hidden], .map-card[hidden] { display: none; }
.map-card { position: absolute; z-index: 4; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: start; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 16px; padding: 12px; box-shadow: 0 10px 30px rgb(0 0 0 / .22); font-size: .92rem; line-height: 1.4; }
.map-card:focus { outline: none; }
.map-card.top { bottom: auto; top: 12px; }
.map-card .thumb { aspect-ratio: 3 / 2; border-radius: var(--radius-photo); overflow: hidden; background: var(--panel-2); display: grid; place-items: center; font-size: .8rem; }
.map-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.map-card h3 { font-size: 1.05rem; margin: 0 28px 2px 0; }
.map-card p { margin: 0 0 4px; color: var(--muted); }
.map-card .price { color: var(--ink); font-weight: 700; }
.map-card .who { color: var(--ink); font-weight: 600; }
.map-card .links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.map-card .links .btn { min-height: var(--control-height-sm); padding: 0 14px; font-size: .9rem; }
.map-card .x { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.map-card .x:hover { background: var(--panel-2); }
@media (max-width: 480px) { .map-card { grid-template-columns: 88px 1fr; gap: 10px; left: 8px; right: 8px; bottom: 8px; padding: 10px; font-size: .86rem; } .map-card.top { top: 8px; } .map-card .note { display: none; } .map-card p { margin-bottom: 2px; } }
.mapbox { position: relative; }
.map-tip { position: absolute; z-index: 3; width: 210px; transform: translate(-50%, calc(-100% - 14px)); background: var(--panel); border: 1px solid var(--line-strong); border-radius: 14px; padding: 8px; box-shadow: 0 8px 24px rgb(0 0 0 / .18); pointer-events: none; font-size: .82rem; line-height: 1.35; }
.map-tip.below { transform: translate(-50%, 14px); }
.map-tip img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-photo); margin-bottom: 6px; }
.map-tip b { display: block; font-size: .9rem; }
.map-tip span { display: block; color: var(--muted); }
/* Show more: the project's one pattern for long lists */
.more-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 18px; }
.more-wrap .btn { min-width: min(100%, 260px); }
.more-count { margin: 0; color: var(--muted); font-size: .9rem; }
.mapbox svg { width: 100%; height: auto; display: block; border-radius: var(--radius-photo); border: 1px solid var(--line); }
.pin { cursor: pointer; }
.pin:focus { outline: none; }
.pin:focus-visible .ring { stroke: var(--sun); stroke-width: 4; }

/* Swipe band */


/* About */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.about .portrait { border-radius: var(--radius-portrait); overflow: hidden; aspect-ratio: 4 / 5; background: var(--panel-2); max-width: 420px; }
.about .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.about .bio p { font-size: 1.08rem; max-width: 36em; }
.about .id { color: var(--muted); font-size: .92rem; }
.about .about-cta { margin-top: 18px; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .about .portrait { max-width: 300px; } }

/* Home value */
.value { background: var(--navy-deep); color: #eef0f3; }
.value .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.value h2 { color: #fff; }
.value p { color: #c5cddb; font-size: 1.08rem; }
.vform { display: flex; flex-direction: column; gap: 14px; }
.vform label { font-weight: 700; font-size: .95rem; display: block; margin-bottom: 6px; color: #fff; }
.vform input { width: 100%; min-height: var(--input-height); border-radius: var(--radius-input); border: 1.5px solid var(--on-navy-line); background: var(--on-navy-field); color: #fff; padding: 0 16px; font: 1rem var(--font-body); }
.vform input::placeholder { color: #8d99ad; }
.vform .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vform .send { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.vform .btn { color: var(--sand); border-color: var(--sand); }
.vform .btn.ghost { color: #fff; border-color: #5a6d8f; }
.vform .note { font-size: .88rem; color: #a7b1c2; margin: 0; }
.vform .err { color: #f0a59c; min-height: 1.3em; margin: 0; font-size: .92rem; }
@media (max-width: 820px) { .value .wrap { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .vform .row { grid-template-columns: 1fr; } }
.vform .opt { font-weight: 400; opacity: .75; }
.vform input[aria-invalid="true"] { border-color: var(--pass); }

/* Contact */


/* Footer: simple and centered (Ashley, 2026-11-10) */
footer.site { background: var(--navy-deep); color: #c5ccd8; padding: clamp(56px, 8vw, 80px) 0 40px; text-align: center; }
footer.site .wrap { display: flex; flex-direction: column; align-items: center; gap: 26px; }
footer.site a { color: #fff; text-decoration: none; }
footer.site a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-brand { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.foot-name { display: inline-flex; align-items: center; gap: 10px; font: 600 1.9rem/1 var(--font-display); letter-spacing: .01em; }
.foot-name:hover { text-decoration: none !important; }
.foot-mark svg { height: 40px; width: auto; display: block; color: var(--sand); }
footer.site img.haven { height: 46px; width: auto; opacity: .92; }
.foot-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.foot-contact a { transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; display: inline-flex; align-items: center; gap: .35em; min-height: 44px; padding: 0 22px; border-radius: var(--radius-button); border: 1px solid rgba(255,255,255,.35); font-weight: 700; font-size: .95rem; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 26px; font-size: .95rem; }
.foot-links a { padding: 6px 0; color: #e3e8f0; }
.foot-social { display: flex; gap: 12px; }
.foot-social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); color: #e3e8f0; }
.foot-social svg { width: 20px; height: 20px; }
.foot-office { margin: 0; font-size: .9rem; line-height: 1.6; max-width: 48em; }
.foot-office .nw, footer.site .eho .nw { white-space: nowrap; }
.foot-legal { width: 100%; border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; margin-top: 6px; font-size: .78rem; line-height: 1.55; color: #98a3b5; }
.foot-legal p { margin: 0 auto 8px; max-width: 46em; }
footer.site .eho { display: flex; align-items: center; justify-content: center; gap: 10px; color: #c5ccd8; margin-bottom: 12px; }
footer.site .eho { gap: 18px; }
footer.site .eho .legal-mark { height: 40px; width: auto; flex: none; opacity: .92; } /* Equal Housing left, REALTOR right, the same height (Rik, 2026-11-14) */
@media (max-width: 480px) { footer.site .eho { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 12px 28px; } footer.site .eho #footLine { grid-column: 1 / -1; grid-row: 2; } .foot-name { font-size: 1.6rem; } .foot-contact { flex-direction: column; width: 100%; } .foot-contact a { justify-content: center; width: 100%; } }


/* Sections fade in as they come into view (P10A, Rik 2026-11-13). js/ui.js adds .reveal
   only when it can watch the page, and shows every section at once if it cannot. */
@media (prefers-reduced-motion: no-preference) {
  .reveal main > section:not(.hero):not(.in) { opacity: 0; }
  .reveal main > section:not(.hero) { transition: opacity .9s var(--ease-out); }
}

/* ---------- Swipe app ---------- */
body.app-body { min-height: 100dvh; display: flex; flex-direction: column; }
.app-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); }
.app-top .brand { font-size: 1.1rem; }
.app-top .count { font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress { height: 4px; background: var(--line); margin: 0 16px; border-radius: 4px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--sea); transition: width .25s ease; }
main.app { flex: 1; display: flex; flex-direction: column; width: 100%; max-width: 480px; margin: 0 auto; padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.screen { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.screen.center { justify-content: center; }
.screen h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
/* The app moves focus to each screen's heading (tabindex -1) for screen readers; no ring on a heading nobody tabbed to. */
.screen h1[tabindex="-1"]:focus, .screen h2[tabindex="-1"]:focus { outline: none; }

.deck { position: relative; flex: 1; min-height: 380px; max-height: 620px; }
.swcard {
  position: absolute; inset: 0; border-radius: 22px; background: var(--panel-2) center / cover no-repeat;
  box-shadow: var(--shadow); touch-action: none; user-select: none; -webkit-user-select: none; overflow: hidden;
  will-change: transform; cursor: grab;
}
.swcard.behind { transform: scale(.95) translateY(12px); filter: brightness(.94); pointer-events: none; }
.swcard .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.65)); }
.swcard .cap { position: absolute; left: 18px; right: 18px; bottom: 18px; color: #fff; }
.swcard .cap b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.65rem; line-height: 1.15; margin-bottom: 8px; }
.swcard .cap .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.swcard .cap .tags span { background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35); padding: 3px 10px; border-radius: var(--radius-pill); font-size: .8rem; backdrop-filter: blur(4px); }
.stamp { position: absolute; top: 22px; padding: 6px 14px; border: 3px solid; border-radius: 10px; font: 800 1.4rem var(--font-body); letter-spacing: .08em; opacity: 0; background: rgba(255,255,255,.85); }
.stamp.love { left: 18px; color: var(--love); border-color: var(--love); transform: rotate(-12deg); }
.stamp.pass { right: 18px; color: var(--pass); border-color: var(--pass); transform: rotate(12deg); }

.controls { display: flex; justify-content: center; align-items: center; gap: 22px; padding: 6px 0 2px; }
.round {
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--panel);
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); color: var(--ink);
}
.round svg { width: 28px; height: 28px; }
.round.pass { color: var(--pass); }
.round.love { color: var(--love); }
.round.undo { width: 48px; height: 48px; }
.round.undo svg { width: 20px; height: 20px; }
.round:disabled { opacity: .35; cursor: default; }
.hint { text-align: center; font-size: .82rem; color: var(--muted); margin: 0; }

.q { display: flex; flex-direction: column; gap: 10px; }
.q .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input { min-height: 48px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); padding: 0 14px; font: 1rem var(--font-body); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--sea); flex: none; }
.err { color: var(--pass); font-size: .88rem; min-height: 1.2em; margin: 0; }

.taste { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar { display: grid; grid-template-columns: 9.5em 1fr 2.6em; align-items: center; gap: 10px; font-size: .88rem; }
.bar .track { height: 8px; background: var(--line); border-radius: 8px; position: relative; overflow: hidden; }
.bar .track i { position: absolute; top: 0; bottom: 0; border-radius: 8px; }
.bar .track i.pos { left: 50%; background: var(--love); }
.bar .track i.neg { right: 50%; background: var(--pass); }
.bar .track::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--line-strong); }
.bar .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }

.matches { display: flex; flex-direction: column; gap: 10px; }
.match { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; }
.match .fit { grid-row: span 2; align-self: center; font: 700 1.25rem var(--font-body); color: var(--sea); font-variant-numeric: tabular-nums; }
.match .sub { font-size: .85rem; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--radius-pill); font-size: .9rem; opacity: 0; transition: all .2s ease; pointer-events: none; z-index: 50; }
.toast.on { opacity: 1; transform: translateX(-50%); }

/* Button hover (L5B, Rik 2026-11-13): an outline fills in, with a small lift.
   Ashley's rules stay: hero buttons fill navy with a sand edge; the footer fills sand.
   Hover only on devices that can hover, so a tap on a phone does not stick.
   The fill colours are tokens: --btn-hover-bg and --btn-hover-ink in css/tokens.css. */
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px color-mix(in srgb, var(--scrim) 18%, transparent); background: var(--btn-hover-bg); color: var(--btn-hover-ink); border-color: var(--btn-hover-bg); }
  .hero .btn:hover { background: var(--navy); color: #fff; border-color: var(--sand); }
  .vform .btn:hover { background: var(--sand); color: var(--navy); border-color: var(--sand); }
  .vform .btn.ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
  .foot-contact a:hover, .foot-social a:hover { background: var(--sand); color: var(--navy); border-color: var(--sand); text-decoration: none; transform: translateY(-2px); }
}
.btn:focus-visible { background: var(--btn-hover-bg); color: var(--btn-hover-ink); border-color: var(--btn-hover-bg); }
.hero .btn:focus-visible { background: var(--navy); color: #fff; }
.vform .btn:focus-visible { background: var(--sand); color: var(--navy); }
.vform .btn.ghost:focus-visible { background: #fff; color: var(--navy); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .btn:hover, .btn:active, .foot-contact a:hover, .foot-social a:hover { transform: none !important; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }


/* For sale now: click through the listing's photos (Rik, 2026-11-14) */
.feature .gallery { position: relative; border-radius: var(--radius-photo); overflow: hidden; background: var(--panel-2); }
.g-track { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 3 / 2; }
.g-track::-webkit-scrollbar { display: none; }
.g-track:focus-visible { outline: 3px solid var(--sun); outline-offset: -3px; }
.g-slide { flex: 0 0 100%; scroll-snap-align: start; }
.g-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 0; border: 0; cursor: pointer; background: color-mix(in srgb, var(--scrim) 55%, transparent); color: #fff; }
.g-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.g-prev { left: 12px; } .g-next { right: 12px; }
.g-btn:hover { background: var(--navy); }
.g-count { position: absolute; right: 12px; bottom: 12px; margin: 0; padding: 3px 10px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--scrim) 60%, transparent); color: #fff; font-size: .82rem; font-weight: 600; }

/* Sales: a row of homes above the map (Rik, 2026-11-14) */
.strip-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.strip-head p { margin: 0; }
.strip-nav { display: flex; gap: 10px; flex: none; }
.sales-track { list-style: none; margin: 0 0 28px; padding: 2px 2px 8px; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 22vw, 250px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sales-track::-webkit-scrollbar { display: none; }
.sale { list-style: none; scroll-snap-align: start; min-width: 0; }
.sale-card { height: 100%; padding: 8px 8px 12px; border-radius: 14px; border: 1.5px solid transparent; cursor: pointer; }
.sale-card:hover { background: var(--panel-2); }
.sale-card[aria-pressed="true"] { background: var(--panel); border-color: var(--line-strong); }
.sale-card:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.sale .thumb { aspect-ratio: 3 / 2; border-radius: var(--radius-photo); overflow: hidden; background: var(--panel-2); display: grid; place-items: center; color: var(--muted); font-size: .8rem; margin-bottom: 10px; }
.sale .thumb img { width: 100%; height: 100%; object-fit: cover; }
.sale h3 { font-size: 1.05rem; margin: 0 0 2px; }
.sale p { margin: 0; font-size: .88rem; color: var(--muted); }
.sale .price { color: var(--ink); font: 600 1.15rem/1.3 var(--font-display); }
.sale .who { color: var(--ink); font-weight: 600; }
#sales .mapbox { max-width: 720px; margin: 0 auto; }
@media (max-width: 600px) { .sales-track { grid-auto-columns: 62%; gap: 10px; } .strip-nav { display: none; } }

/* About: a heading at the top, then the photo and the words fade in (Rik, 2026-11-14) */
.about-head { margin-bottom: clamp(24px, 4vw, 40px); }
@media (prefers-reduced-motion: no-preference) {
  .rising .rise { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out) var(--rise-delay, 0s), transform .9s var(--ease-out) var(--rise-delay, 0s); }
  .rising .rise-left { transform: translateX(-28px) scale(.98); }
  .rising .rise.risen { opacity: 1; transform: none; }
}

/* Get in touch: only the icons of the ways to reach him (Rik, 2026-11-14) */
.contact-block { text-align: center; }
.contact-block p { margin: 0 0 22px; }
.contact-icons { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.ci { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); border: 1px solid var(--line-strong); transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.ci svg { width: 26px; height: 26px; }
@media (hover: hover) { .ci:hover { background: var(--btn-hover-bg); color: var(--btn-hover-ink); border-color: var(--btn-hover-bg); transform: translateY(-2px); } }
.ci:focus-visible { background: var(--btn-hover-bg); color: var(--btn-hover-ink); }
@media (max-width: 420px) { .contact-icons { gap: 10px; } .ci { width: 52px; height: 52px; } .ci svg { width: 22px; height: 22px; } }

/* Reviews: a bar at the foot of the screen, locked in place like the header (Rik, 2026-11-14) */
.review-bar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; background: color-mix(in srgb, var(--panel) 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px color-mix(in srgb, var(--scrim) 10%, transparent); transform: translateY(105%); transition: transform .45s var(--ease-out); padding-bottom: env(safe-area-inset-bottom); }
.review-bar.up { transform: none; }
.rb-in { max-width: var(--container); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 12px; }
@media (min-width: 720px) { .rb-in { padding: 10px var(--gutter-wide); } }
.rb-slides { flex: 1; min-width: 0; display: grid; }
.rb-slide { grid-area: 1 / 1; margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s .5s; }
.rb-slide.on { opacity: 1; visibility: visible; transition: opacity .5s ease .1s, visibility 0s; }
.rb-stars { display: inline-flex; gap: 1px; color: var(--sand-deep); flex: none; transform: translateY(2px); }
.rb-stars svg { width: 15px; height: 15px; fill: currentColor; }
.rb-slide blockquote { margin: 0; flex: 1 1 22em; min-width: 0; font: 500 1.08rem/1.3 var(--font-display); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.review-bar.open .rb-slide.on blockquote { -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
.rb-slide figcaption { font-size: .82rem; color: var(--muted); white-space: nowrap; display: inline-flex; gap: 5px; min-width: 0; }
.rb-who { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rb-slide figcaption a { flex: none; }
.rb-slide figcaption a { color: inherit; }
.rb-more { flex: none; background: none; border: 0; padding: 6px 4px; color: var(--ink); font: 600 .82rem var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rb-pause { flex: none; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; }
.rb-pause svg { width: 12px; height: 12px; fill: currentColor; }
.rb-pause .i-play, .rb-pause.is-paused .i-pause { display: none; }
.rb-pause.is-paused .i-play { display: block; }
body.has-review-bar footer.site { padding-bottom: 140px; }
/* Phones: 2 lines. Line 1 the stars and who said it, line 2 the quote; a longer quote opens on tap. */
@media (max-width: 600px) {
  .rb-in { gap: 8px; padding-top: 7px; padding-bottom: 7px; }
  .rb-slide { column-gap: 8px; row-gap: 1px; align-items: center; }
  .rb-stars { transform: none; }
  .rb-slide figcaption { order: 1; font-size: .74rem; flex: 1; min-width: 0; }
  .rb-slide blockquote { order: 2; font-size: .98rem; flex-basis: 100%; -webkit-line-clamp: 1; line-clamp: 1; }
  .rb-stars svg { width: 12px; height: 12px; }
  .rb-more { padding: 6px 2px; }
}

/* Footer: the legal pages */
.foot-policy a { color: #e3e8f0 !important; }

/* Pages of their own: home value, privacy, terms */
.page-head { padding: clamp(48px, 8vw, 96px) 0 0; }
.legal { max-width: 46em; }
.legal h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-top: 1.6em; }
.legal p, .legal li { font-size: 1.02rem; }
.legal .updated { color: var(--muted); }
.value-page { min-height: 70vh; }
.value h1 { color: #fff; font-size: var(--font-size-h1); }
.value .eyebrow { color: var(--sand); }
.value .note a { color: #fff; }

/* A home with no photo: CP mark and town on navy (Rik, 2026-11-14). Fills any .thumb. */
.thumb .no-photo { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 10px; padding: 12px; text-align: center; background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: var(--sand); }
.thumb .no-photo .cp-mark { width: clamp(26px, 18%, 46px); height: auto; }
.thumb .no-photo .np-town { font: 600 clamp(1rem, 4.5cqi, 1.3rem)/1.1 var(--font-display); letter-spacing: .01em; color: #fff; text-wrap: balance; }
.thumb { container-type: inline-size; }

/* Text Cody on a computer: the number and message to copy (Rik, 2026-11-14) */
.text-panel { width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; border: 1px solid var(--line); border-radius: 16px; padding: 30px 26px 24px; background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.text-panel::backdrop { background: rgba(27, 36, 48, .55); }
.text-panel .eyebrow { margin: 0 0 6px; }
.text-panel h2 { font: 600 1.75rem/1.1 var(--font-heading); margin: 0 0 8px; text-wrap: balance; }
.text-panel .tp-sub { color: var(--muted); margin: 0 0 18px; }
.tp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 18px; }
.tp-num { font: 600 1.75rem/1 var(--font-display); color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.text-panel label { display: block; font: 600 .75rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.text-panel textarea { display: block; width: 100%; resize: none; font: inherit; font-size: .95rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.tp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.tp-link { color: var(--ink); font-size: .9rem; text-underline-offset: 3px; }
.tp-x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.tp-x:hover { background: var(--panel-2); }

