/* ═══════════════════════════════════════════════════════════════════════════════
   SIAM PRESTIGE RESIDENCES — Premium Luxury Real Estate Website
   Style System: Ultra-premium Dubai-inspired minimalist luxury
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─────────────────────────────────────────────────────────── */
:root {
  --white:       #FFFFFF;
  --sand:        #F6F1E8;
  --gold:        #C8A977;
  --gold-dark:   #A8843A;
  --gold-light:  #DFC499;
  --charcoal:    #1D1D1D;
  --charcoal-80: rgba(29,29,29,0.8);
  --beige:       #F9F8F5;
  --beige-dark:  #EDE8DF;
  --grey-mid:    #7A7A7A;
  --grey-light:  #BDBDBD;

  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout:  cubic-bezier(0.65, 0, 0.35, 1);

  --section-pad: clamp(80px, 10vw, 140px);
  --container:   1440px;
  --gap:         clamp(20px, 3vw, 40px);
  --radius:      4px;
  --radius-lg:   8px;
}

/* ─── RESET & BASE ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* ─── SCROLLBAR ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--beige); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ─── SELECTION ──────────────────────────────────────────────────────────────── */
::selection { background: var(--gold); color: var(--white); }

/* ─── TYPOGRAPHY SYSTEM ──────────────────────────────────────────────────────── */
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.section-eyebrow--gold { color: var(--gold-light); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin-bottom: 24px;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-title--light { color: var(--white); }
.section-title--light em { color: var(--gold-light); }

.section-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 300;
  color: var(--grey-mid);
  max-width: 520px;
  line-height: 1.7;
}
.section-subtitle--light { color: rgba(255,255,255,0.65); }

.section-header { margin-bottom: clamp(50px, 6vw, 80px); }
.section-header--light .section-subtitle { color: rgba(255,255,255,0.6); }

/* ─── LAYOUT UTILITIES ───────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}
.section--beige { background: var(--beige); }

/* ─── BUTTONS ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 38px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.35s var(--ease-smooth);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease-smooth);
}
.btn:hover::before { transform: translateX(0); }

.btn--gold {
  background: var(--gold);
  color: var(--white);
  border: 1px solid var(--gold);
}
.btn--gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(200,169,119,0.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.55);
  backdrop-filter: blur(4px);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.9);
  transform: translateY(-2px);
}

.btn--text-gold {
  background: transparent;
  color: var(--gold);
  border: none;
  padding: 0;
  font-size: 13px;
  letter-spacing: 0.12em;
  position: relative;
}
.btn--text-gold::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease-smooth);
}
.btn--text-gold:hover::after { width: 100%; }
.btn--text-gold::before { display: none; }

.btn--sm { padding: 12px 26px; font-size: 11px; }
.btn--full { width: 100%; }

/* ─── NAVIGATION ─────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 4vw, 60px);
  transition: all 0.5s var(--ease-smooth);
  opacity: 0;
  transform: translateY(-20px);
}
.nav.loaded {
  opacity: 1;
  transform: translateY(0);
}
.nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px clamp(20px, 4vw, 60px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.nav.scrolled .nav__link { color: var(--charcoal); }
.nav.scrolled .nav__logo-name,
.nav.scrolled .nav__logo-sub { color: var(--charcoal); }
.nav.scrolled .nav__logo-mark { border-color: var(--gold); color: var(--gold); }
.nav.scrolled .nav__hamburger span { background: var(--charcoal); }

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.nav__logo-mark {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.6);
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  transition: all 0.35s var(--ease-smooth);
  flex-shrink: 0;
}
.nav__logo-text { display: flex; flex-direction: column; gap: 1px; }
.nav__logo-name {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.95);
  text-transform: uppercase;
  transition: color 0.35s;
}
.nav__logo-sub {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  transition: color 0.35s;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(24px, 2.5vw, 40px);
}
.nav__link {
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.3s;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-smooth);
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after { width: 100%; }
.nav__link--cta {
  background: var(--gold);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  transition: background 0.3s, transform 0.3s;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: var(--gold-dark); transform: translateY(-1px); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 2px 0;
  z-index: 1001;
}
.nav__hamburger span {
  display: block;
  height: 1.5px;
  background: var(--white);
  transition: all 0.35s var(--ease-smooth);
  transform-origin: center;
}
.nav__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav__mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--charcoal);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-smooth);
}
.nav__mobile-menu.open { opacity: 1; pointer-events: all; }
.nav__mobile-menu ul { display: flex; flex-direction: column; gap: 32px; text-align: center; }
.nav__mobile-link {
  font-family: var(--font-serif);
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  transition: color 0.3s;
}
.nav__mobile-link:hover,
.nav__mobile-link--cta { color: var(--gold); }

/* ─── SCROLL FILM / VIDEO SCRUB HERO ─────────────────────────────────────────── */
.scroll-film {
  /* Mobile default: regular fullscreen hero section */
  height: 100dvh;
  position: relative;
}

@media (min-width: 1024px) {
  .scroll-film {
    /* Desktop: 500vh means the user scrolls 5 full screens to watch the whole video */
    height: 500vh;
  }
}

.scroll-film__sticky {
  /* Mobile default: regular block behavior */
  position: relative;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .scroll-film__sticky {
    position: sticky;
    top: 0;
  }
}

/* The video fills the sticky panel */
.scroll-film__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.scroll-film__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0,0,0,0.52) 0%,
    rgba(0,0,0,0.25) 50%,
    rgba(0,0,0,0.55) 100%
  );
  z-index: 1;
}

/* Thin gold progress bar at the bottom */
.scroll-film__progress-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.08);
  z-index: 10;
  display: none; /* Hidden on mobile */
}

@media (min-width: 1024px) {
  .scroll-film__progress-wrap {
    display: block; /* Shown on desktop */
  }
}

.scroll-film__progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transition: width 0.05s linear;
  border-radius: 0 2px 2px 0;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 clamp(20px, 5vw, 60px);
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 1.4s 0.6s var(--ease-out) forwards;
}
@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 28px;
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(48px, 8vw, 110px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 28px;
}
.hero__headline em {
  font-style: italic;
  color: var(--gold-light);
  display: inline-block;
}

.hero__sub {
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.06em;
  margin-bottom: 50px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: heroFadeUp 1s 2s var(--ease-out) forwards;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.hero__scroll.hidden { opacity: 0 !important; }
.hero__scroll-line {
  width: 1px;
  height: 55px;
  background: linear-gradient(to bottom, transparent, var(--gold-light));
  animation: scrollPulse 2.5s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.7; }
  50% { transform: scaleY(0.6); opacity: 1; }
}
.hero__scroll-text {
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* Decorative large background text */
.hero__overlay-text {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: clamp(60px, 12vw, 180px);
  font-weight: 700;
  color: rgba(255,255,255,0.03);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.2em;
  z-index: 2;
  user-select: none;
}

/* Hero content fades out as user scrolls through the film */
.hero__content {
  transition: opacity 0.15s linear, transform 0.15s linear;
}

/* ─── VISION ─────────────────────────────────────────────────────────────────── */
.vision__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.vision__image-wrap {
  position: relative;
  height: clamp(420px, 55vw, 680px);
}
.vision__image-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.vision__image-inner img {
  transition: transform 8s var(--ease-smooth);
}
.vision__image-inner:hover img { transform: scale(1.04); }
.vision__image-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 90px;
  height: 90px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--white);
  text-transform: uppercase;
}

.vision__headline {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 30px;
}
.vision__headline em { font-style: italic; color: var(--gold); }

.vision__divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 32px;
}

.vision__text {
  font-size: clamp(14px, 1.1vw, 17px);
  font-weight: 300;
  color: var(--grey-mid);
  line-height: 1.8;
  margin-bottom: 40px;
}

.vision__pillars { display: flex; flex-direction: column; gap: 28px; }
.vision__pillar { display: flex; gap: 20px; align-items: flex-start; }
.vision__pillar-icon {
  color: var(--gold);
  font-size: 8px;
  margin-top: 7px;
  flex-shrink: 0;
}
.vision__pillar-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.vision__pillar-text {
  font-size: 14px;
  font-weight: 300;
  color: var(--grey-mid);
  line-height: 1.7;
}

/* ─── HIGHLIGHTS ─────────────────────────────────────────────────────────────── */
.highlights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--beige-dark);
  border: 1px solid var(--beige-dark);
}

.highlight-card {
  background: var(--white);
  padding: clamp(36px, 4vw, 56px) clamp(28px, 3vw, 44px);
  position: relative;
  transition: transform 0.5s var(--ease-smooth), box-shadow 0.5s var(--ease-smooth);
  cursor: default;
  overflow: hidden;
}
.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-smooth);
}
.highlight-card:hover::before { transform: scaleX(1); }
.highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  z-index: 2;
}

.highlight-card__icon-wrap {
  margin-bottom: 28px;
}
.highlight-card__icon {
  width: 56px;
  height: 56px;
  color: var(--gold);
  transition: transform 0.4s var(--ease-smooth);
}
.highlight-card:hover .highlight-card__icon { transform: scale(1.1); }

.highlight-card__title {
  font-family: var(--font-serif);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 14px;
  line-height: 1.2;
}

.highlight-card__text {
  font-size: 14px;
  font-weight: 300;
  color: var(--grey-mid);
  line-height: 1.75;
}

.highlight-card__line {
  margin-top: 28px;
  width: 30px;
  height: 1px;
  background: var(--gold-light);
  transition: width 0.4s var(--ease-smooth);
}
.highlight-card:hover .highlight-card__line { width: 60px; }

/* ─── LIFESTYLE ──────────────────────────────────────────────────────────────── */
.lifestyle__block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
  overflow: hidden;
}
.lifestyle__block--reverse { direction: rtl; }
.lifestyle__block--reverse > * { direction: ltr; }

.lifestyle__image-wrap {
  position: relative;
  overflow: hidden;
  min-height: 500px;
}
.lifestyle__image-wrap img {
  transition: transform 0.8s var(--ease-smooth);
}
.lifestyle__image-wrap:hover img { transform: scale(1.04); }

.lifestyle__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 6vw, 100px) clamp(32px, 5vw, 80px);
  background: var(--white);
}
.lifestyle__block--reverse .lifestyle__text { background: var(--beige); }

.lifestyle__title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 24px;
  margin-top: 16px;
}

.lifestyle__desc {
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 300;
  color: var(--grey-mid);
  line-height: 1.85;
  margin-bottom: 36px;
  max-width: 440px;
}

/* ─── LOCATION ───────────────────────────────────────────────────────────────── */
.location__layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

.location__map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}
.location__map {
  position: relative;
  height: clamp(380px, 50vw, 600px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--beige-dark);
}
.location__map iframe { border-radius: var(--radius-lg); }

.location__map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  z-index: 10;
}
.location__map-pin-dot {
  width: 18px;
  height: 18px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 4px 15px rgba(200,169,119,0.5);
  animation: pinPulse 2s ease-in-out infinite;
}
@keyframes pinPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(200,169,119,0.5); }
  50% { transform: scale(1.15); box-shadow: 0 6px 25px rgba(200,169,119,0.7); }
}
.location__map-pin-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--gold);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.location__landmarks-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 28px;
}

.location__landmark-list { display: flex; flex-direction: column; }

.location__landmark {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--beige-dark);
  transition: all 0.3s var(--ease-smooth);
}
.location__landmark:first-child { border-top: 1px solid var(--beige-dark); }
.location__landmark:hover { padding-left: 6px; }

.location__landmark-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--gold);
}
.location__landmark-icon svg { width: 20px; height: 20px; display: block; margin: 8px auto; }

.location__landmark-info { flex: 1; }
.location__landmark-name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 2px;
}
.location__landmark-category {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-light);
}

.location__landmark-time {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--gold);
  white-space: nowrap;
}

/* ─── RESIDENCES ─────────────────────────────────────────────────────────────── */
.residences__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.residence-card {
  background: var(--white);
  border: 1px solid var(--beige-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.45s var(--ease-smooth), box-shadow 0.45s var(--ease-smooth);
  position: relative;
}
.residence-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.12);
}
.residence-card--penthouse { border-color: var(--gold); }

.residence-card__image-wrap {
  position: relative;
  height: 280px;
  overflow: hidden;
}
.residence-card__image {
  transition: transform 0.7s var(--ease-smooth);
}
.residence-card:hover .residence-card__image { transform: scale(1.06); }

.residence-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  z-index: 2;
}

.residence-card__hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(29,29,29,0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
  backdrop-filter: blur(4px);
}
.residence-card:hover .residence-card__hover-overlay { opacity: 1; }

.residence-card__features {
  list-style: none;
  width: 100%;
}
.residence-card__features li {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.residence-card__features li::before {
  content: '◆';
  color: var(--gold);
  font-size: 6px;
  flex-shrink: 0;
}

.residence-card__body {
  padding: 24px;
}
.residence-card__type {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.residence-card__details {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.residence-card__area {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--charcoal);
}
.residence-card__price {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--charcoal);
}
.residence-card__floor {
  font-size: 12px;
  color: var(--grey-light);
  letter-spacing: 0.08em;
}

/* ─── GALLERY ────────────────────────────────────────────────────────────────── */
.gallery__masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 260px);
  gap: 8px;
  padding: 0 clamp(20px, 5vw, 80px);
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--beige-dark);
}
.gallery__item img {
  transition: transform 0.7s var(--ease-smooth);
}
.gallery__item:hover img { transform: scale(1.06); }

.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

.gallery__item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.gallery__item:hover .gallery__item-overlay { opacity: 1; }
.gallery__item-overlay span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
}

/* ─── LIGHTBOX ───────────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-smooth);
  backdrop-filter: blur(10px);
}
.lightbox.open { opacity: 1; pointer-events: all; }

.lightbox__img-wrap {
  max-width: 90vw;
  max-height: 88vh;
  position: relative;
}
.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease-smooth);
}
.lightbox__caption {
  text-align: center;
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-smooth);
  backdrop-filter: blur(4px);
  z-index: 10;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.1);
}
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__prev:hover { transform: translateY(-50%) scale(1.1); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next:hover { transform: translateY(-50%) scale(1.1); }

/* ─── INVESTMENT ─────────────────────────────────────────────────────────────── */
.investment {
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}
.investment::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,169,119,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.investment::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200,169,119,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.investment__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: clamp(50px, 6vw, 80px);
}

.investment__stat {
  background: rgba(255,255,255,0.03);
  padding: clamp(32px, 4vw, 52px) clamp(24px, 3vw, 40px);
  text-align: center;
  transition: background 0.35s;
}
.investment__stat:hover { background: rgba(255,255,255,0.06); }

.investment__stat-number {
  font-family: var(--font-serif);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.investment__stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}
.investment__stat-desc {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

.investment__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 60px;
}
.investment__feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.investment__feature-icon {
  font-size: 18px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.investment__feature h4 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.investment__feature p {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

/* ─── TESTIMONIALS ───────────────────────────────────────────────────────────── */
.testimonials__carousel {
  position: relative;
  overflow: hidden;
}

.testimonials__track {
  display: flex;
  transition: transform 0.65s var(--ease-inout);
  will-change: transform;
}

.testimonial-card {
  min-width: 100%;
  padding: clamp(40px, 5vw, 70px) clamp(28px, 8vw, 140px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.testimonial-card__quote {
  font-family: var(--font-serif);
  font-size: 100px;
  line-height: 0.5;
  color: var(--gold);
  opacity: 0.4;
  font-weight: 400;
  user-select: none;
}

.testimonial-card__text {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  color: var(--charcoal);
  max-width: 800px;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
}
.testimonial-card__author-avatar {
  width: 52px;
  height: 52px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  flex-shrink: 0;
}
.testimonial-card__name {
  font-weight: 600;
  font-size: 15px;
  color: var(--charcoal);
  margin-bottom: 3px;
}
.testimonial-card__role {
  font-size: 12px;
  color: var(--grey-mid);
  letter-spacing: 0.05em;
}

.testimonials__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  padding-bottom: 10px;
}

.testimonials__prev, .testimonials__next {
  width: 44px;
  height: 44px;
  border: 1px solid var(--beige-dark);
  border-radius: 50%;
  font-size: 22px;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-smooth);
}
.testimonials__prev:hover, .testimonials__next:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: scale(1.08);
}

.testimonials__dots {
  display: flex;
  gap: 8px;
}
.testimonials__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--beige-dark);
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
}
.testimonials__dot.active {
  background: var(--gold);
  transform: scale(1.25);
}

/* ─── CONTACT ────────────────────────────────────────────────────────────────── */
.contact {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.contact__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.contact__bg-img { width: 100%; height: 100%; object-fit: cover; }
.contact__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(29,29,29,0.92) 0%,
    rgba(29,29,29,0.75) 50%,
    rgba(29,29,29,0.5) 100%
  );
}

.contact .container { position: relative; z-index: 2; padding-top: clamp(80px, 10vw, 120px); padding-bottom: clamp(80px, 10vw, 120px); }

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.contact__headline {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
  margin-top: 16px;
}
.contact__headline em { font-style: italic; color: var(--gold-light); }

.contact__desc {
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 440px;
}

.contact__details { display: flex; flex-direction: column; gap: 16px; }
.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
}
.contact__detail-icon { color: var(--gold); font-size: 8px; margin-top: 5px; flex-shrink: 0; }

/* ─── FORM ───────────────────────────────────────────────────────────────────── */
.contact__form-wrap {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 52px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.contact__form-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 32px;
}

.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 300;
  color: var(--white);
  transition: all 0.3s var(--ease-smooth);
  outline: none;
  -webkit-appearance: none;
}
.form-input::placeholder { color: rgba(255,255,255,0.3); }
.form-input:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(200,169,119,0.15);
}
.form-input:invalid:not(:placeholder-shown) { border-color: rgba(220,80,80,0.5); }

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(200,169,119,0.8)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-select option { background: var(--charcoal); color: var(--white); }
.form-textarea { resize: vertical; min-height: 80px; }

.contact__form-privacy {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  text-align: center;
  margin-top: 16px;
  line-height: 1.6;
}

.contact__success {
  text-align: center;
  padding: 40px;
}
.contact__success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: successPop 0.5s var(--ease-out) forwards;
}
@keyframes successPop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.contact__success h3 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 12px;
}
.contact__success p {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* ─── FOOTER ─────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--charcoal);
  padding: clamp(50px, 6vw, 80px) 0 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer .nav__logo-mark {
  border-color: rgba(200,169,119,0.4);
  color: var(--gold);
}
.footer .nav__logo-name { color: rgba(255,255,255,0.85); }
.footer .nav__logo-sub { color: rgba(255,255,255,0.4); }

.footer__tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em;
  max-width: 240px;
  line-height: 1.6;
}

.footer__links {
  display: flex;
  gap: clamp(40px, 6vw, 80px);
  flex-wrap: wrap;
}
.footer__links-col h4 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer__links-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__links-col a {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  transition: color 0.3s;
}
.footer__links-col a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__copy {
  font-size: 11px;
  color: rgba(255,255,255,0.28);
  max-width: 500px;
  line-height: 1.6;
}
.footer__legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__legal a {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  transition: color 0.3s;
}
.footer__legal a:hover { color: var(--gold); }

/* ─── SCROLL REVEAL ANIMATIONS ───────────────────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-card {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* ─── PARALLAX ───────────────────────────────────────────────────────────────── */
.parallax-img img { will-change: transform; }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .residences__grid { grid-template-columns: repeat(2, 1fr); }
  .investment__stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .vision__grid { grid-template-columns: 1fr; gap: 50px; }
  .vision__image-wrap { height: 420px; }
  .lifestyle__block, .lifestyle__block--reverse { grid-template-columns: 1fr; direction: ltr; }
  .lifestyle__block--reverse .lifestyle__image-wrap { order: -1; }
  .lifestyle__image-wrap { min-height: 360px; }
  .location__layout { grid-template-columns: 1fr; }
  .location__map { height: 380px; }
  .contact__layout { grid-template-columns: 1fr; }
  .investment__features { grid-template-columns: 1fr; gap: 20px; }
  .highlights__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .residences__grid { grid-template-columns: 1fr; }
  .investment__stats { grid-template-columns: 1fr 1fr; }
  .gallery__masonry {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery__item--tall { grid-row: span 1; }
  .gallery__item--wide { grid-column: span 2; }
  .testimonial-card { padding: 40px 24px; }
  .footer__top { flex-direction: column; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .hero__ctas { flex-direction: column; align-items: center; }
}

@media (max-width: 520px) {
  .investment__stats { grid-template-columns: 1fr; }
  .highlights__grid { grid-template-columns: 1fr; }
  .gallery__masonry {
    grid-template-columns: 1fr;
  }
  .gallery__item--wide { grid-column: span 1; }
  .footer__links { flex-direction: column; }
}

/* ─── PAGE LOAD STATE ────────────────────────────────────────────────────────── */
.page-loading body { overflow: hidden; }
