/* =============================================================
   THE HAVEN PROPERTY — styles.css
   Palette, type, spacing and transitions live in :root below.
============================================================= */

:root {
  /* Colours */
  --off-white: #F7F5F0;
  --charcoal:  #1C1C1C;
  --beige:     #D9CBB8;
  --olive:     #7B8068;
  --white:     #FFFFFF;
  --soft-grey: #EAE7E1;

  /* Derived tones */
  --charcoal-70: rgba(28, 28, 28, 0.7);
  --charcoal-45: rgba(28, 28, 28, 0.45);
  --olive-dark:  #5f634f;
  --line:        #dcd8cf;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;

  /* Fluid type scale */
  --fs-eyebrow: clamp(0.72rem, 0.68rem + 0.2vw, 0.82rem);
  --fs-body: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --fs-h3: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.8vw, 3.4rem);
  --fs-hero: clamp(2.6rem, 1.4rem + 5.6vw, 5.6rem);
  --fs-stat: clamp(2.6rem, 1.8rem + 3.4vw, 4.4rem);

  /* Spacing */
  --space-section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --gutter: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --container: 1280px;
  --radius: 14px;
  --radius-lg: 22px;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.3s var(--ease);
  --t-med: 0.5s var(--ease);
  --shadow-soft: 0 20px 50px -25px rgba(28, 28, 28, 0.35);
  --shadow-card: 0 30px 60px -30px rgba(28, 28, 28, 0.4);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--off-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea, button { font: inherit; color: inherit; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

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

/* Visible focus for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--olive);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 16ch;
}

.section-head { margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.section-head__sub { max-width: 56ch; color: var(--charcoal-70); margin-top: 0.9rem; font-size: 1.02rem; }
.services .section-head__sub { color: rgba(247,245,240,0.7); }
.section-head--split {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2rem; flex-wrap: wrap;
}
.section-head--split .section-title { max-width: 20ch; }
.section-head__note { max-width: 34ch; color: var(--charcoal-70); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.8rem;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em;
  border-radius: 100px;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--charcoal); color: var(--off-white); }
.btn--solid:hover { background: var(--olive); box-shadow: var(--shadow-soft); }
.btn--ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.55); }
.btn--ghost:hover { background: var(--white); color: var(--charcoal); }
.btn--whatsapp { background: var(--olive); color: var(--white); }
.btn--whatsapp:hover { background: var(--olive-dark); box-shadow: var(--shadow-soft); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.9rem; color: var(--charcoal);
  transition: gap var(--t-fast), color var(--t-fast);
}
.link-arrow span { transition: transform var(--t-fast); }
.link-arrow:hover { color: var(--olive); }
.link-arrow:hover span { transform: translateX(5px); }

/* =============================================================
   1. PRELOADER
============================================================= */
.preloader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; }
.preloader__panel {
  position: absolute; left: 0; width: 100%; height: 50%; background: var(--charcoal);
}
.preloader__panel--top { top: 0; }
.preloader__panel--bottom { bottom: 0; }
.preloader__content {
  position: relative; z-index: 2; text-align: center; width: min(80%, 460px);
}
.preloader__brand {
  font-family: var(--font-display); font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 500; color: var(--off-white); letter-spacing: 0.02em; margin-bottom: 1.6rem;
}
.preloader__bar {
  width: 100%; height: 1px; background: rgba(247,245,240,0.2); overflow: hidden; margin-bottom: 0.9rem;
}
.preloader__bar-fill {
  display: block; height: 100%; width: 100%; background: var(--beige);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.15s linear; /* smooths the stepped JS updates */
}
.preloader__count {
  font-size: 0.8rem; letter-spacing: 0.2em; color: var(--beige); font-variant-numeric: tabular-nums;
}
body.is-loading { overflow: hidden; height: 100vh; }

/* =============================================================
   2. HEADER / NAV
============================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background var(--t-med), box-shadow var(--t-med), padding var(--t-med);
  padding: 1.4rem 0;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.header__actions { display: flex; align-items: center; gap: 0.85rem; }
.header.is-scrolled {
  background: var(--off-white); box-shadow: 0 1px 0 var(--line); padding: 0.85rem 0;
}

.logo { display: flex; flex-direction: column; line-height: 0.95; color: var(--charcoal); }
.logo__hi { font-family: var(--font-display); font-style: italic; font-size: 0.82rem; color: var(--olive); line-height: 1; margin-bottom: 1px; }
.logo__mark { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; line-height: 0.9; }
.logo__sub { font-size: 0.54rem; letter-spacing: 0.24em; font-weight: 600; margin-top: 2px; }
.logo--light { color: var(--off-white); }
.logo--light .logo__hi { color: var(--beige); }

.nav__list { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.nav__link {
  position: relative; font-size: 0.86rem; font-weight: 500; color: var(--charcoal);
  transition: color var(--t-fast); padding: 0.3rem 0;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: currentColor; transition: width var(--t-fast);
}
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.nav__link.is-active { color: var(--olive); }

.header__cta { padding: 0.58rem 1.25rem; font-size: 0.8rem; font-weight: 600; }

/* Language toggle */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.7rem; margin-left: 0;
  border: 1px solid rgba(28,28,28,0.2); border-radius: 999px;
  background: transparent; cursor: pointer; z-index: 120;
  font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  transition: border-color var(--t-fast);
}
.lang-toggle:hover { border-color: var(--olive); }
.lang-toggle__opt { color: var(--olive); transition: color var(--t-fast); }
.lang-toggle__opt.is-active { color: #333; }
.lang-toggle__sep { color: rgba(28,28,28,0.25); }
.lang-toggle--mobile {
  display: none; margin: 1.5rem auto 0; font-size: 0.9rem;
  border-color: rgba(247,245,240,0.3);
}
.lang-toggle--mobile .lang-toggle__opt { color: var(--beige); }
.lang-toggle--mobile .lang-toggle__opt.is-active { color: #333; }
.lang-toggle--mobile .lang-toggle__sep { color: rgba(247,245,240,0.3); }

/* Hamburger */
.hamburger { display: none; width: 30px; height: 22px; position: relative; z-index: 120; transition: opacity var(--t-fast); }
.hamburger span {
  position: absolute; left: 0; width: 100%; height: 2px; background: var(--charcoal);
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }
.hamburger.is-open span { background: var(--charcoal); }
.hamburger.is-open { opacity: 0; pointer-events: none; }
.hamburger.is-open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 110; background: var(--off-white);
  display: grid; place-items: center;
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path 0.6s var(--ease);
  pointer-events: none;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); pointer-events: auto; }
.mobile-menu__close {
  position: absolute; top: 1.4rem; right: 1.4rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.9rem 0.5rem 1rem; border-radius: 100px;
  background: var(--charcoal); color: var(--off-white); cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
}
.mobile-menu__close:hover { background: var(--olive); transform: translateY(-1px); }
.mobile-menu__close-x { font-size: 1.5rem; line-height: 1; margin-top: -2px; }
.mobile-menu__close-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.mobile-menu__nav { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; text-align: center; }
.mobile-menu__link { font-family: var(--font-display); font-size: 2rem; font-weight: 500; }
.mobile-menu__cta { margin-top: 1rem; }

/* =============================================================
   3. HERO — agent-first personal branding
============================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  overflow: hidden; padding: clamp(6.5rem, 12vh, 9rem) 0 3rem;
  background: linear-gradient(160deg, var(--off-white) 0%, var(--soft-grey) 55%, #e3ded4 100%);
}

/* Subtle background — image must never compete with the agent */
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__bg-image { position: absolute; inset: 0; overflow: hidden; }
.hero__bg-image img {
  width: 100%; height: 100%; object-fit: cover;
  /* Very faint + toned to the palette so it reads as texture, not photo */
  opacity: 0.13;
  filter: grayscale(70%) sepia(24%) contrast(0.9) brightness(1.05);
  will-change: transform;
}
.hero__bg-image::after {
  /* Fade the image toward the text side for readability */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--off-white) 0%, rgba(247,245,240,0.55) 42%, rgba(247,245,240,0.05) 100%);
}
.hero__bg-circle {
  position: absolute; top: -18%; right: -8%; width: 46vw; height: 46vw;
  border-radius: 50%; border: 1px solid rgba(123,128,104,0.18);
}
.hero__bg-circle::after {
  content: ''; position: absolute; inset: 12%; border-radius: 50%;
  border: 1px solid rgba(123,128,104,0.1);
}
.hero__bg-lines {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(28,28,28,0.03) 1px, transparent 1px) 0 0 / 25% 100%;
}

.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 4rem); align-items: center;
}
/* Editorial overlap: headline extends beneath the portrait.
   The portrait uses multiply blending, so text vanishes behind the agent
   and shows through the light photo background — a cut-out effect for free. */
.hero__content { position: relative; z-index: 1; }
.hero__portrait-wrap { z-index: 2; }
@media (min-width: 861px) {
  .hero__title { width: 132%; pointer-events: none; }
}

/* LEFT — storytelling */
.hero__eyebrow {
  font-size: var(--fs-eyebrow); letter-spacing: 0.28em; text-transform: uppercase;
  font-weight: 600; color: var(--olive); margin-bottom: 1.2rem;
}
.hero__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5rem);
  line-height: 1.18; letter-spacing: -0.015em; color: var(--charcoal);
  margin-bottom: 1.5rem;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }
.hero__title em { font-style: italic; color: var(--olive); }
.hero__desc {
  max-width: 44ch; color: var(--charcoal-70);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); margin-bottom: 2.2rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.btn--outline { background: transparent; color: var(--charcoal); border: 1px solid var(--charcoal-45); }
.btn--outline:hover { background: var(--charcoal); color: var(--off-white); }

/* Trust bar */
.hero__trust {
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--charcoal-70);
}
.hero__trust-item strong { color: var(--charcoal); font-weight: 700; margin-right: 0.3rem; }
.hero__stars { color: var(--olive); letter-spacing: 0.12em; }
.hero__trust-sep { width: 1px; height: 16px; background: var(--line); }

/* RIGHT — portrait with arch + floating cards */
.hero__portrait-wrap {
  position: relative; display: flex; justify-content: center; align-items: flex-end;
  min-height: clamp(420px, 62vh, 640px);
}
.hero__portrait-arch {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(88%, 420px); height: 88%;
  border-radius: 300px 300px 0 0;
  background: linear-gradient(180deg, var(--beige) 0%, #cbbfa9 100%);
  box-shadow: inset 0 -40px 60px -30px rgba(28,28,28,0.12);
}
.hero__portrait {
  position: relative; z-index: 2;
  width: min(92%, 440px); height: 100%; object-fit: contain; object-position: bottom;
  /* Studio background is near-white: multiply blends it into the design
     so the portrait sits directly on the hero with no photo edges. */
  mix-blend-mode: multiply;
  filter: contrast(1.03) saturate(1.02);
}

/* Floating stat card — one only, subtle */
.float-card {
  position: absolute; z-index: 3;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
  border-radius: var(--radius); padding: 0.9rem 1.2rem;
  box-shadow: 0 18px 40px -18px rgba(28,28,28,0.28);
  display: flex; flex-direction: column; gap: 0.1rem;
  border: 1px solid rgba(255,255,255,0.7);
}
.float-card__big { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--charcoal); line-height: 1; }
.float-card__small { font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--charcoal-70); font-weight: 600; }
.float-card--stat { top: 20%; left: -4%; }

/* Sticker badge — editorial oval, slightly rotated */
.hero__badge {
  position: absolute; z-index: 4; top: 10%; right: -2%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--white); border-radius: 50%;
  padding: 1.5rem 1.9rem;
  transform: rotate(8deg);
  box-shadow: 0 18px 40px -18px rgba(28,28,28,0.3);
}
.hero__badge::after {
  /* Offset outline ring, sticker-style */
  content: ''; position: absolute; inset: 5px; border-radius: 50%;
  border: 1px solid var(--beige);
}
.hero__badge-name {
  font-family: var(--font-display); font-style: italic; font-size: 1.05rem;
  color: var(--olive); line-height: 1.1;
}
.hero__badge-text { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; color: var(--charcoal); }

/* Mini featured-listing card peeking at the bottom right */
.hero__listing {
  position: absolute; z-index: 3; right: -3%; bottom: -0.5rem;
  width: min(290px, 82%);
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 26px 55px -22px rgba(28,28,28,0.4);
  padding: 0.7rem; border: 1px solid rgba(255,255,255,0.8);
}
.hero__listing-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px; }
.hero__listing-info { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; padding: 0.7rem 0.3rem 0.2rem; }
.hero__listing-meta { display: flex; flex-direction: column; min-width: 0; }
.hero__listing-name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__listing-price { font-size: 0.78rem; color: var(--olive); font-weight: 700; }
.hero__listing-btn {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.5rem 0.95rem; border-radius: 100px; font-size: 0.76rem; font-weight: 700;
  border: 1px solid var(--line); background: var(--off-white); color: var(--charcoal);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.hero__listing-btn:hover { background: var(--charcoal); color: var(--off-white); border-color: var(--charcoal); }

/* Scroll cue */
.hero__scroll {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  color: var(--charcoal-70); font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase;
}
.hero__scroll-line { width: 1px; height: 40px; background: var(--charcoal-45); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 40%; background: var(--olive);
  animation: scrollLoop 2s infinite var(--ease);
}
@keyframes scrollLoop { 0% { transform: translateY(-100%); } 100% { transform: translateY(250%); } }

/* =============================================================
   4. STATS
============================================================= */
.stats { padding: clamp(3rem, 5vw, 5rem) 0; background: var(--charcoal); color: var(--off-white); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat { display: flex; flex-direction: column; gap: 0.4rem; }
.stat__num {
  font-family: var(--font-display); font-size: var(--fs-stat); font-weight: 500; line-height: 1;
  color: var(--white); font-variant-numeric: tabular-nums;
}
.stat__label { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--beige); }

/* =============================================================
   5. ABOUT — dark, arch portrait + inline stats
============================================================= */
.about { padding: var(--space-section) 0; background: var(--charcoal); color: var(--off-white); }
.about__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }

/* Arched portrait frame with beige backdrop */
.about__arch {
  position: relative; max-width: 460px; margin-inline: auto;
  aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 260px 260px 20px 20px;
  background: linear-gradient(180deg, var(--beige) 0%, #cbbfa9 100%);
}
.about__portrait {
  position: absolute; inset: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; height: 100%; object-fit: contain; object-position: bottom;
  /* Studio white background multiplies into the beige arch — seamless cut-out */
  mix-blend-mode: multiply;
  filter: contrast(1.03) saturate(1.02);
}

/* Content */
.about__label {
  display: flex; align-items: center; gap: 1rem;
  font-size: var(--fs-eyebrow); letter-spacing: 0.24em; text-transform: uppercase;
  font-weight: 700; color: var(--beige); margin-bottom: 1.2rem;
}
.about__label-line { width: 48px; height: 1px; background: var(--olive); }
.about__name {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.4rem, 1.6rem + 3vw, 3.8rem); line-height: 1; letter-spacing: -0.01em;
  color: var(--white); margin-bottom: 1.4rem;
}
.about__bio { color: rgba(247,245,240,0.72); max-width: 56ch; margin-bottom: 2.6rem; font-size: clamp(1rem, 0.95rem + 0.25vw, 1.12rem); }

.about__stats { display: grid; grid-template-columns: repeat(3, auto); gap: clamp(1.5rem, 5vw, 4rem); margin-bottom: 2.4rem; }
.about__stats .stat__num {
  display: block; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); line-height: 1; color: var(--white);
  font-variant-numeric: tabular-nums; margin-bottom: 0.4rem;
}
.about__stat-label { font-size: 0.78rem; letter-spacing: 0.08em; color: rgba(247,245,240,0.6); }

.about__foot { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.about__signature { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--beige); }
.link-arrow--light { color: var(--beige); }
.link-arrow--light:hover { color: var(--white); }

/* =============================================================
   6. TIMELINE
============================================================= */
.timeline { padding: var(--space-section) 0; background: var(--soft-grey); }
.timeline__list { position: relative; max-width: 760px; margin-inline: auto; }
.timeline__list::before {
  content: ''; position: absolute; left: 92px; top: 8px; bottom: 8px; width: 1px; background: var(--line);
}
.timeline__item { position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 2rem; padding: 1.4rem 0; }
.timeline__item::before {
  content: ''; position: absolute; left: 88px; top: 1.9rem; width: 9px; height: 9px; border-radius: 50%;
  background: var(--olive); box-shadow: 0 0 0 5px var(--soft-grey);
}
.timeline__year { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--olive); }
.timeline__body h3 { font-size: var(--fs-h3); font-weight: 600; font-family: var(--font-display); margin-bottom: 0.3rem; }
.timeline__body p { color: var(--charcoal-70); max-width: 46ch; }

/* =============================================================
   7 + 8. PROPERTIES + FILTERS
============================================================= */
.properties { padding: var(--space-section) 0; }
.filters { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filters__group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-btn {
  padding: 0.55rem 1.1rem; font-size: 0.82rem; font-weight: 600; border-radius: 100px;
  background: var(--white); color: var(--charcoal-70); border: 1px solid var(--line);
  transition: all var(--t-fast);
}
.filter-btn:hover { border-color: var(--olive); color: var(--charcoal); }
.filter-btn.is-active { background: var(--charcoal); color: var(--off-white); border-color: var(--charcoal); }
.filters__search input {
  padding: 0.7rem 1.1rem; min-width: 240px; border-radius: 100px; border: 1px solid var(--line);
  background: var(--white); transition: border-color var(--t-fast);
}
.filters__search input:focus { border-color: var(--olive); outline: none; }

.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }

.property-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-soft); transition: transform var(--t-med), box-shadow var(--t-med);
  display: flex; flex-direction: column;
}
.property-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); }
.property-card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.property-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.property-card:hover .property-card__media img { transform: scale(1.08); }
.property-card__status {
  position: absolute; top: 1rem; left: 1rem; padding: 0.35rem 0.85rem; font-size: 0.68rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 100px;
  background: var(--off-white); color: var(--charcoal);
}
.property-card__status[data-status="New Launch"] { background: var(--olive); color: var(--white); }
.property-card__status[data-status="For Rent"] { background: var(--beige); color: var(--charcoal); }
.property-card__fav {
  position: absolute; top: 0.85rem; right: 0.85rem; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.9); display: grid; place-items: center; font-size: 1.1rem;
  color: var(--charcoal); transition: transform var(--t-fast), background var(--t-fast);
}
.property-card__fav:hover { transform: scale(1.1); }
.property-card__fav.is-active { color: #c0392b; background: var(--white); }

.property-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.property-card__name { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; }
.property-card__loc { color: var(--olive); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; margin: 0.2rem 0 0.7rem; }
.property-card__price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-bottom: 0.9rem; }
.property-card__specs { display: flex; gap: 1.1rem; font-size: 0.8rem; color: var(--charcoal-70); padding-top: 0.9rem; border-top: 1px solid var(--line); margin-top: auto; }
.property-card__specs span { display: flex; align-items: center; gap: 0.3rem; }
.property-card__cta { display: flex; align-items: center; justify-content: space-between; margin-top: 1.2rem; }
.property-card__view { font-weight: 600; font-size: 0.86rem; }
.property-card__arrow { transition: transform var(--t-fast); }
.property-card:hover .property-card__arrow { transform: translateX(5px); }

.no-results {
  text-align: center; padding: 4rem 1rem; font-family: var(--font-display);
  font-size: 1.5rem; color: var(--charcoal-70);
}

/* Buyer nudge — soft conversion prompt under the listings */
.properties__nudge {
  text-align: center; margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(2.2rem, 4vw, 3.5rem);
  background: var(--soft-grey); border-radius: var(--radius-lg);
}
.properties__nudge p {
  max-width: 46ch; margin: 0 auto 1.6rem;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.35rem, 1rem + 1.5vw, 2rem); line-height: 1.25; color: var(--charcoal);
}

/* =============================================================
   10. SERVICES
============================================================= */
.services { padding: var(--space-section) 0; background: var(--charcoal); color: var(--off-white); }
.services .eyebrow { color: var(--beige); }
.services .section-title { color: var(--white); }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.service-card {
  padding: 2rem 1.8rem; border-radius: var(--radius); border: 1px solid rgba(247,245,240,0.12);
  transition: background var(--t-med), transform var(--t-med); display: flex; flex-direction: column; min-height: 280px;
}
.service-card:hover { background: rgba(247,245,240,0.05); transform: translateY(-6px); }
.service-card__num { font-family: var(--font-display); font-size: 0.9rem; color: var(--beige); letter-spacing: 0.1em; }
.service-card__icon { font-size: 1.8rem; color: var(--olive); margin: 0.8rem 0 1rem; }
.service-card h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; margin-bottom: 0.7rem; color: var(--white); }
.service-card p { color: rgba(247,245,240,0.7); font-size: 0.92rem; margin-bottom: 1.2rem; }
.service-card .link-arrow { color: var(--beige); margin-top: auto; }
.service-card .link-arrow:hover { color: var(--white); }

/* =============================================================
   11. WHY CHOOSE US
============================================================= */
.why { padding: 0; }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; }
.why__media { position: relative; min-height: 460px; }
.why__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.why__content { display: flex; align-items: center; padding: var(--space-section) clamp(1.5rem, 5vw, 5rem); }
.why__inner { max-width: 34rem; }
.why__list { margin-top: 2rem; display: grid; gap: 1.4rem; }
.why__item { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.why__marker { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--olive); margin-top: 0.5rem; flex-shrink: 0; }
.why__item h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.2rem; }
.why__item p { color: var(--charcoal-70); font-size: 0.9rem; }

/* =============================================================
   12. PROCESS
============================================================= */
.process { padding: var(--space-section) 0; }
.process__track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.process__line {
  position: absolute; top: 26px; left: 12%; right: 12%; height: 1px; background: var(--line); transform-origin: left;
}
.process__step { text-align: center; position: relative; }
.process__num {
  width: 54px; height: 54px; border-radius: 50%; background: var(--white); border: 1px solid var(--line);
  display: grid; place-items: center; margin: 0 auto 1.4rem; font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 600; color: var(--olive); position: relative; z-index: 1;
}
.process__step h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; margin-bottom: 0.5rem; }
.process__step p { color: var(--charcoal-70); font-size: 0.9rem; max-width: 24ch; margin-inline: auto; }

/* =============================================================
   13. TESTIMONIALS
============================================================= */
.testimonials { padding: var(--space-section) 0; background: var(--soft-grey); }
.carousel { max-width: 820px; margin-inline: auto; }
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; }
.testimonial {
  flex: 0 0 100%; padding: 2.5rem clamp(1rem, 4vw, 3rem); text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.testimonial__rating { color: var(--olive); letter-spacing: 0.2em; margin-bottom: 1.4rem; font-size: 1rem; }
.testimonial__quote {
  font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1.6vw, 2rem); line-height: 1.35;
  font-weight: 500; font-style: italic; max-width: 32ch; margin-bottom: 2rem;
}
.testimonial__person { display: flex; align-items: center; gap: 0.9rem; }
.testimonial__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.testimonial__name { display: block; font-weight: 700; }
.testimonial__role { display: block; font-size: 0.82rem; color: var(--olive); }
.carousel__controls { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 1rem; }
.carousel__btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--white);
  font-size: 1.1rem; display: grid; place-items: center; transition: all var(--t-fast);
}
.carousel__btn:hover { background: var(--charcoal); color: var(--off-white); border-color: var(--charcoal); }
.carousel__dots { display: flex; gap: 0.5rem; }
.carousel__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: all var(--t-fast); }
.carousel__dot.is-active { background: var(--olive); width: 24px; border-radius: 100px; }

/* =============================================================
   14. NEIGHBOURHOODS
============================================================= */
.neighbourhoods { padding: var(--space-section) 0; }
.hood-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 1.8rem); }
.hood-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; display: block; }
.hood-card__media { aspect-ratio: 3 / 4; overflow: hidden; }
.hood-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.hood-card:hover .hood-card__media img { transform: scale(1.06); }
.hood-card__body {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem; color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(28,28,28,0.85));
}
.hood-card__body h3 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; }
.hood-card__body span { display: block; font-size: 0.82rem; opacity: 0.85; }
.hood-card__body .link-arrow { color: var(--beige); margin-top: 0.5rem; }

/* =============================================================
   15. CTA
============================================================= */
.cta { position: relative; padding: var(--space-section) 0; overflow: hidden; color: var(--white); text-align: center; }
.cta__bg { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(28,28,28,0.75), rgba(28,28,28,0.75)),
    url('https://images.unsplash.com/photo-1600585154526-990dced4db0d?w=1600&q=80&auto=format&fit=crop') center/cover;
}
.cta__inner { max-width: 46rem; margin-inline: auto; }
.cta__title { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 1.2rem; }
.cta__title .line { display: block; overflow: hidden; }
.cta__title .line > span { display: block; }
.cta__desc { color: rgba(255,255,255,0.85); max-width: 44ch; margin: 0 auto 2rem; }
.cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* =============================================================
   16. CONTACT
============================================================= */
.contact { padding: var(--space-section) 0; }
.contact__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.5rem, 5vw, 5rem); }
.contact__lead { color: var(--charcoal-70); margin-bottom: 2rem; max-width: 40ch; }
.contact__details { display: grid; gap: 1rem; margin-bottom: 2rem; }
.contact__details li { display: flex; flex-direction: column; }
.contact__details strong { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--olive); margin-bottom: 0.15rem; }

.contact__form { background: var(--white); padding: clamp(1.6rem, 3vw, 2.6rem); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.field { margin-bottom: 1.2rem; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--off-white);
  transition: border-color var(--t-fast); resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--olive); outline: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c0392b; background: #fdf3f2; }
.field__error { color: #c0392b; font-size: 0.75rem; margin-top: 0.3rem; min-height: 1em; }
.contact__submit { width: 100%; margin-top: 0.5rem; position: relative; }
.btn__spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.35); border-top-color: var(--off-white);
  border-radius: 50%; display: none;
}
.contact__submit.is-loading .btn__label { opacity: 0.6; }
.contact__submit.is-loading .btn__spinner { display: inline-block; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.contact__success { margin-top: 1rem; padding: 0.9rem 1.1rem; background: rgba(123,128,104,0.12); color: var(--olive-dark); border-radius: 10px; font-size: 0.9rem; font-weight: 600; }

/* =============================================================
   17. FOOTER
============================================================= */
.footer { background: var(--charcoal); color: var(--off-white); padding: clamp(3.5rem, 6vw, 6rem) 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(247,245,240,0.12); }
.footer__desc { color: rgba(247,245,240,0.6); font-size: 0.9rem; margin: 1.2rem 0; max-width: 34ch; }
.footer__social { display: flex; gap: 1.2rem; font-size: 0.85rem; }
.footer__social a { color: var(--beige); transition: color var(--t-fast); }
.footer__social a:hover { color: var(--white); }
.footer__col h4 { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--beige); margin-bottom: 1.2rem; }
.footer__col ul { display: grid; gap: 0.7rem; }
.footer__col a, .footer__col li { color: rgba(247,245,240,0.7); font-size: 0.9rem; transition: color var(--t-fast); }
.footer__col a:hover { color: var(--white); }
.footer__newsletter { display: flex; margin-top: 1.2rem; border: 1px solid rgba(247,245,240,0.2); border-radius: 100px; overflow: hidden; }
.footer__newsletter input { flex: 1; background: transparent; padding: 0.7rem 1.1rem; color: var(--off-white); }
.footer__newsletter input::placeholder { color: rgba(247,245,240,0.5); }
.footer__newsletter button { background: var(--olive); color: var(--white); padding: 0 1.2rem; font-size: 1.1rem; }
.footer__newsletter-msg { margin-top: 0.7rem; font-size: 0.82rem; color: var(--beige); }
.footer__bottom { display: flex; justify-content: space-between; padding-top: 1.8rem; font-size: 0.82rem; color: rgba(247,245,240,0.55); flex-wrap: wrap; gap: 0.5rem; }

/* Back to top */
.back-to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  background: var(--charcoal); color: var(--off-white); font-size: 1.2rem; box-shadow: var(--shadow-soft);
  opacity: 0; transform: translateY(20px) scale(0.8); pointer-events: none;
  transition: opacity var(--t-fast), transform var(--t-fast), background var(--t-fast);
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.back-to-top:hover { background: var(--olive); }

/* =============================================================
   9. MODAL
============================================================= */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.is-open { display: grid; place-items: center; padding: 1rem; }
.modal__overlay { position: absolute; inset: 0; background: rgba(28,28,28,0.65); backdrop-filter: blur(3px); opacity: 0; }
.modal__dialog {
  /* Centered by the grid parent — no transform here, so GSAP can
     animate scale/y freely without breaking the centering. */
  position: relative; z-index: 2;
  width: min(100%, 920px); max-height: 90vh; overflow-y: auto; opacity: 0;
  background: var(--off-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}
.modal__close {
  position: absolute; top: 1rem; right: 1rem; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.9); font-size: 1.6rem; line-height: 1; color: var(--charcoal);
  display: grid; place-items: center; transition: background var(--t-fast), transform var(--t-fast);
}
.modal__close:hover { background: var(--white); transform: rotate(90deg); }
.modal__hero { position: relative; }
.modal__hero-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.modal__thumbs { display: flex; gap: 0.6rem; padding: 1rem clamp(1.4rem, 3vw, 2.4rem) 0; }
.modal__thumb { width: 76px; height: 56px; border-radius: 8px; object-fit: cover; cursor: pointer; opacity: 0.6; transition: opacity var(--t-fast); border: 2px solid transparent; }
.modal__thumb.is-active, .modal__thumb:hover { opacity: 1; border-color: var(--olive); }
.modal__content { padding: 1.4rem clamp(1.4rem, 3vw, 2.4rem) 2.4rem; }
.modal__status { display: inline-block; padding: 0.35rem 0.85rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 100px; background: var(--olive); color: var(--white); margin-bottom: 0.8rem; }
.modal__name { font-family: var(--font-display); font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); font-weight: 600; line-height: 1.05; }
.modal__loc { color: var(--olive); font-weight: 600; margin: 0.3rem 0 1rem; }
.modal__price { font-family: var(--font-display); font-size: 2rem; font-weight: 600; margin-bottom: 1.2rem; }
.modal__desc { color: var(--charcoal-70); margin-bottom: 1.6rem; max-width: 60ch; }
.modal__spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; padding: 1.4rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; }
.modal__spec span { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--olive); margin-bottom: 0.2rem; }
.modal__spec strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.modal__amenities { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.8rem; }
.modal__amenity { padding: 0.4rem 0.9rem; background: var(--soft-grey); border-radius: 100px; font-size: 0.8rem; }
.modal__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* =============================================================
   ANIMATION PERFORMANCE
   will-change only where an animation is ALWAYS running —
   applying it broadly to every .reveal element wastes GPU memory
   and causes the jank it's meant to prevent.
============================================================= */
.hero__portrait-wrap { will-change: transform; }
.float-card { will-change: transform; }
.carousel__track { will-change: transform; }

/* =============================================================
   RESPONSIVE
============================================================= */
@media (max-width: 1024px) {
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .hood-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .process__track { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
  .process__line { display: none; }
}

@media (max-width: 860px) {
  .nav, .header__cta { display: none; }
  #langToggle { display: none; }
  .lang-toggle--mobile { display: inline-flex; }
  .hamburger { display: block; }
  .about__grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .about__label { justify-content: center; }
  .about__bio { margin-inline: auto; }
  .about__stats { justify-content: center; }
  .about__foot { justify-content: center; }
  .why__grid { grid-template-columns: 1fr; }
  .why__media { min-height: 320px; }
  .contact__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1rem; }
  .section-head--split { flex-direction: column; align-items: flex-start; }

  /* Hero stacks: PORTRAIT ON TOP, then story */
  .hero { padding-top: 6rem; }
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .hero__portrait-wrap { order: -1; }
  .hero__desc { margin-inline: auto; }
  .hero__actions, .hero__trust { justify-content: center; }
  .hero__portrait-wrap { min-height: clamp(380px, 55vh, 540px); }
  .float-card--stat { top: 8%; left: 0; }
  .hero__badge { top: 4%; right: 0; padding: 1.2rem 1.5rem; }
  .hero__listing { right: 0; bottom: 0; width: min(260px, 78%); }
  .hero__scroll { display: none; }
}

@media (max-width: 620px) {
  .property-grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .hood-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .process__track { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .filters { flex-direction: column; align-items: stretch; }
  .filters__search input { width: 100%; }
  .footer__bottom { flex-direction: column; }

  /* Smaller floating elements so they never cover the agent's face */
  .float-card { padding: 0.6rem 0.85rem; }
  .float-card__big { font-size: 1.1rem; }
  .float-card__small { font-size: 0.58rem; }
  .hero__badge { padding: 0.9rem 1.2rem; }
  .hero__badge-name { font-size: 0.9rem; }
  .hero__badge-text { font-size: 0.62rem; }
  .hero__listing { width: min(230px, 86%); }
  .about__stats { gap: 1.4rem; }
}

/* =============================================================
   REDUCED MOTION
============================================================= */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .hero__scroll-line::after { animation: none; }
  .reveal, .reveal-line, .hero__title .line > span, .cta__title .line > span,
  .hero__portrait-wrap, .float-card, .hero__listing { opacity: 1 !important; transform: none !important; }
  .hero__badge { opacity: 1 !important; } /* keeps its CSS rotation */
}