/* ============================================
   EARTHESCAPE – DESIGN TOKENS
   ============================================ */
:root {
  --c-primary: #052b1e; /* Deep Forest Green */
  --c-primary-dark: #031f15;
  --c-secondary: #987b59; /* Warm Brown */
  --c-accent: #b89968;
  --c-dark: #052b1e;
  --c-muted: #6b5d4f;
  --c-light: #f7f5f2;
  --c-white: #fff;
  --c-cream: #faf8f5;
  --ff-heading: 'Georama', sans-serif;
  --ff-body: 'Georama', sans-serif;
  --transition: all .3s ease;
  --shadow-sm: 0 4px 15px rgba(5,43,30,.08);
  --shadow-md: 0 10px 30px rgba(5,43,30,.1);
  --shadow-lg: 0 15px 50px rgba(5,43,30,.12);
  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-full: 50px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  color: var(--c-primary);
  line-height: 1.6;
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--ff-heading); font-weight: 700; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }
section { scroll-margin-top: 90px; }

/* ============================================
   BUTTONS
   ============================================ */
.btn-es-primary {
  background: var(--c-primary);
  color: var(--c-white);
  padding: 14px 36px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--c-primary);
  transition: var(--transition);
  cursor: pointer;
}
.btn-es-primary:hover {
  background: transparent;
  color: var(--c-primary);
}
.btn-es-outline {
  background: transparent;
  color: var(--c-primary);
  padding: 14px 36px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid var(--c-primary);
  transition: var(--transition);
  cursor: pointer;
}
.btn-es-outline:hover {
  background: var(--c-secondary);
  color: var(--c-white);
  border-color: var(--c-secondary);
}
.btn-es-white {
  background: transparent;
  color: var(--c-white);
  padding: 14px 36px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid var(--c-white);
  transition: var(--transition);
  cursor: pointer;
}
.btn-es-white:hover {
  background: var(--c-white);
  color: var(--c-primary);
}

/* ============================================
   NAVBAR
   ============================================ */
.es-navbar {
  padding: 12px 40px;
  background: var(--c-white);
  transition: var(--transition);
  z-index: 1050;
}
.es-navbar.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.es-navbar .navbar-brand img {
  height: 50px !important;
  max-width: 200px !important;
  width: auto !important;
  object-fit: contain !important;
}
.es-navbar .nav-link {
  color: var(--c-primary);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 8px 16px !important;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: var(--transition);
  margin: 0 2px;
}
.es-navbar .nav-link:hover,
.es-navbar .nav-link.active {
  border-color: var(--c-primary);
  background: rgba(5,43,30,0.05);
}
.es-navbar .nav-link.active {
  border-radius: var(--radius-full);
}

/* ============================================
   HERO SLIDER
   ============================================ */
.es-hero-slider {
  margin-top: 72px;
  position: relative;
  overflow: hidden;
}
.es-hero-slider .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.es-hero-slider .swiper-button-next,
.es-hero-slider .swiper-button-prev {
  color: var(--c-white);
  transition: var(--transition);
}
.es-hero-slider .swiper-button-next:after,
.es-hero-slider .swiper-button-prev:after {
  font-size: 24px;
  font-weight: bold;
}

/* ============================================
   ABOUT / INTRO SECTION
   ============================================ */
.es-about {
  padding: 80px 0;
  background: var(--c-cream);
  position: relative;
  overflow: hidden;
}

.es-about::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 50px;
  width: 600px;
  height: 600px;
  background: url('./Mahindra_Assests/Element-brown.png') no-repeat center;
  background-size: contain;
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

.es-about .container {
  position: relative;
  z-index: 1;
}
.es-about .about-title {
  font-size: clamp(36px, 6vw, 64px);
  color: var(--c-dark);
  margin-bottom: .2rem;
  line-height: 1.1;
}
.es-about .about-subtitle {
  font-size: clamp(18px, 3vw, 22px);
  font-family: var(--ff-body);
  font-weight: 600;
  color: var(--c-primary);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}
.es-about .about-desc {
  color: var(--c-muted);
  font-size: 16px;
  max-width: 540px;
  line-height: 1.7;
}
.es-about .about-desc p {
  margin-bottom: 1rem;
}
.es-about .about-desc p:last-child {
  margin-bottom: 0;
}
.es-about .expand-content { display: none; margin-top: 1rem; }
.es-about .feature-grid {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.es-about .feature-grid li {
  font-size: 14px;
  color: var(--c-muted);
  display: flex; align-items: center; gap: 8px;
}
.es-about .feature-grid li i { color: var(--c-primary); font-size: 18px; }
.es-about .read-more-toggle {
  color: var(--c-primary);
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 1rem;
  transition: var(--transition);
  cursor: pointer;
}
.es-about .read-more-toggle:hover { opacity: 0.8; gap: 8px; }
.es-about .hero-img-wrap img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.es-about .btn-group-custom { display: flex; gap: 16px; margin-top: 2.5rem; }

/* ================== PHONE INPUT fix ================== */
.iti { width: 100% !important; display: block !important; }
.iti input { width: 100% !important; padding-left: 52px !important; margin: 0 !important; }
.iti__country-list { z-index: 10000 !important; width: 300px; }
.input-wrap.phone-open-div, .input-group.phone-open-div { display: block !important; }

/* ============================================
   FIXED FOOTER DESKTOP
   ============================================ */
.es-fixed-footer-desktop {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--c-white);
  box-shadow: 0 -5px 25px rgba(0,0,0,.1);
  padding: 10px 0;
  z-index: 1040;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-top: 2px solid var(--c-primary);
}
.es-fixed-footer-desktop.show {
  transform: translateY(0);
}
.es-fixed-footer-desktop .container {
  display: flex; align-items: center; justify-content: center;
}
.es-fixed-footer-desktop .form-inline {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}
.es-fixed-footer-desktop .form-control {
  border-radius: 6px; padding: 10px 14px; min-width: 180px; height: 44px;
}
.es-fixed-footer-desktop .btn-es-primary {
  padding: 0 24px; font-size: 14px; white-space: nowrap; height: 44px;
  display: flex; align-items: center; justify-content: center;
}
/* Body padding when footer is active to prevent overlap */
body.footer-active { padding-bottom: 70px !important; }

/* ============================================
   WHATSAPP CTA
   ============================================ */
.whatsapp-cta {
  position: fixed;
  bottom: 85px; left: 24px;
  width: 54px; height: 54px;
  background: #25D366;
  color: var(--c-white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  z-index: 1045;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
  opacity: 0; visibility: hidden;
  text-decoration: none;
}
.whatsapp-cta.show {
  opacity: 1; visibility: visible;
}
.whatsapp-cta:hover {
  transform: scale(1.1); color: var(--c-white);
}

/* ============================================
   HIGHLIGHTS SLIDER
   ============================================ */
.es-highlights-slider {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}

.es-highlights-slider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></svg>') repeat;
  background-size: 30px 30px;
  opacity: 0.5;
  pointer-events: none;
}

.es-highlights-slider::after {
  content: '';
  position: absolute;
  bottom: 30px;
  right: 100px;
  width: 650px;
  height: 650px;
  background: url('./Mahindra_Assests/Element-green.png') no-repeat center;
  background-size: contain;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.highlightsSwiper {
  overflow: visible;
  padding: 30px 0;
  position: relative;
  z-index: 1;
}

.highlightsSwiper .swiper-slide {
  height: auto;
}

.highlight-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 10px;
  background: transparent;
  border: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: auto;
  min-height: 110px;
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  opacity: 0;
  transition: var(--transition);
}

.highlight-card:hover {
  background: transparent;
  transform: translateY(-5px);
}

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

.highlight-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  padding: 10px;
  transition: var(--transition);
  flex-shrink: 0;
}

.highlight-card:hover .highlight-icon {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.08);
}

.highlight-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.highlight-text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 13.5px;
  line-height: 1.3;
  font-weight: 500;
  font-family: var(--ff-body);
  letter-spacing: 0.01em;
  margin: 0;
  flex-grow: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlights-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
}

.highlights-nav .swiper-button-prev,
.highlights-nav .swiper-button-next {
  position: relative;
  width: 40px;
  height: 40px;
  margin: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--c-white) !important;
  transition: var(--transition);
}

.highlights-nav .swiper-button-prev::after,
.highlights-nav .swiper-button-next::after {
  font-size: 14px;
  font-weight: bold;
  color: var(--c-white);
}

.highlights-nav .swiper-button-prev:hover,
.highlights-nav .swiper-button-next:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

/* ============================================
   AMENITIES SECTION
   ============================================ */
.es-amenities {
  background: var(--c-white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.es-amenities::after {
  content: '';
  position: absolute;
  top: 80px;
  right: 60px;
  width: 700px;
  height: 700px;
  background: url('./Mahindra_Assests/Element-green.png') no-repeat center;
  background-size: contain;
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

.es-amenities .container {
  position: relative;
  z-index: 1;
}
.es-amenities .section-head h2 {
  font-size: clamp(28px, 5vw, 44px);
  margin-bottom: .5rem;
}
.es-amenities .section-head p {
  color: var(--c-muted); font-size: 17px; margin-bottom: 2.5rem;
}
.amenity-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 260px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.amenity-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.amenity-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: var(--transition);
}
.amenity-card:hover img { transform: scale(1.08); }
.amenity-card .card-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: var(--c-white);
  padding: 30px 20px 16px;
  font-size: 18px; font-weight: 600;
}
/* Swiper nav */
.es-amenities .swiper-button-prev,
.es-amenities .swiper-button-next {
  position: relative;
  color: var(--c-primary) !important;
  width: 40px;
  height: 40px;
  background: var(--c-white);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  margin: 0 !important;
  top: auto;
  border: 2px solid var(--c-primary);
}
.es-amenities .swiper-button-prev::after,
.es-amenities .swiper-button-next::after { font-size: 14px; font-weight: bold; }
.amenities-nav {
  display: flex; justify-content: center; align-items: center;
  gap: 60px; margin-top: 30px;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.es-gallery {
  background: var(--c-white);
  padding: 80px 0;
}
.es-gallery .section-head h2 {
  font-size: clamp(28px, 5vw, 44px);
}
.es-gallery .section-head p {
  color: var(--c-muted); font-size: 17px;
  max-width: 600px; margin: .5rem auto 2.5rem;
}
.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.gallery-card img {
  width: 100%; height: 380px; object-fit: cover;
  transition: var(--transition);
}
.gallery-card:hover img { transform: scale(1.08); }
.gallery-card .gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(227,24,55,.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.gallery-card .gallery-overlay i {
  color: var(--c-white); font-size: 36px;
  transform: scale(.5); transition: var(--transition);
}
.gallery-card:hover .gallery-overlay { opacity: 1; }
.gallery-card:hover .gallery-overlay i { transform: scale(1); }
.gallery-nav {
  display: flex; justify-content: center; align-items: center;
  gap: 16px; margin-top: 30px;
}
.gallery-nav .arrow-btn {
  width: 48px !important; 
  height: 48px !important; 
  border-radius: 50% !important;
  border: 1px solid var(--c-primary);
  background: transparent; 
  color: var(--c-primary);
  display: inline-flex !important; 
  align-items: center; 
  justify-content: center;
  font-size: 18px; 
  cursor: pointer;
  transition: var(--transition);
  box-sizing: border-box !important;
  line-height: 1 !important;
  padding: 0 !important;
}
.gallery-nav .arrow-btn:hover {
  background: var(--c-primary); color: var(--c-white);
}

/* ============================================
   LOCATION SECTION
   ============================================ */
.es-location {
  background: #f5f1e8;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.es-location::after {
  content: '';
  position: absolute;
  top: 150px;
  left: 80px;
  width: 650px;
  height: 650px;
  background-image: url('./Mahindra_Assests/element-brown.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
  transform: rotate(15deg);
}

.es-location .container {
  position: relative;
  z-index: 1;
}
.es-location .section-head h2 {
  font-size: clamp(28px, 5vw, 44px);
}
.es-location .section-head p {
  color: var(--c-muted); font-size: 17px;
}
.es-location .map-wrap img {
  width: 100%; border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  cursor: zoom-in;
  transition: var(--transition);
}
.es-location .map-wrap img:hover { transform: scale(1.02); }
#locationAccordion .accordion-item {
  border: none; border-bottom: 1px solid #eee;
  padding: 6px 0;
}
#locationAccordion .accordion-button {
  padding: 14px 8px;
  font-weight: 600; font-size: 16px;
  color: var(--c-dark);
  background: transparent;
  box-shadow: none !important;
}
#locationAccordion .accordion-button:not(.collapsed) {
  color: var(--c-primary);
}
#locationAccordion .accordion-body ul {
  list-style: none; padding: 0; margin: 0;
}
#locationAccordion .accordion-body li {
  padding: 6px 0; color: var(--c-muted);
  display: flex; align-items: center; gap: 8px;
  font-size: 15px;
}
#locationAccordion .accordion-body li::before {
  content: '→'; color: var(--c-primary); font-weight: bold;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.es-faq {
  background: var(--c-cream);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.es-faq::before {
  content: '';
  position: absolute;
  bottom: 50px;
  right: 150px;
  width: 620px;
  height: 620px;
  background: url('./Mahindra_Assests/Element-brown.png') no-repeat center;
  background-size: contain;
  opacity: 0.75;
  pointer-events: none;
  z-index: 0;
  transform: rotate(-25deg);
}

.es-faq .container {
  position: relative;
  z-index: 1;
}
.es-faq h2 {
  font-size: clamp(28px, 5vw, 40px);
  margin-bottom: 2rem;
}
.faq-item {
  background: var(--c-white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0,0,0,.04);
  margin-bottom: 14px;
  border: none;
  transition: var(--transition);
}
.faq-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.faq-item .accordion-button {
  padding: 18px 22px;
  font-family: var(--ff-heading);
  font-size: 16px; font-weight: 600;
  color: var(--c-dark);
  background: var(--c-white);
  box-shadow: none !important;
}
.faq-item .accordion-button:not(.collapsed) {
  color: var(--c-primary); background: var(--c-white);
}
.faq-item .accordion-body {
  padding: 0 22px 20px;
  color: var(--c-muted); font-size: 15px; line-height: 1.7;
}

/* ============================================
   ABOUT DEVELOPER SECTION
   ============================================ */
.es-developer {
  background: linear-gradient(135deg, var(--c-secondary) 0%, #8a6d4d 100%);
  padding: 90px 0;
  color: var(--c-white);
  position: relative;
  overflow: hidden;
}

.es-developer::before {
  content: '';
  position: absolute;
  top: 80px;
  left: 120px;
  width: 640px;
  height: 640px;
  background-image: url('./Mahindra_Assests/element-green.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
  transform: rotate(45deg);
}

.es-developer .container {
  position: relative;
  z-index: 1;
}
.es-developer .section-head h2 {
  font-size: clamp(28px, 5vw, 44px);
}
.es-developer .dev-text {
  margin: 0 0 3rem;
  font-size: 18px; line-height: 1.7;
  color: rgba(255,255,255,.9);
}
.stat-card {
  padding: 28px 16px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.12);
  text-align: center;
  transition: var(--transition);
  height: 100%;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.stat-card:hover { background: rgba(255,255,255,.18); transform: translateY(-4px); }
.stat-card .stat-num {
  font-family: var(--ff-heading);
  font-size: 34px; font-weight: 700;
  margin-bottom: 6px;
}
.stat-card .stat-label {
  font-size: 14px; opacity: .85;
}

/* Stats Swiper Mobile */
.statsSwiper {
  overflow: visible;
  padding: 20px 0;
}

.statsSwiper .swiper-slide {
  height: auto;
  display: flex;
  align-items: stretch;
}

.statsSwiper .stat-card {
  width: 100%;
  height: 100%;
}

/* ============================================
   DREAM HOME / CONTACT SECTION
   ============================================ */
.es-dreamhome {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  z-index: 10;
  background: var(--c-primary) !important;
}

.es-dreamhome::after {
  content: '';
  position: absolute;
  bottom: 80px;
  left: 120px;
  width: 660px;
  height: 660px;
  background: url('./Mahindra_Assests/Element-green.png') no-repeat center;
  background-size: contain;
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}
.es-dreamhome .overlay {
  position: absolute; inset: 0;
  z-index: 1;
}
.es-dreamhome .container { position: relative; z-index: 2; }
.es-dreamhome .dream-title {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 600; line-height: 1.3;
  color: var(--c-white);
}
.es-dreamhome .map-iframe {
  width: 100%; aspect-ratio: 16/10;
  border: 0; border-radius: var(--radius-sm);
}
.contact-card {
  background: var(--c-white);
  padding: 36px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.contact-card h5 {
  color: var(--c-primary);
  font-family: var(--ff-heading);
  font-size: 22px;
  margin-bottom: 4px;
}
.contact-card .card-sub {
  font-size: 14px; color: var(--c-muted);
  margin-bottom: 1.5rem;
}
.input-wrap {
  position: relative; display: flex; align-items: center;
  margin-bottom: 14px;
}
.input-wrap i:not(.iti__arrow) {
  position: absolute; left: 14px;
  color: var(--c-primary); font-size: 17px;
  z-index: 10;
}
.input-wrap .form-control,
.input-wrap .form-select {
  padding: 13px 14px 13px 44px;
  border-radius: var(--radius-sm);
  border: 1px solid #ddd;
  font-size: 15px;
  transition: var(--transition);
  width: 100%;
  height: 50px; /* Explicit height for all */
}
.input-wrap .iti input {
  height: 50px !important;
  padding-left: 52px !important; /* Required for ITI flags */
}
/* Ensure the input-wrap's default 44px padding doesn't double up or interfere */
.input-wrap .iti .form-control {
  padding-left: 52px !important; 
}
.input-wrap .form-control:focus,
.input-wrap .form-select:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 .25rem rgba(227,24,55,.1);
}
.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #dc3545 !important;
  background-image: none !important;
  padding-right: calc(1.5em + .75rem);
  background-repeat: no-repeat;
  background-position: right calc(.375em + .1875rem) center;
  background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}
.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
  box-shadow: 0 0 0 .25rem rgba(220,53,69,.25) !important;
  border-color: #dc3545 !important;
}
.form-control.is-valid,
.form-select.is-valid {
  border-color: #198754 !important;
  padding-right: calc(1.5em + .75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(.375em + .1875rem) center;
  background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}
.form-control.is-valid:focus,
.form-select.is-valid:focus {
  box-shadow: 0 0 0 .25rem rgba(25,135,84,.25) !important;
  border-color: #198754 !important;
}
.invalid-feedback {
  display: none !important;
  width: 100%;
  margin-top: .25rem;
  font-size: .875em;
  color: #dc3545;
  font-weight: 500;
  visibility: hidden;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-out;
}

/* Show invalid feedback when it has the show class */
.invalid-feedback.show {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  max-height: 100px !important;
  animation: slideDown 0.3s ease-out;
}

/* Fallback: Also show when form-control is invalid and feedback is direct sibling */
.form-control.is-invalid ~ .invalid-feedback,
.form-select.is-invalid ~ .invalid-feedback {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  max-height: 100px !important;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}
.shake {
  animation: shake 0.5s;
}
.input-wrap.shake,
.iti.shake {
  animation: shake 0.5s;
}
.iti.is-invalid {
  border: 1px solid #dc3545 !important;
  border-radius: 8px;
}
.iti.is-valid {
  border: 1px solid #198754 !important;
  border-radius: 8px;
}
.iti, 
.intl-tel-input { 
  width: 100% !important; 
  display: block !important; 
  flex: 1; /* Essential for flexbox containers like .input-wrap */
}
.iti input,
.intl-tel-input input {
  width: 100% !important;
  height: 50px !important;
}
.iti__country-list,
.intl-tel-input .country-list {
  z-index: 2000 !important;
}
.submit_button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */
.es-footer {
  background: var(--c-white);
  border-top: 1px solid #eee;
  padding: 24px 0 32px;
  font-size: 14px;
  color: #94A3B8;
  text-align: center;
}

/* ============================================
   POPUP MODAL
   ============================================ */
.es-modal .modal-dialog {
  max-width: 800px;
}
.es-modal .modal-content {
  border-radius: 20px;
  border: none;
  overflow: visible; /* To allow close button float */
}
.es-modal .modal-left {
  background: var(--c-primary);
  padding: 60px 40px;
  display: flex; flex-direction: column; justify-content: center;
}
.es-modal .modal-left h2 {
  color: var(--c-white); font-size: 32px; margin-bottom: 1.5rem;
}
.es-modal .modal-left li {
  color: var(--c-white); margin-bottom: 15px;
  font-size: 16px; transition: var(--transition);
}
.es-modal .modal-left li i { margin-right: 10px; color: #fff; }
.es-modal .modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: transparent;
  opacity: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  z-index: 10;
  transition: var(--transition);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.es-modal .modal-close-btn:hover {
  background-color: rgba(0,0,0,0.05);
  transform: rotate(90deg);
}
.es-modal .modal-close-btn::before,
.es-modal .modal-close-btn::after {
  color: var(--c-dark);
}

.es-modal .modal-body h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  margin-bottom: 0.5rem !important;
}

/* ============================================
   MOBILE: BOTTOM CTA BAR
   ============================================ */
.mobile-bottom {
  position: fixed; bottom: 0; left: 0;
  width: 100%; display: grid; grid-template-columns: repeat(2, 1fr);
  z-index: 1060;
  box-shadow: 0 -4px 15px rgba(0,0,0,.1);
}
.mobile-bottom .mob-btn {
  text-align: center;
  padding: 14px 10px;
  font-size: 14px; font-weight: 600;
  color: var(--c-white);
  border: none;
  display: flex; flex-direction: row; align-items: center; justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--transition);
}
.mobile-bottom .mob-btn i { font-size: 20px; }
.mobile-bottom .mob-btn .btn-label {
  display: block;
  line-height: 1.2;
}
.mobile-bottom .mob-btn .btn-number {
  display: block;
  font-size: 10px;
  font-weight: 500;
  opacity: 0.95;
  margin-top: 1px;
}
.mobile-bottom .mob-btn-call {
  background: var(--c-secondary);
}
.mobile-bottom .mob-btn-call:hover {
  background: #8a6d4d;
}
.mobile-bottom .mob-btn-brochure {
  background: var(--c-primary);
}
.mobile-bottom .mob-btn-brochure:hover {
  background: var(--c-primary-dark);
}

/* ============================================
   RESPONSIVE — MOBILE REFINEMENTS
   ============================================ */
@media (max-width: 991px) {

  /* FORCE CENTER EVERYTHING IN HIGHLIGHTS SECTION */
  .es-highlights-slider * {
    box-sizing: border-box;
  }

  .es-highlights-slider .container {
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .es-navbar { padding: 10px 16px; border-bottom: 1px solid rgba(0,0,0,.05); z-index: 2001; }
  .es-navbar .navbar-brand img {
    height: 38px !important;
    width: auto !important;
    max-width: 160px !important;
    object-fit: contain !important;
  }
  
  /* Premium Mobile Menu Overlay - Full Screen */
  .navbar-collapse {
    position: fixed;
    top: 0; right: 0;
    width: 100%; height: 100vh !important;
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
    padding: 80px 30px 80px !important; /* Balanced padding top and bottom */
    z-index: 2000;
    transition: transform 0.4s ease;
    box-shadow: none;
    text-align: center;
    overflow-y: auto !important; /* Allow scroll if needed */
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important; /* Start from top instead of center */
    align-items: center !important;
  }
  .navbar-collapse:not(.show) { transform: translateX(100%); visibility: hidden; }
  .navbar-collapse.show { transform: translateX(0); visibility: visible; }
  .navbar-collapse.collapsing { transform: translateX(100%); transition: transform 0.4s ease; display: flex !important; }
  
  .navbar-nav {
    text-align: center;
    width: 100%;
    margin-bottom: 0 !important;
    padding: 0 !important;
    flex-grow: 0 !important;
  }
  .es-navbar .nav-link {
    color: var(--c-white) !important;
    font-size: 1.05rem !important;
    font-weight: 600;
    margin-bottom: 8px !important; /* Tighter spacing */
    padding: 10px 0 !important;
    border: none !important;
  }

  /* Mobile Enquire Button - Ensure visibility */
  .navbar-collapse .d-lg-none {
    margin-top: 24px !important; /* Fixed spacing instead of auto */
    margin-bottom: 20px;
    width: 100%;
    padding: 0 30px !important;
  }
  .navbar-collapse .btn-es-white {
    background: var(--c-white) !important;
    color: var(--c-primary) !important;
    border-color: var(--c-white) !important;
  }

  /* Mobile Close Button Styling */
  .mobile-close-btn {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    background: transparent !important;
    border: none !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    z-index: 2010 !important;
    cursor: pointer;
    transition: var(--transition);
  }
  .mobile-close-btn i {
    color: var(--c-white) !important;
    font-size: 28px !important;
    font-weight: bold !important;
  }
  .mobile-close-btn:hover {
    opacity: 0.8;
  }
  .mobile-close-btn:hover i {
    color: var(--c-white) !important;
  }

  /* HERO MOBILE OPTIMIZATION */
  .es-hero-slider {
    margin-top: 56px !important; /* Match mobile navbar height */
    height: auto !important;
    min-height: 50vh !important;
  }

  .es-hero-slider .heroSwiper,
  .es-hero-slider .swiper-wrapper,
  .es-hero-slider .swiper-slide {
    height: auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .es-hero-slider .swiper-slide picture,
  .es-hero-slider .swiper-slide img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
  }

  /* Hide navigation arrows on mobile */
  .es-hero-slider .swiper-button-next,
  .es-hero-slider .swiper-button-prev {
    display: none !important;
  }

  /* Project highlights card - proper spacing on mobile */
  .es-highlights {
    margin-top: 0 !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .es-highlights .hi-label {
    font-size: 0.75rem !important;
  }

  .es-highlights .hi-value {
    font-size: 0.9rem !important;
  }

  .es-about { padding: 40px 0; }
  .es-about .about-title { font-size: 28px; }

  /* Highlights Slider Mobile - Two Cards Layout */
  .es-highlights-slider {
    padding: 40px 0 !important;
  }

  .highlightsSwiper {
    padding: 20px 0 !important;
  }

  .highlightsSwiper .swiper-slide {
    display: flex !important;
    justify-content: center !important;
    align-items: stretch !important;
  }

  .highlight-card {
    min-height: 140px !important;
    height: auto !important;
    width: 100% !important;
    padding: 16px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
  }

  .highlight-icon {
    width: 50px !important;
    height: 50px !important;
    margin: 0 auto 10px !important;
    padding: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  .highlight-icon img {
    display: block !important;
    margin: 0 auto !important;
  }

  .highlight-text {
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    text-align: center !important;
    width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }

  .es-amenities, .es-gallery, .es-location, .es-faq, .es-developer, .es-dreamhome { padding: 40px 0; }
  .amenity-card { height: 210px; }
  .gallery-card img { height: 230px; }
  
  .qr-code-wrap img { width: 140px !important; height: auto; margin: 0 auto; display: block; }

  body { padding-bottom: 56px; }
  .whatsapp-cta { display: none; }
  .rera-wrap { text-align: center; display: flex; flex-direction: row; align-items: center; }
  .rera-wrap img { width: 90px !important; height: auto; }
  .es-dreamhome .gap-4 { flex-direction: column; align-items: center; gap: 1rem !important; }
  .es-fixed-footer-desktop { display: none !important; }
  .text-center-mobile { text-align: center !important; }
}

/* ============================================
   FORM ERROR / SUCCESS MESSAGES
   ============================================ */
.success_msg, .error_msg {
  display: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 15px;
  animation: slideDown 0.3s ease-out;
}
.error_msg {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.success_msg {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

/* ============================================
   SCROLL ANIMATIONS - Professional Stacking Effect
   Powered by GSAP ScrollTrigger
   ============================================ */

/* Base container rule */
main {
  overflow: hidden; /* Prevent horizontal scroll triggers */
}

/* 
   We mark stackable sections with .stack-section for GSAP pinning.
   Every section in the DOM needs an INCREASING z-index so it always
   layers on top of the previous section during the scroll stacking animation.
*/
main section {
  position: relative;
  width: 100%;
}

.es-hero-slider { z-index: 1; min-height: 100vh; background-color: var(--c-cream); }
.es-highlights { z-index: 2; background: var(--c-primary); color: white; position: relative; }
.es-about { 
  z-index: 3; 
  padding: 100px 0; 
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  background-color: var(--c-cream); 
}
.es-highlights-slider { z-index: 4; background: #0a3d2e; color: white; position: relative; }
.es-location { z-index: 5; background-color: #f5f1e8; position: relative; }
.es-amenities { 
  z-index: 6; 
  padding: 100px 0; 
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  background-color: var(--c-white); 
}
.es-gallery { z-index: 7; background: var(--c-white); position: relative; }
.es-faq { 
  z-index: 8; 
  padding: 100px 0; 
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  background-color: var(--c-cream); 
}
.es-developer { 
  z-index: 9; 
  background: #8a6d4d; /* Brand color update */
  color: white; 
  padding: 80px 0; 
  position: relative; 
}
.es-dreamhome { z-index: 10; background-color: #1a1a1a; color: white; position: relative; }
.es-footer { z-index: 11; position: relative; background: var(--c-white); }

/* STAT CARD REFINEMENT for visibility */
.es-developer .stat-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px;
  border-radius: 12px;
  backdrop-filter: blur(5px);
}
.es-developer .stat-num { font-size: 28px; font-weight: 700; color: white; }
.es-developer .stat-label { font-size: 14px; opacity: 0.9; color: white; }
.es-developer h2 { color: white; }
.es-developer .dev-text { color: white; opacity: 0.9; max-width: 800px; margin: 0 auto 40px; line-height: 1.8; }

/* Fix for mobile view: naturally scrolling is often better on tiny screens */
@media (max-width: 991px) {
  .es-about, .es-amenities, .es-faq {
    min-height: auto;
    padding: 60px 0;
  }
}

.es-dreamhome {
  position: relative;
  z-index: 10; /* Slides over everything else */
  background-color: var(--c-primary);
}

/* Footer should stay on top */
.es-footer {
  position: relative;
  z-index: 100;
  background-color: var(--c-white);
}

/* ============================================
   THANK YOU MESSAGE & ANIMATIONS
   ============================================ */
.thank-you-msg {
    text-align: center;
    padding: 40px 20px;
    display: none;
    animation: fadeInUp 0.6s ease-out forwards;
}

.thank-you-msg.active {
    display: block;
}

.thank-you-msg i {
    font-size: 64px;
    color: #28a745;
    margin-bottom: 20px;
    display: block;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s both;
}

.thank-you-msg h3 {
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.thank-you-msg p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Success SVG Animation */
.success-checkmark-svg {
    width: 80px;
    height: 80px;
    display: block;
    margin: 0 auto 20px;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #28a745;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #28a745;
    stroke-width: 3;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}





