/* Riverside Family Rentals – mobile-first, no external assets */
:root {
  --green: #2f5d50;
  --green-dark: #23473d;
  --terracotta: #c4693f;
  --cream: #f8f3ea;
  --sand: #efe5d4;
  --ink: #26302c;
  --muted: #5d6a64;
  --line: #dfd4c2;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(38, 48, 44, .10);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .6em; color: var(--green-dark); }
h1 { font-size: clamp(2rem, 6.5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
a { color: var(--green); }
.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { left: -9999px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--green); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; }

.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--terracotta); margin-bottom: .5rem; }
.accent { color: var(--terracotta); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px; background: var(--green); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--green); cursor: pointer; font: inherit; font-weight: 700; transition: background .15s, transform .15s; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-small { min-height: 40px; padding: .45rem 1rem; font-size: .95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 243, 234, .94); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--green-dark); font-family: var(--serif); font-size: 1.15rem; }
.brand strong { color: var(--terracotta); font-weight: 700; }
.brand-mark { width: 34px; height: 34px; }
.brand-mark rect { fill: var(--green); }
.brand-mark path { fill: var(--cream); }
.nav-toggle { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: var(--green-dark); border-radius: 2px; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }
.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem; flex-direction: column; gap: .25rem; }
.site-nav.open { display: flex; }
.site-nav a:not(.btn) { padding: .7rem 0; text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.site-nav .btn { margin-top: .75rem; }

/* Hero */
.hero { padding: 2.5rem 0 3rem; background: radial-gradient(1200px 500px at 85% -10%, #f3d9c2 0%, transparent 60%), var(--cream); }
.hero-inner { display: grid; gap: 2rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.hero-actions .btn { flex: 1 1 200px; }
.hero-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-badges li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .85rem; font-size: .88rem; font-weight: 600; color: var(--green-dark); }
.hero-badges li::before { content: "✓ "; color: var(--terracotta); }
.hero-card { margin: 0; position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.hero-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-card-tag { position: absolute; left: 1rem; bottom: 1rem; background: var(--white); border-radius: 999px; padding: .45rem 1rem; font-weight: 700; color: var(--green-dark); box-shadow: var(--shadow); display: flex; align-items: center; gap: .5rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #3aa76d; box-shadow: 0 0 0 4px rgba(58, 167, 109, .2); }

/* Sections */
.section { padding: 3.5rem 0; }
.section-tint { background: var(--sand); }

/* Listing */
.listing { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: grid; margin-top: 1.25rem; }
.listing + .listing { margin-top: 2rem; }
.listing-media { position: relative; }
.listing-media { min-width: 0; }

/* Gallery: native swipe (scroll-snap) + buttons, no library */
.gallery { position: relative; background: #e9e0d0; }
.gallery-track { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline-offset: -3px; }
.slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 3; }

/* Parkway photos are portrait; keep them uncropped in the gallery. */
#parkway .slide { aspect-ratio: 3 / 4; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide img.contain { object-fit: contain; }
.gallery-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--green-dark); font-size: 1.9rem; line-height: 1; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); padding: 0 0 4px; }
.gallery-btn:hover { background: #fff; }
.gallery-btn[disabled] { opacity: .35; cursor: default; }
.gallery-btn.prev { left: .6rem; } .gallery-btn.next { right: .6rem; }
.gallery-count { position: absolute; right: .75rem; bottom: .75rem; margin: 0; background: rgba(38, 48, 44, .75); color: #fff; font-size: .82rem; font-weight: 600; padding: .15rem .65rem; border-radius: 999px; }
.status.status-soon { background: #a9532c; }
.status-leased { background: #5d6a64; letter-spacing: .04em; text-transform: uppercase; }
.leased-note { font-weight: 700; color: var(--green-dark); margin: .35rem 0 1rem; }
.listing.leased { opacity: 1; }
.about-grid-text .about-text { max-width: 42rem; }
.preview-note { margin: 1rem auto 0; max-width: 32rem; background: #fff6dc; border-radius: 10px; padding: .6rem .9rem; font-size: .92rem; color: #5b4500; }
.status { position: absolute; top: 1rem; left: 1rem; background: #2b7a4b; color: #fff; font-weight: 700; font-size: .85rem; padding: .3rem .8rem; border-radius: 999px; }
.listing-body { padding: 1.5rem; }
.listing-body h3 { margin-bottom: .25rem; }
.listing-body h3 .muted { display: block; font-family: var(--font); font-size: .95rem; font-weight: 500; margin-top: .25rem; }
.price { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--terracotta); margin-bottom: 1rem; }
.price span { font-size: 1rem; color: var(--muted); font-family: var(--font); font-weight: 500; }
.facts { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.facts li { padding: .5rem 0 .5rem 1.6rem; border-bottom: 1px solid #efe8dc; position: relative; }
.facts li::before { content: ""; position: absolute; left: .2rem; top: 1.05rem; width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta); }
.callout { margin-top: 2rem; padding: 1.5rem; border: 2px dashed var(--line); border-radius: var(--radius); display: grid; gap: 1rem; align-items: center; background: rgba(255, 255, 255, .5); }
.callout p { margin: 0; }

/* Vouchers */
.two-col { display: grid; gap: 1.5rem; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.checklist li { background: var(--white); border-radius: var(--radius); padding: 1rem 1.1rem 1rem 3.2rem; position: relative; box-shadow: 0 2px 10px rgba(38, 48, 44, .05); }
.checklist li::before { content: "✓"; position: absolute; left: 1rem; top: 1rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }

/* About */
.about-grid { display: grid; gap: 2rem; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }

/* Form */
.form { background: var(--white); border-radius: 18px; box-shadow: var(--shadow); padding: 1.5rem; margin-top: 1.5rem; }
.grid { display: grid; gap: 0 1rem; }
.field { margin: 0 0 1.1rem; border: 0; padding: 0; min-width: 0; }
fieldset.field { margin-bottom: 1.25rem; }
label, legend { display: block; font-weight: 600; margin-bottom: .35rem; padding: 0; }
.req { color: var(--terracotta); }
.hint { font-weight: 400; color: var(--muted); font-size: .9rem; margin: .4rem 0 0; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; min-height: 48px; padding: .65rem .85rem; font: inherit; color: var(--ink); background: #fffdf9; border: 1.5px solid var(--line); border-radius: 10px; appearance: none; -webkit-appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(47, 93, 80, .18); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: #b3261e; }
.choices { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .6rem; }
.choice { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; padding: .55rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fffdf9; cursor: pointer; margin: 0; min-height: 44px; }
.choice:has(input:checked) { border-color: var(--green); background: #e7f0ec; }
.choice input { accent-color: var(--green); width: 18px; height: 18px; margin: 0; }
.voucher-fields { background: #f6f1e7; border-radius: 12px; padding: 1rem 1rem .1rem; margin-bottom: 1.1rem; }
.form-error { background: #fdecea; color: #8c1d18; border-radius: 10px; padding: .75rem 1rem; }
.thanks { background: var(--white); border-radius: 18px; box-shadow: var(--shadow); padding: 2.5rem 1.5rem; text-align: center; margin-top: 1.5rem; }
.thanks svg { width: 56px; height: 56px; fill: #fff; background: #3aa76d; border-radius: 50%; padding: 12px; margin: 0 auto 1rem; }

/* Footer */
.site-footer { background: var(--green-dark); color: #e9efe9; padding: 2.5rem 0; font-size: .95rem; }
.site-footer strong { color: #fff; }
.footer-inner { display: grid; gap: 1.5rem; }
.eho { display: flex; gap: 1rem; align-items: flex-start; }
.eho-logo { flex: 0 0 52px; width: 52px; height: 52px; color: #fff; }
.footer-meta p { margin-bottom: .4rem; }

/* ≥ 640px */
@media (min-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .voucher-fields { grid-template-columns: repeat(3, 1fr); }
  .form { padding: 2rem; }
  .callout { grid-template-columns: 1fr auto; }
  .hero-actions .btn { flex: 0 0 auto; }
}
/* ≥ 900px */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 1.75rem; padding: 0; border: 0; background: none; }
  .site-nav a:not(.btn) { border: 0; padding: 0; }
  .site-nav a:not(.btn):hover { color: var(--terracotta); }
  .site-nav .btn { margin: 0; }
  .hero { padding: 4.5rem 0 5rem; }
  .hero-inner { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 3.5rem; }
  .section { padding: 5rem 0; }
  .listing { grid-template-columns: 1fr 1.1fr; }
  .listing { align-items: start; }
  .listing-body { padding: 2.25rem; }
  .two-col { grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
  .about-grid-text { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1.4fr 1fr; gap: 3rem; }
}
