/* eamhomes.co — colors mirror the app (frontend/src/theme/palette.js): navy, navy action, gold,
   stone cream. Gold is for text on navy only (it's ~2:1 on white). */
:root {
  --navy: #1a2b47; --navy-raised: #26395a; --navy-border: #314566;
  --on-navy: #efe8de; --on-navy-muted: #a8b4c6;
  --accent: #2a5592; --accent-hover: #21467b; --gold: #d4a64a; --gold-soft: #f5ecd7;
  --ink: #151a23; --text: #303845; --muted: #5a6371; --line: #e4e1dc; --field: #d6d1c9;
  --page: #fdfcfb; --cream: #efedea; --card: #ffffff;
  --danger: #9b2c22; --success: #2f5a2a;
  --display: 'Clash Display', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Satoshi', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header { background: var(--navy); color: var(--on-navy); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--navy-border); }
.bar { display: flex; align-items: center; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; font-family: var(--display); line-height: 1; text-decoration: none; color: var(--on-navy); flex: none; }
.logo b { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.logo span { font-size: 12.5px; font-weight: 500; letter-spacing: 0.32em; padding-left: 0.1em; margin-top: 5px; color: var(--gold); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--on-navy-muted); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; transition: color .15s, background .15s; }
.nav a:hover { color: #fff; background: var(--navy-raised); }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.call { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--on-navy); font-weight: 600; font-size: 15px; padding: 9px 15px; border: 1px solid var(--navy-border); border-radius: 999px; transition: background .15s, border-color .15s; flex: none; }
.call:hover { background: var(--navy-raised); border-color: var(--gold); }
.call svg { color: var(--gold); }
.call:has(.call-face) { padding-left: 5px; }
.call-face { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px var(--gold); flex: none; }
.menu { display: none; background: none; border: 0; color: var(--on-navy); padding: 8px; margin-right: -8px; cursor: pointer; }
@media (max-width: 959px) {
  .bar { gap: 12px; }
  .menu { display: inline-flex; }
  .call { margin-left: auto; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--navy); border-bottom: 1px solid var(--navy-border); padding: 8px 12px 16px; }
  .nav.open { display: flex; }
  .nav a { font-size: 17px; padding: 14px 10px; border-radius: 8px; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); }
}
@media (max-width: 420px) { .call span { display: none; } .call { padding: 10px; } .call:has(.call-face) { padding: 5px 12px 5px 5px; } }
/* invest.eamhomes.co header: "Investors" beside the logo, Join the list as a gold link */
.logo-tag { align-self: center; font-size: 13px; font-weight: 600; color: var(--gold); border: 1px solid var(--navy-border); border-radius: 999px; padding: 4px 10px; margin-left: -10px; }
.nav a.nav-cta { color: var(--gold); }
.nav a.nav-cta:hover { color: #fff; }

/* ── Page heroes ────────────────────────────────────────────────────────── */
.hero { background: var(--navy); color: var(--on-navy); padding: 40px 0 72px; }
.hero-grid { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } .hero { padding: 56px 0 88px; } }
.hero.photo { position: relative; isolation: isolate; overflow: hidden; overflow: clip; aspect-ratio: auto; border-radius: 0; background: var(--navy); } /* not the .photo frame below */
/* The photo is its own layer so it can drift (parallax) and settle (zoom) without moving the text */
.hero.photo::after { content: ''; position: absolute; left: 0; right: 0; top: -12%; bottom: -12%; z-index: -2; background: var(--hero-img) center 40% / cover no-repeat; translate: 0 var(--py, 0px); scale: var(--hz, 1); will-change: translate, scale; }
/* Navy wash over the photo: solid behind the text, lighter toward the form so the house shows */
.hero.photo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(26, 43, 71, 0.94) 0%, rgba(26, 43, 71, 0.86) 45%, rgba(26, 43, 71, 0.55) 100%); }
@media (max-width: 899px) { .hero.photo::before { background: rgba(26, 43, 71, 0.9); } }
.hero.short { padding: 48px 0 56px; }
@media (min-width: 900px) { .hero.short { padding: 64px 0 72px; } }
.eyebrow { display: inline-block; color: var(--gold); font-weight: 600; font-size: 15px; margin-bottom: 14px; }
h1 { font-family: var(--display); font-weight: 600; font-size: clamp(36px, 6vw, 58px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 20px; color: #fff; text-wrap: balance; }
h1 em { font-style: normal; color: var(--gold); }
.nowrap { white-space: nowrap; }
.lede { font-size: 19px; color: var(--on-navy); max-width: 34em; margin: 0 0 28px; }
.points { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.points li { display: flex; gap: 12px; align-items: flex-start; }
.points svg { flex: none; margin-top: 4px; color: var(--gold); }
.points strong { color: #fff; font-weight: 600; }
.points span { color: var(--on-navy-muted); }
.hero-call { color: var(--on-navy-muted); font-size: 15px; margin: 0; }
.hero-call a { color: #fff; font-weight: 600; text-decoration-color: var(--gold); text-underline-offset: 3px; }
/* "Talk to Eduardo" — the person behind the offer, one tap to call */
/* "Talk to Eduardo": his photo, name and number in every main hero (partials/talk-card.html) */
.talk { display: inline-flex; align-items: center; gap: 20px; margin: 0 0 22px; padding: 14px 28px 14px 14px; border: 1px solid var(--navy-border); border-radius: 22px; text-decoration: none; color: #fff; background: rgba(255, 255, 255, 0.05); transition: background .15s, border-color .15s; max-width: 100%; }
.talk:hover { background: var(--navy-raised); border-color: var(--gold); }
.hero a.talk img { flex: none; width: 104px; height: 104px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--navy), 0 0 0 5px var(--gold), 0 14px 30px -12px rgba(0, 0, 0, .6); scale: none; translate: none; } /* the hero is a .photo too: keep the frame rules off it */
.talk-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; min-width: 0; }
.talk-name { font-family: var(--display); font-weight: 600; font-size: 20px; color: #fff; }
.talk small { font-size: 14px; color: var(--on-navy-muted); }
.talk b { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.talk b svg { color: var(--gold); width: 22px; height: 22px; }
@media (max-width: 420px) {
  .talk { gap: 14px; padding: 12px 18px 12px 12px; }
  .hero a.talk img { width: 80px; height: 80px; }
  .talk-name { font-size: 18px; }
  .talk small { font-size: 13px; }
  .talk b { font-size: 23px; gap: 8px; }
  .talk b svg { width: 18px; height: 18px; }
}
.jump { margin: 0 0 18px; }
@media (min-width: 900px) { .jump { display: none; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font: inherit; font-weight: 700; font-size: 17px; padding: 14px 22px; border-radius: 12px; border: 0; cursor: pointer; white-space: nowrap; transition: background .15s, filter .15s, border-color .15s; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { filter: brightness(1.07); }
.btn-gold[href^="tel:"] { font-weight: 800; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid var(--navy-border); }
.btn-ghost:hover { border-color: var(--gold); background: var(--navy-raised); }
.btn-outline { background: var(--card); color: var(--accent); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--accent); }

/* ── Form card ──────────────────────────────────────────────────────────── */
.card { background: var(--card); color: var(--ink); border-radius: 18px; padding: 28px; box-shadow: 0 24px 60px -20px rgba(5, 12, 26, 0.55); }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card h2 { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.15; margin: 0 0 6px; }
.card .sub { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.fields { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.full { grid-column: 1 / -1; }
@media (max-width: 420px) { .fields { grid-template-columns: 1fr; } }
label, .label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
label small, .label small { font-weight: 400; color: var(--muted); }
input, textarea, select { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--field); border-radius: 10px; padding: 11px 13px; transition: border-color .15s, box-shadow .15s; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236a5a48' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(42, 85, 146, 0.18); }
textarea { resize: vertical; min-height: 92px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; font-size: 15px; font-weight: 500; padding: 8px 14px; border: 1px solid var(--field); border-radius: 999px; cursor: pointer; transition: all .15s; user-select: none; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { width: 100%; margin-top: 18px; }
.form-submit:disabled { opacity: .6; cursor: wait; }
.consent { font-size: 13px; color: var(--muted); margin: 12px 0 0; line-height: 1.5; }
.msg { margin: 14px 0 0; font-size: 15px; font-weight: 600; }
.msg.err { color: var(--danger); }
.done { text-align: center; padding: 24px 8px; }
.done svg { color: var(--success); margin: 0 auto; }
.done h2 { margin-top: 12px; }

/* ── Sections ───────────────────────────────────────────────────────────── */
section { padding: 72px 0; }
@media (max-width: 640px) { section { padding: 56px 0; } }
.band { background: var(--cream); }
/* Navy band: one per page, partway down, so the brand carries past the hero */
.band-navy { background: var(--navy); color: var(--on-navy); }
.band-navy .section-title { color: #fff; }
.band-navy .section-sub, .band-navy .checklist span, .band-navy figcaption { color: var(--on-navy-muted); }
.band-navy a:not(.btn) { color: var(--gold); }
.band-navy .tile, .band-navy .situation { background: var(--navy-raised); border-color: var(--navy-border); color: var(--on-navy); }
.band-navy .tile p { color: var(--on-navy-muted); }
.band-navy .tile .n { background: var(--navy); }
.band-navy .situation svg, .band-navy .checklist svg { color: var(--gold); }
.section-title { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 4vw, 38px); line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 12px; }
.section-sub { color: var(--muted); max-width: 40em; margin: 0 0 40px; }
.grid-2 { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 56px; } }
.grid-2 > :only-child { grid-column: 1 / -1; max-width: 760px; } /* its photo is still a draft */
.grid-3 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.band .tile { border-color: transparent; }
.tile h3 { font-size: 19px; margin: 0 0 6px; }
.tile p { margin: 0; color: var(--muted); font-size: 16px; }
.tile .n, .tile .ic { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: var(--gold); font-family: var(--display); font-weight: 600; font-size: 18px; margin-bottom: 16px; }
.tile .more { display: inline-block; margin-top: 14px; font-weight: 600; text-decoration: none; }
.tile .more:hover { text-decoration: underline; }
.tile.link { text-decoration: none; color: inherit; transition: transform .15s, border-color .15s, box-shadow .15s; display: block; }
.tile.link:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 12px 28px -16px rgba(26, 43, 71, 0.45); }
.situations { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .situations { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .situations { grid-template-columns: repeat(3, 1fr); } }
.situation { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 12px; padding: 16px 18px; font-weight: 600; }
.situation svg { flex: none; color: var(--accent); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { flex: none; margin-top: 4px; color: var(--accent); }
.checklist strong { display: block; }
.checklist span { color: var(--muted); }
.compare { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 16px; overflow: hidden; font-size: 16px; }
.compare th, .compare td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--navy); color: var(--on-navy); font-weight: 600; }
.compare thead th:nth-child(2) { color: var(--gold); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 30%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare td { color: var(--text); }
@media (max-width: 640px) { .compare th, .compare td { padding: 12px; font-size: 15px; } }
.table-scroll { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.band .faq details { border-color: transparent; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; padding: 18px 28px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 18px; color: var(--text); }

/* Call-to-action box */
.cta { background: var(--navy); color: var(--on-navy); border-radius: 20px; padding: 40px 28px; display: grid; gap: 20px; align-items: center; }
@media (min-width: 760px) { .cta { grid-template-columns: 1fr auto; padding: 48px; } }
.cta h2 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.6vw, 34px); line-height: 1.15; margin: 0 0 6px; color: #fff; }
.cta p { margin: 0; color: var(--on-navy-muted); }
.cta .hero-actions { justify-content: flex-start; }
.cta-face { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--navy), 0 0 0 5px var(--gold); }
@media (min-width: 760px) { .cta:has(.cta-face) { grid-template-columns: auto 1fr auto; gap: 32px; } .cta-face { width: 120px; height: 120px; } }
.cta .cta-sig { margin-top: 12px; color: var(--gold); font-weight: 600; font-size: 15px; }
.cta .btn-call { font-family: var(--display); font-size: 22px; font-weight: 600; padding: 16px 26px; }
.cta .btn-call svg { width: 20px; height: 20px; }

/* Photos + stats — placeholders only appear in drafts builds (see build.mjs) */
.photo { aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--cream); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.ph { display: flex; align-items: center; justify-content: center; text-align: center; border: 2px dashed var(--gold); background: var(--gold-soft); color: #6b4f12; font-weight: 600; font-size: 15px; padding: 16px; border-radius: 18px; }
.ph.inline { display: inline; padding: 0 6px; border-radius: 6px; border-width: 1px; font-size: inherit; }
.stats { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat b { display: block; font-family: var(--display); font-weight: 600; font-size: 40px; line-height: 1; color: var(--navy); }
.stat span { color: var(--muted); font-size: 15px; }
.prose { max-width: 720px; }
.prose p, .prose li { color: var(--text); }
.prose h2 { font-size: 22px; margin: 36px 0 8px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: var(--on-navy-muted); font-size: 15px; padding: 48px 0 28px; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-tag { margin: 14px 0 0; max-width: 22em; }
.foot-links { display: grid; gap: 8px; align-content: start; }
.foot-contact p { margin: 0 0 8px; }
.legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--navy-border); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; }
.legal p { margin: 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.eho { display: inline-flex; align-items: center; gap: 6px; }
.prose h2.section-title { font-size: clamp(28px, 4vw, 38px); margin: 0 0 8px; }

/* ── Projects (photos from past flips) ──────────────────────────────────── */
.projects { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .projects { grid-template-columns: 1fr 1fr; } }
.project { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.band .project { border-color: transparent; }
.project-photos { position: relative; aspect-ratio: 3 / 2; background: var(--cream); }
.project-photos > img { width: 100%; height: 100%; object-fit: cover; }
.project-photos .inset { position: absolute; right: 12px; bottom: 12px; width: 34%; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; border: 3px solid #fff; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .45); }
.project-photos .inset img { width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: 20px 22px 22px; }
.project-tag { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 4px; }
.project h3 { font-size: 20px; margin: 0 0 6px; }
.project p { margin: 0; color: var(--muted); font-size: 16px; }
.project .facts { margin-top: 12px; font-size: 14px; color: var(--text); font-weight: 500; }
.portrait { border-radius: 18px; overflow: hidden; max-width: 440px; aspect-ratio: 1; background: var(--cream); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
figure { margin: 0; }
figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }
.portrait-fig { max-width: 440px; width: 100%; }
.portrait-cap { font-size: 15px; }
.portrait-cap strong { display: block; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 19px; }

/* ── Buyer / seller guide steps ─────────────────────────────────────────── */
.steps8 { display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 640px) { .steps8 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .steps8 { grid-template-columns: repeat(4, 1fr); } }
.step8 { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.band .step8 { border-color: transparent; }
.step8 h3 { font-size: 17px; margin: 0 0 8px; display: flex; gap: 10px; align-items: center; }
.step8 h3::before { counter-increment: step; content: counter(step); flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: var(--navy); color: var(--gold); font-family: var(--display); font-size: 15px; }
.step8 ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.step8 li + li { margin-top: 4px; }
.perks { display: grid; gap: 12px 28px; grid-template-columns: 1fr; margin: 0 0 36px; padding: 0; list-style: none; }
@media (min-width: 760px) { .perks { grid-template-columns: 1fr 1fr; } }
.perks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.perks svg { flex: none; margin-top: 4px; color: var(--accent); }
.guide-switch { display: inline-flex; gap: 4px; padding: 4px; background: var(--cream); border-radius: 12px; margin-bottom: 28px; }
.guide-switch a { text-decoration: none; color: var(--text); font-weight: 600; padding: 8px 16px; border-radius: 9px; }
.guide-switch a:hover { background: var(--card); }

/* ── Resources: city table ──────────────────────────────────────────────── */
.cities { width: 100%; border-collapse: collapse; background: var(--card); font-size: 16px; }
.cities th, .cities td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cities thead th { background: var(--navy); color: var(--on-navy); font-weight: 600; position: sticky; top: 0; }
.cities tbody th { font-weight: 600; white-space: nowrap; }
.cities td small { color: var(--muted); }
.cities td a { white-space: nowrap; }
.cities tbody tr:last-child th, .cities tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .cities thead { display: none; }
  .cities, .cities tbody, .cities tr, .cities th, .cities td { display: block; }
  .cities tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .cities th, .cities td { padding: 2px 0; border: 0; }
}
.note { background: var(--gold-soft); border-radius: 12px; padding: 14px 18px; color: #4a3a1a; font-size: 15px; margin: 0 0 28px; }

/* ── Motion (site.js adds html.motion unless the visitor prefers reduced motion) ─────────────
   Without JS or with reduced motion nothing below applies and everything is simply visible. */
.scroll-bar { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); pointer-events: none; }
.site-header { transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 10px 30px -12px rgba(5, 12, 26, .6); }
.motion .site-header .bar { transition: padding .3s; }
.motion .site-header.scrolled .bar { padding-top: 10px; padding-bottom: 10px; }

/* Headlines: each word rises out of its own mask (hidden until site.js has split them, so no flash) */
.motion h1:not(.split), .motion .section-title:not(.split), .motion .cta h2:not(.split) { visibility: hidden; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w > span { display: inline-block; }
.motion .split .w > span { transform: translateY(105%); transition: transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 45ms + var(--d, 0ms)); }
.motion .split.in .w > span { transform: none; }

/* Blocks fade up, a beat apart within their group */
.motion .rv { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .2, 1), filter .8s ease; transition-delay: calc(var(--i, 0) * 90ms + var(--d, 0ms)); }
.motion .rv.in { opacity: 1; transform: none; filter: none; }
.motion .rv-right { transform: translateX(48px) scale(.98); }
.motion .rv-pop { transform: scale(.92); }

/* Hero on load: photo settles from a slow zoom, the form slides in */
.motion .hero.photo::after { transition: scale 2.4s cubic-bezier(.2, .8, .2, 1); }
.motion .hero.photo:not(.in)::after { --hz: 1.12; }

/* Project photos: wipe up into view, then the inset pops in */
.motion .project-photos { clip-path: inset(100% 0 0 0 round 0); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1); transition-delay: calc(var(--i, 0) * 120ms); }
.motion .project.in .project-photos { clip-path: inset(0 0 0 0 round 0); }
.motion .project-photos > img { scale: 1.2; translate: 0 var(--py, 0px); transition: scale 1.6s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 120ms); }
.motion .project.in .project-photos > img { scale: 1.1; }
.motion .project-photos .inset { opacity: 0; transform: translateY(20px) rotate(-3deg) scale(.9); transition: opacity .6s ease, transform .8s cubic-bezier(.3, 1.4, .5, 1); transition-delay: calc(var(--i, 0) * 120ms + 700ms); }
.motion .project.in .project-photos .inset { opacity: 1; transform: none; }

/* Big photos drift slower than the page */
.motion .photo img, .motion .portrait img { scale: 1.12; translate: 0 var(--py, 0px); }

/* Step numbers spin in */
.motion .tile .n { transform: scale(.4) rotate(-90deg); opacity: 0; transition: transform .7s cubic-bezier(.3, 1.5, .5, 1), opacity .4s; transition-delay: calc(var(--i, 0) * 90ms + 250ms); }
.motion .tile.in .n { transform: none; opacity: 1; }

/* Things sliding in from the side must never widen the page (clip, not hidden: keeps the sticky header) */
.motion body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { .scroll-bar { display: none; } }

/* ── Home hero: one grid so phones can reorder it ────────────────────────────
   Phones: headline + two buttons → Eduardo → the form → the checkmarks.
   Desktop: headline, checkmarks, Eduardo on the left; the form on the right. */
.home-hero .hero-grid { grid-template-areas: "copy" "talk" "form" "points"; row-gap: 0; }
.home-hero .hero-copy { grid-area: copy; }
.home-hero .hero-points { grid-area: points; margin: 36px 0 0; }
.home-hero .hero-talk { grid-area: talk; }
.home-hero .hero-talk .talk { margin-bottom: 28px; }
.home-hero .card { grid-area: form; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin: -8px 0 28px; }
.hero-ctas .btn { flex: 1 1 160px; }
.hero-ctas .btn-ghost svg { color: var(--gold); }
@media (min-width: 900px) {
  .home-hero .hero-grid { grid-template-areas: "copy form" "points form" "talk form"; grid-template-rows: auto auto 1fr; }
  .home-hero .hero-points { margin: 0 0 32px; }
  .home-hero .hero-talk .talk { margin-bottom: 0; }
  .hero-ctas { display: none; }
}

/* Facts strip under the home hero */
.trust { background: var(--card); border-bottom: 1px solid var(--line); }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding-top: 18px; padding-bottom: 18px; font-size: 15px; font-weight: 600; color: var(--text); }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.trust-row a { font-weight: 700; text-decoration: none; }
.trust-row a:hover { text-decoration: underline; }
@media (max-width: 640px) { .trust-row { justify-content: flex-start; gap: 8px 18px; font-size: 14px; } }

.talk .talk-es { color: var(--gold); font-weight: 600; }

/* ── Two-step seller form ─────────────────────────────────────────────────── */
.places-on:not(.needs-cityzip) .cityzip { display: none; }
.addr { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; list-style: none; margin: 6px 0 0; padding: 6px; background: #fff; border: 1px solid var(--field); border-radius: 12px; box-shadow: 0 18px 40px -14px rgba(5, 12, 26, .45); }
.suggest li { display: flex; flex-direction: column; padding: 9px 11px; border-radius: 8px; cursor: pointer; line-height: 1.3; }
.suggest li b { font-weight: 600; color: var(--ink); }
.suggest li span { font-size: 14px; color: var(--muted); }
.suggest li:hover, .suggest li[aria-selected="true"] { background: var(--cream); }
.got { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 15px; font-weight: 600; color: var(--success); }
.got svg { width: 18px; height: 18px; flex: none; }
.free { text-align: center; margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.skip-step { display: block; margin: 10px auto 0; background: none; border: 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--accent); cursor: pointer; padding: 6px 10px; text-decoration: underline; text-underline-offset: 3px; }
.skip-step[hidden] { display: none; }

/* ── "Get my offer" in the top bar, once you've scrolled past the form ────── */
.hdr-offer { display: none; flex: none; text-decoration: none; background: var(--gold); color: var(--navy); font-weight: 800; font-size: 15px; padding: 9px 16px; border-radius: 999px; transition: filter .15s; }
.hdr-offer:hover { filter: brightness(1.07); }
.offer-on .hdr-offer { display: inline-flex; animation: hdr-in .3s ease; }
@keyframes hdr-in { from { opacity: 0; transform: translateY(-6px); } }
@media (min-width: 960px) { .offer-on .nav { margin-right: 4px; } }
@media (max-width: 959px) { .offer-on .hdr-offer { margin-left: auto; } .offer-on .call { margin-left: 0; } }
@media (max-width: 560px) { .offer-on .call span { display: none; } .offer-on .call { padding: 5px 12px 5px 5px; } .hdr-offer { padding: 9px 14px; } }

/* ── Listing pages (/listing/…, hidden: noindex, linked from nowhere) ──────── */
.lst-photos { padding: 20px 0 0; }
.lst-back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; }
.lst-back:hover { color: var(--ink); }
/* /listings: one card per home for sale (built by build.mjs from the listing pages) */
.lst-index { padding-top: 48px; }
.listings { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .listings { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .listings { grid-template-columns: repeat(3, 1fr); } }
.listing-card a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: border-color .2s; }
.listing-card a:hover { border-color: var(--accent); }
.listing-card a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.lc-photo { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--cream); overflow: hidden; }
.lc-photo img { width: 100%; height: 100%; object-fit: cover; transition: scale .5s cubic-bezier(.2, .8, .2, 1); }
.listing-card a:hover .lc-photo img { scale: 1.03; }
.lc-tags { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.lc-tags .tag { font-size: 13px; padding: 4px 10px; box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .4); }
.tag-pending { background: var(--gold-soft); color: #6b4f12; }
.lc-body { display: flex; flex-direction: column; padding: 18px 20px 20px; }
.lc-price { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.1; color: var(--ink); }
.lc-street { margin-top: 8px; font-size: 18px; font-weight: 600; color: var(--ink); }
.lc-place { font-size: 15px; color: var(--muted); }
.lc-facts { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.lst-none { font-size: 18px; color: var(--muted); }
.mosaic { position: relative; display: grid; gap: 8px; grid-template-columns: 1fr; border-radius: 18px; overflow: hidden; }
.mosaic a { display: block; background: var(--cream); overflow: hidden; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: scale .5s cubic-bezier(.2, .8, .2, 1), filter .2s; }
.mosaic a:hover img { scale: 1.03; filter: brightness(.94); }
.mosaic a:not(.m-main) { display: none; }
.m-main { aspect-ratio: 3 / 2; }
@media (min-width: 760px) {
  .mosaic { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; height: min(560px, 52vw); }
  .m-main { grid-row: 1 / 3; aspect-ratio: auto; }
  .mosaic a:not(.m-main) { display: block; }
}
.m-all { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); background: rgba(255, 255, 255, .94); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; cursor: pointer; box-shadow: 0 8px 22px -10px rgba(5, 12, 26, .5); }
.m-all:hover { background: #fff; }

.lst-body { padding-top: 36px; }
.lst-grid { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .lst-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; } } /* the form is taller than a laptop screen: not sticky */
.lst h1 { color: var(--ink); font-size: clamp(34px, 5vw, 50px); margin: 0 0 6px; }
.lst-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.tag-sale { background: #e7efe5; color: var(--success); }
.tag-sale::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag-open { background: var(--gold-soft); color: #6b4f12; }
.lst-addr { color: var(--muted); font-size: 18px; margin: 0 0 18px; }
.lst-price { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 4.6vw, 44px); line-height: 1; letter-spacing: -0.01em; color: var(--navy); margin: 0 0 24px; }
.lst-facts { list-style: none; margin: 0 0 28px; padding: 18px 0; display: flex; flex-wrap: wrap; gap: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lst-facts li { display: flex; flex-direction: column; padding: 0 22px; border-left: 1px solid var(--line); }
.lst-facts li:first-child { padding-left: 0; border-left: 0; }
.lst-facts b { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.1; color: var(--ink); }
.lst-facts span { font-size: 14px; color: var(--muted); }
@media (max-width: 560px) {
  .lst-facts { display: grid; grid-template-columns: repeat(3, 1fr); }
  .lst-facts li, .lst-facts li:first-child { padding: 0 12px; border-left: 1px solid var(--line); }
  .lst-facts li:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
}
.lst-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.lst-actions .btn { flex: 1 1 200px; }
.lst-actions .btn-outline svg { color: var(--accent); }
@media (min-width: 960px) { .lst-actions { display: none; } } /* the form + agent card sit beside it */
.lst-h { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.15; margin: 44px 0 14px; }
.lst-main .prose p { margin: 0 0 14px; }
.lst-done { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px 24px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .lst-done { grid-template-columns: 1fr 1fr; } }
.lst-done li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.lst-done svg { flex: none; width: 18px; height: 18px; color: var(--success); }
.lst-details { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .lst-details { grid-template-columns: 1fr 1fr; } }
.lst-details > div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.lst-details h3 { font-size: 16px; margin: 0 0 8px; }
.lst-details ul { margin: 0; padding-left: 18px; color: var(--text); font-size: 16px; }
.lst-details li + li { margin-top: 4px; }
.lst-open ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.lst-open li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; background: var(--gold-soft); border-radius: 12px; padding: 14px 18px; }
.lst-open li span { color: #4a3a1a; font-weight: 600; }
.lst-open p { margin: 0; color: var(--muted); }
.lst-side .card h2 { font-size: 24px; }
.agent-card { display: flex; gap: 16px; align-items: center; margin-top: 16px; padding: 16px 18px; border-radius: 18px; background: var(--navy); color: var(--on-navy); text-decoration: none; transition: background .15s; }
.agent-card:hover { background: var(--navy-raised); }
.agent-card img { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--navy), 0 0 0 4px var(--gold); }
.agent-card span { display: flex; flex-direction: column; line-height: 1.3; }
.agent-card b { font-family: var(--display); font-weight: 600; font-size: 18px; color: #fff; }
.agent-card small { font-size: 14px; color: var(--on-navy-muted); }
.agent-card small.es { color: var(--gold); font-weight: 600; }
.agent-card strong { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-family: var(--display); font-weight: 600; font-size: 22px; color: #fff; }
.agent-card strong svg { color: var(--gold); width: 18px; height: 18px; }
.chip input[type=radio] + span { min-width: 64px; text-align: center; }

.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery a { display: block; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: var(--navy-raised); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: scale .4s cubic-bezier(.2, .8, .2, 1); }
.gallery a:hover img { scale: 1.05; }
.lst-map { position: relative; height: 420px; border-radius: 18px; overflow: hidden; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.map-addr { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0; font-weight: 600; font-size: 18px; }
.map-addr svg { color: var(--accent); }
.lst-map.ready .map-addr { display: none; }
.lst-map .map-link { font-weight: 700; }
.lst-map.ready .map-link { position: absolute; left: 12px; bottom: 12px; z-index: 2; background: #fff; padding: 8px 12px; border-radius: 10px; font-size: 14px; text-decoration: none; box-shadow: 0 6px 18px -8px rgba(5, 12, 26, .5); }
.lst-map .gm { position: absolute; inset: 0; }
@media (max-width: 640px) { .lst-map { height: 320px; } }
.lst-map:not(.ready) { height: auto; min-height: 180px; }
.lst-legal { margin: 24px 0 0; font-size: 13px; color: var(--muted); max-width: 60em; }

/* Photo viewer (full screen; arrows, swipe, Esc) */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 12, 20, .96); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1400px, 100vw); padding: 56px 72px 48px; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 120px); object-fit: contain; border-radius: 6px; user-select: none; }
.lightbox figcaption { color: #c9d1dd; font-size: 15px; margin-top: 12px; text-align: center; }
.lb-close, .lb-nav { position: absolute; display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .1); border-radius: 50%; transition: background .15s; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: 14px; right: 14px; width: 44px; height: 44px; }
.lb-nav { top: 50%; translate: 0 -50%; width: 52px; height: 52px; }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
@media (max-width: 640px) {
  .lightbox figure { padding: 60px 0 40px; }
  .lb-nav { top: auto; bottom: 14px; translate: none; width: 46px; height: 46px; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}
.lb-open { overflow: hidden; }
