/* =========================================================
   3150 West Waterloo — site styles
   Aesthetic: warm luxury-rural. Cream/stone/charcoal palette,
   Cormorant serif display + Inter sans body, generous whitespace.
   ========================================================= */

:root {
  --cream:    #f5f1ea;
  --bone:     #ece6db;
  --sand:     #d8cfc0;
  --stone:    #8a8377;
  --ink:      #2a2823;
  --ink-soft: #4a463e;
  --rust:     #8a4f2c;
  --rust-dk:  #6e3d1f;
  --line:     rgba(42, 40, 35, 0.12);
  --shadow:   0 20px 60px -20px rgba(42,40,35,0.25);
  --serif:    'Cormorant Garamond', Georgia, serif;
  --sans:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

/* layout helpers */
.container        { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container.narrow { max-width: 760px; }

/* typography */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 0.4em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 1.05; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; }
h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 18px;
}
.eyebrow.centered { text-align: center; }

.lede { font-size: 1.18rem; line-height: 1.7; color: var(--ink-soft); font-weight: 300; }

/* buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-primary { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-primary:hover { background: var(--rust-dk); border-color: var(--rust-dk); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(245,241,234,0.6); }
.btn-ghost:hover { background: rgba(245,241,234,0.12); border-color: var(--cream); }
.btn-block { width: 100%; padding: 16px 28px; }

/* header / nav */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(245, 241, 234, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-mark { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; letter-spacing: 0.02em; }
.brand-sub  { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--stone); margin-top: 4px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.nav-cta {
  padding: 10px 18px;
  border: 1px solid var(--ink);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 500;
}
.site-nav a.nav-cta:hover { background: var(--ink); color: var(--cream); }

.nav-toggle {
  display: none;
  background: none; border: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
}

/* hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--cream);
}
.hero-image {
  position: absolute; inset: 0;
  background-image: url('../photos/hero/cover.jpg');
  background-size: cover;
  background-position: center;
  background-color: #2a2823;
  /* fallback gradient if no image yet */
  background-image: linear-gradient(135deg, #4a463e 0%, #2a2823 60%, #1a1814 100%), url('../photos/hero/cover.jpg');
  background-blend-mode: normal;
  transform: scale(1.02);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 160px 32px 120px;
  text-align: center;
}
.hero .eyebrow { color: rgba(245,241,234,0.85); }
.hero h1 { color: var(--cream); margin-bottom: 24px; }
.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: rgba(245,241,234,0.92);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(245,241,234,0.7);
  font-size: 20px;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}

/* intro */
.intro { padding: 120px 0 80px; text-align: center; }

/* properties */
.properties { padding: 60px 0 120px; }
.property {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.property:first-child { border-top: none; padding-top: 40px; }
.property-reverse .property-media { order: 2; }
.property-reverse .property-body  { order: 1; }

.property-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: var(--bone);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  border-radius: 2px;
  overflow: hidden;
}
.property-media::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--sand) 0%, var(--bone) 100%);
  z-index: -1;
}
.property-feature .property-media { aspect-ratio: 16 / 11; }

.property-body h3 { margin-bottom: 16px; }
.property-body .meta {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}
.property-body .meta li {
  padding: 0 14px 0 0;
  margin-right: 14px;
  border-right: 1px solid var(--line);
}
.property-body .meta li:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.property-body p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 520px;
}

/* contact */
.contact {
  background: var(--bone);
  padding: 120px 0;
  text-align: center;
}
.contact h2 { margin-bottom: 16px; }
.contact .lede { margin-bottom: 48px; }

.contact-form {
  max-width: 560px;
  margin: 0 auto 60px;
  text-align: left;
}
.contact-form label {
  display: block;
  margin-bottom: 20px;
}
.contact-form label span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 8px;
  font-weight: 500;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 15px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(42,40,35,0.08);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row label { margin-bottom: 20px; }
.form-note {
  text-align: center;
  font-size: 13px;
  color: var(--stone);
  margin-top: 16px;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.contact-info .label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 8px;
  font-weight: 500;
}
.contact-info p { margin: 0; line-height: 1.6; }
.contact-info a { border-bottom: 1px solid var(--line); }
.contact-info a:hover { border-color: var(--ink); }

/* footer */
.site-footer {
  background: var(--ink);
  color: var(--bone);
  padding: 48px 0;
  text-align: center;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin: 0 0 8px;
}
.footer-fine {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--stone);
  margin: 0;
}

/* =========================================================
   property detail pages
   ========================================================= */
.detail-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 60px;
  color: var(--cream);
  overflow: hidden;
}
.detail-hero .hero-image {
  background-image: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
}
.detail-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 8px; }
.detail-hero .hero-sub { margin: 0; font-family: var(--sans); font-style: normal; letter-spacing: 0.06em; }

.detail-body { padding: 100px 0; }
.detail-body .lede { margin-bottom: 48px; }

.specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
  margin: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.specs div { text-align: center; }
.specs .num { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--ink); }
.specs .lbl { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); margin-top: 8px; }

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 40px;
  list-style: none;
  padding: 0;
  margin: 32px 0 48px;
}
.features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.features li::before {
  content: '— ';
  color: var(--rust);
  margin-right: 8px;
}

/* gallery */
.gallery {
  padding: 80px 0;
  background: var(--bone);
}
.gallery h2 { text-align: center; margin-bottom: 48px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: zoom-in;
  background: var(--sand);
  transition: opacity 0.25s, transform 0.4s ease;
}
.gallery-grid img:hover { opacity: 0.92; transform: scale(1.01); }
.gallery-grid img.tall { aspect-ratio: 3 / 4; grid-row: span 2; }

.gallery-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--stone);
  background: var(--cream);
  border: 1px dashed var(--line);
}
.gallery-empty code {
  background: var(--bone);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.9em;
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(20, 18, 15, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  background: none; border: none;
  color: var(--cream);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--cream);
  font-size: 40px;
  padding: 16px 24px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-count {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  color: rgba(245,241,234,0.7);
  font-size: 13px;
  letter-spacing: 0.14em;
}

/* back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 40px;
}
.back-link:hover { color: var(--ink); }

/* =========================================================
   responsive
   ========================================================= */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 32px; border-bottom: 1px solid var(--line); }
  .site-nav a.nav-cta { border: none; margin: 8px 32px; text-align: center; }

  .property,
  .property-reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 56px 0;
  }
  .property-reverse .property-media,
  .property-reverse .property-body { order: initial; }

  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-info { grid-template-columns: 1fr; gap: 32px; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   at-a-glance section (under hero)
   ========================================================= */
.at-a-glance {
  background: var(--ink);
  color: var(--cream);
  padding: 56px 0;
  text-align: center;
}
.at-a-glance .price-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 8px;
}
.at-a-glance .price {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 500;
  margin: 0 0 32px;
  color: var(--cream);
  letter-spacing: 0.01em;
}
.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 56px;
  margin: 0;
  padding: 32px 0 0;
  list-style: none;
  border-top: 1px solid rgba(245,241,234,0.18);
}
.stats-row li {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}
.stats-row strong {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 6px;
  line-height: 1;
}
.stats-row span {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
}
.builder-credit {
  margin: 32px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--bone);
  text-align: center;
  letter-spacing: 0.02em;
}

/* =========================================================
   schools section
   ========================================================= */
.schools {
  padding: 100px 0;
  text-align: center;
  background: var(--cream);
}
.schools h2 { margin-bottom: 16px; }
.schools > .container > .lede { margin-bottom: 56px; }
.schools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}
.schools-grid .school {
  display: block;
  padding: 36px 24px;
  background: var(--bone);
  border-radius: 2px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.schools-grid .school:hover {
  background: var(--sand);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.schools-grid .school-link {
  margin: 14px 0 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 500;
}
.schools-grid .level {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 14px;
}
.schools-grid .name {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--ink);
  margin: 0;
  line-height: 1.25;
}
.district-note {
  margin-top: 40px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--stone);
}

/* =========================================================
   agent card
   ========================================================= */
.agent-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: center;
  max-width: 760px;
  margin: 0 auto 64px;
  padding: 40px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 2px;
  text-align: left;
}
.agent-photo {
  width: 220px;
  height: 220px;
  background-color: var(--sand);
  background-image: url('../photos/agent/tara.jpg');
  background-size: cover;
  background-position: center top;
  border-radius: 2px;
  box-shadow: var(--shadow);
}
.agent-info .eyebrow { margin-bottom: 10px; }
.agent-info h3 {
  margin: 0 0 4px;
  font-size: 1.8rem;
}
.agent-info .role {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 18px;
}
.agent-info .bio {
  color: var(--ink-soft);
  margin: 0 0 20px;
  font-size: 0.98rem;
}
.agent-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 13px;
  letter-spacing: 0.04em;
  margin: 0;
}
.agent-contact a {
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.agent-contact a:hover { border-color: var(--ink); }

/* =========================================================
   property specifications grid
   ========================================================= */
.specifications {
  padding: 100px 0;
  background: var(--bone);
}
.specifications h2 { text-align: center; margin-bottom: 16px; }
.specifications > .container > .lede { text-align: center; margin-bottom: 64px; }
.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.spec-col h3 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin: 0 0 18px;
}
.spec-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.spec-col li {
  font-size: 0.95rem;
  padding: 8px 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* =========================================================
   location / map section
   ========================================================= */
.location {
  padding: 100px 0;
  text-align: center;
}
.location h2 { margin-bottom: 16px; }
.location .lede { margin-bottom: 16px; }
.location .address {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink);
  margin: 0 0 6px;
}
.location .directions {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--stone);
  margin: 0 0 48px;
}
.map-wrap {
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--bone);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* =========================================================
   listing details / facts strip
   ========================================================= */
.facts {
  padding: 80px 0;
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.facts > .container > .eyebrow.centered { margin-bottom: 12px; }
.facts > .container > .lede { text-align: center; margin: 0 auto 48px; max-width: 560px; font-size: 1rem; }
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.fact {
  text-align: center;
  padding: 24px 16px;
  border-left: 1px solid var(--line);
}
.fact:first-child { border-left: none; }
.fact .label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 10px;
}
.fact .value {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
  margin: 0;
  line-height: 1.25;
}
.fact .sub {
  font-size: 12px;
  color: var(--stone);
  margin: 6px 0 0;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact { border-left: none; border-top: 1px solid var(--line); padding-top: 24px; }
  .fact:first-child { border-top: none; padding-top: 0; }
  .fact:nth-child(2) { border-top: none; padding-top: 0; }
}

@media (max-width: 560px) {
  .spec-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr; }
  .fact { border-top: 1px solid var(--line); border-left: none; padding-top: 20px; }
  .fact:first-child { border-top: none; padding-top: 0; }
  .fact:nth-child(2) { border-top: 1px solid var(--line); padding-top: 20px; }
}

/* footer additions */
.footer-mls {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--stone);
  margin: 16px 0 0;
}

@media (max-width: 720px) {
  .schools-grid { grid-template-columns: 1fr; }
  .agent-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 24px;
    gap: 28px;
  }
  .agent-photo { margin: 0 auto; }
  .agent-contact { justify-content: center; }
  .stats-row { gap: 24px 32px; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .hero-content { padding: 140px 20px 100px; }
  .intro { padding: 80px 0 40px; }
  .contact { padding: 80px 0; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid img.tall { grid-row: auto; }
}
