/* ============================================================
   INVEST IMMOBILIER — Luxury Real Estate
   Pure Purple Identity — Built from Scratch
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Jost:wght@300;400;500;600&family=Tajawal:wght@300;400;500;700&display=swap");

/* ============ TOKENS ============ */
:root {
  --purple-900: #070114;
  --purple-800: #0d0520;
  --purple-700: #130830;
  --purple-600: #1e0d45;
  --purple-500: #2e1565;
  --purple-400: #4a2590;
  --purple-300: #7b52c2;
  --gold: #c9a45c;
  --gold-light: #e2c07a;
  --gold-dim: rgba(201, 164, 92, 0.18);
  --gold-glow: rgba(201, 164, 92, 0.35);
  --cream: #f0ebf8;
  --cream-dim: rgba(240, 235, 248, 0.55);
  --page-bg: #f5f2fb;
  --border: rgba(201, 164, 92, 0.14);
  --border-mid: rgba(201, 164, 92, 0.28);
  --shadow: 0 24px 64px rgba(7, 1, 20, 0.45);
  --white: #ffffff;
  --white-soft: #fcfaff;

  --font-serif: "Cormorant Garamond", serif;
  --font-sans: "Jost", sans-serif;
  --font-ar: "Tajawal", sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ RESET ============ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-sans);
  color: var(--cream);
  background: var(--purple-800);
  line-height: 1.8;
}

body[lang="ar"],
body[dir="rtl"] {
  font-family: var(--font-ar);
}
body.no-scroll {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  line-height: 1.15;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  box-sizing: border-box;
}

/* ============ UTILITIES ============ */
.text-gold {
  color: var(--gold);
}
.text-muted {
  color: var(--cream-dim);
}
.text-white {
  color: var(--cream);
}
.italic {
  font-style: italic;
}
.section {
  padding: 9rem 0;
  position: relative;
}
.section-dark {
  background: var(--purple-700);
}
.section-white {
  background: var(--white);
  color: var(--purple-900);
}
.section-white .section-title {
  color: var(--purple-900);
}
.section-white .section-subtitle {
  color: var(--purple-700);
}
.section-mid {
  background: var(--purple-600);
}

.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-sans);
  font-weight: 500;
  margin-bottom: 1.2rem;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 1.2rem;
  color: var(--cream);
}

.section-subtitle {
  color: var(--cream-dim);
  font-size: 1.05rem;
  max-width: 640px;
  line-height: 1.9;
  font-family: var(--font-sans);
  margin-top: 1.5rem;
  margin-bottom: 4rem; /* Increased for breathing room */
}


.divider-gold {
  display: block;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 1.4rem 0 2.4rem;
}

/* ============ BUTTONS ============ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--gold);
  color: var(--purple-800);
  padding: 0.9rem 2.4rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 2px solid var(--gold);
  cursor: pointer;
  transition:
    background 0.4s var(--ease),
    color 0.4s var(--ease),
    transform 0.2s cubic-bezier(0.2, 0, 0.2, 1);
  will-change: transform;
}

.btn-primary:hover {
  background: transparent;
  color: var(--gold);
  /* Removed hardcoded hover transform so JS can control magnetic pull */
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--cream);
  padding: 0.9rem 2.4rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid rgba(240, 235, 248, 0.3);
  cursor: pointer;
  transition: all 0.4s var(--ease);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============ NOISE OVERLAY ============ */
.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: overlay;
}

/* ============ PAGE LOADER ============ */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--purple-900);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.2rem;
  opacity: 1;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: all;
}

#page-loader.fade-out {
  opacity: 0;
  pointer-events: none;
}


.loader-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 8px;
  text-indent: 8px; /* Offset the last letter's spacing for perfect center */
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
}

.loader-tagline {
  font-size: 0.65rem;
  letter-spacing: 4px;
  color: var(--cream-dim);
  text-transform: uppercase;
  font-weight: 300;
}

.loader-bar {
  width: 80px;
  height: 1px;
  background: var(--gold-dim);
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
}

.loader-bar::after {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: loaderSlide 1.2s ease-in-out infinite;
}

@keyframes loaderSlide {
  0% {
    left: -100%;
  }
  50% {
    left: 0;
  }
  100% {
    left: 100%;
  }
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 1280px;
  z-index: 1000;
  padding: 1rem 2.5rem;
  background: rgba(19, 8, 48, 0.4);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.05); /* Glass edge */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Stronger bottom edge */
  border-radius: 100px;
  box-shadow:
    0 8px 32px rgba(7, 1, 20, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.5s var(--ease);
}

.navbar.scrolled {
  top: 0.6rem;
  background: rgba(13, 5, 32, 0.82); /* slightly more opaque when scrolled to ensure readability */
  border-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 992px) {
  .navbar,
  .navbar.scrolled {
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 94%;
    max-width: 100%;
    border-radius: 50px; /* Keep it rounded even on mobile */
    border: 1px solid rgba(255, 255, 255, 0.05); /* Glass edge */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(13, 5, 32, 0.75); /* Frosty background on mobile too */
    padding: 0.7rem 1.5rem;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
  }
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 2rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  direction: ltr; /* Fix word swapping in RTL */
}

.nav-logo {
  max-height: 50px;
  width: auto;
  transition: transform 0.3s var(--ease);
}

.nav-logo:hover {
  transform: scale(1.05);
}

.footer-logo {
  max-height: 80px;
  width: auto;
  margin-bottom: 2rem;
  filter: brightness(1.2);
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--cream-dim);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--purple-800) !important;
  padding: 0.5rem 1.4rem;
  border-radius: 2px;
  font-weight: 600 !important;
  transition: all 0.3s !important;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
  box-shadow: 0 4px 20px var(--gold-glow);
  /* Removed static transform to allow magnetic pull */
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--border-mid);
  color: var(--gold);
  padding: 0.42rem 0.9rem;
  cursor: pointer;
  font-size: 0.72rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 100px;
  transition: all 0.3s;
}

.lang-btn:hover {
  background: var(--gold);
  color: var(--purple-800);
  border-color: var(--gold);
}

@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }
}

.desktop-only {
  display: inline-block;
}

.mobile-only {
  display: none;
}

@media (max-width: 1100px) {
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: inline-block;
  }
}

.nav-mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#langToggleMobile {
  padding: 0.3rem 0.6rem;
  font-size: 0.65rem;
  min-width: 38px;
  text-align: center;
}

/* ============ HAMBURGER ============ */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  color: var(--gold);
}

.menu-label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
}

@media (max-width: 500px) {
  .menu-label {
    display: none;
  }
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hamburger-icon span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--gold);
  transition: all 0.4s var(--ease);
}
.menu-toggle.active .hamburger-icon span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.menu-toggle.active .hamburger-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle.active .hamburger-icon span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ============ FULLSCREEN MENU ============ */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse at 35% 25%,
    var(--purple-500) 0%,
    var(--purple-900) 70%
  );
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.55s var(--ease);
  overflow-y: auto;
}

.fullscreen-menu.active {
  opacity: 1;
  visibility: visible;
}

.menu-items {
  text-align: center;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5vh;
  padding: 110px 0 3rem;
  width: 100%;
}

.menu-items a {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vh, 4rem);
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--cream);
  display: block;
  opacity: 0;
  transform: translateY(30px);
  transition:
    all 0.6s var(--ease),
    color 0.3s;
}

.fullscreen-menu.active .menu-items a {
  opacity: 1;
  transform: translateY(0);
}
.menu-items a:hover {
  color: var(--gold);
}
.menu-items a:nth-child(1) {
  transition-delay: 0.1s;
}
.menu-items a:nth-child(2) {
  transition-delay: 0.2s;
}
.menu-items a:nth-child(3) {
  transition-delay: 0.3s;
}
.menu-items a:nth-child(4) {
  transition-delay: 0.4s;
}

.menu-footer-line {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-dim);
  white-space: nowrap;
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--purple-900);
  overflow: hidden;
  padding-top: 8rem; /* Guarantee content won't slip under fixed navbar */
  padding-bottom: 4rem; /* Safe zone for scroll down prompt */
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  transition: transform 0.1s ease-out;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(7, 1, 20, 0.85) 0%,
    rgba(19, 8, 48, 0.7) 50%,
    rgba(7, 1, 20, 0.9) 100%
  );
}

/* Purple glow orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 10s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(74, 37, 144, 0.4) 0%,
    transparent 70%
  );
  top: -15%;
  right: -10%;
}

.hero-orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(
    circle,
    rgba(201, 164, 92, 0.08) 0%,
    transparent 70%
  );
  bottom: 10%;
  left: -5%;
  animation-delay: 3s;
}

@keyframes orbFloat {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.12) translate(20px, 15px);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

@media (max-width: 768px) {
  .hero-content {
    margin-top: 1rem; /* Reduced since .hero now has global padding-top */
  }
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  color: var(--gold);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  flex-wrap: wrap; /* allow wrapping on small screens */
}

.hero-label::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 5.5rem); /* Slightly smaller base for mobile */
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 1.8rem;
  font-weight: 600;
  word-wrap: break-word; /* Prevent long French words from breaking layout */
}

.hero-title .line {
  display: inline-block; /* Change from block to allow natural framing */
  overflow: hidden;
}

.hero-desc {
  color: var(--cream-dim);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 3rem;
  line-height: 1.9;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 1rem; /* Much closer to the bottom */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem; /* Reduced gap */
  color: var(--cream-dim);
  font-size: 0.55rem; /* Smaller font text */
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: scrollBounce 2.4s ease-in-out infinite;
}

.hero-scroll-line {
  width: 1px;
  height: 25px; /* Shorter line to save space */
  background: linear-gradient(to bottom, var(--gold), transparent);
}

@media (max-width: 480px) {
    .hero-scroll-line {
        display: none; /* Hide the line entirely on very small screens to save space */
    }
}

@keyframes scrollBounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ============ STATS BAR ============ */
.stats-bar {
  background: var(--purple-600);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0;
}

.stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1rem;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cream-dim);
  font-weight: 500;
}

@media (max-width: 600px) {
  .stats-bar-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ============ PROPERTY CARDS ============ */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
}

.property-card {
  background: var(--purple-600);
  border: 1px solid var(--border);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Glass Glare Effect */
.property-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 10;
}

.property-card:hover::after {
  left: 150%;
}

.property-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.property-img {
  height: 260px;
  overflow: hidden;
  position: relative;
  background: var(--purple-500);
}

.property-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.property-card:hover .property-img img {
  transform: scale(1.05);
}

.property-status {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.9rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 2px;
}

.status-available {
  background: var(--gold);
  color: var(--purple-800);
}
.status-sold {
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
}
.status-offmarket {
  background: rgba(30, 13, 69, 0.95);
  color: var(--cream-dim);
  border: 1px solid var(--border-mid);
}

.property-price {
  display: none; /* Removed price as per user request */
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--purple-800);
  color: var(--gold);
  padding: 0.55rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-serif);
  border-top: 2px solid var(--gold);
}

.property-info {
  padding: 1.8rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.property-title {
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.property-meta {
  display: flex;
  gap: 1.2rem;
  color: var(--cream-dim);
  font-size: 0.82rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.property-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.property-meta i {
  color: var(--gold);
  font-size: 0.75rem;
}

.property-desc {
  color: var(--cream-dim);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.property-cta {
  display: block;
  text-align: center;
  padding: 0.75rem;
  border: 1px solid var(--border-mid);
  color: var(--gold);
  font-size: 0.77rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.35s var(--ease);
  margin-top: auto;
  cursor: pointer;
}

.property-cta:hover {
  background: var(--gold);
  color: var(--purple-800);
  border-color: var(--gold);
}

/* Empty/Loading state */
.properties-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
  color: var(--cream-dim);
}

.properties-empty i {
  font-size: 2.5rem;
  color: var(--gold-dim);
  margin-bottom: 1.5rem;
  display: block;
}

/* ============ FEATURES ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.feature-box {
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  background: rgba(30, 13, 69, 0.4);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.feature-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-box:hover {
  border-color: var(--border-mid);
  transform: translateY(-5px);
}
.feature-box:hover::before {
  opacity: 1;
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border: 1px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.4s;
}

.feature-box:hover .feature-icon-wrap {
  background: var(--gold-dim);
  border-color: var(--gold);
}
.feature-icon-wrap i {
  color: var(--gold);
  font-size: 1.2rem;
}

.feature-box h3 {
  font-size: 1.2rem;
  color: var(--cream);
  margin-bottom: 0.8rem;
}
.feature-box p {
  color: var(--cream-dim);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ============ CONTACT FORM ============ */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info-block .section-title {
  font-size: 2.2rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.contact-detail:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.9rem;
}

.contact-detail-text span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.contact-detail-text p {
  color: var(--cream-dim);
  font-size: 0.92rem;
}

.luxe-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-group label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 500;
  font-family: var(--font-sans);
}

.form-input {
  background: rgba(30, 13, 69, 0.5);
  border: 1px solid var(--border);
  padding: 1rem 1.2rem;
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  transition: border-color 0.3s;
  outline: none;
  width: 100%;
}

.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.07);
}
.form-input::placeholder {
  color: var(--cream-dim);
  font-size: 0.88rem;
}
.form-input option {
  background: var(--purple-700);
  color: var(--cream);
}
textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

@media (max-width: 860px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

/* ============ LUXURY DIVIDER ============ */
.luxury-divider {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 4rem 0;
  max-width: 400px;
  margin: 0 auto;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.divider-diamond {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--gold-glow);
}

/* ============ FOOTER ============ */
.luxury-footer {
  background: var(--purple-900);
  border-top: 1px solid var(--border);
  padding: 7rem 0 0;
  color: var(--cream);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 5rem;
}

.footer-brand .logo {
  display: block;
  margin-bottom: 1.2rem;
}
.footer-brand p {
  color: var(--cream-dim);
  font-size: 0.88rem;
  line-height: 1.9;
  max-width: 260px;
}

.footer-col-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 1.8rem;
  font-weight: 600;
  font-family: var(--font-sans);
}

.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 1rem;
}
.footer-links a {
  color: var(--cream-dim);
  font-size: 0.88rem;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--gold);
}

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 2rem;
}
.social-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--cream-dim);
  font-size: 0.85rem;
  transition: all 0.3s;
}
.social-btn:hover {
  background: var(--gold);
  color: var(--purple-800);
  border-color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.22);
  font-size: 0.72rem;
  letter-spacing: 1px;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============ ABOUT PAGE ============ */
.about-hero {
  padding: 14rem 0 8rem;
  background: linear-gradient(
    160deg,
    var(--purple-700) 0%,
    var(--purple-900) 100%
  );
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(74, 37, 144, 0.3) 0%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(60px);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-visual {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-visual-frame {
  position: absolute;
  inset: 1.5rem;
  border: 1px solid var(--border-mid);
  pointer-events: none;
}

.about-visual-badge {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  background: var(--purple-600);
  border: 1px solid var(--border-mid);
  padding: 1.5rem 2rem;
  text-align: center;
}

.about-visual-badge .big-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  display: block;
}

.about-visual-badge small {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cream-dim);
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 6rem;
  }
  .about-content {
    order: 2; /* Ensure content is always below visual on mobile if needed, or just let natural flow but with more gap */
  }
  .about-visual {
    height: 380px;
  }
  .about-visual-badge {
    right: 0;
    bottom: 0;
  }
}

.page-header {
  padding: 13rem 0 6rem;
  background: linear-gradient(to bottom, var(--purple-800), var(--purple-700));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-img-frame {
  width: 100%;
  height: 100%;
  border: 1px solid var(--border-mid);
  padding: 1.5rem;
  background: rgba(30, 13, 69, 0.4);
}

.about-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-mid),
    transparent
  );
}

/* ============ FILTER TABS ============ */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.filter-tab {
  padding: 0.6rem 1.8rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--cream-dim);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.3s;
  border-radius: 2px;
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--gold);
  color: var(--purple-800);
  border-color: var(--gold);
}

/* ============ LUXURY ANIMATION ENGINE ============ */

/* --- Base: all animatable elements start hidden --- */
body.js-ready [data-reveal],
body.js-ready [data-reveal-left],
body.js-ready [data-reveal-right],
body.js-ready [data-reveal-scale] {
  opacity: 0;
  filter: blur(12px); /* Premium blur start */
  will-change: transform, opacity, filter;
}

/* Directional variants — default UP */
body.js-ready [data-reveal] {
  transform: translateY(60px); /* Increased for a longer "glide" */
  transition:
    opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.5s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

body.js-ready [data-reveal-left] {
  transform: translateX(-60px);
  transition:
    opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.5s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

body.js-ready [data-reveal-right] {
  transform: translateX(60px);
  transition:
    opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.5s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

body.js-ready [data-reveal-scale] {
  transform: scale(0.9);
  transition:
    opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.5s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}


/* Active state (added by IntersectionObserver) */
body.js-ready [data-reveal].in-view,
body.js-ready [data-reveal-left].in-view,
body.js-ready [data-reveal-right].in-view,
body.js-ready [data-reveal-scale].in-view {
  opacity: 1;
  transform: none;
  filter: blur(0);
  /* Ultra-slow deliberate luxury transition */
  transition: 
    opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}



/* --- Stagger containers: children animate in succession --- */
body.js-ready .reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

/* Stagger delays for up to 10 children — Increased for luxury feel */
body.js-ready .reveal-stagger.in-view > *:nth-child(1)  { opacity: 1; transform: none; transition-delay: 0.1s; }
body.js-ready .reveal-stagger.in-view > *:nth-child(2)  { opacity: 1; transform: none; transition-delay: 0.3s; }
body.js-ready .reveal-stagger.in-view > *:nth-child(3)  { opacity: 1; transform: none; transition-delay: 0.5s; }
body.js-ready .reveal-stagger.in-view > *:nth-child(4)  { opacity: 1; transform: none; transition-delay: 0.7s; }
body.js-ready .reveal-stagger.in-view > *:nth-child(5)  { opacity: 1; transform: none; transition-delay: 0.9s; }
body.js-ready .reveal-stagger.in-view > *:nth-child(6)  { opacity: 1; transform: none; transition-delay: 1.1s; }
body.js-ready .reveal-stagger.in-view > *:nth-child(7)  { opacity: 1; transform: none; transition-delay: 1.3s; }
body.js-ready .reveal-stagger.in-view > *:nth-child(8)  { opacity: 1; transform: none; transition-delay: 1.5s; }
body.js-ready .reveal-stagger.in-view > *:nth-child(9)  { opacity: 1; transform: none; transition-delay: 1.7s; }
body.js-ready .reveal-stagger.in-view > *:nth-child(10) { opacity: 1; transform: none; transition-delay: 1.9s; }


/* ============ STAGGERED TEXT (word/char splitting) ============ */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(105%);
  transition:
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.6s ease;
  will-change: transform, opacity;
}

.text-split-ready.in-view .split-char {
  opacity: 1;
  transform: translateY(0);
}

/* ============ LUXURY TESTIMONIALS ============ */
.testimonials-section {
  background: radial-gradient(circle at top right, var(--purple-800), var(--purple-900));
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  padding: 2rem 0;
}

.testimonial-card {
  position: relative;
  padding: 3.5rem 2.5rem 2.5rem;
  background: rgba(43, 18, 102, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(193, 158, 87, 0.15);
  border-radius: 40px 4px 40px 4px; /* Asymmetric "luxury leaf" shape */
  transition: all 0.5s var(--ease);
  overflow: hidden;
}

.testimonial-card:hover {
  border-color: rgba(193, 158, 87, 0.4);
  transform: translateY(-10px);
  background: rgba(43, 18, 102, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(193, 158, 87, 0.05);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 2rem;
  font-family: var(--font-serif);
  font-size: 8rem;
  color: var(--gold);
  opacity: 0.1;
  line-height: 1;
}

.testi-rating {
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.testi-content {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--cream-dim);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.testi-author {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-top: 1px solid rgba(193, 158, 87, 0.1);
  padding-top: 1.5rem;
}

.testi-name {
  color: var(--gold);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 1px;
}

.testi-title {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ============ FAILSAFE ============ */

/* If JS never fires (e.g. 3s timeout), force visibility */
body.anim-done [data-reveal],
body.anim-done [data-reveal-left],
body.anim-done [data-reveal-right],
body.anim-done [data-reveal-scale],
body.anim-done .reveal-stagger > *,
body.anim-done .split-char {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ============ WHATSAPP BUTTON ============ */
.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 500;
  transition: transform 0.3s;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

/* ============ BACK TO TOP ============ */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 44px;
  height: 44px;
  background: var(--purple-600);
  border: 1px solid var(--border-mid);
  color: var(--gold);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 500;
  transition: all 0.3s;
  font-size: 0.9rem;
}

#back-to-top.visible {
  display: flex;
}
#back-to-top:hover {
  background: var(--gold);
  color: var(--purple-800);
  border-color: var(--gold);
}

/* ============ PROPERTY MODAL (FLOOR PLAN) ============ */
.property-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease);
}

.property-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 5, 43, 0.9);
  backdrop-filter: blur(10px);
}

.modal-container {
  position: relative;
  width: 95%;
  max-width: 1200px;
  max-height: 90vh;
  background: var(--purple-700);
  border: 1px solid var(--border-mid);
  padding: 1.5rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 100px rgba(0,0,0,0.6);
  transform: scale(0.92) translateY(30px);
  transition: all 0.5s var(--ease);
}

.property-modal.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 20;
  transition: transform 0.3s;
}

.modal-close:hover {
  transform: rotate(90deg);
}

.modal-content {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
}

.modal-content img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.floor-plan-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 2rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  margin-top: 1.5rem;
}

.floor-plan-btn:hover {
  background: var(--gold);
  color: var(--purple-800);
}



/* ============ RICH DESCRIPTION STYLES ============ */
.rich-description {
  margin-top: 1.5rem;
  line-height: 1.8;
}

.residence-status {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: var(--gold);
  color: var(--purple-900);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.highlight-box {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(201, 164, 92, 0.05);
  border-right: 4px solid var(--gold);
  flex-wrap: wrap;
}

.highlight-box span {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--gold);
  font-weight: 500;
}

.amenities-grid-rich {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.amenity-item-rich {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.amenity-item-rich i {
  font-size: 1.5rem;
  color: var(--gold);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 164, 92, 0.1);
  border-radius: 50%;
}

.amenity-item-rich strong {
  display: block;
  color: white;
  font-size: 1rem;
}

.amenity-item-rich span {
  color: var(--gray-400);
  font-size: 0.85rem;
}

.apt-types-table {
  margin-top: 3rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
}

.apt-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  align-items: center;
}

.apt-row.header {
  background: rgba(255,255,255,0.03);
  color: var(--gold);
  font-weight: 700;
}

.plan-link {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.8rem;
}

.plan-link:hover {
  background: var(--gold);
  color: var(--purple-900);
}

/* ============ HOME PAGE V2 FEATURES ============ */
.features-v2 {
  padding: 8rem 0;
  text-align: center;
}

.features-grid-v2 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem; /* Slightly reduced gap */
  margin-top: 5rem;
  align-items: stretch; /* Ensure equal height items */
}

.feature-item-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 3rem 2rem;
  background: var(--white-soft);
  border-radius: 24px;
  transition: all 0.5s var(--ease);
  border: 1px solid rgba(201, 164, 92, 0.1);
}

.feature-item-v2:hover {
  transform: translateY(-15px);
  box-shadow: 0 30px 60px rgba(7, 1, 20, 0.08);
  border-color: var(--gold);
}

.feature-icon-v2 {
  width: 80px;
  height: 80px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  font-size: 2.2rem;
  color: var(--gold);
  box-shadow: 0 10px 25px rgba(201, 164, 92, 0.15);
  transition: all 0.5s var(--ease);
}

.feature-item-v2:hover .feature-icon-v2 {
  background: var(--purple-900);
  color: var(--gold);
  transform: scale(1.1) rotate(10deg);
}

.feature-item-v2 h3 {
  font-size: 1.6rem;
  color: var(--purple-900);
  margin-bottom: 0.5rem;
}

.feature-item-v2 p {
  font-size: 0.95rem;
  color: var(--purple-700);
  line-height: 1.6;
}

/* ============ RESPONSIVE (MOVE TO BOTTOM) ============ */
@media (max-width: 768px) {
  .section {
    padding: 5rem 0; /* More compact on mobile */
  }
  .hero-title {
    font-size: clamp(2.3rem, 8vw, 3.2rem);
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch; /* Full width buttons for easier tap */
    gap: 1.25rem; /* Increased gap to prevent "stacked" look */
  }
  .properties-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    font-size: 0.65rem;
  }
  .modal-container {
    height: 70vh; /* Better height for mobile */
    padding: 1rem;
  }
  .features-grid-v2 {
    grid-template-columns: 1fr !important; /* Stack on mobile for better focus */
    gap: 1.5rem;
  }
  .feature-item-v2 {
    padding: 2rem 1.5rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-visual {
    display: block;
    margin-top: 2rem;
    height: auto !important;
  }
  .property-img {
    height: 220px; /* Shorter image on mobile to save space */
  }
  .hero-scroll {
    display: none; /* Hide scroll hint on mobile to prevent overlap with buttons */
  }
}

@media (max-width: 480px) {
  .features-grid-v2 {
    grid-template-columns: 1fr !important; /* Keep 1 column even on very small screens */
  }
}

/* ============ COMPACT HORIZONTAL FEATURES (WHITE BG) ============ */
.luxury-features-container {
  max-width: 1000px;
  margin: 0 auto 4rem auto;
  padding: 0 1rem;
}

.features-grid-v3 {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  background: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.features-grid-v3 .feature-box {
  background: rgba(201, 162, 77, 0.03) !important;
  border: 1px solid rgba(201, 162, 77, 0.1) !important;
  border-radius: 4px;
  padding: 0.8rem 1.5rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  flex-direction: row !important;
  margin: 0 !important;
  min-width: 180px !important;
  transition: all 0.3s ease;
}

.features-grid-v3 .feature-box:hover {
  transform: translateY(-3px);
  border-color: var(--gold) !important;
  box-shadow: 0 5px 15px rgba(201, 162, 77, 0.1);
}

.features-grid-v3 .feature-box {
  background: transparent !important;
  border: none !important;
  padding: 0.5rem 1rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.8rem !important;
  flex-direction: row !important;
  margin: 0 !important;
  min-width: auto !important;
  text-align: right !important;
}

[dir="ltr"] .features-grid-v3 .feature-box {
  text-align: left !important;
}

.luxury-features-container {
  background: #ffffff !important;
  padding: 2.5rem 2rem !important;
  border-top: 1px solid rgba(201, 162, 77, 0.1);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 10px 40px rgba(0,0,0,0.04);
  margin-bottom: 4rem;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.luxury-features-top {
  background: white !important;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
  width: 100%;
}

.luxury-features-top .features-grid-v2 {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: space-around !important;
  gap: 1rem !important;
}

.luxury-features-top .feature-item-v2 {
  flex: 1;
  min-width: 0;
  padding: 1.2rem 0.5rem !important;
  text-align: center;
}

.luxury-features-top .feature-icon-v2 {
  width: 45px !important;
  height: 45px !important;
  font-size: 1.1rem !important;
  margin-bottom: 0.8rem !important;
}

.luxury-features-top .feature-item-v2 h3 {
  font-size: 0.9rem !important;
  margin-bottom: 0.2rem !important;
  white-space: nowrap;
}

.luxury-features-top .feature-item-v2 p {
  font-size: 0.75rem !important;
  margin: 0 !important;
  opacity: 0.8;
}

@media (max-width: 992px) {
  .luxury-features-top .features-grid-v2 {
    overflow-x: auto;
    justify-content: flex-start !important;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
  }
  .luxury-features-top .feature-item-v2 {
    min-width: 120px;
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {
  .luxury-features-top {
    padding: 1rem;
    border-radius: 12px;
  }
  .about-img-frame {
    height: auto !important;
    min-height: 250px;
  }
  .about-img-frame img {
    height: 100%;
    object-fit: cover;
  }
}

.features-grid-v3 {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 2.5rem !important;
  justify-content: center !important;
}

.features-grid-v3 .feature-box i {
  font-size: 1.2rem !important;
  margin-bottom: 0 !important;
  color: var(--purple-900) !important; /* Dark purple icon against white */
}

.features-grid-v3 .feature-box .stat-label {
  font-size: 0.72rem !important;
  color: var(--purple-800) !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 !important;
}

.features-grid-v3 .feature-box h3 {
  font-size: 0.95rem !important;
  color: var(--purple-900) !important;
  margin: 0 !important;
}

@media (max-width: 600px) {
  .features-grid-v3 {
    padding: 1rem;
    gap: 0.5rem;
  }
  .features-grid-v3 .feature-box {
    padding: 0.4rem 0.6rem !important;
  }
}

/* ============ LUXURY MULTI-UNIT SECTION (F2, F3, F4) ============ */
.luxury-units-section {
  width: 100%;
  background: #ffffff;
  padding: 6rem 0;
  border-top: 1px solid rgba(201, 162, 77, 0.1);
  border-bottom: 3px solid var(--gold);
  margin-bottom: 5rem;
  box-shadow: inset 0 20px 40px rgba(0,0,0,0.02);
  position: relative;
}

.unit-card-v2 {
  background: white;
  border: 1px solid rgba(201, 162, 77, 0.15);
  border-right: 5px solid var(--gold);
  padding: 1.5rem 2rem;
  display: flex !important;
  align-items: center;
  gap: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  height: 100%;
}

[dir="rtl"] .unit-card-v2 {
  border-right: none;
  border-left: 5px solid var(--gold);
  flex-direction: row-reverse;
}

.unit-card-v2:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(201, 162, 77, 0.1);
  border-color: var(--gold);
}

.unit-card-v2 .uc-icon {
  width: 55px;
  height: 55px;
  background: var(--purple-900);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  flex-shrink: 0;
  border-radius: 4px;
}

.unit-card-v2 .uc-info h3 {
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple-700);
  margin-bottom: 0.3rem;
  font-family: var(--font-sans);
}

.unit-card-v2 .uc-info p {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--purple-900);
  margin: 0;
}

.unit-floor-plan-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  width: 42px;
  height: 42px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  flex-shrink: 0;
}

.unit-floor-plan-btn:hover {
  background: var(--gold);
  color: white;
  box-shadow: 0 4px 15px rgba(201, 162, 77, 0.3);
}

.unit-floor-plan-btn i {
  font-size: 1rem;
}

@media (max-width: 768px) {
  .luxury-units-section {
    padding: 3rem 1.5rem;
  }
  .unit-card-v2 {
    min-width: 100%;
    padding: 1.2rem;
  }
  .unit-card-v2 .uc-info p {
    font-size: 1rem;
  }
}

/* ============ LUXURY PROPERTY INQUIRY FORM ============ */
.luxury-inquiry-form {
  background: linear-gradient(135deg, rgba(19, 8, 48, 0.95) 0%, rgba(30, 13, 69, 0.9) 100%);
  border: 1px solid var(--border-mid);
  border-radius: 2px;
  padding: 3.5rem;
  max-width: 720px;
  margin: 0 auto 5rem;
  position: relative;
  overflow: hidden;
}

.luxury-inquiry-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.luxury-inquiry-form::after {
  content: '';
  position: absolute;
  top: -120px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(74, 37, 144, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.lif-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.lif-tag {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
  font-family: var(--font-sans);
}

.lif-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--cream);
  margin-bottom: 0.4rem;
}

.lif-subtitle {
  font-size: 0.82rem;
  color: var(--cream-dim);
  letter-spacing: 1px;
}

.lif-divider {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.2rem auto 2rem;
}

.lif-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.lif-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.lif-label {
  font-size: 0.67rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-sans);
  font-weight: 500;
}

.lif-input,
.lif-select,
.lif-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--cream);
  font-family: var(--font-ar), var(--font-sans);
  font-size: 0.92rem;
  padding: 0.9rem 1.2rem;
  outline: none;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  border-radius: 1px;
  -webkit-appearance: none;
  appearance: none;
}

.lif-input::placeholder,
.lif-textarea::placeholder {
  color: rgba(240, 235, 248, 0.3);
  font-size: 0.85rem;
}

.lif-input:focus,
.lif-select:focus,
.lif-textarea:focus {
  border-color: var(--gold);
  background: rgba(201, 164, 92, 0.05);
  box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.08);
}

.lif-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a45c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  padding-left: 2.5rem;
}

[dir="rtl"] .lif-select {
  background-position: right 1rem center;
  padding-left: 1.2rem;
  padding-right: 2.5rem;
}

.lif-select option {
  background: var(--purple-800);
  color: var(--cream);
}

.lif-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.7;
}

.lif-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: var(--gold);
  color: var(--purple-900);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 1.1rem 2rem;
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: all 0.4s var(--ease);
  margin-top: 0.5rem;
}

.lif-submit:hover {
  background: transparent;
  color: var(--gold);
  box-shadow: 0 8px 32px rgba(201, 164, 92, 0.2);
}

.lif-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.lif-status {
  text-align: center;
  font-size: 0.88rem;
  margin-top: 1rem;
  min-height: 1.4em;
}

@media (max-width: 600px) {
  .luxury-inquiry-form {
    padding: 2rem 1.5rem;
  }
  .lif-row {
    grid-template-columns: 1fr;
  }
}

/* ============ TESTIMONIALS ============ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 164, 92, 0.1);
  padding: 3rem;
  position: relative;
  transition: all 0.5s var(--ease);
}

.testimonial-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--gold);
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: -1rem;
  right: 2rem;
  font-family: var(--font-serif);
  font-size: 6rem;
  color: var(--gold);
  opacity: 0.1;
  line-height: 1;
  z-index: 0;
}
  
.testi-rating, .testi-content, .testi-author {
  position: relative;
  z-index: 1;
}

[dir="rtl"] .testimonial-card::before {
  right: auto;
  left: 2rem;
  content: "”";
}

.testi-rating {
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.testi-content {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--cream);
  margin-bottom: 2.5rem;
  font-style: italic;
  opacity: 0.9;
}

.testi-author {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.testi-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.testi-title {
  font-size: 0.75rem;
  color: var(--cream-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

@media (max-width: 768px) {
  .testimonials-section .section-headers {
    text-align: center;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}
