/* ==========================================================================
   Empyrean Estate — Main Stylesheet  (Dark Luxury theme)
   To change the brand: edit the :root block below.
   All colors, fonts, and spacing come from these variables.
   ========================================================================== */

:root {
  /* ---- Colors ---------------------------------------------------------- */
  /* Warm luxury palette: ivory canvas, charcoal text, Empyrean Blue CTAs,  */
  /* muted gold as a finishing accent only — never as primary text.          */
  --bg:           #FAF6EF;   /* Ivory — page background                */
  --bg-alt:       #E8ECF8;   /* Periwinkle wash — alternate section bg */
  --surface:      #F2EBDD;   /* Cream — cards, panels (warm contrast)  */
  --surface-2:    rgba(232,236,248,0.5); /* Translucent blue (unused)  */
  --surface-hi:   #D6DCF4;   /* Blue-tinted raised surfaces, stat cards */
  --border:       #E4DCCB;   /* Warm divider / border                  */
  --border-hi:    rgba(191,161,95,0.35); /* Muted Gold border          */

  --gold:         #BFA15F;   /* Muted Gold — decorative accents (NOT text; fails AA on ivory) */
  --gold-bright:  #E8DDC2;   /* Soft Gold — hover backgrounds          */
  --gold-dim:     #7A6332;   /* Dark Gold — gold TEXT; passes AA (5.1:1 on ivory) */

  --blue:         #6B7FE3;   /* Empyrean Blue — links, primary actions  */
  --blue-hover:   #4E5FC2;   /* Deep Blue — hover/active, high-contrast blue text */
  --blue-light:   rgba(107,127,227,0.12); /* Empyrean Blue tint — icon-box bg */

  --text:         #211D17;   /* Warm Charcoal — primary text            */
  --text-muted:   #6E665A;   /* Taupe — secondary text                  */
  --text-dim:     #9A9288;   /* Light Taupe — placeholder / tertiary    */

  /* Aliases used by inline styles in HTML files */
  --navy:         #211D17;   /* = --text; fixes var(--navy) in contact/services */
  --text-light:   #FAF6EF;   /* = --bg;   fixes var(--text-light) in about     */

  /* ---- Typography ------------------------------------------------------ */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ---- Spacing --------------------------------------------------------- */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem; --sp-5: 1.25rem;
  --sp-6: 1.5rem;  --sp-8: 2rem;   --sp-10: 2.5rem;  --sp-12: 3rem;
  --sp-16: 4rem;   --sp-20: 5rem;  --sp-24: 6rem;

  /* ---- Layout ---------------------------------------------------------- */
  --max-w: 1240px;
  --pad-x: clamp(1rem, 5vw, 2.5rem);

  /* ---- Cards / motion -------------------------------------------------- */
  --radius:       14px;
  --radius-sm:    8px;
  --shadow:       0 10px 40px rgba(0,0,0,0.35);
  --t:      220ms ease;
  --t-slow: 450ms ease;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; border: none; background: none; outline: none; }
ul, ol { list-style: none; }

::selection { background: var(--blue-hover); color: var(--bg); }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.section { padding-block: var(--sp-24); }
.section--surface { background: var(--bg-alt); }
.section--navy { background: var(--bg-alt); color: var(--text); }

.grid-2 { display: grid; gap: var(--sp-8); }
.grid-3 { display: grid; gap: var(--sp-8); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.story-grid { gap: var(--sp-16); }
@media (max-width: 639px) { .story-grid { gap: var(--sp-8); } }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.005em;
  color: var(--text);
}
.h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--text);
}
.h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

/* Gold letter-spaced eyebrow — the "PROPERTIES" / "PROPERTY HIGHLIGHTS" label */
.section-label, .hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dim);  /* dark gold — passes AA (5.1:1) on ivory/cream */
  margin-bottom: var(--sp-4);
}
.section-intro {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 54ch;
  line-height: 1.8;
  hyphens: auto;
  text-wrap: pretty;
}
.text-center { text-align: center; }
.text-center .section-intro { margin-inline: auto; }

/* Decorative gold diamond ornament (used above section/detail titles) */
.ornament {
  width: 46px; height: 22px;
  margin: 0 auto var(--sp-6);
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.85em 2em;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
}
.btn--primary { background: var(--blue); color: #FAF6EF; }
.btn--primary:hover { background: var(--blue-hover); transform: translateY(-1px); }
.btn--outline {
  border: 1px solid var(--border-hi);
  color: var(--blue-hover);
}
.btn--outline:hover { background: rgba(107,127,227,0.08); color: var(--blue-hover); }
.btn--outline-dark { /* legacy alias */
  border: 1px solid var(--border-hi);
  color: var(--blue-hover);
}
.btn--outline-dark:hover { background: rgba(107,127,227,0.08); }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,246,239,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 76px;
}
/* Container must fill the nav's explicit height so nav__inner's height:100% resolves correctly */
.nav > .container { height: 100%; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: var(--sp-6); }
.nav__logo {
  display: flex; align-items: center; gap: var(--sp-3);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}
.nav__logo img { height: 38px; width: auto; }

.nav__links { display: none; gap: var(--sp-8); }
@media (min-width: 768px) { .nav__links { display: flex; align-items: center; } }
.nav__links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--t);
  position: relative;
  padding-bottom: 4px;
}
.nav__links a:hover, .nav__links a.active { color: var(--text); }
.nav__links a.active::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1.5px; background: var(--gold);
}
.nav__cta { display: none; }
@media (min-width: 768px) { .nav__cta { display: inline-flex; } }

.nav__toggle {
  display: flex; flex-direction: column; gap: 5px;
  cursor: pointer; padding: var(--sp-2); background: none; border: none;
}
@media (min-width: 768px) { .nav__toggle { display: none; } }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: transform var(--t), opacity var(--t); }

/* Wordmark — hidden on mobile, show on desktop */
@media (max-width: 767px) { .nav__wordmark { display: none; } }

/* Bar-lang — EN · ES toggle visible in mobile nav bar only */
.nav__bar-lang {
  display: flex; align-items: center; gap: var(--sp-1);
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap; flex-shrink: 0;
}
@media (min-width: 768px) { .nav__bar-lang { display: none; } }
.nav__bar-lang a { color: var(--text-muted); transition: color var(--t); }
.nav__bar-lang a:hover { color: var(--gold-dim); }
.nav__bar-lang strong { color: var(--text); font-weight: 600; }
.nav__bar-lang span { color: var(--border-hi); }

/* Dark backdrop */
.nav__overlay {
  position: fixed; inset: 0;
  background: rgba(33,29,23,0.45);
  z-index: 199;
  opacity: 0; visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t-slow), visibility var(--t-slow);
}
.nav__overlay.is-open {
  opacity: 1; visibility: visible;
  pointer-events: auto;
}

/* Right-side slide panel */
.nav__mobile {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 72%; max-width: 320px;
  background: var(--bg);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 32px rgba(33,29,23,0.12);
  display: flex; flex-direction: column;
  z-index: 200; overflow-y: auto;
  opacity: 0; visibility: hidden;
  transform: translateX(24px);
  transition: opacity var(--t-slow), visibility var(--t-slow), transform var(--t-slow);
}
.nav__mobile.is-open {
  opacity: 1; visibility: visible;
  transform: translateX(0);
}

/* Panel header: logo + close button */
.nav__mobile-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.nav__mobile-header .nav__logo { font-size: 1.1rem; gap: var(--sp-2); }

/* X close button */
.nav__close {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: none; border: none; cursor: pointer;
  position: relative; flex-shrink: 0;
}
.nav__close span {
  display: block; width: 18px; height: 1.5px;
  background: var(--text);
  position: absolute;
  transition: background var(--t);
}
.nav__close span:first-child { transform: rotate(45deg); }
.nav__close span:last-child  { transform: rotate(-45deg); }
.nav__close:hover span { background: var(--gold-dim); }

/* Panel nav links */
.nav__mobile-links {
  display: flex; flex-direction: column;
  padding: var(--sp-4) var(--sp-6) var(--sp-6);
  flex: 1;
}
.nav__mobile-links a {
  font-family: var(--font-heading);
  font-size: 1.625rem; font-weight: 400;
  color: var(--text); line-height: 1.2;
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.01em;
  transition: color var(--t);
}
.nav__mobile-links a:last-child { border-bottom: none; }
.nav__mobile-links a:hover { color: var(--gold-dim); }

/* CTA button at panel bottom */
.nav__mobile-cta {
  margin: var(--sp-6);
  text-align: center;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  background: var(--bg);
  min-height: calc(92vh - 76px);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.28;
}
/* gradient wash so text stays readable over any photo */
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 12%, rgba(250,246,239,0.55) 60%, rgba(250,246,239,0.1) 100%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 1; max-width: 720px; padding-block: var(--sp-24); }
.hero h1 { margin-bottom: var(--sp-6); }
.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: var(--sp-10);
  max-width: 54ch; line-height: 1.85;
  hyphens: auto; text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* -- Cinema hero (homepage slideshow variant) -------------------------------- */
.hero--cinema {
  background: #211D17;
  min-height: 100vh;
}
.hero--cinema::before {
  background: linear-gradient(rgba(33,29,23,0.58) 0%, rgba(33,29,23,0.84) 100%);
  z-index: 1;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  animation: heroSlide 20s infinite;
}
.hero__slide:nth-child(1) { animation-delay: 0s; }
.hero__slide:nth-child(2) { animation-delay: 5s; }
.hero__slide:nth-child(3) { animation-delay: 10s; }
.hero__slide:nth-child(4) { animation-delay: 15s; }
@keyframes heroSlide {
  0%   { opacity: 0; transform: scale(1.00); }
  5%   { opacity: 1; }
  20%  { opacity: 1; transform: scale(1.05); }
  25%  { opacity: 0; transform: scale(1.06); }
  100% { opacity: 0; }
}
.hero--cinema .hero__content {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
  z-index: 2;
}
.hero--cinema .hero__eyebrow {
  color: rgba(250,246,239,0.82);
  text-shadow: 0 1px 10px rgba(10,8,5,0.55);
}
.hero--cinema h1,
.hero--cinema .h1 {
  color: #FAF6EF;
  text-shadow: 0 2px 28px rgba(10,8,5,0.65), 0 1px 6px rgba(10,8,5,0.4);
}
.hero--cinema p {
  color: rgba(250,246,239,0.88);
  margin-inline: auto;
  text-shadow: 0 1px 14px rgba(10,8,5,0.55);
}
.hero--cinema .hero__actions { justify-content: center; }
.hero--cinema .btn--outline {
  border-color: rgba(250,246,239,0.55);
  color: #FAF6EF;
}
.hero--cinema .btn--outline:hover {
  background: rgba(250,246,239,0.12);
  color: #FAF6EF;
}

/* --------------------------------------------------------------------------
   Stats strip
   -------------------------------------------------------------------------- */
.stats {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
  padding-block: var(--sp-12);
  color: var(--text);
}
.stats__grid {
  display: grid; gap: var(--sp-8); text-align: center;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.stats__num {
  font-family: var(--font-heading);
  font-size: 3rem; font-weight: 600; line-height: 1; color: var(--gold);
}
.stats__label {
  font-size: 0.78rem; color: var(--text-muted);
  letter-spacing: 0.14em; text-transform: uppercase; margin-top: var(--sp-3);
}

/* --------------------------------------------------------------------------
   Split section  (half text / half image — photo bleeds to viewport edge)
   -------------------------------------------------------------------------- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  border-top: 1px solid var(--border);
}
.split-section__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--sp-20);
  padding-left: max(var(--pad-x), calc((100vw - var(--max-w)) / 2));
  padding-right: var(--sp-12);
}
.split-section__media {
  overflow: hidden;
  background: var(--surface);
}
.split-section__media img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.split-section--reverse {
  min-height: 400px;
  border-bottom: 1px solid var(--border);
}
.split-section--reverse .split-section__body {
  order: 2;
  padding-block: var(--sp-16);
  padding-left: var(--sp-12);
  padding-right: max(var(--pad-x), calc((100vw - var(--max-w)) / 2));
}
.split-section--reverse .split-section__media { order: 1; }
@media (max-width: 768px) {
  .split-section { grid-template-columns: 1fr; }
  .split-section__body {
    padding-block: var(--sp-16);
    padding-inline: var(--pad-x);
    order: unset;
  }
  .split-section--reverse .split-section__body { padding-inline: var(--pad-x); padding-block: var(--sp-16); }
  /* Hide decorative split images; geographic images (.split-section--geo) stay visible */
  .split-section:not(.split-section--geo) .split-section__media { display: none; }
  .split-section--geo .split-section__media { min-height: 220px; order: 1; }
  .split-section--geo .split-section__body { order: 2; }
}

/* --------------------------------------------------------------------------
   Property cards  (elegant: image + price overlay, title + icon stats below)
   -------------------------------------------------------------------------- */
.property-grid {
  display: grid; gap: var(--sp-10);
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.property-card { display: flex; flex-direction: column; }
.property-card__image {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.property-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow);
}
.property-card:hover .property-card__image img { transform: scale(1.05); }
/* gradient so the price reads over any photo */
.property-card__image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(33,29,23,0.85) 0%, rgba(33,29,23,0.0) 45%);
  pointer-events: none;
}
.property-card__badge {
  position: absolute; top: var(--sp-4); left: var(--sp-4); z-index: 2;
  background: rgba(33,29,23,0.78);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-hi);
  color: var(--gold);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.4em 0.9em; border-radius: 3px;
}
.property-card__badge--pending { color: #BFA15F; border-color: rgba(191,161,95,0.4); }
.property-card__badge--sold    { color: var(--text-muted); border-color: var(--border); }
.property-card__price-overlay {
  position: absolute; bottom: var(--sp-5); left: var(--sp-5); z-index: 2;
}
.property-card__price {
  font-family: var(--font-heading);
  font-size: 1.85rem; font-weight: 600; color: #fff; line-height: 1;
}
.property-card__price-sub { font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-top: 4px; }

.property-card__price-row {
  display: flex; align-items: baseline; justify-content: center;
  gap: var(--sp-2); margin-top: var(--sp-2);
}
.property-card__price-main {
  font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600; color: var(--gold);
}
.property-card__price-type {
  font-size: 0.75rem; color: var(--text-muted);
  letter-spacing: 0.1em; text-transform: uppercase;
}

.property-card__title {
  font-size: 0.92rem; font-weight: 600;
  letter-spacing: 0.015em; text-transform: none;
  color: var(--text); text-align: center;
  margin-top: var(--sp-5);
}
.property-card__stats {
  display: flex; justify-content: center; flex-wrap: nowrap;
  gap: 0; margin-top: var(--sp-4);
  color: var(--text-muted); font-size: 0.75rem;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.property-card__stat {
  display: flex; align-items: center;
  white-space: nowrap;
  padding: 0 var(--sp-3);
}
.property-card__stat + .property-card__stat {
  border-left: 1px solid var(--border-hi);
}
.property-card__stat svg { display: none; }
.property-card__meta {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--sp-2); padding: var(--sp-3) var(--sp-4) 0;
}
.property-card__type,
.property-card__location {
  font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Value cards (photo + inline bold title + description)
   -------------------------------------------------------------------------- */
.value-card { display: flex; flex-direction: column; }
.value-card__image {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  margin-bottom: var(--sp-6);
}
.value-card__image img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform var(--t-slow);
}
.value-card:hover .value-card__image img { transform: scale(1.03); }
.value-card__text {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-muted);
}
.value-card__text strong { color: var(--text); font-weight: 600; }

/* --------------------------------------------------------------------------
   Service cards
   -------------------------------------------------------------------------- */
.service-card {
  padding: var(--sp-10) var(--sp-8);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color var(--t), transform var(--t);
}
.service-card:hover { border-color: var(--border-hi); transform: translateY(-3px); }
.service-card__num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--blue);
  line-height: 1;
  opacity: 0.5;
  margin-bottom: var(--sp-5);
}
.service-card__title {
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600;
  color: var(--text); margin-bottom: var(--sp-3);
}
.service-card__text { color: var(--text-muted); line-height: 1.8; }

/* --------------------------------------------------------------------------
   CTA banner
   -------------------------------------------------------------------------- */
.cta-banner {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
  padding-block: var(--sp-24);
  text-align: center; color: var(--text);
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(191,161,95,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.cta-banner__content { position: relative; }
.cta-banner h2 { margin-bottom: var(--sp-4); }
.cta-banner p {
  color: var(--text-muted); font-size: 1.15rem;
  margin-bottom: var(--sp-8); max-width: 50ch; margin-inline: auto; line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: var(--sp-6); }
.form__row { display: grid; gap: var(--sp-6); }
@media (min-width: 640px) { .form__row { grid-template-columns: repeat(2, 1fr); } }
.form-field { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-field label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
}
.form-field input, .form-field select, .form-field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem; font-size: 0.95rem; color: var(--text);
  transition: border-color var(--t), box-shadow var(--t);
}
.form-field select option { background: var(--bg); color: var(--text); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(107,127,227,0.2);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-dim); }

/* --------------------------------------------------------------------------
   Page hero (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding-block: var(--sp-20);
  text-align: center; color: var(--text);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(191,161,95,0.08) 0%, transparent 55%);
  pointer-events: none;
}
.page-hero__content { position: relative; }
.page-hero h1 { margin-bottom: var(--sp-4); }
.page-hero p { color: var(--text-muted); font-size: 1.15rem; max-width: 54ch; margin-inline: auto; }

/* Background image layer (injected by PageHero component) */
.page-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  z-index: 0;
}
/* Image variant — dark overlay replaces gradient shimmer; light text */
.page-hero--image { background-color: #211D17; border-bottom: none; }
.page-hero--image::before {
  background: linear-gradient(rgba(33,29,23,0.40), rgba(33,29,23,0.68));
  z-index: 1;
}
.page-hero--image .page-hero__content { position: relative; z-index: 2; }
.page-hero--image .section-label { color: #FAF6EF; }
.page-hero--image h1              { color: #FAF6EF; }
.page-hero--image p               { color: rgba(250,246,239,0.82); }

/* --------------------------------------------------------------------------
   Filter bar
   -------------------------------------------------------------------------- */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-6);
  display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: flex-end;
  margin-bottom: var(--sp-12);
}
.filter-bar .form-field { flex: 1; min-width: 160px; }

/* Clear button height matches inputs */
.filter-bar .btn { padding-top: 0.8rem; padding-bottom: 0.8rem; }

/* --------------------------------------------------------------------------
   Listing detail
   -------------------------------------------------------------------------- */
.listing-banner {
  width: 100%; aspect-ratio: 16/7; max-height: 520px;
  background: var(--surface); overflow: hidden;
}
.listing-banner img { width: 100%; height: 100%; object-fit: cover; }

.listing-head { text-align: center; padding-block: var(--sp-16) var(--sp-12); }
.listing-head__title { margin-bottom: var(--sp-4); }
.listing-head__address {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-dim);
  display: inline-flex; align-items: center; gap: var(--sp-2);
}
.listing-head__address svg { width: 16px; height: 16px; }
.listing-head__desc {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  line-height: 1.5; color: var(--text);
  max-width: 62ch; margin: var(--sp-8) auto 0;
  text-align: left; hyphens: auto; text-wrap: pretty;
}

/* Row of stat cards */
.listing-statcards {
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: var(--sp-16);
}
.statcard {
  background: var(--surface-hi);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-6);
}
.statcard svg { width: 26px; height: 26px; color: var(--gold); margin-bottom: var(--sp-4); }
.statcard__value {
  font-family: var(--font-heading); font-size: 1.9rem; font-weight: 600;
  color: var(--text); line-height: 1;
}
.statcard__label {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-dim); margin-top: var(--sp-2);
}

/* Highlights table (3-column label/value) */
.highlights-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-8);
}
.highlights-grid {
  display: grid; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .highlights-grid { grid-template-columns: repeat(2, 1fr); column-gap: var(--sp-12); } }
@media (min-width: 960px) { .highlights-grid { grid-template-columns: repeat(3, 1fr); } }
.highlight-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--border);
}
.highlight-row__label { font-weight: 600; color: var(--text); font-size: 0.9rem; }
.highlight-row__value { color: var(--gold-dim); font-size: 0.9rem; text-align: right; }

/* Inquiry block on the detail page */
.inquiry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-10);
}
.inquiry__title {
  font-family: var(--font-heading); font-size: 1.875rem; font-weight: 600;
  color: var(--text); margin-bottom: var(--sp-2);
}

/* --------------------------------------------------------------------------
   Team cards
   -------------------------------------------------------------------------- */
.team-card { text-align: center; }
.team-card__photo {
  width: 130px; height: 130px; border-radius: 50%; object-fit: cover;
  margin-inline: auto; margin-bottom: var(--sp-4);
  background: var(--surface); border: 1px solid var(--border-hi);
}
.team-card__name { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; color: var(--text); }
.team-card__role {
  font-size: 0.78rem; color: var(--gold); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; margin-block: var(--sp-2) var(--sp-3);
}
.team-card__bio { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: #EDE5D6;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding-block: var(--sp-16) var(--sp-8);
}
.footer__grid { display: grid; gap: var(--sp-10); margin-bottom: var(--sp-12); }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer__brand .nav__logo { color: var(--text); margin-bottom: var(--sp-4); }
.footer__tagline { font-size: 0.95rem; line-height: 1.7; max-width: 32ch; }
.footer__heading {
  color: var(--text); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: var(--sp-5);
}
.footer__links { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer__links a { font-size: 0.95rem; transition: color var(--t); }
.footer__links a:hover { color: var(--gold); }
.footer__bottom {
  border-top: 1px solid var(--border); padding-top: var(--sp-8);
  display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between;
  font-size: 0.85rem; color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* --------------------------------------------------------------------------
   Mobile overrides
   -------------------------------------------------------------------------- */
@media (max-width: 639px) {
  .section { padding-block: var(--sp-16); }
  .hero__content { padding-block: var(--sp-16); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .filter-bar .form-field { min-width: 100%; }
  .listing-head { padding-block: var(--sp-12) var(--sp-8); }
  .stats { padding-block: var(--sp-16); }
  .section--surface { padding-block-start: var(--sp-20); }
  .cta-banner { padding-block: var(--sp-20); }
}

/* ==========================================================================
   Motion & elegant scroll UX  (powered by js/motion.js)
   Content is only hidden once <html> has the "js" class — so with JS off,
   nothing is ever hidden. Reveal state is scoped under html.js for that reason.
   ========================================================================== */

/* ---- Scroll-reveal ---- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
html.js [data-reveal="fade"] { transform: none; }
html.js [data-reveal="zoom"] { transform: scale(1.04); }
html.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* Stagger for card grids — tight timing, capped at 3 items */
html.js .property-grid > [data-reveal]:nth-child(2),
html.js .grid-3 > [data-reveal]:nth-child(2) { transition-delay: 0.06s; }
html.js .property-grid > [data-reveal]:nth-child(3),
html.js .grid-3 > [data-reveal]:nth-child(3) { transition-delay: 0.12s; }
html.js .property-grid > [data-reveal]:nth-child(4) { transition-delay: 0.18s; }

/* ---- Hero motion (slow Ken Burns) ---- */
.hero__bg { animation: kenburns 24s ease-out forwards; transform-origin: center; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }

/* ---- Parallax band (JS-driven — background layer translated via scroll) ---- */
.parallax-band {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text);
  overflow: hidden;
  isolation: isolate;
}
.parallax-band__bg {
  position: absolute;
  inset: 0;
  background-color: #211D17;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: 0;
}
.parallax-band::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(rgba(33,29,23,0.45), rgba(33,29,23,0.75));
  pointer-events: none;
  z-index: 1;
}
.parallax-band__inner { position: relative; z-index: 2; max-width: 640px; padding: var(--sp-12) var(--pad-x); }
.parallax-band__statement {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 600; line-height: 1.2; color: #FAF6EF;
  margin-bottom: var(--sp-6);
}
@media (max-width: 768px) {
  .parallax-band { min-height: 56vh; }
  .parallax-band__bg { background-attachment: scroll; }
}

/* ---- Overlapping section (pulls up over the band above) ---- */
.section--overlap {
  position: relative;
  z-index: 2;
  margin-top: -64px;
  border-radius: 24px 24px 0 0;
  background: var(--bg);
  box-shadow: 0 -28px 60px rgba(0,0,0,0.12);
}
.section--overlap.section--surface { background: var(--bg-alt); }
@media (max-width: 639px) { .section--overlap { margin-top: -40px; border-radius: 18px 18px 0 0; } }

/* ---- Nav: transparent over hero, solidifies on scroll ---- */
.nav--overlay {
  transition: background var(--t-slow), border-color var(--t-slow), backdrop-filter var(--t-slow);
}
.nav--overlay:not(.is-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
.nav.is-scrolled { background: rgba(250,246,239,0.97); }

/* Refined nav link underline (grows from center on hover) */
.nav__links a::after {
  content: '';
  position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 1.5px; background: var(--gold);
  transition: left 0.28s ease, right 0.28s ease;
}
.nav__links a:hover::after { left: 0; right: 0; }
.nav__links a.active::after { left: 0; right: 0; }
.nav__links a.nav--featured {
  color: var(--blue-hover);
  background: var(--blue-light);
  padding: 0.28em 0.85em;
  border-radius: 20px;
  transition: background var(--t), color var(--t);
}
.nav__links a.nav--featured:hover,
.nav__links a.nav--featured.active {
  color: var(--blue-hover);
  background: rgba(107,127,227,0.22);
}
.nav__links a.nav--featured::after { display: none; }

/* ---- Back-to-top button (injected by motion.js) ---- */
.to-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--blue); color: #FAF6EF;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 90;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  opacity: 0; transform: translateY(10px) scale(0.9); pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue-hover); }
.to-top svg { width: 22px; height: 22px; }
@media (max-width: 768px) { .to-top { right: 16px; bottom: 16px; } }

/* ---- Reduced motion: disable everything, show content instantly ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__bg { animation: none !important; }
  .hero__slide { animation: none !important; opacity: 0 !important; }
  .hero__slide:first-child { opacity: 1 !important; }
  .parallax-band__bg { background-attachment: scroll; }
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switch {
  display: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--sp-1) var(--sp-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: color var(--t), border-color var(--t);
  white-space: nowrap;
}
@media (min-width: 768px) {
  .lang-switch { display: inline-flex; align-items: center; }
}
.lang-switch:hover { color: var(--gold-dim); border-color: var(--gold-dim); }
