/* ===================================================
   LOGO STYLES
   =================================================== */

.nav-logo {
  display: flex;
  flex-direction: column;
}

.nav-logo .brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--teal);
  line-height: 1;
}

.nav-logo .tagline {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-top: 2px;
}

.logo-img {
  height: auto;
  max-height: 200px;
  /* Fits comfortably in 80px navbar */
  width: 200px;
  display: block;
  /* Since the source SVG is black, we invert it for dark themes (default) */
  /* filter: brightness(0) invert(1);  */
  transition: filter 0.3s ease;
}

/* For light themes where the logo needs to be dark */
.light-theme .logo-img {
  filter: none;
}

/* ===================================================
   MAYILA VILLA - Premium Typography
   =================================================== */

/* Domaine Display Narrow */
@font-face {
  font-family: 'Domaine Display Narrow';
  src: url('../fonts/domaine-display-narrow/DomaineDispNar-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Domaine Display Narrow';
  src: url('../fonts/domaine-display-narrow/DomaineDispNar-RegularItalic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Domaine Display Narrow';
  src: url('../fonts/domaine-display-narrow/DomaineDispNar-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Domaine Display Narrow';
  src: url('../fonts/domaine-display-narrow/DomaineDispNar-MediumItalic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Domaine Display Narrow';
  src: url('../fonts/domaine-display-narrow/DomaineDispNar-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Domaine Display Narrow';
  src: url('../fonts/domaine-display-narrow/DomaineDispNar-SemiboldItalic.otf') format('opentype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Domaine Display Narrow';
  src: url('../fonts/domaine-display-narrow/DomaineDispNar-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Domaine Display Narrow';
  src: url('../fonts/domaine-display-narrow/DomaineDispNar-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Domaine Display Narrow';
  src: url('../fonts/domaine-display-narrow/DomaineDispNar-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Domaine Display Narrow';
  src: url('../fonts/domaine-display-narrow/DomaineDispNar-BlackItalic.otf') format('opentype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* Helvetica Neue */
@font-face {
  font-family: 'Helvetica Neue';
  src: url('../fonts/helvetica-neue/HelveticaNeueRoman.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('../fonts/helvetica-neue/HelveticaNeueItalic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('../fonts/helvetica-neue/HelveticaNeueUltraLight.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('../fonts/helvetica-neue/HelveticaNeueThin.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('../fonts/helvetica-neue/HelveticaNeueLight.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('../fonts/helvetica-neue/HelveticaNeueMedium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('../fonts/helvetica-neue/HelveticaNeueBold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('../fonts/helvetica-neue/HelveticaNeueBlack.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Define Premium Typography Stacks (Matched to Emaar) */
:root {
  --font-display: 'Domaine Display Narrow', sans-serif;
  --font-sans: 'Helvetica Neue', 'Domaine Display Narrow', Arial, sans-serif;
  --teal: #00a7b5;
  --teal-light: #00c2d1;
  --teal-dark: #008d99;
  --navy: #1e2e56;
  --navy-dark: #15203d;
  --navy-light: #2a3d6f;
  --cream: #F5F0E8;
  --dark: var(--navy-dark);
  --dark-2: var(--navy);
  --dark-3: var(--navy-light);
  --dark-4: #2a3d6f;
  --text-primary: #F0EBE0;
  --text-secondary: #A89F8F;
  --text-muted: #6B6359;
  --white: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(0, 167, 181, 0.2);
  --shadow-teal: 0 0 40px rgba(0, 167, 181, 0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography override for Tamil */
html[lang="ta"] {
  --font-sans: 'Arima', "Lato", Arial, sans-serif;
  --font-display: 'Arima', Optima, 'Optima Nova', 'Segoe UI', 'Helvetica Neue', sans-serif;
}

/* ===================================================
   PRELOADER
   =================================================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #0d0d0e;
  /* Deep navy/black matching brand */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  /* Exact 10px vertical gap between SVG and text */
  margin: 0 auto;
  text-align: center;
}

#preloader-text {
  text-align: center;
}

.loader-logo {
  width: clamp(140px, 15vw, 200px);
  height: auto;
  animation: premiumPulse 2.5s infinite ease-in-out;
  /* Premium teal glow */
  filter: drop-shadow(0 0 20px rgba(0, 167, 181, 0.2));
  transition: transform 0.5s ease;
  will-change: transform, filter;
  /* Optimization */
}

.loader-progress {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.loader-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  transform: translateX(-100%);
  animation: loaderLine 2s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes premiumPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
    filter: drop-shadow(0 0 10px rgba(0, 167, 181, 0.1));
  }

  50% {
    transform: scale(1.04);
    opacity: 1;
    filter: drop-shadow(0 0 25px rgba(0, 167, 181, 0.4));
  }
}

@keyframes loaderLine {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* Premium Reveal Animation for Body */
body.loading {
  overflow: hidden;
}

body.loaded #preloader .loader-logo {
  transform: scale(1.1);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--dark);
  color: var(--text-primary);
  overflow-x: hidden;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  width: 100%;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--font-sans);
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--dark-2);
}

::-webkit-scrollbar-thumb {
  background: var(--teal-dark);
  border-radius: 3px;
}

/* ===================================================
   NAVIGATION
   =================================================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  background: rgba(0, 0, 0, 0.35);
  /* Lodha-style semi-transparent black */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.nav-hidden {
  transform: translateY(-100%);
}

#navbar.scrolled,
#navbar.nav-solid {
  background: #000000;
  /* Solid black on scroll */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 65px;
  /* Taller initial height */
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled .nav-inner,
#navbar.nav-solid .nav-inner {
  height: 65px;
  /* Condensed height on scroll */
}

/* Logo styles moved to logo.css as per modular design */

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
}

.nav-links>li {
  position: relative;
}

.nav-links>li>a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 200;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: var(--transition);
  border-radius: var(--radius-sm);
}

.nav-links>li>a:hover,
.nav-links>li>a.active {
  color: var(--teal);
  background: rgba(0, 167, 181, 0.08);
}

/* Dropdown */
.nav-links .has-dropdown>a::after {
  content: ' ▾';
  font-size: 0.65rem;
  opacity: 0.6;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: rgba(22, 22, 24, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.dropdown-menu a:hover {
  color: var(--teal);
  background: rgba(0, 167, 181, 0.08);
}

/* CTA Button */
.nav-cta {
  padding: 0.55rem 1.4rem !important;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark)) !important;
  color: var(--white) !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  box-shadow: 0 4px 20px rgba(0, 167, 181, 0.3) !important;
  transition: var(--transition) !important;
}

.nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 30px rgba(0, 167, 181, 0.5) !important;
  background: linear-gradient(135deg, var(--teal-light), var(--teal)) !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 10px;
  /* Larger hit area */
  min-width: 44px;
  min-height: 44px;
  display: flex;
  justify-content: center;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===================================================
   HERO / CAROUSEL SECTION
   =================================================== */
#hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Hero Video ── */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100dvh;
  object-fit: contain;
  object-position: center;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-video.is-loaded {
  opacity: 1;
}

/* ── Carousel wrapper fills the hero ── */
.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-carousel.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* ── Slides ── */
.hero-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 3.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.hero-carousel-slide.active {
  opacity: 1;
}

.hero-carousel-slide img {
  width: 100%;
  /* min-height: 100dvh; */
  height: 90dvh;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Prev / Next buttons ── */
.hero-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(13, 13, 14, 0.45);
  border: 1px solid rgba(0, 167, 181, 0.35);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
  cursor: pointer;
}

.hero-carousel-btn:hover {
  background: rgba(0, 167, 181, 0.25);
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 0 20px rgba(0, 167, 181, 0.3);
}

.hero-carousel-prev {
  left: 1.5rem;
}

.hero-carousel-next {
  right: 1.5rem;
}

/* ── Dot indicators ── */
.hero-carousel-dots {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.hero-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.hero-carousel-dot.active {
  background: var(--teal);
  transform: scale(1.4);
  box-shadow: 0 0 8px rgba(0, 167, 181, 0.6);
}

.hero-carousel-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.65);
}

/* ── Gradient overlay for text readability ── */
/* .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to left,
    rgba(13,13,14,0.78) 0%,
    rgba(13,13,14,0.38) 55%,
    rgba(13,13,14,0.62) 100%
  );
  pointer-events: none;
} */

.hero-content {
  position: relative;
  z-index: 2;
  top: -100px;
  padding: 2rem;
  max-width: 860px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 1s ease, visibility 1s ease, transform 1s ease;
}

.hero-content.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 1rem;
  background: rgba(0, 167, 181, 0.15);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.15rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-badge::before {
  content: '◆';
  font-size: 0.5rem;
}

.hero-title {
  font-size: clamp(3rem, 5vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  margin-top: 5px;
  margin-bottom: 0.75rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-title span {
  color: var(--teal);
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--cream);
  opacity: 0.85;
  margin-bottom: 5px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 8px 30px rgba(0, 167, 181, 0.4);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 167, 181, 0.6);
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(0, 167, 181, 0.08);
  transform: translateY(-3px);
}

#modalCancel {
  justify-content: center;
  text-align: center;
}

/* Video Sound Toggle */
.hero-sound-btn {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: rgba(13, 13, 14, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}

.hero-sound-btn:hover {
  color: var(--teal);
  border-color: var(--teal);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.scroll-indicator .arrow {
  width: 24px;
  height: 24px;
  border-right: 1px solid var(--teal);
  border-bottom: 1px solid var(--teal);
  transform: rotate(45deg);
}

/* ===================================================
   SECTION COMMONS
   =================================================== */
section {
  padding: 100px 2rem;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  background: rgba(0, 167, 181, 0.1);
  border: 1px solid rgba(0, 167, 181, 0.25);
  border-radius: 50px;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.section-title span {
  color: var(--teal);
}

.section-sub {
  font-size: 1rem;
  max-width: 560px;
  line-height: 1.6;
  width: 100%;
  contain: content;
  /* Performance optimization */
}

.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
  margin: 1.25rem 0;
}

/* Card base */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card:hover {
  border-color: rgba(0, 167, 181, 0.5);
  box-shadow: var(--shadow-teal);
  transform: translateY(-6px);
}

/* ===================================================
   ABOUT SECTION
   =================================================== */
#about {
  background: var(--dark-2);
  position: relative;
  overflow: hidden;
}

#about::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 167, 181, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about-image-frame img {
  object-fit: cover;
  height: 100%;
  transition: transform 0.8s ease;
}

.about-image-frame:hover img {
  transform: scale(1.04);
}

.about-image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(13, 13, 14, 0.4) 100%);
}

.about-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 167, 181, 0.3);
  z-index: 2;
}

.about-accent .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}

.about-accent .lbl {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(13, 13, 14, 0.7);
  text-align: center;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
}

.about-feature .icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.about-feature h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.about-feature p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===================================================
   STATS SECTION
   =================================================== */
#stats {
  background: linear-gradient(135deg, var(--dark-3), var(--dark-2));
  padding: 70px 2rem;
  position: relative;
  overflow: hidden;
}

#stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300a7b5' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.stat-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 167, 181, 0.4);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-num sup {
  font-size: 1.5rem;
  vertical-align: super;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ===================================================
   PROJECTS SECTION
   =================================================== */
#projects {
  background: var(--dark);
}

.projects-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 3rem;
  background: var(--dark-3);
  padding: 0.4rem;
  border-radius: 50px;
  width: fit-content;
  border: 1px solid var(--glass-border);
}

.tab-btn {
  padding: 0.6rem 1.75rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: transparent;
  transition: var(--transition);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 167, 181, 0.3);
}

.tab-btn:hover:not(.active) {
  color: var(--teal);
  background: rgba(0, 167, 181, 0.08);
}

/* Carousel */
.carousel-wrap {
  position: relative;
}

.carousel-panel {
  display: none;
}

.carousel-panel.active {
  display: block;
}

.carousel-track-container {
  overflow: visible;
  border-radius: var(--radius);
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card {
  background: var(--dark-3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.carousel-track .project-card {
  max-width: calc(50% - 1rem);
  flex-shrink: 0;
}

#ongoing-track .project-card {
  max-width: calc(98% - 1rem);
  flex: 0 0 calc(98% - 1rem);
}

.project-card:hover {
  border-color: rgba(0, 167, 181, 0.5);
  box-shadow: var(--shadow-teal);
  transform: translateY(-6px);
}

.project-thumb {
  position: relative;
  aspect-ratio: auto;
  overflow: hidden;
  max-height: 450px;
  /* Prevents thumbnails from becoming too tall on large screens */
  margin: 0 10px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.project-thumb img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  display: block;
}

.project-card:hover .project-thumb img {
  transform: scale(1.1);
}

.project-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-badge.in-progress {
  background: rgba(30, 46, 86, 0.5);
  color: #fff;
  border: 1px solid var(--navy);
}

.project-badge.completed {
  background: rgba(0, 167, 181, 0.2);
  color: var(--teal);
  border: 1px solid rgba(0, 167, 181, 0.4);
}

.project-info {
  padding: 1rem;
}

.project-info h3 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.project-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 0.8rem;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  white-space: normal !important;
  display: block;
}

.project-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.project-meta span {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.project-meta span::before {
  content: '◆';
  color: var(--teal);
  font-size: 0.45rem;
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dark-4);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  cursor: pointer;
}

.dot.active {
  width: 28px;
  border-radius: 4px;
  background: var(--teal);
  border-color: var(--teal);
}

.carousel-arrows {
  display: flex;
  gap: 0.5rem;
}

.arrow-btn {
  width: 44px;
  height: 44px;
  /* border-radius: 50%; */
  background: var(--glass-bg);
  /* border: 1px solid var(--glass-border); */
  color: gray;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.arrow-btn:hover {
  /* background: var(--teal); */
  /* border-color: var(--teal); */
  color: #000;
  transform: scale(1.1);
}

/* ===================================================
   DESIGN & LAYOUT SHOWCASE
   =================================================== */
#layouts {
  background: var(--dark);
  position: relative;
}

.layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.layout-card {
  background: var(--dark-3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.layout-card:hover {
  border-color: rgba(0, 167, 181, 0.5);
  box-shadow: var(--shadow-teal);
  transform: translateY(-10px);
}

.layout-img {
  position: relative;
  overflow: hidden;
}

.layout-img img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--dark-4);
  /* Added contrast background for contain */
}

/* Removed hover transform for layout-img img */

.layout-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.4rem 1rem;
  background: rgba(13, 13, 14, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--teal);
  border-radius: 50px;
  color: var(--teal);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  z-index: 2;
}

.layout-content {
  padding: 5px 15px;
}

.layout-content h3 {
  font-size: 1.25rem;
  color: var(--white);
  margin-top: 0px;
  margin-bottom: 5px;
}

.layout-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 8px;
  margin-bottom: 12px;
  font-weight: 300;
}

.layout-features {
  display: flex;
  gap: 15px;
  list-style: none;
  padding-top: 10px;
  border-top: 1px solid var(--glass-border);
}

.layout-features li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

.layout-features li span {
  font-size: 1.2rem;
}

/* ===================================================
   CATALOGUE DOWNLOAD SECTION
   =================================================== */
#catalogue {
  background: var(--dark-2);
}

.catalogue-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.catalogue-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  cursor: pointer;
}

.catalogue-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-teal);
  transform: translateY(-8px);
}

.catalogue-img {
  height: 100%;
  overflow: hidden;
}

.catalogue-img img {
  object-fit: cover;
  height: 100%;
  transition: transform 0.6s ease;
}

.catalogue-card:hover .catalogue-img img {
  transform: scale(1.06);
}

.catalogue-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(13, 13, 14, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.catalogue-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: rgba(0, 167, 181, 0.2);
  border: 1px solid rgba(0, 167, 181, 0.4);
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
  width: fit-content;
}

.catalogue-overlay h3 {
  font-size: 1.7rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.catalogue-overlay p {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  border-radius: 15%;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(0, 167, 181, 0.3);
  transition: var(--transition);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 167, 181, 0.4);
}

/* ===================================================
   CONTACT SECTION
   =================================================== */
#contact {
  background-image: linear-gradient(rgba(16, 16, 16, 0.92), rgba(13, 13, 14, 0.92)), url('../pattern_3.jpg');
  background-repeat: repeat;
  background-size: 172px;
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.contact-info>p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 1025px) {
  .contact-items {
    grid-template-columns: 1fr;
  }
}

.contact-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.contact-item:hover {
  border-color: rgba(0, 167, 181, 0.4);
}

.contact-item .ci-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item .ci-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-item .ci-text h5 {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0;
  white-space: nowrap;
}

.contact-item .ci-text p {
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: break-word;
  margin: 0;
}

/* Social Media */
.social-heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.social-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #FFFFFF !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
  /* Stacking context */
  text-decoration: none;
}

.social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Behind the SVG */
  opacity: 1 !important;
  /* Always fully coloured */
}

.social-link.fb::before {
  background: #1877F2;
}

.social-link.ig::before {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-link.yt::before {
  background: #FF0000;
}

.social-link.li::before {
  background: #0077b5;
}

.social-link.tw::before {
  background: #000000;
}

.social-link.wa::before {
  background: #25D366;
}

.social-link:hover {
  color: #FFFFFF !important;
  /* Removed box-shadow and transform animations entirely */
}

.social-link span {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link svg {
  fill: currentColor;
  position: relative;
  z-index: 2;
}

.social-link-btn {
  border-radius: 25%;
  border: 2px solid gray;
  padding: 5px;
}

/* Contact Form */
.contact-form-wrap {
  background: var(--dark-3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.contact-form-wrap h3 {
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.contact-form-wrap>p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  background: var(--dark-4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  transition: var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: rgba(0, 167, 181, 0.04);
  box-shadow: 0 0 0 3px rgba(0, 167, 181, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group select option {
  background: var(--dark-3);
  color: var(--text-primary);
}

.btn-submit {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 8px 30px rgba(0, 167, 181, 0.4);
  transition: var(--transition);
}

.btn-submit:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
}

/* ===================================================
   MAP PLACEHOLDER
   =================================================== */
.map-placeholder {
  height: 200px;
  background: var(--dark-4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.map-placeholder .map-icon {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

/* ===================================================
   FOOTER
   =================================================== */
footer {
  /* background: var(--dark-2); */
  /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%234DB8C4' stroke-width='0.8' opacity='0.1'%3E%3Crect x='15' y='15' width='30' height='30' transform='rotate(45 30 30)'/%3E%3Crect x='21' y='21' width='18' height='18' transform='rotate(45 30 30)'/%3E%3Cpath d='M30 42 L36 51 L30 54 L24 51 Z'/%3E%3C/g%3E%3C/svg%3E"); */
  border-top: 1px solid var(--glass-border);
  background-size: 60px 60px;
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%234DB8C4' stroke-width='0.8' opacity='0.1'%3E%3Crect x='15' y='15' width='30' height='30' transform='rotate(45 30 30)'/%3E%3Crect x='21' y='21' width='18' height='18' transform='rotate(45 30 30)'/%3E%3Cpath d='M30 42 L36 51 L30 54 L24 51 Z'/%3E%3C/g%3E%3C/svg%3E");
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.5fr;
  gap: 1rem;
  margin-bottom: 3rem;
}

.footer-brand .brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--teal);
}

.footer-brand p {
  font-size: 1rem;
  color: #fff;
  line-height: 1.5;
  margin: 1rem 0 1.5rem;
  margin-top: 0px;
  max-width: 280px;
}

.footer-col h5 {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  text-align: justify;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
  margin-top: 0px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: left;
  gap: 0.8rem;
  padding: 0px 5px;
}

.footer-col ul li a {
  font-size: 1rem;
  color: #fff;
  transition: var(--transition);
  display: flex;
  align-items: left;
  gap: 0.4rem;
}

.footer-col ul li a:hover {
  color: var(--teal);
  padding-left: 4px;
}

.footer-col ul li a::before {
  content: '›';
  color: var(--teal);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom .footer-social {
  display: flex;
  gap: 0.4rem;
}

.footer-bottom .social-link {
  width: 36px;
  height: 36px;
  font-size: 0.9rem;
  border-radius: 8px;
}

/* ===================================================
   LEAD CAPTURE MODAL
   =================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  /* Always use dark colors — immune to light theme variable overrides */
  background: #1e2535 !important;
  border: 1px solid rgba(0, 167, 181, 0.2) !important;
  border-radius: var(--radius);
  width: 100%;
  max-width: 520px;
  position: relative;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 167, 181, 0.1);
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.modal-backdrop.open .modal {
  transform: translateY(0);
  opacity: 1;
}

.modal-header {
  padding: 2rem 2rem 1.5rem;
  background: linear-gradient(135deg, rgba(0, 167, 181, 0.1), transparent);
  border-bottom: 1px solid var(--glass-border);
}

.modal-header .modal-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 167, 181, 0.15);
  border: 1px solid rgba(0, 167, 181, 0.3);
  border-radius: 50px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.modal-header h2 {
  font-size: 1.8rem;
  color: #f1f5f9 !important;
  margin-bottom: 0.4rem;
}

.modal-header p {
  font-size: 0.82rem;
  color: #94a3b8 !important;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 50%;
  color: #cbd5e1 !important;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(0, 167, 181, 0.15);
  color: var(--teal);
  border: 1px solid var(--teal);
  transform: rotate(90deg);
}

.modal-body {
  padding: 1.75rem 2rem 2rem;
}

.modal-body .form-group {
  margin-bottom: 0.85rem;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 1rem 0 1.25rem;
}

.privacy-note input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--teal);
}

/* === Modal Form — Always Dark Theme === */
.modal .form-group label {
  color: #94a3b8 !important;
}

.modal .form-group input,
.modal .form-group select,
.modal .form-group textarea {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #f1f5f9 !important;
}

.modal .form-group input::placeholder,
.modal .form-group textarea::placeholder {
  color: #64748b !important;
}

.modal .form-group select option {
  background: #1e2535;
  color: #f1f5f9;
}

.modal .privacy-note {
  color: #64748b !important;
}

/* === Modal Inline Error Banner === */
.lead-form-error {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-left: 4px solid #ef4444;
  border-radius: 8px;
  color: #fca5a5;
  font-size: 0.82rem;
  line-height: 1.5;
  animation: errorShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.lead-form-error::before {
  content: '⚠';
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

@keyframes errorShake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-6px);
  }

  40% {
    transform: translateX(6px);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(4px);
  }
}


/* ===================================================
   TOAST NOTIFICATION
   =================================================== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(0, 167, 181, 0.15);
  border: 1px solid rgba(0, 167, 181, 0.3);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: var(--text-primary);
  z-index: 99999;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast .toast-icon {
  font-size: 1.2rem;
}

/* ===================================================
   ANIMATIONS
   =================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

@keyframes counter {
  from {
    opacity: 0;
    transform: scale(0.7);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
} */

/* ===================================================
   MOBILE MENU
   =================================================== */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(13, 13, 14, 0.97);
    backdrop-filter: blur(20px);
    padding: 6rem 2rem 2rem;
    gap: 0;
    align-items: stretch;
    justify-content: flex-start;
    z-index: 998;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links>li>a {
    padding: 1rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--glass-border);
  }

  .nav-hamburger {
    display: flex !important;
    z-index: 9999 !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 32px !important;
    height: 24px !important;
    justify-content: space-around !important;
  }

  .nav-hamburger span {
    background: #fff !important;
    opacity: 1 !important;
  }

  .has-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: var(--dark-4);
    margin-top: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 70px 1.25rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .proximity-grid-ongoing {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    max-width: fit-content;
  }

  .project-card {
    min-width: calc(100% - 0rem);
  }

  .project-thumb {
    max-height: 200px;
  }

  .catalogue-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  /* Center alignment for mobile */
  .section-badge,
  .section-title,
  .section-sub,
  .divider {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .section-badge {
    display: table;
  }

  /* to respect margin auto */

  .contact-items {
    grid-template-columns: 1fr;
  }

  .social-heading {
    text-align: center;
  }

  .map-placeholder {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    display: flex;
    justify-content: center;
  }

  .map-placeholder iframe {
    width: 100%;
    border-radius: 12px;
  }

  .contact-form-wrap {
    text-align: center;
  }

  .contact-form-wrap h3,
  .contact-form-wrap p {
    margin-left: auto;
    margin-right: auto;
  }

  .form-group label {
    text-align: left;
  }

  .footer-grid {
    text-align: left;
  }

  .social-links {
    justify-content: flex-start;
  }

  .footer-col ul {
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}


/* ===================================================
   THEME SWITCHER WIDGET
   =================================================== */
.theme-switcher {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.switcher-toggle {
  background: var(--dark-2);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.switcher-toggle:hover {
  background: var(--teal);
  color: var(--white);
}

.switcher-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  background: var(--dark-3);
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}

.theme-switcher:hover .switcher-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.switcher-menu p {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.theme-btn {
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  transition: var(--transition);
  border: 1px solid transparent;
}

.theme-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--glass-border);
  color: var(--teal);
}

/* ===================================================
   LANGUAGE SWITCHER WIDGET
   =================================================== */
.lang-switcher {
  position: fixed;
  bottom: 2rem;
  left: 9rem;
  z-index: 9999;
  display: flex;
  background: var(--dark-2);
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.lang-btn {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 0.6rem 10px;
  font-size: 0.75rem;
  font-weight: 200;
  letter-spacing: 0.22em;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
  background: var(--teal);
  color: var(--white);
}

/* ============================================
   TEMPLATE 7 — PRISTINE WHITE
   Elegant "Day Mode" with classic gold accents.
   ============================================ */
:root {
  --teal: #00a7b5;
  --teal-light: #00c2d1;
  --teal-dark: #008d99;
  --navy: #1e2e56;
  --navy-dark: #15203d;
  --cream: #F8F9FA;
  --dark: #FFFFFF;
  /* Main background */
  --dark-2: #F1F3F5;
  --dark-3: #E9ECEF;
  --dark-4: #DEE2E6;
  --text-primary: var(--navy);
  --text-secondary: #495057;
  --text-muted: #868E96;
  --white: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(0, 167, 181, 0.2);
  --shadow-teal: 0 10px 30px rgba(0, 167, 181, 0.1);
  --radius: 12px;
  --radius-sm: 6px;
  --transition: all 0.3s ease;
}

body {
  background: var(--dark);
  color: var(--text-primary);
  margin: 0px 0px;
}

/* =====================================================
   NAV — Lodha-style Smart Scroll Header
   • Transparent over hero
   • Slides UP (hides) when scrolling down
   • Slides DOWN (shows) with solid white BG on scroll-up
===================================================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  /* Initial transparency used by Lodha */
  /* They use a slight dark gradient/blur even at top */
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition: all 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Solid background — Unified with top state */
#navbar.nav-solid {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* No color/inversion changes needed as background stays dark */
#navbar.nav-solid .nav-links a,
#navbar.nav-solid .nav-right a,
#navbar.nav-solid .nav-right button,
#navbar.nav-solid .lodha-brand-text {
  color: var(--white);
}

#navbar.nav-solid .nav-hamburger span,
#navbar.nav-solid .lodha-hamburger span {
  background: var(--white);
}

#navbar.nav-solid .lodha-logo-img {
  filter: none;
}

/* Hidden — slides completely off screen on scroll-down */
#navbar.nav-hidden {
  transform: translateY(-100%);
}

/* Keep links white over the hero video AND once solid (Lodha style) */
#navbar .nav-links a,
#navbar .nav-right a,
#navbar .nav-right button,
#navbar .lodha-brand-text {
  color: var(--white);
  transition: var(--transition);
}

#navbar .nav-hamburger span {
  background: var(--white);
}

#navbar .nav-links a:hover,
#navbar .nav-right a:hover,
#navbar .nav-links a.active {
  color: var(--teal);
}

/* Keep legacy .scrolled rule for other templates */
#navbar.scrolled {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links a {
  font-weight: 500;
  color: var(--navy);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--teal);
}

/* Hero */
#hero {
  background: var(--dark-2);
  position: relative;
  top: 0;
}


.hero-overlay {
  background: linear-gradient(to left, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.2));
}

h1.hero-title {
  color: var(--navy);
  text-shadow: none;
}

.hero-subtitle {
  color: #ffffff;
}

/* Cards */
.card,
.project-card,
.stat-card,
.catalogue-card,
.about-feature {
  background: var(--white);
  border: 1px solid var(--dark-3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.card:hover,
.project-card:hover,
.stat-card:hover,
.catalogue-card:hover {
  border-color: var(--teal-light);
  box-shadow: 0 12px 40px rgba(0, 167, 181, 0.08);
  transform: translateY(-5px);
}

.project-info h3 {
  color: var(--navy);
}

.project-info p {
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.5;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* Sectionbadge */
.section-badge {
  background: var(--navy);
  color: #FFF;
  border: none;
}

/* Buttons */
.btn-primary,
.btn-download,
.btn-submit,
.tab-btn.active {
  background: var(--teal);
  color: #FFF;
  box-shadow: 0 4px 15px rgba(0, 167, 181, 0.3);
}

.btn-primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 6px 20px rgba(0, 167, 181, 0.4);
}

/* Footers (Emaar Styling) */
footer {
  background: #f8f8f8 !important;
  color: #6b7280 !important;
  border-top: 1px solid var(--dark-3);
}

footer .brand,
footer .brand span,
footer .brand h5 {
  color: #000000 !important;
}

footer p,
footer .footer-brand p,
footer .footer-bottom p {
  color: #6b7280 !important;
}

footer h5,
footer .footer-col h5 {
  color: #000000 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

footer a,
footer .footer-col ul li a {
  color: #6b7280 !important;
  transition: color 0.3s ease;
}

footer .footer-col ul li a::before {
  color: #c29b67 !important;
}

footer .footer-col ul li a:hover {
  color: #111827 !important;
}

footer .footer-bottom {
  border-top: 1px solid #e5e7eb !important;
  padding-top: 2rem !important;
  margin-top: 2rem !important;
}

footer .footer-bottom p {
  color: #6b7280 !important;
}

/* Invert Logo colors for white bg */
.nav-logo .brand {
  color: var(--navy);
}

.nav-logo .tagline {
  color: var(--teal);
}

/* Project Thumb — Clip-path wipe reveal (left → right) */
.project-thumb {
  clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
  transition: clip-path 3s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.project-card.aos-animate .project-thumb {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

/* Communities & Catalogue Thumb Wipes */
.layout-img,
.catalogue-img {
  clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
  transition: clip-path 3s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.layout-card.aos-animate .layout-img,
.catalogue-card.aos-animate .catalogue-img {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

/* ================================================
   OUR PROMISE SECTION — Lodha Style
================================================ */
#ourPromiseSec {
  background: #f5f3ef;
  overflow: hidden;
}

.promise-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
  align-items: center;
}

/* LEFT: Image */
.promise-image-wrap {
  overflow: hidden;
  position: relative;
  height: 100%;
  min-height: 540px;
}

.promise-image-wrap.promise-visible {
  opacity: 1;
  transform: translateX(0);
}

.promise-img-inner {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.promise-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Subtle Ken Burns scale on scroll reveal */
  transform: scale(1.05);
  transition: transform 1.4s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.promise-image-wrap.promise-visible .promise-img {
  transform: scale(1);
}

.promise-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.08), transparent);
  pointer-events: none;
}

/* RIGHT: Text content */
.promise-content {
  padding: 5rem 5rem 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Eyebrow — bronze, all caps, small */
.promise-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #c29b67;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  /* Staggered fade-up — Item 1 */
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) 0.1s,
    transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) 0.1s;
}

.promise-heading {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 1.5rem;
  max-width: 400px;
  /* Preserve aesthetic break without <br> */
  /* Staggered fade-up — Item 2 */
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) 0.25s,
    transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) 0.25s;
}

.promise-divider {
  width: 40px;
  height: 2px;
  background: #c29b67;
  margin-bottom: 1.5rem;
  /* Staggered fade-up — Item 3 */
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

.promise-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: #6b7280;
  margin-bottom: 2.5rem;
  max-width: 480px;
  /* Staggered fade-up — Item 4 */
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) 0.5s,
    transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) 0.5s;
}

.promise-cta {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border: 1px solid #c29b67;
  color: #c29b67;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  align-self: flex-start;
  /* Staggered fade-up — Item 5 */
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) 0.65s,
    transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) 0.65s;
}

.promise-cta:hover {
  background: #c29b67;
  color: #fff;
}

/* When content block is revealed via AOS, trigger internal stagger logic if needed. 
   Actually, we will apply data-aos to individual elements in HTML for better control. */
.promise-content .promise-eyebrow,
.promise-content .promise-heading,
.promise-content .promise-desc,
.promise-content .promise-cta,
.promise-content .promise-divider {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .promise-container {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .promise-image-wrap {
    min-height: 320px;
    transform: translateY(-40px);
  }

  .promise-image-wrap.promise-visible {
    transform: translateY(0);
  }

  .promise-content {
    padding: 3rem 2rem;
    text-align: center;
    align-items: center;
  }
}

/* Fix text visibility on light backgrounds */
#projects .section-title,
#layouts .section-title,
#catalogue .section-title,
.project-info h3,
.layout-content h3,
.contact-form-wrap h3 {
  color: var(--navy);
}

/* ============================================
   LODHA STYLE HEADER OVERRIDES
   ============================================ */
/* Header Structure */
.lodha-nav-left {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  /* Space between logo and nav links */
}

.lodha-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lodha-logo-img {
  height: auto;
  width: 180px;
}

.lodha-brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.lodha-nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.lodha-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lodha-action span {
  font-size: 0.75rem;
  font-weight: 200;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.lodha-hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  cursor: pointer;
  padding: 4px;
}

.lodha-hamburger span {
  width: 26px;
  height: 2px;
  background: currentColor;
  transition: 0.3s;
  display: block;
}

.nav-chevron {
  font-size: 0.6rem;
  margin-left: 0.2rem;
  vertical-align: middle;
}

@media (min-width: 1025px) {
  .hide-desktop {
    display: none !important;
  }

  .lodha-desktop-links {
    display: flex;
    gap: 2rem;
  }

  .lodha-desktop-links a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
  }

  /* Lodha-style thin underline on hover */
  .lodha-desktop-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
  }

  .lodha-desktop-links a:hover::after,
  .lodha-desktop-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

@media (max-width: 1024px) {
  .hide-mobile {
    display: none !important;
  }

  /* ── Navbar shell ── */
  #navbar {
    padding: 0 0.75rem;
  }

  .nav-inner {
    height: 60px;
    /* Prevent any child from escaping the row */
    overflow: visible;
  }

  /* Allow flex children to shrink below their natural size */
  .lodha-nav-left,
  .lodha-nav-right {
    min-width: 0;
    flex-shrink: 1;
  }

  /* Logo: constrain width so it never pushes the hamburger off-screen */
  .lodha-logo-img {
    /* height: 38px;
    width: auto;
    max-width: 120px; */
    /* tighter cap for very small screens */
    object-fit: cover;
  }

  /* Tighten gaps */
  .lodha-nav-left {
    gap: 0.5rem;
  }

  .lodha-nav-right {
    gap: 0.5rem;
  }

  /* ── Hamburger — guaranteed visible ── */
  .nav-hamburger,
  .lodha-hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    flex-shrink: 0;
    /* never squish the button itself */
    min-width: 34px;
    padding: 4px;
    z-index: 9999;
  }

  /* Hamburger bars: always dark so visible on light nav + white so visible on dark nav */
  .nav-hamburger span,
  .lodha-hamburger span {
    background: var(--white) !important;
    /* white over hero video */
    width: 22px;
    height: 2px;
    display: block;
    border-radius: 2px;
  }

  /* When navbar is scrolled, switch bars to White for contrast */
  #navbar.nav-solid .nav-hamburger span,
  #navbar.nav-solid .lodha-hamburger span,
  #navbar.scrolled .nav-hamburger span,
  #navbar.scrolled .lodha-hamburger span {
    background: var(--white) !important;
  }

  /* ── Side drawer ── */
  .lodha-desktop-links {
    position: fixed;
    top: 0;
    left: -320px;
    width: 280px;
    height: 100vh;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    margin: 0;
  }

  .lodha-desktop-links.open {
    left: 0;
  }

  .lodha-desktop-links a {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    padding: 1rem 0;
    color: var(--white) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    width: 100%;
  }

  .lodha-desktop-links a:hover,
  .lodha-desktop-links a.active {
    color: var(--teal) !important;
    background: transparent !important;
    padding-left: 0.5rem;
  }
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Hero Premium Pattern Effect */
.hero-premium-pattern {
  display: block;
  margin: 1.5rem auto 0;
  width: 100%;
  max-width: 100px;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════
   MOBILE HERO — Clean rewrite
   Navbar height on mobile = 60px (fixed)
   Layout: video flows below navbar, text overlays
   center, CTA buttons 50px below the video
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {

  /* ── #hero: auto height, push content below fixed navbar ── */
  #hero {
    height: auto;
    min-height: unset;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: visible;
    top: 0;
    padding-top: 60px;
    /* offset for fixed navbar */
  }

  /* ── Video: in normal flow immediately after navbar ── */
  .hero-video {
    position: relative;
    inset: unset;
    width: 100%;
    height: 56vw;
    /* 16:9 proportional height */
    object-fit: cover;
    object-position: center;
    z-index: 1;
    flex-shrink: 0;
  }

  /* ── Carousel: overlays the video exactly ── */
  .hero-carousel {
    position: absolute;
    top: 60px;
    /* matches #hero padding-top */
    left: 0;
    right: 0;
    height: 56vw;
    /* same as video height */
    z-index: 2;
    overflow: hidden;
  }

  .hero-carousel-slide img {
    width: 100%;
    height: 56vw;
    object-fit: cover;
    object-position: center;
  }

  /* ── Hero content: absolutely centered over the video ── */
  .hero-content {
    position: absolute;
    top: 60px;
    /* matches #hero padding-top */
    left: 0;
    right: 0;
    height: 56vw;
    /* same as video height */
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem 1.5rem;
    margin: 0;
    max-width: 100%;
    z-index: 5;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* ── Text: fluid scaling across all mobile widths ── */
  .hero-title {
    font-size: clamp(1.1rem, 5.5vw, 2rem);
    line-height: 1.15;
    margin-bottom: 0.4rem;
  }

  .hero-subtitle {
    font-size: clamp(0.65rem, 2.8vw, 0.9rem);
    line-height: 1.5;
    margin: 0 auto;
    max-width: 88%;
  }

  .hero-badge {
    font-size: 0.58rem;
    padding: 0.2rem 0.65rem;
    margin-bottom: 0.4rem;
  }

  .hero-premium-pattern {
    max-width: 40px;
    margin: 0.3rem auto 0;
  }

  /* ── Carousel nav dots: keep above buttons ── */
  .hero-carousel-dots {
    bottom: 0.75rem;
  }

  /* ── Prev/Next arrows: smaller on mobile ── */
  .hero-carousel-btn {
    width: 36px;
    height: 36px;
  }
}


/* ── Full desktop (≥ 1367px): classic absolute search bar over full-bleed hero ── */
@media (min-width: 1367px) {
  .emaar-search-wrapper {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
  }

  .emaar-search-wrapper.is-visible {
    visibility: visible;
  }
}

/* =====================================================
   EMAAR SEARCH BAR — Pixel-Perfect Replica
   Ref: absolute bottom-[10%] z-1 container hidden justify-center lg:flex
   ===================================================== */
.emaar-search-wrapper {
  position: absolute;
  bottom: 220px;
  left: -130px;
  right: 0;
  width: 62%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
  z-index: 10;
  display: none;
  /* hidden by default — shown via media query below */
  justify-content: center;
}

/* ── Intermediate: landscape tablet + small laptop (1025–1366px) ──
   Video ends right above the search bar, which is 50px from bottom ── */
@media (min-width: 1025px) and (max-width: 1366px) {

  /* Hero: takes full screen height */
  #hero {
    height: 100vh !important;
    min-height: unset !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    position: relative;
    overflow: hidden;
    top: 0;
    padding-top: 60px;
    /* fixed navbar */
  }

  /* Video: Height calculated so it ends exactly before the search wrapper */
  .hero-video {
    position: relative;
    inset: unset;
    width: 100%;
    /* 100vh - 60px (nav) - 100px (space for search wrapper + 50px bottom gap) */
    height: calc(100vh - 160px) !important;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    flex-shrink: 0;
  }

  /* Carousel: matches video perfectly */
  .hero-carousel {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    height: calc(100vh - 160px) !important;
    z-index: 2;
    overflow: hidden;
  }

  .hero-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  /* Hero content: absolutely centered over the video height */
  .hero-content {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    height: calc(100vh - 160px) !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem 3rem;
    max-width: 100%;
    margin: 0;
    z-index: 5;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Text: scale comfortably */
  .hero-title {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    line-height: 1.15;
    margin-bottom: 0.5rem;
  }

  .hero-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 1.6;
    max-width: 70%;
    margin: 0 auto;
  }

  .hero-badge {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
  }

  /* Search wrapper: positioned absolutely at the bottom, exactly 50px from edge */
  .emaar-search-wrapper {
    position: absolute !important;
    bottom: 50px !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    transform: none !important;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
    margin: 0 auto !important;
    padding: 0 2rem;
    justify-content: center;
    width: 95%;
    z-index: 10;
  }
}






/* The pill-shaped white bar — compact, matching Emaar exactly */
.emaar-search-bar {
  display: flex;
  align-items: center;
  width: 100%;
  height: 48px;
  background: #ffffff;
  border-radius: 100px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.14);
  overflow: visible;
  padding-right: 4px;
  /* so button sits snug inside pill */
}

/* Each filter section */
.esb-field {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  cursor: pointer;
  outline: none;
}

/* Trigger (label + chevron) */
.esb-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 16px;
  gap: 8px;
  user-select: none;
  cursor: pointer;
}

/* Give the first field extra left padding to clear the pill curve */
.esb-field:first-child .esb-trigger {
  padding-left: 24px;
}

.esb-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.esb-chevron {
  flex-shrink: 0;
  color: #1a1a1a;
  transition: transform 0.25s ease;
}

.esb-field.active .esb-chevron {
  transform: rotate(180deg);
}

/* Vertical pipe divider between sections */
.esb-divider {
  width: 1px;
  height: 22px;
  /* Emaar's divider is about 22px tall */
  background: #d1d5db;
  align-self: center;
  flex-shrink: 0;
}

/* SEARCH PROPERTIES button — solid black pill on the right, inset from the white pill */
.esb-search-btn {
  flex-shrink: 0;
  background: #0d1b2a;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 20px;
  height: 40px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  align-self: center;
  margin: 0 4px;
  transition: background 0.25s ease;
  font-family: var(--font-sans);
  flex-shrink: 0;
}

.esb-search-btn:hover {
  background: #1e2e56;
}

/* ---- Dropdown popover ---- */
.esb-dropdown {
  position: absolute;
  bottom: calc(100% + 12px);
  top: auto;
  left: 0;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  padding: 20px 24px 18px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 9999;
}

.esb-dropdown-right {
  left: auto;
  right: 0;
}

.esb-dropdown-price {
  min-width: 320px;
}

.esb-field.active .esb-dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* Options list — single column default */
.esb-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

/* 2-column grid variant (Bedrooms, Community) */
.esb-options-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

/* Checkbox row */
.esb-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  color: #1a1a1a;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
}

.esb-check input[type="checkbox"] {
  display: none;
}

.esb-box {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 1.5px solid #9ca3af;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.esb-check input:checked+.esb-box {
  background: #0d1b2a;
  border-color: #0d1b2a;
}

.esb-check input:checked+.esb-box::after {
  content: '';
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

/* Clear Selection link */
.esb-clear {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  text-decoration: underline;
  margin-top: 2px;
}

.esb-clear:hover {
  color: #1a1a1a;
}

/* Price Range — two selects side by side */
.esb-price-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.esb-price-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.esb-price-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.esb-price-select {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  color: #1a1a1a;
  background: #f9fafb;
  outline: none;
  font-family: var(--font-sans);
  cursor: pointer;
  appearance: auto;
}

.esb-price-dash {
  font-size: 18px;
  color: #9ca3af;
  padding-top: 18px;
  flex-shrink: 0;
}

/* ---- Old/fallback search styles kept for any remaining use ---- */
.custom-dropdown {
  position: relative;
  outline: none;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--navy);
  font-family: var(--font-sans);
  cursor: pointer;
}

.dropdown-trigger svg.chevron {
  transition: transform 0.3s ease;
  color: var(--navy);
  margin-left: 0.5rem;
}

.custom-dropdown.active .dropdown-trigger svg.chevron {
  transform: rotate(180deg);
}

.dropdown-selected-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.dropdown-menu {
  position: absolute;
  top: 130%;
  left: 0;
  background: var(--white);
  min-width: 250px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1000;
}

.dropdown-menu.dropdown-menu-right {
  left: auto;
  right: 0;
}

.custom-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  white-space: nowrap;
}

.custom-checkbox input {
  display: none;
}

.custom-checkbox .checkmark {
  width: 16px;
  height: 16px;
  border: 1px solid var(--text-secondary);
  border-radius: 2px;
  margin-right: 0.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.custom-checkbox input:checked+.checkmark {
  background: #0d1b2a;
  border-color: #0d1b2a;
}

.custom-checkbox input:checked+.checkmark::after {
  content: '';
  width: 4px;
  height: 8px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.dropdown-footer {
  border-top: 1px solid var(--dark-3);
  padding-top: 1rem;
  display: flex;
  justify-content: flex-start;
}

.btn-clear-selection {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.btn-clear-selection:hover {
  color: var(--navy);
}

.emaar-search-inner {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Emaar left-aligns tabs over the bar */
}

/* Emaar style tabs above search bar */
.emaar-search-tabs {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.8rem;
  margin-left: 1.5rem;
}

.tab-pill {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 0.5rem 0;
  cursor: pointer;
  position: relative;
  text-transform: uppercase;
  font-family: var(--font-sans);
  transition: var(--transition);
}

.tab-pill:hover,
.tab-pill.active {
  color: var(--white);
}

.tab-pill.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* The actual search solid bar */
.emaar-search-bar {
  display: flex;
  align-items: center;
  background: var(--white);
  /* solid white */
  border-radius: 50px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  padding: 4px;
  width: 100%;
  height: auto;
  min-height: 33px;
}

.emaar-search-bar .search-field {
  flex: 1;
  padding: 0 1.5rem;
  border-right: 1px solid var(--dark-3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  height: 40px;
  /* Vertical separator height */
  margin: auto 0;
}

.emaar-search-bar .text-search-field {
  flex: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.8rem;
}

.emaar-search-bar .price-search-field {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.emaar-price-input {
  border: none;
  background: transparent;
  width: 100%;
  min-width: 0;
  font-size: 0.95rem;
  color: var(--navy);
  outline: none;
  font-family: var(--font-sans);
}

.emaar-price-input::placeholder {
  color: var(--text-muted);
}

.price-separator {
  color: var(--text-muted);
  font-weight: 300;
}

.emaar-search-bar .search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.emaar-text-input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 1rem;
  color: var(--navy);
  outline: none;
  font-family: var(--font-sans);
}

.emaar-text-input::placeholder {
  color: var(--text-muted);
}

.emaar-search-bar .search-field:nth-last-child(2) {
  border-right: none;
}

.emaar-search-bar .search-field label {
  display: none;
  /* Hide label to mimic Emaar single line */
}

/* Make trigger act like the main button text */
.emaar-search-bar .dropdown-trigger {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.emaar-search-bar .dropdown-trigger:hover {
  opacity: 0.7;
}

/* Custom Dropdown Overrides */
.custom-dropdown {
  position: relative;
  outline: none;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--navy);
  font-family: var(--font-sans);
  cursor: pointer;
  margin-bottom: 10px;
}

.dropdown-trigger svg.chevron {
  transition: transform 0.3s ease;
  color: var(--navy);
  margin-left: 0.5rem;
}

.custom-dropdown.active .dropdown-trigger svg.chevron {
  transform: rotate(180deg);
}

.dropdown-selected-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

/* Desktop Popover Styling */
.emaar-search-bar .dropdown-menu {
  position: absolute;
  top: 130%;
  left: 0;
  background: var(--white);
  min-width: 250px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1000;
}

.emaar-search-bar .dropdown-menu.dropdown-menu-right {
  left: auto;
  right: 0;
}

.emaar-search-bar .custom-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  white-space: nowrap;
}

.custom-checkbox input {
  display: none;
}

.custom-checkbox .checkmark {
  width: 16px;
  height: 16px;
  border: 1px solid var(--text-secondary);
  border-radius: 2px;
  margin-right: 0.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.custom-checkbox:hover .checkmark {
  border-color: var(--navy);
}

.custom-checkbox input:checked+.checkmark {
  background: #c29b67;
  /* Emaar Bronze */
  border-color: #c29b67;
}

.custom-checkbox input:checked+.checkmark::after {
  content: '';
  width: 4px;
  height: 8px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.dropdown-footer {
  border-top: 1px solid var(--dark-3);
  padding-top: 1rem;
  display: flex;
  justify-content: flex-start;
}

.btn-clear-selection {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.btn-clear-selection:hover {
  text-decoration: underline;
  color: var(--navy);
}

.emaar-search-bar .search-btn {
  flex-shrink: 0;
  background: var(--navy-dark);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-family: var(--font-sans);
  text-transform: uppercase;
  margin-left: 0.5rem;
}

.emaar-search-bar .search-btn:hover {
  background: var(--teal);
}

/* Ensure all interactive buttons have minimum touch target size */
.arrow-btn,
.tab-btn,
.search-btn,
.lang-btn,
.social-link {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .emaar-search-bar {
    flex-direction: column;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  }

  .emaar-search-bar .search-field {
    border-right: none;
    border-bottom: 1px solid var(--dark-3);
  }

  .emaar-search-bar .search-btn {
    padding: 1.5rem;
  }

  .emaar-search-wrapper {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 3rem;
  }
}

/* ── Mobile Hero CTA Buttons ──
   Flow 50px below the video (position:relative in flex column #hero)
   Desktop hidden via .hide-desktop (min-width: 1025px)          */
.emaar-mobile-hero-actions {
  display: flex;
  position: relative;
  margin-top: 50px;
  left: unset;
  bottom: unset;
  transform: none;
  z-index: 10;
  gap: 1rem;
  width: calc(100% - 3rem);
  max-width: 400px;
  align-self: center;
}

.btn-mobile-search,
.btn-mobile-contact {
  flex: 1;
  padding: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  letter-spacing: 0.05em;
  font-family: var(--font-sans);
  transition: var(--transition);
}

.btn-mobile-search {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--navy);
}

.btn-mobile-contact {
  background: var(--navy-dark);
  color: var(--white) !important;
  border: 1px solid var(--navy-dark);
}

/* Mobile Search Drawer Backdrop */
body.drawer-open::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2999;
  animation: fadeInBackdrop 0.3s ease forwards;
}

@keyframes fadeInBackdrop {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


/* Mobile Search Drawer */
.mobile-search-drawer {
  position: fixed;
  bottom: -110%;
  left: 50%;
  transform: translateX(-50%);
  width: 84%;
  /* < 450px mobile */
  background: var(--white);
  border-radius: 16px 16px 0 0;
  z-index: 3000;
  transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  padding: 1.5rem 1.5rem 2.5rem;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .mobile-search-drawer {
    width: 94%;
  }
}

.mobile-search-drawer.open {
  bottom: 0;
}

.drawer-handle {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.drawer-handle span {
  width: 40px;
  height: 4px;
  background: var(--text-secondary);
  border-radius: 4px;
  opacity: 0.5;
}

/* Drawer close button — sticky top-right corner */
.drawer-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  transition: background 0.2s;
  flex-shrink: 0;
}

.drawer-close-btn:hover,
.drawer-close-btn:active {
  background: var(--teal);
}

/* Drawer title */
.drawer-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 1.25rem;
  padding-right: 3rem;
  /* so text doesn't overlap close btn */
}

.drawer-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-search-drawer .search-field {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--dark-3);
  padding-bottom: 0.5rem;
}

.mobile-search-drawer .search-field label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Mobile Drawer Accordion Override */
.mobile-search-drawer .dropdown-menu {
  display: none;
  padding-top: 0.75rem;
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  background: transparent;
  padding-left: 10px;
  padding-right: 10px;
  min-width: unset;
}

.mobile-search-drawer .custom-dropdown.active .dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.mobile-search-drawer .dropdown-menu label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 2px 0;
  line-height: 1.3;
}

.mobile-search-drawer .dropdown-menu label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--teal);
  cursor: pointer;
}

.search-btn-full {
  background: var(--navy-dark);
  color: var(--white);
  padding: 1.2rem;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.search-btn-full:hover {
  background: var(--teal);
}

/* Contact Section Override */
#contact {
  background: var(--dark-2) !important;
  color: var(--navy) !important;
}

#contact .section-title,
#contact .section-subtitle,
#contact .section-sub,
#contact h2,
#contact h3,
#contact h5,
#contact p,
#contact span,
#contact label,
#contact .contact-item .ci-text h5,
#contact .contact-item .ci-text p,
#contact .contact-info strong {
  color: var(--navy) !important;
}

#contact .section-badge {
  color: #FFF !important;
  background: var(--navy) !important;
}

#contact .icon-box,
#contact .ci-icon {
  background: var(--white) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: var(--navy) !important;
}

#contact .contact-form input,
#contact .contact-form select,
#contact .contact-form textarea {
  background: var(--white) !important;
  color: var(--navy) !important;
  border: 1px solid var(--dark-3) !important;
}

#contact .contact-form label {
  color: var(--navy) !important;
}

/* ============================================
   LAYOUT SECTION REFINEMENTS
   ============================================ */

/* Reduced image size with side-by-side content on desktop */
@media (min-width: 901px) {
  .layout-card .layout-img {
    width: 100%;
    height: auto;
    min-height: 800px;
    max-height: 900px;
    overflow: hidden;
  }

  .layout-card .layout-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure full visibility of the layout plan */
    background: #f8f8f8;
  }

  .layout-card .layout-content {
    width: 100%;
    padding: 15px;
    /* Compact padding as requested */
    box-sizing: border-box;
  }
}

/* Plot Availability Legend & Visual Grid */
.plot-status-wrap {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--dark-3);
  box-sizing: border-box;
}

.plot-legend {
  display: flex;
  flex-direction: row;
  /* Stack legend horizontally to save vertical space */
  gap: 1.2rem;
  margin-bottom: 0.8rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
}

.legend-color {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.legend-color.available {
  background: #faf7d6;
}

.legend-color.sold {
  background: #feaf30;
}

.legend-color.ready_to_move {
  background: #b0c05d;
}


.plot-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  /* More columns to make it smaller/shorter */
  gap: 3px;
  max-width: 420px;
  /* Constrain grid width */
  box-sizing: border-box;
}

.plot-unit {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  /* Smaller number */
  font-weight: 700;
  color: #fff;
}

.plot-unit.sold {
  background: #feaf30;
}

.plot-unit.ready_to_move {
  background: #b0c05d;
}

.plot-unit.available {
  background: #faf7d6;
  color: #000000 !important;
}

.plot-unit:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

/* Tooltip on hover (optional enhancement) */
.plot-unit::after {
  content: attr(data-plot);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  padding: 2px 6px;
  font-size: 0.6rem;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.plot-unit:hover::after {
  opacity: 1;
}

@media (max-width: 600px) {
  .plot-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Updated project features to use premium icons */
.project-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--dark-4);
}

.ph-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--dark-2);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  transition: var(--transition);
}

.ph-item:hover {
  background: var(--dark-3);
  color: var(--navy);
  transform: translateY(-2px);
}

.ph-item svg {
  width: 12px;
  height: 12px;
  color: var(--teal);
}

/* Layout Plan highlights override */
.layout-features {
  list-style: none;
  padding-left: 0;
  margin-top: 1.5rem;
}

.layout-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.layout-features li svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
  flex-shrink: 0;
}

.layout-features li span {
  display: none !important;
  /* Hide old emojis if present */
}

/* Enhanced Proximity Section */
.project-proximity {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--dark-4);
}

.proximity-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}

.proximity-title::before {
  content: '📍';
  font-size: 0.8rem;
}

.proximity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.proximity-grid-ongoing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: fit-content;
  gap: 0.8rem;
}

.proximity-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.proximity-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.proximity-value {
  font-size: 0.65rem;
  color: var(--text-muted);
  padding-left: 1.2rem;
}

.proximity-icon {
  width: 12px;
  height: 12px;
  color: var(--teal);
  flex-shrink: 0;
}

/* ================================================
   SCROLL TO TOP BUTTON
   ================================================ */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 167, 181, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 99999;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(20px);
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

#back-to-top:hover {
  background: var(--navy-dark);
  color: var(--teal);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Removed old hover styles */
#back-to-top__unused_hover {
  background: var(--teal);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 167, 181, 0.4);
  border-color: var(--teal);
}

/* Fix: Hide mobile drawer on desktop, show only on mobile */
@media (min-width: 1025px) {
  .mobile-search-drawer {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .mobile-search-drawer {
    display: block;
  }

  .lang-btn {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 0.6rem 5px;
    font-size: 10px;
    font-weight: 200;
    letter-spacing: 0.22em;
    cursor: pointer;
    transition: var(--transition);
    min-width: 30px;
    min-height: 20px;
  }

}