/* Adam Barron, REALTOR® with Oakwyn Realty
   Palette taken from the property: hedge cedar, garden sage, Oakwyn gold for accents only. */

@font-face {
  font-family: "Caslon Display";
  src: url("../fonts/caslon-display.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --cedar: #1e3a30;
  --cedar-deep: #152b23;
  --sage: #eef2ec;
  --paper: #ffffff;
  --ink: #17201b;
  --stone: #535d57;
  --line: #d6ddd5;
  --mist: #d4e0d8;
  --gold: #b8963c;
  --serif: "Caslon Display", "Libre Caslon Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--paper); padding: 10px 14px; }

:focus-visible { outline: 3px solid var(--cedar); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border: 2px solid var(--cedar);
  border-radius: 3px;
  font: 600 17px/1.2 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--cedar); color: #fff; }
.btn-primary:hover { background: var(--cedar-deep); border-color: var(--cedar-deep); }
.btn-secondary { background: transparent; color: var(--cedar); }
.btn-secondary:hover { background: var(--sage); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(8px); }
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { text-decoration: none; line-height: 1.1; }
.brand-name { display: block; font-family: var(--serif); font-size: 28px; }
.brand-role { display: block; margin-top: 4px; font-size: 13.5px; color: var(--stone); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { font-size: 16px; text-decoration: none; }
.nav a:not(.btn):hover { text-decoration: underline; }
.nav .btn { min-height: 46px; padding: 0 18px; font-size: 15.5px; }

/* Hero: the featured listing */
.hero { padding: clamp(36px, 6vw, 84px) 0 clamp(64px, 9vw, 120px); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}
.hero-status {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  font-size: 17px;
  color: var(--stone);
}
.hero-status::before { content: ""; width: 44px; height: 2px; background: var(--gold); }
h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(58px, 6.9vw, 100px);
  line-height: 0.96;
  letter-spacing: -0.012em;
}
@media (min-width: 761px) { .h1-num { display: block; } .h1-street { white-space: nowrap; } }
.hero-lede { max-width: 31ch; margin: 26px 0 0; font-size: clamp(19px, 1.65vw, 22px); line-height: 1.55; }
.price { margin: 26px 0 0; font-family: var(--serif); font-size: clamp(42px, 4.3vw, 58px); line-height: 1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .hero-figure img { animation: settle 1.4s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes settle { from { opacity: 0; transform: scale(1.035); } to { opacity: 1; transform: none; } }
}

/* Highlights: the one bold moment */
.highlights { background: var(--cedar); color: #fff; padding: clamp(76px, 10vw, 140px) 0; }
.highlights h2 { margin: 0 0 30px; font: 500 18px/1.4 var(--sans); color: var(--mist); }
.hl-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.hl-list li {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 36px;
  align-items: baseline;
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.hl-title { font-family: var(--serif); font-size: clamp(36px, 4.7vw, 64px); line-height: 1.04; }
.hl-text { max-width: 34ch; font-size: 19px; line-height: 1.5; color: var(--mist); }

/* Sections */
.section { padding: clamp(76px, 9vw, 128px) 0; }
.section-sage { background: var(--sage); }
.title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.5vw, 58px); line-height: 1.04; }
.section-intro { max-width: 58ch; margin: 16px 0 0; color: var(--stone); }

/* Gallery */
.gallery {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.gallery li:first-child { grid-column: span 2; grid-row: span 2; }
.gallery button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--sage); cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Lightbox */
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(13, 22, 18, 0.96);
  color: #fff;
}
.lightbox::backdrop { background: rgba(13, 22, 18, 0.96); }
.lb-inner { position: relative; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; font-size: 15px; color: var(--mist); }
.lb-figure { margin: 0; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 72px; }
.lb-figure img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-caption { margin: 0; padding: 14px 20px 24px; text-align: center; font-size: 16px; color: var(--mist); }
.lb-btn {
  min-width: 52px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 3px;
  background: transparent;
  color: #fff;
  font: 500 16px/1 var(--sans);
  cursor: pointer;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.08); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 28px; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

/* Video tour */
.tour .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(36px, 7vw, 110px);
  align-items: center;
}
.tour video { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 6px; background: var(--cedar); }

/* About */
.about .wrap {
  display: grid;
  grid-template-columns: minmax(240px, 420px) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: center;
}
.about-photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.about-text p { max-width: 56ch; }
.about-text .title { margin-bottom: 22px; }
.details { margin: 30px 0 0; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.details dt { font-size: 15px; color: var(--stone); }
.details dd { margin: 2px 0 0; }
.details a { font-weight: 600; }

/* Contact */
.contact .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: start;
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.agent-note { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 17px; color: var(--stone); }
.form { display: grid; gap: 18px; padding: clamp(24px, 3.5vw, 40px); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; }
.form label { display: block; margin-bottom: 6px; font-size: 16px; font-weight: 600; }
.form input, .form textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #aeb9b1;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font: 400 18px/1.4 var(--sans);
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible { outline-offset: 0; border-color: var(--cedar); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-hint { margin: -6px 0 0; font-size: 15px; color: var(--stone); }
.form-error { margin: 0; font-size: 16px; font-weight: 600; color: #a1261a; }
.form-note { margin: 0; font-size: 15px; color: var(--stone); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--cedar-deep); color: var(--mist); padding: 64px 0 56px; font-size: 16px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 32px; padding-bottom: 34px; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.footer-name { margin: 0 0 10px; font-family: var(--serif); font-size: 28px; color: #fff; }
.site-footer a { color: #fff; }
.oakwyn { width: 104px; height: auto; }
.legal { display: grid; gap: 10px; max-width: 82ch; margin-top: 30px; font-size: 14px; line-height: 1.6; color: #b7c8bd; }
.legal p { margin: 0; }

/* Mobile call and text bar */
.action-bar { display: none; }

@media (max-width: 860px) {
  .nav a:not(.btn) { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 17px; padding-bottom: 80px; }
  .nav { display: none; }
  .site-header .wrap { min-height: 66px; }
  .brand-name { font-size: 25px; }
  .hero { padding-top: 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero-figure { order: -1; margin: 0 calc(var(--gutter) * -1); }
  .hero-figure img { aspect-ratio: 1 / 1; object-position: 50% 60%; }
  .hero-actions .btn { width: 100%; }
  .hl-list li { grid-template-columns: 1fr; gap: 8px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 6px; }
  .gallery li:first-child { grid-row: auto; }
  .lb-figure { padding: 0 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-caption { padding-bottom: 84px; }
  .tour .wrap, .about .wrap, .contact .wrap, .field-row { grid-template-columns: 1fr; }
  .tour video { max-width: 340px; }
  .about-photo { max-width: 340px; }
  .form .btn { justify-self: stretch; }
  .action-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--line);
  }
  .action-bar .btn { min-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
