/* 2009 Axis Circle — editorial Hill Country palette. */
:root {
  --cream: #f5f3ee;
  --cream-2: #efece4;
  --ink: #1d1d1f;
  --ink-soft: #4a4a48;
  --olive: #6b8e23;
  --olive-dk: #556b1c;
  --gold: #b08d57;
  --line: rgba(29, 29, 31, 0.12);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --wrap-narrow: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--olive-dk); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: 0.2px; }
h3 { font-size: 1.4rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); width: 100%; }
.wrap--narrow { max-width: var(--wrap-narrow); }
.center { text-align: center; }

.kicker {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive-dk);
  margin: 0 0 0.75rem;
}
.lede { font-size: 1.2rem; color: var(--ink-soft); line-height: 1.75; }

section { padding: clamp(64px, 9vw, 128px) 0; }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 34px;
  border: 1px solid var(--gold);
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn--gold { background: var(--gold); color: #fff; border: none; }
.btn--gold:hover { background: #9a7947; transform: translateY(-1px); }

/* ---- nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 48px);
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.nav.scrolled {
  background: rgba(245, 243, 238, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px clamp(20px, 5vw, 48px);
}
.nav__brand {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600;
  color: #fff; text-decoration: none; letter-spacing: 0.5px;
}
.nav.scrolled .nav__brand { color: var(--ink); }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.nav__links a {
  color: rgba(255, 255, 255, 0.92); text-decoration: none;
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.nav.scrolled .nav__links a { color: var(--ink-soft); }
.nav__links a:hover { color: var(--gold); }
.nav__cta {
  border: 1px solid rgba(255, 255, 255, 0.6); padding: 8px 18px; border-radius: 2px;
}
.nav.scrolled .nav__cta { border-color: var(--gold); color: var(--olive-dk) !important; }
@media (max-width: 640px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ---- hero ---- */
.hero { position: relative; height: 100vh; min-height: 620px; padding: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.55) 100%);
}
.hero__inner { position: relative; text-align: center; color: #fff; padding: 20px; max-width: 900px; }
.hero__eyebrow {
  font-weight: 500; font-size: 0.8rem; letter-spacing: 0.28em; text-transform: uppercase;
  margin: 0 0 1.4rem; color: rgba(255,255,255,0.9);
}
.hero__title { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 500; text-shadow: 0 2px 24px rgba(0,0,0,0.35); }
.hero__specs { font-size: 1rem; letter-spacing: 0.08em; margin: 1.6rem 0 0.4rem; color: rgba(255,255,255,0.92); }
.hero__price { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; margin: 0.2rem 0 2rem; }
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 1.5rem; text-decoration: none; opacity: 0.8;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* ---- story ---- */
.story { background: var(--cream); }
.story h2 { margin: 0 0 1.4rem; }

/* ---- gallery ---- */
.gallery { background: var(--cream-2); }
.gallery h2 { margin-bottom: 2.6rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid__item { position: relative; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; background: #ddd; }
.grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.grid__item:hover img { transform: scale(1.05); }
.grid__item.tall { grid-row: span 2; aspect-ratio: 4/6; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } .grid__item.tall { grid-row: auto; aspect-ratio: 4/3; } }
@media (max-width: 500px) { .grid { grid-template-columns: 1fr; } }
.gallery__more { text-align: center; margin-top: 2.4rem; }
.gallery__more .btn { background: transparent; color: var(--olive-dk); border-color: var(--olive-dk); }
.gallery__more .btn:hover { background: var(--olive-dk); color: #fff; }
.credit { text-align: center; font-size: 0.82rem; color: var(--ink-soft); margin-top: 1.8rem; letter-spacing: 0.04em; }
.credit a { color: var(--olive-dk); }

/* ---- video tour ---- */
.tour { background: var(--ink); color: var(--cream); }
.tour h2 { color: #fff; margin-bottom: 2rem; }
.tour .kicker { color: var(--gold); }
.tour__frame { max-width: 960px; }
.tour__frame video { width: 100%; border-radius: 4px; box-shadow: 0 24px 60px rgba(0,0,0,0.5); background: #000; }
.tour .credit { color: rgba(255,255,255,0.65); }
.tour .credit a { color: var(--gold); }

/* ---- features ---- */
.features { background: var(--cream); }
.features h2 { margin-bottom: 3rem; }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.feature { background: var(--cream); padding: 38px 34px; }
.feature h3 { color: var(--olive-dk); margin-bottom: 0.7rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 820px) { .features__grid { grid-template-columns: 1fr; } }

/* ---- location ---- */
.location { background: var(--cream-2); }
.location h2 { margin-bottom: 1.4rem; }
.distances { display: flex; justify-content: center; gap: clamp(24px, 6vw, 72px); margin: 2.6rem 0 0; flex-wrap: wrap; }
.distances div { display: flex; flex-direction: column; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.distances span { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--olive-dk); text-transform: none; letter-spacing: 0; margin-bottom: 4px; }
.map { margin-top: 3rem; }
.map iframe { width: 100%; height: 420px; border: 1px solid var(--line); border-radius: 4px; }
.map__link { display: inline-block; margin-top: 1rem; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }

/* ---- inquiry ---- */
.inquire { background: var(--cream); }
.inquire .lede { margin-bottom: 0.8rem; }
.inquire__note { font-size: 0.85rem; letter-spacing: 0.04em; color: var(--ink-soft); margin: 0 auto 2.6rem; max-width: 560px; }
.form { display: flex; flex-direction: column; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.form label { display: flex; flex-direction: column; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); gap: 7px; }
.form input, .form select, .form textarea {
  font-family: var(--sans); font-size: 1rem; font-weight: 300; color: var(--ink);
  padding: 13px 14px; border: 1px solid var(--line); background: #fff; border-radius: 2px;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--olive); }
.form textarea { resize: vertical; }
.form .btn { align-self: flex-start; margin-top: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { font-size: 0.95rem; margin: 6px 0 0; min-height: 1.2em; }
.form__status.ok { color: var(--olive-dk); }
.form__status.err { color: #a3402f; }

.agent { text-align: center; margin-top: 3.4rem; padding-top: 2.4rem; border-top: 1px solid var(--line); }
.agent p { margin: 0; }
.agent p:first-child { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.6rem; }
.agent__name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.agent__brk { color: var(--olive-dk); }
.agent__mls { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.5rem !important; }

/* ---- footer ---- */
.footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 64px 0; font-size: 0.85rem; }
.footer p { margin: 0 0 0.9rem; }
.footer a { color: var(--gold); }
.footer__addr { font-family: var(--serif); font-size: 1.3rem; color: #fff; }
.footer .footer__legal { max-width: 720px; margin: 1.4rem auto; font-size: 0.76rem; line-height: 1.7; color: rgba(255,255,255,0.55); text-align: center; }
.footer__copy { font-size: 0.76rem; color: rgba(255,255,255,0.4); margin: 0; }

/* ---- lightbox ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(15, 14, 12, 0.94);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox__fig { margin: 0; max-width: 88vw; max-height: 88vh; text-align: center; }
.lightbox__fig img { max-width: 88vw; max-height: 80vh; object-fit: contain; border-radius: 3px; }
.lightbox__fig figcaption { color: rgba(255,255,255,0.85); font-family: var(--serif); font-size: 1.1rem; margin-top: 14px; }
.lightbox__close { position: absolute; top: 22px; right: 30px; background: none; border: none; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }
.lightbox__nav { background: none; border: none; color: #fff; font-size: 3rem; line-height: 1; cursor: pointer; padding: 0 clamp(10px, 3vw, 34px); opacity: 0.8; }
.lightbox__nav:hover { opacity: 1; }
@media (max-width: 640px) { .lightbox__nav { position: absolute; bottom: 20px; font-size: 2.4rem; } .lightbox__nav--prev { left: 20px; } .lightbox__nav--next { right: 20px; } }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__scroll { animation: none; }
  .grid__item img { transition: none; }
}
