:root {
  --green: #1f3a2e;
  --green-2: #2e5243;
  --cream: #f7f4ee;
  --sand: #e9e3d6;
  --ink: #1d231f;
  --muted: #5b655f;
  --accent: #b5524a;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: .6rem; }

.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.85); margin-bottom: 1rem; }
.eyebrow.dark { color: var(--accent); }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--gutter); color: #fff; transition: background .35s, padding .35s, color .35s, box-shadow .35s; }
.nav.solid { background: rgba(247,244,238,.96); color: var(--ink); padding-block: 14px; box-shadow: 0 1px 0 rgba(0,0,0,.06); backdrop-filter: blur(8px); }
.brand { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.nav-links { display: flex; gap: 2.2rem; align-items: center; }
.nav-links a { text-decoration: none; font-size: .9rem; font-weight: 500; opacity: .9; }
.nav-links a:hover { opacity: 1; }
.nav-toggle { display: none; background: none; border: 0; width: 32px; height: 24px; position: relative; cursor: pointer; color: inherit; }
.nav-toggle span { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .3s, top .3s; }
.nav-toggle span:first-child { top: 6px; }
.nav-toggle span:last-child { top: 16px; }
.nav.open .nav-toggle span:first-child { top: 11px; transform: rotate(45deg); }
.nav.open .nav-toggle span:last-child { top: 11px; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; height: 100svh; min-height: 560px; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; }
.hero picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: center 40%; transform: scale(1.06); animation: settle 2.4s ease-out forwards; }
@keyframes settle { to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,15,.55) 0%, rgba(10,20,15,.25) 40%, rgba(10,20,15,.6) 100%); }
.hero-content { position: relative; padding: 0 var(--gutter); max-width: 820px; }
.hero h1 { font-size: clamp(3.6rem, 12vw, 8.5rem); letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); margin: 1rem auto 2.2rem; max-width: 560px; opacity: .95; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: .95rem 1.9rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; letter-spacing: .03em; transition: transform .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--green); }
.btn-ghost { border: 1px solid rgba(255,255,255,.8); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255,255,255,.7); border-radius: 14px; }
.scroll-cue::after { content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; padding: clamp(5rem, 10vw, 9rem) var(--gutter); max-width: 1400px; margin: 0 auto; }
.about-text h2 { margin-bottom: 1.6rem; }
.about-text p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.1rem; }
.about-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--green); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) var(--gutter); gap: 2rem; text-align: center; }
.stat-num { display: block; font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 4rem); line-height: 1; margin-bottom: .5rem; }
.stat-label { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }

/* Amenities */
.amenities { padding: clamp(5rem, 10vw, 8rem) var(--gutter); max-width: 1400px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: clamp(3rem, 6vw, 5rem); }
.feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; margin-bottom: clamp(4rem, 8vw, 7rem); }
.feature:last-child { margin-bottom: 0; }
.feature img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 4px; }
.feature.flip img { order: 2; }
.feature-text p { color: var(--muted); font-size: 1.05rem; }
.feature-text h3::after { content: ""; display: block; width: 48px; height: 2px; background: var(--accent); margin-top: 1rem; }

/* Aerial */
.aerial { position: relative; height: 85vh; min-height: 480px; overflow: hidden; }
.aerial img { width: 100%; height: 100%; object-fit: cover; }
.aerial-caption { position: absolute; left: var(--gutter); bottom: var(--gutter); max-width: 520px; background: rgba(20,38,30,.82); color: #fff; padding: 2rem 2.2rem; border-radius: 4px; backdrop-filter: blur(6px); }
.aerial-quote { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.25; }

/* Gallery */
.gallery { padding: clamp(5rem, 10vw, 8rem) var(--gutter); background: var(--sand); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 12px; max-width: 1400px; margin: 0 auto; }
.tile { border: 0; padding: 0; cursor: zoom-in; overflow: hidden; border-radius: 3px; background: #ccc; }
.tile.wide { grid-column: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.05); }

/* Footer */
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 2rem var(--gutter); background: #14261e; color: rgba(255,255,255,.7); font-size: .85rem; }
.footer .brand { color: #fff; font-size: 1.2rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,12,10,.94); display: grid; place-items: center; padding: 4vw; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; object-fit: contain; border-radius: 2px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 3rem; line-height: 1; cursor: pointer; opacity: .75; padding: .5rem 1rem; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-img { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 900px) {
  .nav-toggle { display: block; z-index: 2; }
  .nav-links { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 2rem; background: var(--green); color: #fff; font-size: 1.2rem; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .nav-links a { font-size: 1.2rem; }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; }
  .nav.open { color: #fff; }
  .about, .feature { grid-template-columns: 1fr; }
  .feature.flip img { order: 0; }
  .about-img img { aspect-ratio: 3/2; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}
@media (max-width: 520px) {
  .grid { grid-auto-rows: 140px; gap: 8px; }
  .aerial { height: 70vh; }
  .aerial-caption { right: var(--gutter); padding: 1.4rem; }
  .footer { justify-content: center; text-align: center; }
}

[hidden] { display: none !important; }

/* Garage sale announcement (home page, shown only when the sale is on) */
.gs-banner { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 40; max-width: calc(100% - 32px); background: var(--accent); color: #fff; text-decoration: none; padding: .8rem 1.4rem; border-radius: 999px; font-size: .9rem; box-shadow: 0 12px 30px -10px rgba(0,0,0,.45); text-align: center; transition: transform .2s; }
.gs-banner:hover { transform: translateX(-50%) translateY(-2px); }

/* Sub pages */
.subpage main { padding-top: 72px; min-height: 70vh; }
.btn-dark { background: var(--green); color: #fff; }

/* Garage sale page */
.gs-off { max-width: 640px; margin: 0 auto; padding: clamp(5rem, 12vw, 9rem) var(--gutter); text-align: center; }
.gs-off h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.gs-off p:not(.eyebrow) { color: var(--muted); margin-bottom: 2rem; }

.gs-hero { position: relative; height: clamp(320px, 50vh, 480px); color: #fff; display: grid; align-items: end; overflow: hidden; }
.gs-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gs-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,20,15,.2), rgba(10,20,15,.75)); }
.gs-hero-content { position: relative; z-index: 2; padding: 0 var(--gutter) clamp(2rem, 5vw, 3.5rem); max-width: 1400px; width: 100%; margin: 0 auto; }
.gs-hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 500; }
.gs-hero-date { font-size: clamp(1.05rem, 2vw, 1.3rem); margin-top: .5rem; opacity: .95; }

.gs-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); background: var(--green); color: #fff; padding: 1.8rem var(--gutter); gap: 1.5rem; }
.gs-facts > div { display: flex; flex-direction: column; gap: .25rem; }
.gs-label { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; opacity: .7; }
.gs-facts span:not(.gs-label) { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }

.gs-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 6vw, 5rem); max-width: 1400px; margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) var(--gutter); align-items: start; }
.gs-body h2 { font-size: 1.9rem; margin: 2.2rem 0 .7rem; }
.gs-lead { font-size: 1.2rem; line-height: 1.6; }
.gs-main p { color: var(--muted); }
.gs-main .gs-lead { color: var(--ink); }
.gs-notes { padding-left: 1.2rem; color: var(--muted); }
.gs-notes li { margin-bottom: .5rem; }
.gs-notes li::marker { color: var(--accent); }

.gs-homes { background: #fff; border-radius: 6px; padding: 1.8rem; box-shadow: 0 20px 50px -30px rgba(0,0,0,.3); position: sticky; top: 96px; }
.gs-homes h2 { margin-top: 0; font-size: 1.7rem; }
.gs-count { color: var(--muted); font-size: 1.2rem; }
.gs-search { width: 100%; font: inherit; padding: .7rem 1rem; border: 1px solid #d9d4c8; border-radius: 999px; background: var(--cream); margin-bottom: 1rem; }
.gs-home-list { list-style: none; max-height: 60vh; overflow-y: auto; }
.gs-home-list li { padding: .9rem 0; border-top: 1px solid #ece7dc; }
.gs-addr { font-weight: 600; text-decoration: none; color: var(--green); }
.gs-addr:hover { text-decoration: underline; }
.gs-home-list p { color: var(--muted); font-size: .92rem; margin-top: .15rem; }
.gs-empty { color: var(--muted); font-size: .92rem; }

@media (max-width: 900px) {
  .gs-body { grid-template-columns: 1fr; }
  .gs-homes { position: static; }
  .gs-home-list { max-height: none; }
}

/* Garage sale setup form */
.admin-tag { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.gsf { max-width: 820px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) 5rem; }
.gsf-intro h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: .8rem; }
.gsf-intro p { color: var(--muted); }
.gsf code { background: var(--sand); padding: .1rem .4rem; border-radius: 3px; font-size: .88em; }
.gsf-status { margin-top: 1rem; padding: .75rem 1rem; border-radius: 4px; font-size: .92rem; }
.gsf-status:empty { display: none; }
.gsf-status.info { background: #e6ede9; color: var(--green); }
.gsf-status.ok { background: #dcefe2; color: #1d5a33; }
.gsf-status.warn { background: #f6e1de; color: #8a2f27; }
.gsf fieldset { border: 0; background: #fff; border-radius: 6px; padding: 1.6rem; margin-top: 1.5rem; box-shadow: 0 10px 30px -24px rgba(0,0,0,.4); display: grid; gap: 1rem; }
.gsf legend { float: left; width: 100%; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin-bottom: .2rem; }
.gsf legend small { font-family: var(--sans); font-size: .8rem; font-weight: 400; color: var(--muted); }
.gsf label { display: grid; gap: .35rem; font-size: .88rem; font-weight: 500; }
.gsf label small { font-weight: 400; color: var(--muted); }
.gsf input[type=text], .gsf input[type=email], .gsf input[type=date], .gsf input[type=time], .gsf textarea { width: 100%; font: inherit; font-weight: 400; font-size: .98rem; padding: .65rem .8rem; border: 1px solid #d9d4c8; border-radius: 4px; background: var(--cream); color: var(--ink); }
.gsf input:focus, .gsf textarea:focus { outline: 2px solid var(--green-2); outline-offset: 1px; background: #fff; }
.gsf textarea { resize: vertical; }
.gsf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.switch { display: flex !important; align-items: flex-start; gap: 1rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch-track { flex: none; width: 48px; height: 28px; border-radius: 999px; background: #cfc9bc; position: relative; transition: background .2s; margin-top: 2px; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + .switch-track { background: var(--green-2); }
.switch input:checked + .switch-track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--green-2); outline-offset: 2px; }
.switch strong { display: block; font-size: 1rem; }
.switch small { display: block; margin-top: .2rem; }
.gsf-visible:has(input:checked) { box-shadow: inset 0 0 0 2px var(--green-2); }

.gsf-homes { display: grid; gap: .5rem; }
.gsf-home { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: .5rem; }
.gsf-remove { border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 .4rem; border-radius: 4px; }
.gsf-remove:hover { color: var(--accent); background: var(--cream); }
.gsf-home-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.btn-sm { font: inherit; font-size: .88rem; font-weight: 600; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--green); background: var(--green); color: #fff; cursor: pointer; }
.btn-sm.ghost { background: none; color: var(--green); }
.gsf-bulk { display: grid; gap: .6rem; justify-items: start; }
.gsf-bulk label { width: 100%; }

.gsf-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 2rem; }
.gsf-actions .btn { border: 0; cursor: pointer; font-family: inherit; }
.btn-outline { background: none; color: var(--green) !important; box-shadow: inset 0 0 0 1px var(--green); }
.gsf-file { display: inline-block !important; }
.link-btn { border: 0; background: none; font: inherit; font-size: .88rem; color: var(--muted); text-decoration: underline; cursor: pointer; }

@media (max-width: 600px) {
  .gsf-row { grid-template-columns: 1fr; }
  .gsf-home { grid-template-columns: 1fr auto; }
  .gsf-home [name=items] { grid-column: 1; }
  .gsf-home .gsf-remove { grid-row: 1 / span 2; grid-column: 2; }
  .gsf fieldset { padding: 1.2rem; }
}


section[id] { scroll-margin-top: 64px; }

/* Homes for sale link */
.home-search { background: var(--green); color: #fff; text-align: center; padding: clamp(3rem, 6vw, 4.5rem) var(--gutter); display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: center; }
.home-search p { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; }
