/* ---------- Tokens ---------- */
:root {
  --ink: #2B2521;
  --ink-soft: #3D352F;
  --muted: #6B6058;
  --muted-2: #5C5149;
  --accent: #6E5844;
  --accent-2: #8A6E52;
  --cream: #FBF8F4;
  --bg: #F3EEE7;
  --line: rgba(43, 37, 33, .1);
  --line-strong: rgba(43, 37, 33, .2);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--cream);
  padding: 12px 20px; z-index: 300;
}
.skip-link:focus { left: 12px; top: 12px; }

section, main > * { scroll-margin-top: var(--header-h); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 32px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; border-radius: 2px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--cream); }
.btn-primary:hover { background: var(--ink); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--accent); transform: translateY(-2px); }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); background: rgba(43, 37, 33, .04); }
.btn-ghost { flex: 1; text-align: center; border: 1px solid var(--line-strong); color: var(--ink); background: transparent; padding: 13px 0; }
.btn-ghost:hover { background: rgba(43, 37, 33, .05); }
.btn-solid { flex: 1; text-align: center; background: var(--accent); color: var(--cream); padding: 13px 0; }
.btn-solid:hover { background: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 248, 244, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 24px rgba(43, 37, 33, .06); }

.header-inner {
  height: var(--header-h);
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 0 24px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 42px; height: 42px; object-fit: cover; border-radius: 2px; }
.brand-name {
  font-family: var(--serif); font-size: 21px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink);
}

.nav-desktop { display: flex; gap: 30px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.nav-desktop a { position: relative; color: var(--muted-2); padding: 4px 0; }
.nav-desktop a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: var(--ink); transition: right .3s var(--ease);
}
.nav-desktop a:hover { color: var(--ink); }
.nav-desktop a:hover::after { right: 0; }
.nav-desktop a[aria-current="true"] { color: var(--ink); }
.nav-desktop a[aria-current="true"]::after { right: 0; }

.header-cta { flex-shrink: 0; }

.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border: 1px solid var(--line-strong); background: transparent;
  border-radius: 2px; cursor: pointer; flex-shrink: 0;
}
.hamburger span {
  width: 20px; height: 1.5px; background: var(--ink); margin: 0 auto;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(84vw, 360px);
  background: var(--cream); z-index: 200;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 40px; box-shadow: -20px 0 60px rgba(43, 37, 33, .15);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 26px; }
.mobile-menu nav a {
  font-family: var(--serif); font-size: 30px; color: var(--ink);
  opacity: 0; transform: translateX(16px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.mobile-menu.open nav a { opacity: 1; transform: translateX(0); }
.mobile-menu.open nav a:nth-child(1) { transition-delay: .08s; }
.mobile-menu.open nav a:nth-child(2) { transition-delay: .13s; }
.mobile-menu.open nav a:nth-child(3) { transition-delay: .18s; }
.mobile-menu.open nav a:nth-child(4) { transition-delay: .23s; }
.mobile-menu.open nav a:nth-child(5) { transition-delay: .28s; }
.mobile-cta { align-self: flex-start; }

.menu-backdrop {
  position: fixed; inset: 0; background: rgba(20, 16, 13, .5); z-index: 190;
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.menu-backdrop.open { opacity: 1; pointer-events: auto; }

body.menu-open { overflow: hidden; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1fr 1.05fr; align-items: stretch;
  max-width: 1280px; margin: 0 auto;
}
.hero-text {
  display: flex; flex-direction: column; justify-content: center; gap: 24px;
  padding: 80px 48px 80px 24px;
}
.eyebrow { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent-2); }
.hero-text h1 {
  margin: 0; font-family: var(--serif); font-weight: 300;
  font-size: clamp(38px, 5vw, 68px); line-height: 1.04; letter-spacing: -.01em;
}
.lead { margin: 0; max-width: 46ch; font-size: 17px; line-height: 1.7; color: var(--muted); }

.scroll-hint {
  display: flex; align-items: center; gap: 12px; padding-top: 30px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  animation: driftY 2.4s ease-in-out infinite;
}
.scroll-line { display: block; width: 42px; height: 1px; background: #C6B7A8; }
@keyframes driftY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.hero-media { position: relative; overflow: hidden; min-height: 420px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: 0; bottom: 28px; display: flex; align-items: center; gap: 14px;
  padding: 14px 22px; background: rgba(251, 248, 244, .95);
}
.hero-badge .num { font-family: var(--serif); font-size: 30px; line-height: 1; }
.hero-badge .label { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }

/* ---------- Highlights ---------- */
.highlights {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  max-width: 1280px; margin: 40px auto 0;
}
.highlight { display: flex; flex-direction: column; gap: 8px; padding: 34px 26px; background: var(--cream); }
.idx { font-family: var(--serif); font-size: 14px; letter-spacing: .16em; color: var(--accent-2); }
.highlight h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 21px; }
.highlight p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---------- Section shared ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { margin: 8px 0 0; font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; }
.section-note { margin: 0; max-width: 34ch; font-size: 14px; line-height: 1.7; color: var(--muted); }

/* ---------- Properties ---------- */
.properties { max-width: 1280px; margin: 0 auto; padding: 88px 24px 24px; }
.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.property-card {
  display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--cream);
  transition: border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.property-card:hover { border-color: var(--line-strong); transform: translateY(-6px); box-shadow: 0 20px 40px rgba(43, 37, 33, .1); }
.property-media { position: relative; overflow: hidden; aspect-ratio: 4/3; cursor: zoom-in; }
.property-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.property-card:hover .property-media img { transform: scale(1.06); }
.property-media .tag {
  position: absolute; top: 14px; left: 14px; padding: 6px 12px; background: rgba(251, 248, 244, .94);
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2);
}
.property-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px 22px; }
.kicker { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-2); }
.property-body h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 25px; line-height: 1.2; }
.muted { margin: 0; font-size: 13px; color: var(--muted); }
.price { margin: 0; font-family: var(--serif); font-size: 24px; color: var(--ink); }
.meta { margin: 0; padding-top: 6px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.card-actions { display: flex; gap: 10px; padding-top: 8px; font-size: 11px; letter-spacing: .14em; }

/* ---------- Amenities ---------- */
.amenities {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start;
  max-width: 1280px; margin: 0 auto; padding: 80px 24px 24px;
}
.amenities-text { display: flex; flex-direction: column; gap: 14px; }
.amenities-text h2 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; }
.amenities-text p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--muted); max-width: 38ch; }
.amenities-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; padding: 0; list-style: none; }
.amenities-list li {
  padding: 15px 6px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-soft);
  position: relative; padding-left: 22px;
}
.amenities-list li::before { content: '—'; position: absolute; left: 0; color: var(--accent-2); }

/* ---------- Gallery ---------- */
.gallery { max-width: 1280px; margin: 0 auto; padding: 64px 24px 96px; }
.gallery-grid { column-count: 3; column-gap: 16px; }
.gallery-grid img {
  width: 100%; margin-bottom: 16px; cursor: zoom-in; border: 0; padding: 0; background: none;
  filter: saturate(.97); transition: filter .5s ease, opacity .5s ease, transform .5s var(--ease);
}
.gallery-grid img:hover, .gallery-grid img:focus-visible { filter: saturate(1.1); opacity: .92; transform: scale(1.01); }

/* ---------- CTA band ---------- */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 56px 24px; background: #F1EAE1;
}
.cta-text { display: flex; flex-direction: column; gap: 8px; }
.cta-text h2 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 3.6vw, 38px); }
.cta-text p { margin: 0; font-size: 15px; color: var(--muted); }
.cta-sub { font-size: 13px !important; color: var(--muted) !important; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 28px 24px; font-size: 12px; letter-spacing: .04em; color: var(--muted);
  max-width: 1280px; margin: 0 auto;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center;
  padding: 24px; background: rgba(18, 15, 12, .94); cursor: zoom-out;
  opacity: 0; transition: opacity .3s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; cursor: default; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb-close, .lb-nav {
  position: absolute; background: transparent; border: 1px solid rgba(242, 235, 227, .35); color: #F2EBE3;
  cursor: pointer; transition: background .3s ease, transform .2s ease;
}
.lb-close:hover, .lb-nav:hover { background: rgba(242, 235, 227, .12); }
.lb-close { top: 24px; right: 24px; width: 44px; height: 44px; font-size: 16px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 20px; }
.lb-nav:hover { transform: translateY(-50%) scale(1.05); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-desktop, .header-cta { display: none; }
  .hamburger { display: flex; }
  .hero { grid-template-columns: 1fr; }
  .hero-media { min-height: 320px; order: -1; }
  .hero-text { padding: 40px 24px 48px; }
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .amenities { grid-template-columns: 1fr; }
  .gallery-grid { column-count: 2; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .brand-name { font-size: 17px; letter-spacing: .16em; }
  .brand-logo { width: 36px; height: 36px; }
  .highlights { grid-template-columns: 1fr; }
  .property-grid { grid-template-columns: 1fr; }
  .amenities-list { grid-template-columns: 1fr; }
  .gallery-grid { column-count: 1; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; }
  .btn-row .btn { flex: 1; }
  .lb-nav { width: 42px; height: 42px; font-size: 16px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .site-footer { justify-content: center; text-align: center; }
}
