/* ============================================================
   64 Coldwell Bay Circle — Luxury Estate Theme
   Palette: ink black + champagne brass. Type: Playfair + Inter.
   ============================================================ */

:root {
  --ink: #0e0f12;
  --ink-2: #15171c;
  --ink-3: #1c1f26;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --bone: #ece7dd;
  --bone-dim: #c9c4ba;
  --muted: #8d887e;
  --gold: #c8a55c;
  --gold-soft: #ddc189;
  --gold-deep: #a8853f;
  --danger: #d9756b;
  --ok: #79b58a;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1240px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 0.4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
p { color: var(--bone-dim); }
a { color: var(--gold-soft); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }

.container-x { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Eyebrow / structural labels (the signature device) ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 38px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}
.eyebrow.center { justify-content: center; }

.section { padding: clamp(64px, 9vw, 130px) 0; }
.section--tight { padding: clamp(48px, 6vw, 84px) 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn-lux {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 16px 34px; border: 1px solid var(--gold);
  color: var(--ink); background: var(--gold); border-radius: var(--radius);
  cursor: pointer; transition: all 0.3s var(--ease);
}
.btn-lux:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--ink); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--bone); border-color: var(--line-strong); }
.btn-ghost:hover { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Top navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px; transition: all 0.35s var(--ease);
}
.nav.scrolled { background: rgba(14, 15, 18, 0.92); backdrop-filter: blur(12px); padding: 14px 28px; border-bottom: 1px solid var(--line); }
.nav__brand { font-family: var(--serif); font-size: 1.15rem; color: var(--bone); letter-spacing: 0.02em; }
.nav__brand b { color: var(--gold); font-weight: 500; }
.nav__links { display: flex; gap: 34px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--bone); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }
.nav__links a:hover { color: var(--gold); }
.nav__toggle { display: none; background: none; border: 0; color: var(--bone); font-size: 1.4rem; cursor: pointer; }

@media (max-width: 920px) {
  .nav__links {
    position: fixed; inset: 0 0 0 30%; flex-direction: column; justify-content: center;
    background: rgba(14,15,18,0.98); backdrop-filter: blur(16px); gap: 26px;
    transform: translateX(100%); transition: transform 0.4s var(--ease);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__toggle { display: block; z-index: 1001; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,15,18,0.55) 0%, rgba(14,15,18,0.2) 40%, rgba(14,15,18,0.92) 100%); }
.hero__inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(60px, 10vh, 130px); }
.hero h1 { color: #fff; margin-bottom: 0.25em; }
.hero__sub { font-size: clamp(1rem, 1.6vw, 1.3rem); max-width: 560px; color: var(--bone); }
.hero__meta { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 38px; padding-top: 30px; border-top: 1px solid var(--line-strong); }
.hero__meta .stat__num { font-family: var(--serif); font-size: 1.9rem; color: var(--gold); }
.hero__meta .stat__lbl { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.scroll-cue { position: absolute; right: 28px; bottom: 40px; z-index: 2; writing-mode: vertical-rl; font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }

/* ---------- Stats strip ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--ink-2); }
.stats-strip .cell { padding: 40px 28px; border-right: 1px solid var(--line); }
.stats-strip .cell:last-child { border-right: 0; }
.stats-strip .num { font-family: var(--serif); font-size: 2.4rem; color: var(--gold); }
.stats-strip .lbl { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
@media (max-width: 720px){ .stats-strip { grid-template-columns: repeat(2,1fr);} .stats-strip .cell:nth-child(2){border-right:0;} }

/* ---------- Feature / amenity lists ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature-grid .item { background: var(--ink); padding: 28px; display: flex; gap: 16px; align-items: flex-start; }
.feature-grid .item i { color: var(--gold); font-size: 1.1rem; margin-top: 3px; }
.feature-grid .item span { color: var(--bone); }

/* ---------- Gallery ---------- */
.gallery-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px; }
.gallery-mosaic a { overflow: hidden; border-radius: var(--radius); position: relative; }
.gallery-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery-mosaic a:hover img { transform: scale(1.08); }
.gallery-mosaic a.tall { grid-row: span 2; }
.gallery-mosaic a.wide { grid-column: span 2; }
@media (max-width: 820px){ .gallery-mosaic { grid-template-columns: repeat(2,1fr); grid-auto-rows: 160px;} .gallery-mosaic a.wide{grid-column:span 2;} }

/* ---------- Cards / panels ---------- */
.panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); }
.floorplan-card { background: var(--ink-2); border: 1px solid var(--line); padding: 20px; }
.floorplan-card img { border-radius: var(--radius); filter: invert(0.92) hue-rotate(180deg) contrast(0.9); opacity: 0.92; }

/* ---------- Testimonials ---------- */
.quote { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.4; color: var(--bone); }
.quote-author { margin-top: 26px; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.stars { color: var(--gold); letter-spacing: 3px; }

/* ---------- Accordion (FAQ) ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; color: var(--bone); font-family: var(--serif); font-size: 1.25rem; padding: 26px 0; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq-q .pm { color: var(--gold); font-size: 1.4rem; transition: transform 0.3s var(--ease); }
.faq-item.open .faq-q .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a p { padding-bottom: 26px; margin: 0; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.input, select.input, textarea.input {
  width: 100%; background: var(--ink); border: 1px solid var(--line-strong); color: var(--bone);
  padding: 13px 15px; border-radius: var(--radius); font-family: var(--sans); font-size: 0.95rem; transition: border-color 0.25s var(--ease);
}
.input:focus { outline: none; border-color: var(--gold); }
textarea.input { resize: vertical; min-height: 110px; }

/* ---------- Mortgage calculator ---------- */
.calc-out { font-family: var(--serif); font-size: 2.8rem; color: var(--gold); }
.calc-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; color: var(--bone-dim); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 64px 0 36px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot__brand { font-family: var(--serif); font-size: 1.6rem; color: var(--bone); }
.foot h5 { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-family: var(--sans); }
.foot a { display: block; color: var(--bone-dim); margin-bottom: 10px; font-size: 0.92rem; }
.foot__base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.78rem; color: var(--muted); }
@media (max-width: 720px){ .foot__grid { grid-template-columns: 1fr;} }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 26px; right: 26px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--ink-3); border: 1px solid var(--line-strong); border-left: 3px solid var(--gold); padding: 14px 18px; border-radius: var(--radius); color: var(--bone); font-size: 0.9rem; min-width: 240px; box-shadow: 0 18px 40px rgba(0,0,0,0.5); animation: toastIn 0.35s var(--ease); }
.toast.err { border-left-color: var(--danger); }
.toast.ok { border-left-color: var(--ok); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px);} to {opacity:1; transform:none;} }

/* ---------- Utility ---------- */
.text-gold { color: var(--gold); }
.muted { color: var(--muted); }
.divider-gold { width: 56px; height: 2px; background: var(--gold); margin: 22px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
@media (max-width: 820px){ .grid-2 { grid-template-columns: 1fr; } }
[data-aos]{ will-change: opacity, transform; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce){ *{ scroll-behavior:auto!important; animation:none!important; transition:none!important;} }
