/* haven. base system — reset, layout, components */

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

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-sm);
  color: var(--text-primary);
}
h1 { font-size: var(--fs-h1); font-weight: 300; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); font-weight: 400; }
h3 { font-size: var(--fs-h3); font-weight: 500; }
p { margin: 0 0 var(--space-sm); }
p.lead { font-size: var(--fs-lead); color: var(--text-secondary); }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-deep);
  margin-bottom: var(--space-2xs);
}

.section { padding: var(--space-2xl) 0; }
.section--alt { background: var(--bg-alt); }
.section--inverse { background: var(--bg-inverse); color: var(--text-inverse); }
.section--inverse h1, .section--inverse h2, .section--inverse h3 { color: var(--text-inverse); }
.section-head { max-width: 640px; margin-bottom: var(--space-lg); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-md); margin-bottom: var(--space-lg); flex-wrap: wrap; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--color-charcoal); color: var(--color-soft-white);
  padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-sm);
}
.skip-link:focus { left: var(--space-sm); top: var(--space-sm); }

:focus-visible {
  outline: 2px solid var(--color-gold-deep);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.9em 1.6em;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-arrow { transition: transform var(--dur-fast) var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-primary { background: var(--color-charcoal); color: var(--color-soft-white); }
.btn-primary:hover { background: var(--color-charcoal-soft); }

.btn-secondary { background: transparent; color: var(--color-charcoal); border-color: var(--color-charcoal); }
.btn-secondary:hover { background: var(--color-charcoal); color: var(--color-soft-white); }

.btn-secondary--on-dark { color: var(--color-soft-white); border-color: rgba(247,246,244,0.5); }
.btn-secondary--on-dark:hover { background: var(--color-soft-white); color: var(--color-charcoal); }

.btn-commerce { background: var(--color-gold); color: var(--color-charcoal); }
.btn-commerce:hover { background: var(--color-gold-deep); color: var(--color-white); }

.btn-ghost { background: transparent; color: var(--color-charcoal); padding: 0.6em 0; }
.btn-ghost:hover { color: var(--color-gold-deep); transform: none; }

.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 0.65em 1.2em; font-size: 0.85rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 246, 244, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--color-line-soft);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 0;
  gap: var(--space-md);
}
.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-charcoal);
  display: inline-flex;
  align-items: baseline;
}
.logo .dot { color: var(--color-gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a { position: relative; padding: 0.25rem 0; color: var(--text-primary); }
.nav-links a.active { color: var(--color-gold-deep); }
.nav-links a:hover { color: var(--color-gold-deep); }

.nav-actions { display: flex; align-items: center; gap: var(--space-sm); }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--color-line); border-radius: var(--radius-sm);
  padding: 0.5rem 0.7rem;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--color-charcoal); margin: 4px 0; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-sm) 0 var(--space-md);
  border-top: 1px solid var(--color-line-soft);
}
.mobile-nav a { padding: 0.6rem 0; font-weight: 500; font-size: 1.05rem; }
.mobile-nav.open { display: flex; }

@media (max-width: 900px) {
  .nav-links, .nav-actions .btn-secondary { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: var(--color-soft-white);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0.15) 0%, rgba(17,17,17,0.15) 40%, rgba(17,17,17,0.72) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  padding: var(--space-2xl) 0 var(--space-2xl);
  max-width: 760px;
}
.hero h1 { color: var(--color-soft-white); margin-bottom: var(--space-md); }
.hero p.lead { color: rgba(247,246,244,0.86); max-width: 520px; }
.hero-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-top: var(--space-md); }

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(3, 1fr);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) {
  .grid, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid, .grid--2, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Property Card ---------- */
.property-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.property-card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.property-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-med) var(--ease); }
.property-card:hover .property-card-media img { transform: scale(1.04); }
.property-card-save {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  border: none;
}
.badge {
  position: absolute; left: 12px; top: 12px;
  background: rgba(17,17,17,0.82);
  color: var(--color-soft-white);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em;
  padding: 0.35em 0.75em; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; gap: 0.4em;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-gold); }

.property-card-body { padding: var(--space-md); display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.property-price { font-family: var(--font-display); font-size: 1.4rem; }
.property-address { font-weight: 600; }
.property-location { color: var(--text-secondary); font-size: var(--fs-small); }
.property-meta {
  margin-top: auto; padding-top: var(--space-sm);
  display: flex; gap: var(--space-md);
  font-size: var(--fs-small); color: var(--text-secondary);
  border-top: 1px solid var(--color-line-soft);
}
.property-meta strong { color: var(--text-primary); }
.property-card-cta { padding: 0 var(--space-md) var(--space-md); }

/* ---------- Room / Product Cards ---------- */
.room-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 3/4; display: flex; align-items: flex-end;
}
.room-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-med) var(--ease); }
.room-card:hover img { transform: scale(1.05); }
.room-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0) 45%, rgba(17,17,17,0.75) 100%);
}
.room-card-content { position: relative; z-index: 1; padding: var(--space-md); color: var(--color-soft-white); width: 100%; }
.room-card-content h3 { color: var(--color-soft-white); margin-bottom: 0.25rem; }
.room-card-link { font-size: 0.85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.35em; }

.product-card { text-align: left; }
.product-card-media { position: relative; aspect-ratio: 1/1; border-radius: var(--radius-md); overflow: hidden; margin-bottom: var(--space-2xs); background: var(--bg-alt); }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; }
.product-card h4 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; margin: 0 0 0.15rem; }
.product-card .product-price { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 0.15rem; }
.product-tag {
  display: inline-block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.2em 0.6em; border-radius: var(--radius-pill);
}
.product-tag--exact { background: rgba(212,162,60,0.18); color: var(--color-gold-deep); }
.product-tag--similar { background: rgba(107,107,107,0.14); color: var(--color-stone); }

.product-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 1fr);
  gap: var(--space-md); overflow-x: auto; padding-bottom: var(--space-sm);
  scroll-snap-type: x proximity;
}
.product-strip .product-card { scroll-snap-align: start; }

/* ---------- Testimonial ---------- */
.testimonial-card {
  background: var(--color-white); border-radius: var(--radius-lg);
  padding: var(--space-lg); box-shadow: var(--shadow-card);
}
.testimonial-quote { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.5; margin-bottom: var(--space-sm); }
.testimonial-name { font-weight: 600; }
.testimonial-meta { color: var(--text-secondary); font-size: var(--fs-small); }

/* ---------- GLOW Experience ---------- */
.glow-experience {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-charcoal);
  aspect-ratio: 16/9;
}
.glow-experience img.glow-poster,
.glow-experience video.glow-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.glow-experience iframe.glow-embed {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.glow-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0) 55%, rgba(17,17,17,0.55) 100%);
  pointer-events: none;
}
.glow-label {
  position: absolute; left: var(--space-md); top: var(--space-md); z-index: 2;
  display: inline-flex; align-items: center; gap: 0.5em;
  background: rgba(17,17,17,0.55); color: var(--color-soft-white);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em;
  padding: 0.4em 0.85em; border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
}
.glow-label .glow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-gold); box-shadow: 0 0 0 3px rgba(212,162,60,0.25); }

.glow-play {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(247,246,244,0.92); border: none;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.glow-play:hover { transform: translate(-50%, -50%) scale(1.06); background: var(--color-white); }
.glow-play svg { width: 22px; height: 22px; fill: var(--color-charcoal); margin-left: 3px; }

.glow-caption {
  position: absolute; left: var(--space-md); bottom: var(--space-md); right: var(--space-md); z-index: 2;
  color: var(--color-soft-white);
}
.glow-caption strong { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.glow-caption span { font-size: 0.85rem; color: rgba(247,246,244,0.8); }

.hotspot {
  position: absolute; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--color-gold);
  border: 2px solid rgba(247,246,244,0.9);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-charcoal); font-weight: 700; font-size: 1rem;
  transform: translate(-50%, -50%);
  transition: transform var(--dur-fast) var(--ease);
  animation: hotspot-pulse 2.4s ease-out 1;
}
.hotspot:hover, .hotspot:focus-visible { transform: translate(-50%, -50%) scale(1.15); }
@keyframes hotspot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(212,162,60,0.55); }
  70% { box-shadow: 0 0 0 14px rgba(212,162,60,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,162,60,0); }
}
@media (prefers-reduced-motion: reduce) { .hotspot { animation: none; } }

.glow-note {
  display: flex; align-items: center; gap: 0.6em;
  color: var(--text-secondary); font-size: var(--fs-small);
  margin-top: var(--space-sm);
}

/* ---------- Filters ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: var(--space-sm);
  align-items: center;
  padding: var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-card);
}
.filter-bar select, .filter-bar input {
  font-family: var(--font-body);
  padding: 0.65em 1em;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-line);
  background: var(--color-soft-white);
  font-size: 0.9rem;
  color: var(--text-primary);
}
.filter-count { margin-left: auto; color: var(--text-secondary); font-size: var(--fs-small); }
.pill-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  border: 1px solid var(--color-line);
  background: var(--color-white);
  padding: 0.5em 1.1em;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--dur-fast) var(--ease);
}
.pill.active, .pill:hover { background: var(--color-charcoal); color: var(--color-soft-white); border-color: var(--color-charcoal); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm) var(--space-md); }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem;
  padding: 0.85em 1em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-line);
  background: var(--color-white);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-gold-deep); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.form-status { margin-top: var(--space-sm); font-size: 0.9rem; }
.form-status.success { color: #3d7a4d; }

/* ---------- Realtor CTA panel ---------- */
.agent-panel {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: var(--space-sm);
}
.agent-panel-top { display: flex; align-items: center; gap: var(--space-sm); }
.agent-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.agent-name { font-weight: 600; }
.agent-title { color: var(--text-secondary); font-size: var(--fs-small); }
.agent-panel-actions { display: flex; flex-direction: column; gap: 0.6rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-charcoal);
  color: rgba(247,246,244,0.75);
  padding: var(--space-2xl) 0 var(--space-lg);
}
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(247,246,244,0.14);
}
.footer-brand .logo { color: var(--color-soft-white); }
.footer-tagline { margin-top: var(--space-xs); max-width: 300px; font-size: 0.92rem; }
.footer-col h4 { font-family: var(--font-body); color: var(--color-soft-white); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--space-sm); }
.footer-col a { display: block; padding: 0.35rem 0; font-size: 0.92rem; color: rgba(247,246,244,0.75); }
.footer-col a:hover { color: var(--color-gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-sm);
  padding-top: var(--space-lg); font-size: 0.82rem; color: rgba(247,246,244,0.5);
}
.footer-powered { display: inline-flex; align-items: center; gap: 0.4em; }
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- Mobile sticky CTA bar ---------- */
.sticky-mobile-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(247,246,244,0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-line);
  padding: 0.6rem var(--container-pad);
  gap: 0.6rem;
}
.sticky-mobile-bar a {
  flex: 1; text-align: center;
  padding: 0.75em 0.5em;
  border-radius: var(--radius-pill);
  font-size: 0.85rem; font-weight: 600;
  border: 1px solid var(--color-line);
}
.sticky-mobile-bar a.primary { background: var(--color-charcoal); color: var(--color-soft-white); border-color: var(--color-charcoal); }
@media (max-width: 720px) {
  .sticky-mobile-bar { display: flex; }
  body { padding-bottom: 64px; }
}

/* ---------- Utility ---------- */
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-sm { gap: var(--space-sm); }
.mt-lg { margin-top: var(--space-lg); }
.text-center { text-align: center; }
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl);
  align-items: center;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: var(--space-lg); } }

.divider { height: 1px; background: var(--color-line); border: none; margin: var(--space-xl) 0; }

.noscript-banner {
  background: var(--color-sand); text-align: center; padding: 0.75rem; font-size: 0.85rem;
}
