/* ============================================================
   Isabelle Beaullieu — Listings site
   ============================================================ */
:root {
  --ivory: #eef2f9;       /* soft blue-white section background */
  --brand: #b2c1df;       /* logo periwinkle: hero, header, footer, buttons */
  --brand-deep: #8a9dc9;  /* deeper periwinkle for gradients and hovers */
  --paper: #ffffff;       /* page background */
  --ink: #2b2f38;         /* soft charcoal: body text */
  --ink-soft: #454a55;
  --stone: #616877;       /* muted text */
  --line: #dbe2ee;        /* thin divider lines */
  --brass: #5f8a70;        /* sage green accent (small labels) */
  --periwinkle: #b2c1df;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 18px;
}
.section-title { font-size: clamp(36px, 5vw, 56px); }
.lede { font-size: 19px; color: var(--stone); max-width: 620px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 17px 34px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: var(--ink);
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  color: #fff;
}
.site-header--solid { position: sticky; top: 0; background: var(--brand); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 124px; }
.brand { text-decoration: none; line-height: 1.1; }
.logo { --h: 100px; display: block; height: var(--h); width: calc(var(--h) * 1.124); background: var(--brand-deep); -webkit-mask: no-repeat center / contain; mask: no-repeat center / contain; }
.logo--light { background: #fff; }
@media (max-width: 760px) { .logo { --h: 58px; } }
.footer__name .logo { --h: 124px; margin-bottom: 14px; }
.brand__name { font-family: var(--serif); font-size: 26px; letter-spacing: .04em; display: block; }
.brand__sub { font-size: 10px; letter-spacing: .32em; text-transform: uppercase; opacity: .8; }
.nav { display: flex; gap: 36px; align-items: center; }
.nav a { text-decoration: none; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.nav a:hover { opacity: .75; }
.nav .nav__phone { border: 1px solid currentColor; padding: 10px 18px; }
@media (max-width: 760px) {
  .nav a:not(.nav__phone) { display: none; }
  .site-header .wrap { height: 80px; }
  .brand__name { font-size: 22px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex; align-items: flex-end;
  color: #fff;
  background: linear-gradient(160deg, #c3cfe7 0%, var(--brand) 45%, var(--brand-deep) 100%) center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(88,104,146,.3) 0%, rgba(88,104,146,0) 40%, rgba(88,104,146,.5) 100%);
}
.hero--photo::before { background: linear-gradient(180deg, rgba(38,44,60,.45) 0%, rgba(38,44,60,.1) 30%, rgba(38,44,60,.35) 55%, rgba(38,44,60,.72) 100%); }
.hero .wrap { position: relative; width: 100%; padding-bottom: clamp(56px, 10vh, 110px); }
.hero .eyebrow { color: #fff; }
.hero h1, .hero p, .hero .eyebrow { text-shadow: 0 1px 18px rgba(60,72,104,.35); }
.hero h1 { font-size: clamp(46px, 8vw, 104px); max-width: 900px; font-weight: 300; }
.hero h1 em { font-style: italic; }
.hero p { font-size: 19px; max-width: 540px; opacity: .92; margin: 22px 0 38px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section--ivory { background: var(--ivory); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 56px; }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  font-family: var(--sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  background: none; border: 1px solid var(--line); color: var(--stone);
  padding: 10px 16px; cursor: pointer;
}
.filter[aria-pressed="true"], .filter:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Listing cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 56px 40px; }
@media (max-width: 420px) { .grid { grid-template-columns: 1fr; } }
.card { text-decoration: none; display: block; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ivory); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.card:hover .card__media img { transform: scale(1.04); }
.badge {
  position: absolute; top: 18px; left: 18px;
  background: rgba(252,251,248,.94); color: var(--ink);
  font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
  padding: 8px 12px;
}
.badge--pending { background: var(--ink); color: #fff; }
.badge--coming-soon { background: var(--brass); color: #fff; }
.badge--active { background: var(--brand); color: var(--ink); }
.sample-tag {
  position: absolute; top: 18px; right: 18px;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: #fff; background: rgba(43,47,56,.5); padding: 8px 10px;
}
.card__body { padding-top: 22px; }
.card__price { font-family: var(--serif); font-size: 32px; line-height: 1; }
.card__address { font-size: 15px; margin: 10px 0 4px; }
.card__place { font-size: 13px; color: var(--stone); letter-spacing: .06em; }
.card__stats { display: flex; gap: 18px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--stone); letter-spacing: .06em; }
.empty { color: var(--stone); font-style: italic; font-family: var(--serif); font-size: 24px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__portrait {
  aspect-ratio: 4 / 5; background: linear-gradient(160deg, #d3dcee, var(--brand-deep));
  display: flex; align-items: flex-end; justify-content: flex-start; padding: 28px;
  font-family: var(--serif); color: rgba(255,255,255,.9); font-size: 20px; font-style: italic;
}
.about__portrait img { width: 100%; height: 100%; object-fit: cover; }
.about__portrait.has-photo { padding: 0; }
.about blockquote { font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); line-height: 1.3; margin: 0 0 28px; font-style: italic; }
.about__sig { font-family: var(--serif); font-size: 26px; margin-top: 30px; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } .about__portrait { max-width: 420px; } }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--stone); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid #c5cfe0;
  padding: 10px 0; border-radius: 0; outline: none; -webkit-appearance: none; appearance: none;
}
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235c6780'/%3E%3C/svg%3E") right 4px center no-repeat; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--brass); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: 12px; color: var(--stone); margin: 0; }
.form__status { font-family: var(--serif); font-size: 22px; font-style: italic; margin: 0; }
.form__status.is-error { color: #8a3b2e; font-family: var(--sans); font-style: normal; font-size: 15px; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 110px); }
.contact__details p { margin: 0 0 6px; }
.contact__details a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact__details a:hover { border-color: var(--brass); }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Listing detail ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: min(72vh, 680px); }
.gallery button { padding: 0; border: 0; cursor: zoom-in; background: var(--ivory); overflow: hidden; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery button:first-child { grid-row: 1 / 3; }
.gallery__more {
  position: absolute; right: 16px; bottom: 16px; background: rgba(252,251,248,.94);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; padding: 10px 14px;
}
.gallery--one { grid-template-columns: 1fr; }
.gallery__more--mobile { display: none; }
.gallery--two { grid-template-rows: 1fr; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .gallery button { display: none; aspect-ratio: 4 / 3; }
  .gallery button:first-child { display: block; grid-row: auto; }
  .gallery__more--mobile { display: block; }
}

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(40px, 6vw, 90px); padding-top: 56px; }
.detail__price { font-family: var(--serif); font-size: clamp(40px, 5vw, 58px); line-height: 1; margin: 6px 0 12px; }
.detail__address { font-size: 18px; margin: 0; }
.detail__place { color: var(--stone); margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 36px 0 44px; }
.stats div { padding: 22px 0; text-align: center; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats strong { display: block; font-family: var(--serif); font-size: 30px; font-weight: 400; line-height: 1.1; }
.stats span { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--stone); }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } .stats div:nth-child(3) { border-left: 0; } .stats div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.detail h2 { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 20px; }
.detail__desc p { margin: 0 0 18px; }
.features { list-style: none; padding: 0; margin: 40px 0 0; columns: 2; column-gap: 40px; }
.features li { break-inside: avoid; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px; }
.features li::before { content: ""; position: absolute; left: 0; top: 22px; width: 8px; height: 1px; background: var(--brass); }
@media (max-width: 640px) { .features { columns: 1; } }
.facts { margin-top: 40px; font-size: 14px; color: var(--stone); }
.facts span { margin-right: 22px; display: inline-block; }

.inquiry { position: sticky; top: 148px; align-self: start; background: var(--ivory); padding: 40px 36px; }
.inquiry h3 { font-size: 30px; margin-bottom: 8px; }
.inquiry .form { grid-template-columns: 1fr; gap: 18px; margin-top: 24px; }
.inquiry__agent { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; }
.inquiry__agent strong { font-family: var(--serif); font-size: 21px; font-weight: 400; display: block; }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } .inquiry { position: static; } }

.back { display: inline-block; margin: 28px 0 22px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: var(--stone); }
.back:hover { color: var(--ink); }

/* ---------- Neighborhood ---------- */
.hood { margin-top: clamp(72px, 9vw, 120px); padding-top: clamp(56px, 7vw, 90px); border-top: 1px solid var(--line); }
.hood h2 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 14px; }
.hood .lede { margin: 0 0 36px; }
.hood__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hood__grid button { padding: 0; border: 0; background: var(--ivory); cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; }
.hood__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.hood__grid button:hover img { transform: scale(1.04); }
@media (max-width: 760px) { .hood__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(43,47,56,.95); z-index: 100; display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; padding: 18px; font-family: var(--serif); }
.lightbox .lb-close { top: 10px; right: 16px; }
.lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: 12px; letter-spacing: .22em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand); color: var(--ink); padding: 80px 0 40px; font-size: 14px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { opacity: .7; }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.55); }
.footer__name { font-family: var(--serif); font-size: 34px; color: #fff; line-height: 1; margin-bottom: 8px; }
.footer__label { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer__top p { margin: 0 0 6px; }
.footer__legal { padding-top: 30px; font-size: 12px; color: #3f4552; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.eho { display: inline-flex; gap: 10px; align-items: center; }
.eho svg { width: 26px; height: 26px; }
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .card__media img { transition: none; } }

/* ---------- Mobile showing button ---------- */
.mobile-cta { display: none; }
@media (max-width: 960px) {
  .mobile-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
  .inquiry { scroll-margin-top: 20px; }
}
