/* =========================================================
   1734 Harris St — property site styles
   Colors and fonts live in :root below. Change them there
   and the whole site updates.
   ========================================================= */

:root {
  /* Matched to thebrand.homes */
  --paper:    #EFEEEC;   /* page background (warm off-white) */
  --paper-2:  #E3E2DF;   /* slightly darker panel */
  --ink:      #151A1B;   /* main text + buttons */
  --ink-soft: #4A5153;   /* quiet text */
  --leaf:     #1C2122;   /* dark sections (facts bar, highlights) */
  --citrus:   #151A1B;   /* accent marks on light backgrounds */
  --on-ink:   #EFEEEC;   /* text/marks on dark backgrounds */
  --stucco:   #A7ADAE;
  --line:     #D2D2CE;

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --body:    "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --logo:    "League Spartan", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.06; margin: 0; font-weight: 500; letter-spacing: -0.012em; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h3 { font-size: 1.6rem; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  font-family: var(--body);
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1em 1.5em;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-citrus { background: var(--ink); color: var(--on-ink); }
.btn-citrus:hover { background: transparent; color: var(--ink); }
/* light buttons on dark backgrounds */
.site-header:not(.is-solid) .btn-citrus,
.facts .btn-citrus { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.site-header:not(.is-solid) .btn-citrus:hover,
.facts .btn-citrus:hover { background: transparent; color: var(--on-ink); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter);
  color: #fff;
  transition: background .25s, color .25s;
}
.site-header.is-solid {
  background: rgba(239, 238, 236, .94);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(6px);
}
.wordmark {
  font-family: var(--logo);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.045em;
  text-decoration: none;
}
.wordmark span { opacity: .55; }
.site-nav { display: flex; align-items: center; gap: 28px; font-family: var(--body); }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; }
.site-nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  max-height: 1000px;
  overflow: hidden;
  background: var(--leaf);
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(17, 21, 22, .82) 0%, rgba(17, 21, 22, .25) 42%, rgba(17, 21, 22, 0) 60%),
    linear-gradient(to bottom, rgba(17, 21, 22, .45) 0%, rgba(17, 21, 22, 0) 18%);
}
.hero-text {
  position: absolute;
  z-index: 1;
  left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 6vh, 64px);
  color: #fff;
}
.status {
  display: inline-block;
  margin: 0 0 14px;
  font-family: var(--body);
  font-weight: 500;
  font-size: .76rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  background: var(--on-ink);
  color: var(--ink);
  padding: 7px 14px;
}
.address { display: flex; flex-direction: column; }
.street {
  font-size: clamp(3.4rem, 11.5vw, 10.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: .95;
}
.city {
  font-family: var(--body);
  font-size: clamp(.85rem, 1.4vw, 1.05rem);
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  margin-top: 14px;
  opacity: .92;
}
/* one page-load moment: the address rises in */
@media (prefers-reduced-motion: no-preference) {
  .street { animation: rise .9s cubic-bezier(.2,.7,.2,1) both .15s; }
  .city, .status { animation: rise .9s cubic-bezier(.2,.7,.2,1) both .35s; }
  @keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
}

/* ---------- Quick facts ---------- */
.facts {
  background: var(--leaf);
  color: #fff;
  padding: 26px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.facts dl { display: flex; flex-wrap: wrap; gap: 14px 44px; margin: 0; }
.facts dl > div:has(dd:empty) { display: none; }   /* empty facts stay hidden */
.facts dt { font-family: var(--body); font-weight: 500; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; opacity: .7; }
.facts dd { margin: 0; font-family: var(--display); font-weight: 500; font-size: 1.6rem; }

/* ---------- Story / description ---------- */
.story { max-width: var(--wrap); margin: 0 auto; padding: clamp(64px, 10vw, 128px) var(--gutter) 40px; }
.story-intro { max-width: 46rem; margin-bottom: clamp(48px, 7vw, 96px); }
.story-intro h2 { margin-bottom: 24px; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.65; margin: 0; }

.chapter {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-bottom: clamp(56px, 8vw, 104px);
}
.chapter img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.chapter.flip img { order: 2; }
.chapter-text { max-width: 34rem; }
.chapter-text h3 { margin-bottom: 14px; }
.chapter-text p { margin: 0 0 1em; }

/* ---------- Highlights ---------- */
.highlights {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  background: var(--leaf);
  color: #fff;
}
.highlights-inner { padding: clamp(56px, 8vw, 104px) var(--gutter); }
.highlights h2 { margin-bottom: 32px; }
.highlights ul {
  list-style: none;
  margin: 0; padding: 0;
  columns: 2 18rem;
  column-gap: 48px;
}
.highlights li {
  break-inside: avoid;
  padding: 12px 0 12px 26px;
  border-top: 1px solid rgba(239,238,236,.18);
  position: relative;
  line-height: 1.45;
}
.highlights li::before {
  content: "";
  position: absolute; left: 0; top: 1.05em;
  width: .6em; height: .95em; top: .85em;
  background: var(--on-ink);
}
.highlights-img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }

/* ---------- Gallery ---------- */
.gallery { max-width: var(--wrap); margin: 0 auto; padding: clamp(64px, 10vw, 120px) var(--gutter); }
.gallery-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
  padding: 8px 14px;
  cursor: pointer;
}
.filters button:hover { border-color: var(--ink); }
.filters button.is-active { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.filters .count { opacity: .6; font-weight: 400; }

/* Carousel: big photo on top, thumbnail strip below */
.stage {
  position: relative;
  aspect-ratio: 3 / 2;
  max-height: 78vh;
  width: 100%;
  background: var(--leaf);
  overflow: hidden;
}
.stage:focus-visible { outline-offset: 4px; }
.stage-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.stage-open img { width: 100%; height: 100%; object-fit: cover; }
.stage-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: rgba(239, 238, 236, .92);
  color: var(--ink);
  border: 0;
  font-size: 2rem; line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.stage-arrow:hover { background: var(--ink); color: var(--on-ink); }
.stage-prev { left: 16px; }
.stage-next { right: 16px; }
.stage-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  margin: 0;
  display: flex; justify-content: space-between; gap: 16px;
  padding: 40px 20px 16px;
  background: linear-gradient(to top, rgba(17, 21, 22, .7), rgba(17, 21, 22, 0));
  color: var(--on-ink);
  font-family: var(--body); font-weight: 500; font-size: .72rem;
  letter-spacing: .22em; text-transform: uppercase;
  pointer-events: none;
}

.thumbs {
  position: relative;
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  padding-bottom: 6px;
}
.thumbs a { flex: 0 0 132px; display: block; background: var(--line); scroll-snap-align: start; opacity: .5; transition: opacity .2s; outline-offset: -2px; }
.thumbs a:hover, .thumbs a:focus-visible { opacity: .85; }
.thumbs a.is-current { opacity: 1; outline: 2px solid var(--ink); }
.thumbs a[hidden] { display: none; }
.thumbs img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- 3D tour ---------- */
.tour3d { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) clamp(64px, 10vw, 120px); }
.tour3d-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; margin-bottom: 28px; }
.tour3d-head p { margin: 0; max-width: 30rem; color: var(--ink-soft); }
.tour3d-frame { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--leaf); overflow: hidden; }
.tour3d-frame img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.6); transition: transform .5s, filter .3s; }
.tour3d-frame:hover img { transform: scale(1.02); filter: brightness(.5); }
.tour3d-frame:hover .btn-light { background: transparent; color: var(--on-ink); }
.tour3d-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.btn-light { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.btn-light:hover { background: transparent; color: var(--on-ink); }

@media (max-width: 720px) { .tour3d-frame { aspect-ratio: 4 / 5; } }

/* ---------- Location ---------- */
.location { background: var(--paper-2); }
.location-img { width: 100%; height: clamp(260px, 48vw, 620px); object-fit: cover; object-position: center 6%; }
.location-body {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.location-text h2 { margin-bottom: 18px; }
.location-text p { margin: 0 0 1em; max-width: 30rem; }
.addr { font-family: var(--display); font-weight: 500; font-size: 1.4rem; line-height: 1.35; }
.text-link { font-family: var(--body); font-weight: 500; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); text-underline-offset: 5px; }
.map { overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Contact ---------- */
.contact {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 120px) var(--gutter);
}
.agent h2 { margin-bottom: 18px; }
.agent > p { max-width: 30rem; margin: 0 0 32px; }
/* contact card on the left, photo on the far right — the photo is sized to the card's exact height */
.agent-info { display: flex; justify-content: space-between; align-items: stretch; gap: 32px; }
.headshot {
  flex: 0 0 auto;
  width: 290px;           /* js/main.js resizes this to match the card's exact height */
  aspect-ratio: 1;
  align-self: center;
  border-radius: 50%;
  background: var(--line) url("../images/brandon.jpg") center / cover no-repeat;  /* EDIT: your photo */
}
@media (max-width: 560px) {
  .agent-info { flex-direction: column; }
  .headshot { order: -1; width: min(240px, 65vw) !important; align-self: flex-start; }
}
.card { border-left: 3px solid var(--ink); padding: 4px 0 4px 22px; }
.card p { margin: 0; }
.agent-name { font-family: var(--display); font-weight: 500; font-size: 2rem; }
.agent-title { margin: 2px 0 12px !important; font-family: var(--body); font-weight: 500; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.agent-team { margin-top: 4px !important; }
.agent-dre { color: var(--ink-soft); font-size: .95rem; }
.agent-links { list-style: none; padding: 0; margin: 18px 0 0; font-family: var(--body); font-weight: 400; font-size: 1.05rem; line-height: 2; }
.agent-links a { text-decoration: none; border-bottom: 1.5px solid var(--ink); }
.agent-links a:hover { color: var(--ink-soft); }

.tour-form {
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  gap: 16px;
  align-self: start;
}
.tour-form h3 { margin-bottom: 4px; }
.tour-form label { display: grid; gap: 6px; font-family: var(--body); font-weight: 500; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.tour-form input, .tour-form textarea {
  font: inherit;
  font-family: var(--body);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
}
.tour-form input:focus, .tour-form textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.tour-form .btn { justify-self: start; }
.form-note { margin: 0; font-size: .95rem; color: #9A3B12; min-height: 0; }
.form-note:empty { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(239,238,236,.65);
  padding: 36px var(--gutter);
  font-size: .9rem;
  line-height: 1.6;
}
.site-footer p { margin: 0 0 8px; max-width: 60rem; }
.site-footer strong { color: var(--on-ink); font-family: var(--display); font-weight: 500; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(17, 21, 22, .95);
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  color: #fff;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; padding: 56px 0 24px; }
.lightbox img { max-height: calc(100vh - 140px); width: auto; }
.lightbox figcaption { font-family: var(--display); opacity: .85; text-align: center; }
.lightbox button { background: none; border: 0; color: #fff; cursor: pointer; font-family: var(--display); }
.lb-prev, .lb-next { font-size: 3.5rem; line-height: 1; height: 100%; }
.lb-prev:hover, .lb-next:hover { opacity: .6; }
.lb-close { position: absolute; top: 16px; right: 20px; font-size: 1rem; font-weight: 600; padding: 8px 12px; }
body.lb-open { overflow: hidden; }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 900px) {
  .chapter, .highlights, .location-body { grid-template-columns: 1fr; }
  .chapter.flip img { order: 0; }
  .highlights-img { max-height: 360px; }
  .facts .btn { width: 100%; text-align: center; }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
    background: none; border: 1.5px solid currentColor; color: inherit;
    font-family: var(--body); font-weight: 500; font-size: .72rem;
    letter-spacing: .2em; text-transform: uppercase; padding: 8px 14px; cursor: pointer;
  }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); color: var(--ink);
    padding: 8px var(--gutter) 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 14px; text-align: center; }
  .facts dl { gap: 12px 28px; }
  .hero-img { object-position: 42% 60%; }
  .stage { aspect-ratio: 4 / 3; }
  .stage-arrow { width: 40px; height: 40px; font-size: 1.6rem; }
  .stage-prev { left: 8px; } .stage-next { right: 8px; }
  .stage-bar { padding: 32px 14px 12px; font-size: .64rem; }
  .thumbs a { flex-basis: 96px; }
  .lightbox { grid-template-columns: 44px 1fr 44px; }
  .lb-prev, .lb-next { font-size: 2.6rem; }
}
