@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Noto+Sans+Gujarati:wght@400;500;600&display=swap');

:root {
  --ink: #252521;
  --cream: #f1eee8;
  --sand: #d3b489;
  --gold: #d87813;
  --orange-accent: #e65c00;
  --line: rgba(37, 37, 33, 0.18);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
  --gujarati: 'Noto Sans Gujarati', 'DM Sans', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  overflow-x: clip;
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Force hardware compositing on interactive / animated / fixed layers */
.site-header,
.hero-content,
.hero-depth-card,
.project-card,
.project-feature,
.featured-slider-btn,
.slider-nav-btn,
.reveal,
.modal-card {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

body:before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  z-index: 10;
}

/* Header & Mobile Drawer */
.site-header {
  height: 90px;
  position: fixed;
  /* Sticky fixed navigation! */
  z-index: 1000;
  /* Stay on top of other content layers */
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  color: #fff;
  background: linear-gradient(180deg, rgba(16, 18, 16, 0.92) 0%, rgba(16, 18, 16, 0.78) 70%, rgba(16, 18, 16, 0.5) 100%);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.site-header.scrolled {
  height: 76px;
  background: rgba(20, 22, 20, 0.96) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  line-height: .95;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 16px;
}

.brand img {
  height: 72px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.brand:hover img {
  transform: scale(1.06);
}

.brand small {
  font-size: 9px;
  letter-spacing: .38em;
  margin-left: 2px;
  font-weight: 400;
  color: #e0a04c;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-header nav a:not(.nav-cta) {
  color: #ffffff !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .05em;
  position: relative;
  padding: 6px 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  transition: color 0.3s ease, transform 0.2s ease;
}

.text-link {
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .06em;
  position: relative;
  padding: 6px 0;
  transition: color 0.3s ease;
}

.site-header nav a:not(.nav-cta)::after,
.text-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header nav a:not(.nav-cta):hover {
  color: #f3be7a !important;
}

.text-link:hover {
  color: #ebc68f;
}

.site-header nav a:not(.nav-cta):hover::after,
.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.ongoing-page-theme .back-directory-btn:hover {
  color: var(--gold) !important;
}

/* Achievements Project Slider Styles */
.project-slider-wrapper {
  position: relative;
  width: 100%;
  margin-top: 40px;
  overflow: visible;
}

#projectGrid {
  display: flex !important;
  flex-direction: row !important;
  overflow-x: auto !important;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  gap: 24px;
  padding: 10px 0 20px;
  scrollbar-width: none;
  /* Hide scrollbar for Firefox */
}

#projectGrid::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar for Chrome/Safari */
}

#projectGrid .project-card {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 380px;
  /* Default desktop card size */
  margin: 0;
}

/* On Mobile Screens */
@media (max-width: 768px) {
  #projectGrid {
    gap: 16px;
    padding-left: 20px;
    padding-right: 20px;
  }

  #projectGrid .project-card {
    width: 85vw !important;
    /* Visual cue showing the next card peeking */
  }
}

/* Slider Navigation Buttons */
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(37, 37, 33, 0.1);
  color: var(--ink);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.25s ease;
  outline: none;
}

.slider-nav-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.slider-nav-btn.prev-btn {
  left: -24px;
}

.slider-nav-btn.next-btn {
  right: -24px;
}

@media (max-width: 1024px) {
  .slider-nav-btn {
    display: none !important;
    /* Hide arrows on mobile/tablet; touch-swipe is standard */
  }
}

.nav-cta {
  padding: 10px 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 30px !important;
  background: linear-gradient(135deg, #d87813 0%, #e65c00 100%) !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-decoration: none !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  box-shadow: 0 4px 14px rgba(216, 120, 19, 0.4) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-cta:hover {
  background: linear-gradient(135deg, #e65c00 0%, #ff6b00 100%) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 6px 22px rgba(230, 92, 0, 0.6) !important;
  color: #ffffff !important;
}

.nav-cta span,
.button span,
.text-link span {
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.25s ease;
}

.menu {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.nav-close {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.25s ease;
}

.nav-close:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: rotate(90deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 14, 12, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 680px;
  position: relative;
  color: #fff;
  overflow: hidden;
  perspective: 1200px;
  /* Isolate compositing layer to prevent scroll flicker */
  isolation: isolate;
  contain: layout style;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
  transition: transform 1.5s ease;
}

.hero:hover .hero-image {
  transform: scale(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 20, 18, .75), transparent 70%), linear-gradient(0deg, rgba(13, 15, 13, .65), transparent 50%);
  z-index: 1;
}

.hero-content {
  position: absolute;
  left: 8vw;
  top: 31%;
  max-width: 620px;
  z-index: 2;
  animation: heroIn 1.2s .35s both;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: .22em;
  font-weight: 600;
  margin: 0 0 18px;
  color: #d87813;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #ead8bd;
}

.eyebrow i {
  display: inline-block;
  width: 38px;
  height: 1px;
  background: currentColor;
  margin: 0 12px 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-weight: 500;
  line-height: .94;
  letter-spacing: -.04em;
}

h1 {
  font-size: clamp(42px, 5.8vw, 84px);
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(38px, 5vw, 76px);
  margin-bottom: 24px;
}

em {
  font-family: var(--serif);
  font-weight: 500;
}

.hero-copy {
  font-size: 15px;
  line-height: 1.6;
  max-width: 460px;
  color: #ede9e1;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 0;
  flex-wrap: wrap;
}

.button {
  border: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 16px 26px;
  font: 600 11px var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 6px 10px 0 rgba(40, 28, 17, .16), 0 16px 30px rgba(40, 28, 17, .18);
}

.button-gold {
  background: var(--gold);
  color: #fff;
}

.button-dark {
  background: var(--ink);
  color: #fff;
}

.button-glass {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.editorial-brochure-btn,
#overviewBrochureBtn,
#featuredBrochureBtn {
  background: rgba(37, 37, 33, 0.06) !important;
  color: var(--ink) !important;
  border: 1px solid rgba(37, 37, 33, 0.22) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  cursor: pointer;
  transition: all 0.25s ease !important;
}

.editorial-brochure-btn:hover,
#overviewBrochureBtn:hover,
#featuredBrochureBtn:hover {
  background: var(--ink) !important;
  color: #ffffff !important;
  border-color: var(--ink) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16) !important;
}

.button:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(37, 37, 33, 0.32);
}

.button:hover span {
  transform: translateX(4px);
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(235, 205, 164, .35);
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 2;
}

.orbit-one {
  width: 650px;
  height: 650px;
  right: -170px;
  top: 8%;
  transform: rotateX(66deg) rotateZ(-20deg);
  box-shadow: 0 0 70px rgba(224, 160, 76, .14);
  animation: floatOrbit 12s ease-in-out infinite;
}

.orbit-two {
  width: 410px;
  height: 410px;
  right: 10%;
  top: 19%;
  transform: rotateX(66deg) rotateZ(35deg);
  border-color: rgba(255, 255, 255, .2);
  animation: floatOrbit 9s ease-in-out infinite reverse;
}

.hero-depth-card {
  position: absolute;
  right: 8vw;
  bottom: 25%;
  z-index: 2;
  width: 190px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 6px;
  backdrop-filter: blur(16px);
  box-shadow: 20px 24px 60px #0006;
  transform: rotateY(-14deg) rotateX(7deg);
  animation: cardFloat 5s ease-in-out infinite;
}

.hero-depth-card span {
  display: block;
  font: 36px var(--serif);
  color: #ebc68f;
}

.hero-depth-card strong {
  display: block;
  font: 20px var(--serif);
  margin: 6px 0 2px;
}

.hero-depth-card small {
  font-size: 8px;
  letter-spacing: .14em;
  color: #e1d8c9;
}

.hero-foot {
  position: absolute;
  bottom: 28px;
  left: 5vw;
  right: 5vw;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  z-index: 3;
}

.scroll-hint {
  opacity: 0.85;
}

.scroll-hint b {
  font-size: 16px;
  font-weight: 400;
  margin-left: 8px;
}

/* Sections Common */
.section {
  padding: 120px 10vw;
  position: relative;
}

.section-tag {
  position: absolute;
  left: 4vw;
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--gold);
  writing-mode: vertical-rl;
  font-weight: 600;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 10vw;
}

.intro-copy {
  padding-top: 50px;
  max-width: 440px;
}

.intro-copy p,
.feature-content>p,
.contact-intro {
  font-size: 18px;
  line-height: 1.65;
  color: #575650;
}

.text-link {
  display: inline-block;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  margin-top: 25px;
  font-weight: 500;
}

.stats {
  display: flex;
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding-top: 36px;
  gap: 10vw;
}

.stats div {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.stats strong {
  font: 38px var(--serif);
  font-weight: 500;
  color: var(--ink);
}

.stats span {
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #77736c;
}

/* Feature Section (Featured Ongoing Development) */
.project-feature {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  background: #e4dfd6;
  min-height: 480px;
  max-height: 540px;
  align-items: stretch;
  overflow: hidden;
  position: relative;
  transition: opacity 0.4s ease, transform 0.3s ease;
}

.featured-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(37, 37, 33, 0.22);
  color: #171713;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 12;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  padding: 0;
  line-height: 1;
}

.featured-slider-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(216, 120, 19, 0.45);
}

.featured-slider-btn.featured-prev {
  left: 16px;
}

.featured-slider-btn.featured-next {
  right: 16px;
}

.featured-slide-counter {
  position: absolute;
  top: 20px;
  left: 24px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 5;
}

.feature-image {
  height: 100%;
  min-height: 480px;
  max-height: 540px;
  position: relative;
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-feature:hover .feature-image img {
  transform: scale(1.04);
}

.image-label {
  position: absolute;
  bottom: 20px;
  left: 24px;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .15em;
  background: rgba(0, 0, 0, 0.55);
  padding: 6px 14px;
  backdrop-filter: blur(8px);
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
}

.feature-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 10px;
}

.featured-dots-indicator {
  display: flex;
  gap: 8px;
  align-items: center;
}

.featured-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(37, 37, 33, 0.25);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-dot.active {
  width: 26px;
  border-radius: 6px;
  background: var(--gold);
}

.feature-content {
  padding: 3rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
}

.feature-content .eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
}

.feature-content h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.06;
  margin-bottom: 14px;
  letter-spacing: -.03em;
}

.feature-content p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #575650;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-row {
  display: flex;
  gap: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin: 20px 0 24px;
}

.detail-row div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-row small {
  font-size: 9px;
  letter-spacing: .16em;
  color: #8c6b4e;
  font-weight: 600;
}

.detail-row b {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.feature-content .button {
  align-self: flex-start;
  padding: 13px 24px;
}

/* Projects & Achievements Section */
.projects {
  background: #f7f4ef;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 25px;
}

.project-filters {
  display: flex;
  gap: 10px;
  background: rgba(37, 37, 33, 0.06);
  padding: 5px;
  border-radius: 30px;
  border: 1px solid rgba(37, 37, 33, 0.1);
}

.filter-tab {
  border: none;
  background: transparent;
  padding: 10px 20px;
  border-radius: 25px;
  font: 500 12px var(--sans);
  color: #666;
  cursor: pointer;
  transition: all .25s ease;
}

.filter-tab.active,
.filter-tab:hover {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* ===== ACHIEVEMENTS / PROJECTS SECTION ===== */
.projects {
  background: #f4f1eb;
  position: relative;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 24px;
}

.project-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: rgba(37, 37, 33, 0.07);
  padding: 5px;
  border-radius: 30px;
  border: 1px solid rgba(37, 37, 33, 0.12);
  align-self: flex-start;
  margin-top: 8px;
}

.filter-tab {
  border: none;
  background: transparent;
  padding: 10px 22px;
  border-radius: 24px;
  font: 500 11px var(--sans);
  letter-spacing: .05em;
  color: #666;
  cursor: pointer;
  transition: all .22s ease;
  white-space: nowrap;
}

.filter-tab.active {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.filter-tab:hover:not(.active) {
  background: rgba(37, 37, 33, 0.1);
  color: var(--ink);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.97);
  }

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

.project-card {
  position: relative;
  height: 420px;
  border-radius: 10px;
  overflow: hidden;
  color: #fff;
  background: #252521;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform .4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: default;
  animation: cardEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.22), 0 8px 18px rgba(0, 0, 0, 0.12);
}

.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

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

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(10, 10, 8, 0.95) 0%,
      rgba(10, 10, 8, 0.65) 45%,
      rgba(10, 10, 8, 0.1) 80%,
      transparent 100%);
  z-index: 1;
}

.card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  padding: 5px 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 20px;
}

.badge-orange {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 3px 10px rgba(216, 120, 19, 0.5);
}

/* Running (under construction): logo blue with a pulsing "live" dot */
.badge-running {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #3d6eb1;
  color: #fff;
  box-shadow: 0 3px 10px rgba(61, 110, 177, 0.5);
}

.badge-running::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8ff0a4;
  animation: badgeLivePulse 1.8s ease-out infinite;
}

@keyframes badgeLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(143, 240, 164, 0.7); }
  100% { box-shadow: 0 0 0 7px rgba(143, 240, 164, 0); }
}

.badge-gold {
  background: rgba(20, 18, 14, 0.85);
  color: #ebc68f;
  border: 1px solid rgba(235, 198, 143, 0.5);
  backdrop-filter: blur(6px);
}

.card-content {
  position: relative;
  z-index: 2;
  padding: 22px 22px 20px;
}

.gujarati-tag {
  display: inline-block;
  font-family: var(--gujarati);
  font-size: 12px;
  color: #ebc68f;
  margin-bottom: 4px;
  font-weight: 500;
  letter-spacing: .02em;
}

.project-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 3px 0 6px;
  color: #fff;
  line-height: 1.15;
}

.typology-text {
  font-size: 11px;
  letter-spacing: .04em;
  color: rgba(210, 200, 190, 0.85);
  margin-bottom: 7px;
}

.desc-text {
  font-size: 11.5px;
  line-height: 1.55;
  color: rgba(185, 175, 165, 0.9);
  margin-bottom: 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, margin-bottom 0.4s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.project-card:hover .desc-text {
  max-height: 50px;
  opacity: 1;
  margin-bottom: 14px;
}

.card-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  padding: 7px 14px;
  border-radius: 5px;
  font: 500 10px var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: background .2s ease, transform .35s cubic-bezier(0.16, 1, 0.3, 1), border-color .2s ease, opacity 0.35s ease;
}

.project-card:hover .card-map-btn {
  opacity: 1;
  transform: translateY(0);
}

.card-map-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px) !important;
}

/* ===== MAP SECTION ===== */
.map-section {
  background: #2a2a26;
  color: #fff;
  position: relative;
}

.map-section .section-tag {
  color: #ebc68f;
}

.map-section .eyebrow {
  color: #d87813;
}

.map-section h2 {
  color: #f5f0e8;
}

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 24px;
}

.map-subtitle {
  font-size: 15px;
  color: rgba(230, 220, 210, 0.75);
  max-width: 520px;
  margin-top: 8px;
  line-height: 1.6;
}

.map-legend {
  display: flex;
  gap: 18px;
  background: rgba(255, 255, 255, 0.07);
  padding: 10px 18px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  align-self: flex-start;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(230, 220, 210, 0.85);
  letter-spacing: .04em;
}

.pin-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.pin-icon.orange {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(216, 120, 19, 0.25);
}

.pin-icon.gold {
  background: #e0a04c;
  box-shadow: 0 0 0 3px rgba(224, 160, 76, 0.25);
}

.map-wrapper {
  display: grid;
  grid-template-columns: 300px 1fr;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 540px;
}

.map-sidebar {
  background: #18181580;
  backdrop-filter: blur(12px);
  background: #181815;
  color: #fff;
  display: flex;
  flex-direction: column;
  height: 540px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-header {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.sidebar-header h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  color: #ebc68f;
}

.count-badge {
  font-size: 10px;
  background: rgba(216, 120, 19, 0.2);
  color: #ebc68f;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(216, 120, 19, 0.35);
  letter-spacing: .04em;
}

.sidebar-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 120, 19, 0.4) transparent;
}

.sidebar-list::-webkit-scrollbar {
  width: 4px;
}

.sidebar-list::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-list::-webkit-scrollbar-thumb {
  background: rgba(216, 120, 19, 0.4);
  border-radius: 2px;
}

.sidebar-item {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  position: relative;
  transition: background 0.25s ease, transform 0.25s ease, padding-left 0.25s ease;
}

.sidebar-item:hover {
  background: rgba(216, 120, 19, 0.08);
  transform: translateX(4px);
}

.sidebar-item.active {
  background: rgba(216, 120, 19, 0.18);
  padding-left: 22px;
}

.sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gold);
  animation: borderSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes borderSlideIn {
  from {
    transform: scaleY(0);
  }

  to {
    transform: scaleY(1);
  }
}

.sidebar-item strong {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: #eee;
  line-height: 1.3;
}

.sidebar-item small {
  display: block;
  font-size: 10px;
  color: rgba(180, 170, 160, 0.8);
  margin-top: 2px;
  line-height: 1.4;
}

.gujarati-sm {
  font-family: var(--gujarati);
  color: #ebc68f;
}

.item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.item-dot.orange {
  background: var(--gold);
}

.item-dot.gold {
  background: #e0a04c;
}

.map-container {
  position: relative;
  height: 540px;
  width: 100%;
  flex: 1;
}

#leaflet-map {
  width: 100%;
  height: 100%;
  background: #e5e3df;
}

/* Interactive Map Marker Pin Animations */
.custom-map-pin svg {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
  transform-origin: bottom center;
}

.custom-map-pin:hover svg {
  transform: scale(1.18) translateY(-3px);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

/* Leaflet popup dark theme */
.leaflet-popup-content-wrapper {
  background: rgba(22, 22, 18, 0.97);
  backdrop-filter: blur(14px);
  color: #fff;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.leaflet-popup-content {
  margin: 0;
  width: 240px !important;
}

.leaflet-container a.leaflet-popup-close-button {
  color: rgba(255, 255, 255, 0.7);
  padding: 8px;
  font-size: 16px;
  z-index: 10;
  right: 4px;
  top: 4px;
}

.leaflet-popup-tip {
  background: rgba(22, 22, 18, 0.97);
}

.map-popup-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.popup-info {
  padding: 12px 14px 14px;
}

.popup-badge {
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 3px 9px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 7px;
}

.popup-badge.orange {
  background: var(--gold);
  color: #fff;
}

.popup-badge.gold {
  background: rgba(224, 160, 76, 0.2);
  color: #e0a04c;
  border: 1px solid rgba(224, 160, 76, 0.4);
}

.popup-gujarati {
  display: block;
  font-family: var(--gujarati);
  font-size: 11px;
  color: #ebc68f;
  margin-bottom: 2px;
}

.map-popup-card h4 {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  margin: 3px 0 5px;
  color: #fff;
  line-height: 1.2;
}

.map-popup-card p {
  font-size: 10.5px;
  color: rgba(180, 170, 160, 0.85);
  margin: 0;
}

/* Legacy & Contact */
.legacy {
  min-height: 720px;
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.legacy-bg {
  position: absolute;
  inset: 0;
}

.legacy-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.55);
}

.legacy-content {
  position: relative;
  z-index: 1;
  margin-left: 10vw;
  max-width: 590px;
}

.legacy-content h2 {
  margin-bottom: 28px;
}

.legacy-content>p {
  font-size: 17px;
  line-height: 1.65;
  max-width: 410px;
  color: #e1ded5;
}

.signature {
  font: italic 32px var(--serif);
  margin-top: 50px;
  color: #ebc68f;
}

.signature span {
  font: 10px var(--sans);
  text-transform: uppercase;
  letter-spacing: .25em;
  margin-left: 12px;
  color: #fff;
}

.contact {
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10vw;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
  font-size: 14px;
}

.contact-details span:before {
  content: '↗';
  color: var(--gold);
  margin-right: 12px;
}

.contact-details a {
  color: inherit;
  text-decoration: none;
  transition: color 0.22s ease;
}

.contact-details a:hover {
  color: var(--gold);
}

form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 10px;
}

label {
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #81786d;
}

input,
textarea {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 14px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  font: 16px var(--sans);
  color: var(--ink);
  outline: 0;
  resize: vertical;
  transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

input:focus,
textarea:focus {
  border-color: var(--gold);
}

form .button {
  align-self: flex-start;
  margin-top: 10px;
}

.form-note {
  font-size: 13px;
  color: var(--gold);
  margin: 0;
  line-height: 1.4;
  transition: all 0.3s ease;
}

.form-note.error {
  color: #dc2626 !important;
  font-weight: 600;
}

.form-note.success {
  color: #15803d !important;
  font-weight: 600;
}

/* Phone Input Group with Fixed +91 Badge */
.phone-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  background: transparent;
}

.phone-input-wrap:focus-within {
  border-color: var(--gold);
}

.phone-prefix {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
  padding: 12px 0 12px 2px;
  white-space: nowrap;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.phone-input-wrap input {
  margin-top: 0 !important;
  border-bottom: none !important;
  padding: 12px 0 !important;
  flex: 1;
  min-width: 0;
}

/* For Ongoing Dark Theme Bottom Form */
.ongoing-page-theme #ongoingLeadForm .phone-input-wrap {
  background: #252522 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 4px !important;
  padding: 0 14px !important;
  gap: 10px;
  box-sizing: border-box;
}

.ongoing-page-theme #ongoingLeadForm .phone-input-wrap:focus-within {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(216, 120, 19, 0.25) !important;
}

.ongoing-page-theme #ongoingLeadForm .phone-input-wrap input {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 14px 0 !important;
  color: #fff !important;
}

/* For Inquiry Popup Modal Form */
.inquiry-popup-form .phone-input-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  border: 1px solid rgba(37, 37, 33, 0.22);
  border-radius: 8px;
  background-color: #fcfbfa;
  margin-top: 0;
  padding: 0 12px;
  box-sizing: border-box;
  transition: all 0.2s ease;
  gap: 8px;
}

.inquiry-popup-form .phone-input-wrap:focus-within {
  border-color: var(--gold);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(216, 120, 19, 0.18);
}

.inquiry-popup-form .phone-input-wrap input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  height: 100% !important;
}

.inquiry-popup-form .phone-prefix {
  font-size: 13px;
  padding: 0;
}

/* Invalid / Shake Error States */
.input-error {
  border-color: #dc2626 !important;
  animation: fieldShake 0.35s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.ongoing-page-theme #ongoingLeadForm .input-error,
.phone-input-wrap.input-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2) !important;
  animation: fieldShake 0.35s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes fieldShake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* ==========================================================================
/* ==========================================================================
   Luxury Corporate Footer (Sahjanand Group) - Compact & Mobile-First
   ========================================================================== */
footer,
.site-footer {
  background: #121210;
  color: #d6cec0;
  padding: 0;
  border-top: 1px solid rgba(216, 120, 19, 0.25);
  font-family: 'DM Sans', sans-serif;
  display: block;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  height: 120px;
  background: radial-gradient(ellipse at top, rgba(216, 120, 19, 0.08) 0%, rgba(18, 18, 16, 0) 70%);
  pointer-events: none;
}

/* 1. VIP Callback / Inquiry Strip - Shorter & Compact */
.footer-vip-strip {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 5vw;
  position: relative;
  z-index: 1;
}

.vip-strip-content {
  max-width: 1250px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.vip-strip-text {
  max-width: 650px;
}

.vip-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.vip-strip-text h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.3;
}

.vip-strip-text p {
  margin: 0;
  font-size: 12.5px;
  color: #9c988e;
  line-height: 1.45;
}

.vip-strip-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.vip-cta-btn {
  padding: 10px 20px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.vip-inquire-btn {
  padding: 10px 18px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.25s ease;
}

.vip-inquire-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold);
}

/* 2. Main Footer Grid - 2-Column Compact Brand & Site Office */
.footer-main-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 5vw 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 5vw;
  position: relative;
  z-index: 1;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-main-grid .col-brand {
  flex: 1.2;
  max-width: 520px;
}

.footer-main-grid .col-contact {
  flex: 1;
  max-width: 440px;
}

/* Col 1: Brand */
.footer-col .footer-brand {
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.footer-brand img {
  height: 48px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.footer-brand span {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.08em;
  color: #fff;
  line-height: 1.1;
  text-transform: uppercase;
}

.footer-brand span small {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 8.5px;
  letter-spacing: 0.25em;
  color: var(--gold);
  font-weight: 600;
}

.footer-brand-desc {
  font-size: 12px;
  line-height: 1.6;
  color: #8c887e;
  margin: 0 0 14px;
}

.footer-trust-pills {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 500;
  color: #c4bfb3;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 5px 11px;
  border-radius: 6px;
  width: fit-content;
}

.trust-pill svg {
  stroke: var(--gold);
  flex-shrink: 0;
}

/* Column Titles */
.footer-col-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--gold);
}


/* Contact Items */
.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.f-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.f-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(216, 120, 19, 0.1);
  border: 1px solid rgba(216, 120, 19, 0.22);
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.f-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold);
}

.f-contact-item div strong {
  color: #fff;
  font-size: 13px;
  display: block;
  margin-bottom: 2px;
}

.f-contact-item div p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #e5dfd3;
}

.f-contact-item div p a {
  color: #e5dfd3;
  text-decoration: none;
  transition: color 0.2s;
}

.f-contact-item div p a:hover {
  color: var(--gold);
}

/* Social buttons row */
.footer-social-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #d6cec0;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: 18px;
  transition: all 0.2s ease;
}

.social-pill svg {
  width: 13px;
  height: 13px;
}

.social-pill:hover {
  background: rgba(216, 120, 19, 0.15);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-1px);
}

/* 3. GujRERA Legal Disclaimer Strip */
.footer-disclaimer-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 5vw;
  background: rgba(0, 0, 0, 0.25);
}

.footer-disclaimer-strip p {
  max-width: 1250px;
  margin: 0 auto;
  font-size: 10.5px;
  line-height: 1.5;
  color: #6e6b63;
}

.footer-disclaimer-strip strong {
  color: #8c887e;
}

/* 4. Bottom Copyright Bar */
.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 12px 5vw;
  background: #0d0d0c;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: #68655e;
}

.footer-bottom-bar .copyright {
  margin: 0;
  font-size: 11px;
  color: #68655e;
}

.footer-bottom-links {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #55534c;
  font-size: 10.5px;
}

/* ==========================================================================
   Mobile-First Responsiveness for Footer (Phone screens <= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .site-footer {
    background: #0d0f0e;
    position: relative;
    z-index: 10;
  }

  /* VIP Strip */
  .footer-vip-strip {
    padding: 22px 6vw;
    background: linear-gradient(180deg, rgba(216, 120, 19, 0.08) 0%, rgba(18, 20, 19, 0.95) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .vip-strip-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .vip-badge {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.16em;
    padding: 4px 10px;
    background: rgba(216, 120, 19, 0.14);
    border: 1px solid rgba(216, 120, 19, 0.3);
    color: var(--gold);
    border-radius: 20px;
    font-weight: 600;
  }

  .vip-strip-text h3 {
    font-size: 16px;
    line-height: 1.38;
    color: #fff;
    margin: 6px 0;
    font-weight: 600;
  }

  .vip-strip-text p {
    font-size: 12px;
    line-height: 1.5;
    color: #a39f94;
    max-width: 440px;
    margin: 0 auto;
  }

  .vip-strip-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    max-width: 380px;
    gap: 10px;
  }

  /* Size to content and wrap on narrow phones instead of clipping the label */
  .vip-strip-actions a,
  .vip-strip-actions button {
    flex: 1 1 auto;
    letter-spacing: .06em;
    text-align: center;
    justify-content: center;
    padding: 11px 12px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 8px;
  }

  /* Main Grid */
  .footer-main-grid {
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 30px 6vw 20px;
  }

  .footer-main-grid .col-brand,
  .footer-main-grid .col-contact {
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-col .footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
  }

  .footer-brand-desc {
    text-align: center;
    max-width: 420px;
    margin: 0 auto 14px;
    font-size: 12px;
    line-height: 1.55;
    color: #969184;
  }

  /* Sleek inline trust pills */
  .footer-trust-pills {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    max-width: 420px;
    margin: 0 auto;
  }

  .trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    color: #b8b3a7;
    font-weight: 500;
    width: auto;
  }

  .trust-pill svg {
    width: 12px;
    height: 12px;
    stroke: var(--gold);
  }

  /* Contact section - Clean luxury card with perfectly aligned icons */
  .footer-col-title {
    text-align: center;
    font-size: 15.5px;
    margin: 0 0 14px;
    padding-bottom: 8px;
    position: relative;
    width: 100%;
  }

  .footer-col-title::after {
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
  }

  .footer-contact-items {
    width: 100%;
    max-width: 390px;
    margin: 0 auto 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 14px 16px;
  }

  .f-contact-item {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .f-contact-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }

  .f-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(216, 120, 19, 0.12);
    border: 1px solid rgba(216, 120, 19, 0.25);
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 1px;
  }

  .f-icon svg {
    width: 15px;
    height: 15px;
    stroke: var(--gold);
  }

  .f-contact-item div {
    flex: 1;
    min-width: 0;
  }

  .f-contact-item strong {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    display: block;
    margin-bottom: 2px;
    text-transform: none;
    letter-spacing: normal;
  }

  .f-contact-item p {
    font-size: 13px;
    line-height: 1.5;
    color: #e5dfd3;
    margin: 0;
    word-break: break-word;
  }

  .f-contact-item a {
    color: #e5dfd3;
    text-decoration: none;
    font-weight: 500;
  }

  .f-contact-item a:hover {
    color: var(--gold);
  }

  /* Social row */
  .footer-social-row {
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
  }

  .social-pill {
    padding: 7px 16px;
    font-size: 12px;
    gap: 7px;
    border-radius: 20px;
  }

  .social-pill svg {
    width: 14px;
    height: 14px;
  }

  /* Legal disclaimer */
  .footer-disclaimer-strip {
    text-align: center;
    padding: 14px 6vw;
    background: rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
  }

  .footer-disclaimer-strip p {
    font-size: 11px;
    line-height: 1.55;
    color: #75726a;
    max-width: 520px;
    margin: 0 auto;
  }

  /* Bottom bar with WhatsApp float clearance */
  .footer-bottom-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 16px 6vw 95px; /* extra bottom padding for WhatsApp FAB */
    background: #080908;
  }

  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    color: #636058;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* 3D Orbit & Cinematic Effects */
@keyframes cardFloat {

  0%,
  100% {
    transform: rotateY(-14deg) rotateX(7deg) translateY(0)
  }

  50% {
    transform: rotateY(-10deg) rotateX(4deg) translateY(-13px)
  }
}

@keyframes floatOrbit {

  0%,
  100% {
    translate: 0 0
  }

  50% {
    translate: 0 -16px
  }
}

.hero-cinematic {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #171713;
  isolation: isolate;
  contain: strict;
}

.hero-cinematic .hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.06);
  transition: opacity 1.2s ease, transform 7s cubic-bezier(.2, .6, .2, 1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero-cinematic .hero-image.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1.0);
  z-index: 2;
}

/* Outgoing slide holds full opacity beneath the incoming one until the crossfade completes */
.hero-cinematic .hero-image.is-exiting {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  z-index: 1;
  transition: none;
}

/* Hover zoom only for mouse pointer devices */
@media (hover: hover) and (pointer: fine) {
  .hero:hover .hero-cinematic .hero-image.is-active {
    transform: scale(1.04);
  }
}

/* Mobile: disable scale transform, 3D perspective, and will-change to eliminate scroll flicker */
@media (max-width: 768px) {
  .hero {
    height: 100svh !important;
    min-height: 580px;
    perspective: none !important;
    transform: none !important;
    overflow: hidden;
    contain: paint layout;
  }

  .hero-orbit {
    display: none !important; /* hide 3D orbit rings that cause compositing issues */
  }

  .hero-cinematic {
    position: absolute;
    inset: 0;
    overflow: hidden;
    contain: strict;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }

  .hero-cinematic .hero-image {
    transform: none !important;
    transition: opacity 0.7s ease !important;
    will-change: auto !important;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .hero-cinematic .hero-image.is-active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .hero-cinematic .hero-image.is-exiting {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
  }

  .hero:hover .hero-image {
    transform: none !important; /* no zoom on touch */
  }

  .hero-depth-card {
    transform: none !important; /* remove 3D rotation on mobile */
    animation: none !important;
    right: 4vw;
    bottom: 20%;
    width: 160px;
    padding: 14px;
  }
}

.hero-cinematic-progress {
  position: absolute;
  z-index: 3;
  left: 10vw;
  bottom: 38px;
  width: 100px;
  height: 1px;
  background: rgba(255, 255, 255, .3);
}

.hero-cinematic-progress i {
  display: block;
  width: 0;
  height: 1px;
  background: #e5bc80;
  animation: progress 6s linear infinite;
}

@keyframes progress {
  from {
    width: 0
  }

  to {
    width: 100%
  }
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(28px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

/* ==========================================
   Comprehensive Responsive System (Mobile-First Polish)
   ========================================== */

/* Touch & Mobile Always-Visible Card Meta */
@media (hover: none),
(max-width: 900px) {
  .desc-text {
    max-height: 48px !important;
    opacity: 0.9 !important;
    margin-bottom: 10px !important;
  }

  .card-map-btn {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Tablet Screens & iPads (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .section {
    padding: 80px 6vw;
  }

  .section-tag {
    display: none !important;
    /* Prevents overlapping titles on tablet viewports */
  }

  /* Hero Section: Centered & Balanced Layout (No Blank Gaps) */
  .hero-content {
    left: 6vw;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    max-width: 520px;
  }

  .hero-copy {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 22px;
    max-width: 440px;
  }

  .hero-actions {
    display: flex;
    flex-direction: row;
    gap: 14px;
    width: auto;
    margin-top: 24px;
  }

  .hero-actions .button {
    padding: 14px 22px;
    font-size: 11px;
    white-space: nowrap;
  }

  .hero-depth-card {
    position: absolute;
    right: 6vw;
    bottom: 26%;
    top: auto;
    width: 170px;
    padding: 18px;
    display: block;
    z-index: 5;
  }

  .hero-depth-card span {
    font-size: 32px;
  }

  .hero-depth-card strong {
    font-size: 18px;
  }

  /* Story / Intro Grid: Full 2-column richness on iPads */
  .intro-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 5vw;
    align-items: start;
  }

  .intro-copy {
    padding-top: 15px;
    font-size: 16px;
  }

  .stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
  }

  .stats div {
    display: flex;
    gap: 14px;
    align-items: center;
  }

  .stats strong {
    font-size: 34px;
  }

  .stats span {
    font-size: 10px;
    line-height: 1.35;
  }

  /* Featured Ongoing Section */
  .project-feature {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 440px;
    max-height: 480px;
    align-items: stretch;
    overflow: hidden;
  }

  .feature-image {
    height: 100%;
    min-height: 440px;
    max-height: 480px;
  }

  .feature-content {
    padding: 2.5rem 3.5rem;
  }

  /* Map Section on Tablet */
  .map-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: 480px;
  }

  .map-sidebar {
    height: 480px;
    max-height: 480px;
  }

  .map-container {
    height: 480px;
  }

  /* Contact Section on Tablet */
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* Medium Screens (<= 900px) Navigation Drawer */
@media (max-width: 900px) {
  .site-header {
    height: 84px !important;
  }

  .site-header.scrolled {
    height: 72px !important;
  }

  .brand {
    gap: 10px;
    font-size: 15px;
  }

  .brand img {
    height: 70px !important;
    max-width: 200px !important;
  }

  .brand small {
    font-size: 8px;
    letter-spacing: .28em;
  }

  .menu {
    display: flex;
  }

  .nav-close {
    display: flex;
  }

  .site-header nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(310px, 86vw);
    height: 100vh;
    height: 100dvh;
    background: #181814;
    background: rgba(22, 22, 18, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 76px 28px 40px;
    gap: 10px;
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    box-shadow: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Shadow only while open, so the parked drawer doesn't darken the right edge of the page */
  .site-header nav.is-open {
    transform: translateX(0);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.7);
  }

  .site-header nav a:not(.nav-cta) {
    font-size: 15px;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-top: 14px;
    padding: 13px 20px !important;
    font-size: 13px !important;
    background: var(--gold) !important;
    border-color: var(--gold) !important;
  }

  .orbit-one,
  .orbit-two {
    display: none;
  }

  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 26px;
    padding: 45px 5vw 30px;
  }

  .footer-links {
    justify-content: center;
    gap: 16px 24px;
  }

  .footer-socials {
    justify-content: center;
  }

  .copyright {
    margin-left: 0;
    text-align: center;
  }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  .site-header {
    padding: 0 4vw;
    height: 80px !important;
  }

  .site-header.scrolled {
    height: 70px !important;
  }

  .brand {
    gap: 10px;
    font-size: 14px;
  }

  .brand img {
    height: 66px !important;
    max-width: 190px !important;
  }

  .brand small {
    font-size: 7.5px;
    letter-spacing: .24em;
  }

  .section {
    padding: 60px 5vw;
  }

  .section-tag {
    display: none !important;
  }

  .hero {
    height: 100vh;
    height: 100dvh;
    min-height: 560px;
    position: relative;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(14, 14, 12, 0.65) 0%, rgba(14, 14, 12, 0.25) 30%, rgba(14, 14, 12, 0.8) 65%, rgba(14, 14, 12, 0.96) 100%);
  }

  h1 {
    font-size: clamp(32px, 8.8vw, 46px);
    margin-bottom: 12px;
    line-height: 1.03;
  }

  h2 {
    font-size: clamp(26px, 6.5vw, 36px);
    margin-bottom: 14px;
    line-height: 1.1;
  }

  .hero-content {
    left: 5vw;
    right: 5vw;
    top: auto;
    bottom: 35px;
    max-width: 100%;
  }

  .hero-copy {
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 18px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
    width: 100%;
  }

  .hero-actions .button {
    padding: 13px 8px;
    font-size: 10px;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    letter-spacing: .06em;
  }

  /* 13+ Landmarks Card on Mobile: Cleanly positioned with comfortable breathing space above details */
  .hero-depth-card {
    position: absolute;
    right: 5vw;
    bottom: 350px;
    top: auto;
    width: 135px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .05));
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 6px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 10px 14px 35px rgba(0, 0, 0, 0.4);
    transform: rotateY(-14deg) rotateX(7deg);
    animation: cardFloat 5s ease-in-out infinite;
    display: block;
    z-index: 5;
  }

  .hero-depth-card span {
    display: block;
    font: 28px var(--serif);
    color: #ebc68f;
    line-height: 1;
  }

  .hero-depth-card strong {
    display: block;
    font: 16px var(--serif);
    font-weight: 500;
    margin: 3px 0 2px;
    color: #fff;
  }

  .hero-depth-card small {
    display: block;
    font-size: 7.5px;
    letter-spacing: .14em;
    color: #e1d8c9;
    line-height: 1.2;
  }

  /* Story / Intro mobile */
  .intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .intro-copy {
    padding-top: 0;
  }

  .stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    border-top: 1px solid var(--line);
    padding-top: 22px;
    margin-top: 36px;
  }

  .stats div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
  }

  .stats strong {
    font-size: 26px;
    line-height: 1;
  }

  .stats span {
    font-size: 8.5px;
    line-height: 1.25;
  }

  /* Map section mobile adjustments */
  .map-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }

  .map-legend {
    width: 100%;
    justify-content: flex-start;
    gap: 14px;
    padding: 8px 14px;
  }

  .map-container {
    height: 320px;
  }

  .map-sidebar {
    max-height: 200px;
  }

  .sidebar-item {
    padding: 10px 14px;
  }

  /* Legacy Section Mobile */
  .legacy {
    min-height: 460px;
    padding: 60px 5vw;
  }

  .legacy-content {
    margin-left: 0;
    max-width: 100%;
  }

  .legacy-content h2 {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 16px;
  }

  .legacy-content>p {
    font-size: 14px;
    line-height: 1.6;
  }

  .signature {
    font-size: 24px;
    margin-top: 28px;
  }

  /* Contact & Form Mobile */
  .contact-details {
    margin-top: 24px;
    gap: 10px;
    font-size: 13.5px;
  }

  form {
    gap: 18px;
  }

  input,
  textarea {
    font-size: 16px;
    /* Prevents auto-zoom on mobile iOS */
    padding: 12px 0;
  }

  form .button {
    width: 100%;
    justify-content: center;
  }
}

/* Small Smart Phones (<= 480px) */
@media (max-width: 480px) {
  .hero-actions .button {
    width: 100%;
    justify-content: center;
    padding: 14px 18px;
  }

  .feature-image {
    height: 220px;
  }

  .feature-content {
    padding: 22px 4vw 26px;
  }

  .stats {
    gap: 8px;
  }

  .stats strong {
    font-size: 22px;
  }

  #projectGrid .project-card {
    width: 86vw !important;
    height: 360px;
  }
}

/* WhatsApp Floating Service Button */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background-color: #25d366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4), 0 2px 5px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.5), 0 4px 8px rgba(0, 0, 0, 0.2);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover svg {
  transform: rotate(8deg);
}

/* Pulsing outer ring to draw attention */
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid #25d366;
  border-radius: 50%;
  opacity: 0;
  animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* Elegant glassmorphic tooltip */
.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  background: rgba(22, 22, 18, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font: 500 11px var(--sans);
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Responsiveness adjustments for smaller touch devices */
@media (max-width: 600px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  .whatsapp-tooltip {
    display: none;
    /* Hide tooltip on mobile to prevent cluttering */
  }
}

/* ==========================================
   Ongoing Projects Page Styles
   ========================================== */

/* Active link styling for site navigation */
.site-header nav a.active {
  color: #ebc68f;
  font-weight: 600;
}

.site-header nav a.active::after {
  transform: scaleX(1);
}

/* Ongoing Hero overrides */
.ongoing-hero.hero {
  border-bottom: 1px solid var(--line);
}

/* Project Selector Cards (shown if multiple projects) */
.project-tabs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.selector-card {
  position: relative;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.selector-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(22, 22, 18, 0.85) 0%, rgba(22, 22, 18, 0.1) 80%);
  z-index: 1;
  transition: opacity 0.4s ease;
}

.selector-card-content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;
  color: #fff;
}

.selector-card-content span {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--sand);
  text-transform: uppercase;
  font-family: var(--gujarati);
  display: block;
  margin-bottom: 5px;
}

.selector-card-content h3 {
  margin: 0 0 5px;
  font-size: 20px;
  font-family: var(--serif);
  font-weight: 500;
}

.selector-card-content p {
  margin: 0;
  font-size: 12px;
  opacity: 0.75;
}

.selector-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  border-color: var(--gold);
}

.selector-card:hover img {
  transform: scale(1.08);
}

.selector-card.active {
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(216, 120, 19, 0.15), 0 16px 36px rgba(0, 0, 0, 0.12);
}

/* RERA Registration badge styling */
.rera-badge {
  background: rgba(216, 120, 19, 0.06);
  border-left: 3px solid var(--gold);
  padding: 12px 18px;
  border-radius: 0 6px 6px 0;
}

/* Highlight card hover details */
.highlight-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

/* Amenities Grid & Rows */
.amenity-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  padding: 18px 24px;
  border-radius: 6px;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}

.amenity-row:hover {
  transform: translateX(4px);
  border-color: var(--gold);
  background: rgba(216, 120, 19, 0.02);
}

.amenity-icon {
  width: 38px;
  height: 38px;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.amenity-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
}

.amenity-text {
  font-size: 14px;
  font-weight: 500;
  color: #3b3a34;
}

/* Image Gallery Masonry Grid */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
}

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

.gallery-item-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 18, 16, 0.9), transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
  z-index: 2;
}

.gallery-item-info span {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--sand);
  margin-bottom: 4px;
}

.gallery-item-info h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  font-family: var(--sans);
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item:hover .gallery-item-info {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:hover::before {
  opacity: 1;
}

/* Lightbox Modal overlay */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 16, 0.95);
  backdrop-filter: blur(12px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

.gallery-lightbox.is-active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 85vw;
  max-height: 75vh;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: lightboxFadeIn 0.35s ease;
}

#lightboxCaption {
  margin: 15px 0 0;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  font-family: var(--sans);
}

@keyframes lightboxFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

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

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lightbox-close {
  top: 30px;
  right: 40px;
  font-size: 32px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 20px;
}

.lightbox-prev {
  left: 40px;
}

.lightbox-next {
  right: 40px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 4px 15px rgba(216, 120, 19, 0.3);
}

/* PDF layout frame adjustment */
.pdf-viewer-container iframe {
  background: #fdfdfd;
}

/* Location and marker customization */
.ongoing-gold-pin svg {
  transform-origin: bottom center;
  animation: pinBounce 0.6s ease-out;
}

@keyframes pinBounce {
  0% {
    transform: translateY(-40px) scaleY(1.1);
    opacity: 0;
  }

  60% {
    transform: translateY(10px) scaleY(0.95);
  }

  80% {
    transform: translateY(-5px) scaleY(1.02);
  }

  100% {
    transform: translateY(0) scaleY(1);
    opacity: 1;
  }
}

/* Responsiveness Override for selector & maps */
@media (max-width: 768px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .intro-copy {
    padding-top: 0;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .lightbox-prev {
    left: 15px;
  }

  .lightbox-next {
    right: 15px;
  }

  .lightbox-close {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .pdf-viewer-container iframe {
    height: 450px;
    /* shorter on mobile */
  }
}

/* ==========================================
   Ongoing Page Premium Dark Theme
   ========================================== */
.ongoing-page-theme {
  background: #121210 !important;
  color: #f4f1ea !important;
}

.ongoing-page-theme::before {
  opacity: 0.025 !important;
  /* reduce noise opacity on dark background */
}

.ongoing-page-theme .site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 18, 16, 0.85);
  backdrop-filter: blur(12px);
  position: fixed;
}

.back-nav-container {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  min-height: auto !important;
}

.ongoing-page-theme .site-header nav a:not(.nav-cta) {
  color: rgba(255, 255, 255, 0.75);
}

.ongoing-page-theme .site-header nav a:hover:not(.nav-cta),
.ongoing-page-theme .site-header nav a.active {
  color: #ebc68f;
}

/* Fix Hero section layout to prevent text cutoff */
.ongoing-page-theme .ongoing-hero.hero {
  height: 85vh;
  min-height: 580px;
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.ongoing-page-theme .hero-content {
  position: relative;
  left: 0;
  top: 0;
  max-width: 800px;
  margin-left: 10vw;
  z-index: 2;
  margin-top: 100px;
  /* offset fixed header */
  animation: heroIn 1.2s .35s both;
}

.ongoing-page-theme .hero-content h1 {
  font-size: clamp(36px, 5.5vw, 68px) !important;
  line-height: 1.05 !important;
  margin-bottom: 80px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.85);
  color: #fff;
}

.ongoing-page-theme .hero-copy {
  font-size: 16px;
  max-width: 580px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  line-height: 1.6;
}

/* Projects Directory Section */
.ongoing-page-theme .projects.section {
  background: #161614 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ongoing-page-theme .project-card {
  background: #1c1c19 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #f4f1ea !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3) !important;
}

.ongoing-page-theme .project-card .card-content h3 {
  color: #fff !important;
}

.ongoing-page-theme .project-card .desc-text {
  color: rgba(255, 255, 255, 0.7) !important;
}

.ongoing-page-theme .project-card .typology-text {
  color: var(--sand) !important;
}

/* Detail sections */
.ongoing-page-theme .project-details-wrapper {
  background: #121210 !important;
}

.ongoing-page-theme .section {
  padding: 100px 10vw !important;
}

.ongoing-page-theme .section-tag {
  color: var(--sand) !important;
}

.ongoing-page-theme .intro-copy p {
  color: rgba(255, 255, 255, 0.75) !important;
}

.ongoing-page-theme .rera-badge {
  background: rgba(216, 120, 19, 0.12) !important;
  border-left: 3px solid var(--gold) !important;
}

.ongoing-page-theme .rera-badge strong {
  color: #fff !important;
}

/* Highlight Cards */
.ongoing-page-theme .highlight-card {
  background: #1c1c19 !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.ongoing-page-theme .highlight-card h4 {
  color: var(--sand) !important;
}

.ongoing-page-theme .highlight-card p {
  color: rgba(255, 255, 255, 0.7) !important;
}

.ongoing-page-theme .highlight-card:hover {
  border-color: var(--gold) !important;
  box-shadow: 0 12px 30px rgba(216, 120, 19, 0.15) !important;
}

/* Amenities list in dark mode */
.ongoing-page-theme .amenity-row {
  background: #1c1c19 !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.ongoing-page-theme .amenity-row:hover {
  background: rgba(216, 120, 19, 0.05) !important;
  border-color: var(--gold) !important;
}

.ongoing-page-theme .amenity-text {
  color: rgba(255, 255, 255, 0.85) !important;
}

.ongoing-page-theme .project-map-container {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Dark theme Ongoing Page Bottom Lead Form (scoped specifically to prevent breaking popup) */
.ongoing-page-theme #ongoingLeadForm {
  background: #1c1c19 !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding: 40px !important;
  border-radius: 8px !important;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3) !important;
}

@media (max-width: 768px) {
  .ongoing-page-theme #ongoingLeadForm {
    padding: 24px 18px !important;
  }
}

.ongoing-page-theme #ongoingLeadForm label {
  color: rgba(255, 255, 255, 0.85) !important;
}

.ongoing-page-theme #ongoingLeadForm input,
.ongoing-page-theme #ongoingLeadForm textarea {
  background: #252522 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border-radius: 4px !important;
  padding: 14px !important;
}

.ongoing-page-theme #ongoingLeadForm input:focus,
.ongoing-page-theme #ongoingLeadForm textarea:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(216, 120, 19, 0.25) !important;
  outline: none !important;
}

/* Back to list button */
.ongoing-page-theme .back-nav-container {
  background: #121210 !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.ongoing-page-theme .back-directory-btn {
  color: var(--sand) !important;
  transition: color 0.3s ease !important;
}

.ongoing-page-theme .back-directory-btn:hover {
  color: var(--gold) !important;
}

/* Achievements Project Slider Styles */
.project-slider-wrapper {
  position: relative;
  width: 100%;
  margin-top: 40px;
  overflow: hidden;
  /* Clips the overflowing cards perfectly! */
  padding: 10px 0 20px;
}

#projectGrid {
  display: flex !important;
  flex-direction: row !important;
  overflow-x: auto !important;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  gap: 24px;
  padding: 0;
  scrollbar-width: none;
  /* Hide scrollbar for Firefox */
}

#projectGrid::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar for Chrome/Safari */
}

#projectGrid .project-card {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: calc((100% - 48px) / 3);
  /* Exactly 3 cards fit the container width */
  margin: 0;
}

@media (max-width: 1024px) {
  #projectGrid .project-card {
    width: calc((100% - 24px) / 2) !important;
    /* Exactly 2 cards fit on tablet */
  }
}

/* On Mobile Screens */
@media (max-width: 768px) {
  #projectGrid {
    gap: 16px;
    padding-left: 20px;
    padding-right: 20px;
  }

  #projectGrid .project-card {
    width: calc(100% - 32px) !important;
    /* Single card with margin on mobile, no peeking */
  }
}

/* Slider Navigation Buttons (overlayed inside) */
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(37, 37, 33, 0.1);
  color: var(--ink);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
  outline: none;
}

.slider-nav-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.slider-nav-btn.prev-btn {
  left: 15px;
  /* Sits on top of the left edge of the first visible card */
}

.slider-nav-btn.next-btn {
  right: 15px;
  /* Sits on top of the right edge of the last visible card */
}

@media (max-width: 1024px) {
  .slider-nav-btn {
    display: none !important;
    /* Hide arrows on mobile/tablet; touch-swipe is standard */
  }
}

/* Ongoing Page Alternating Editorial Row Styles */
.ongoing-page-theme #ongoingProjectsGrid {
  display: flex !important;
  flex-direction: column !important;
  gap: 80px !important;
  margin-top: 60px !important;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 5vw;
}

.editorial-project-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 60px;
  width: 100%;
}

.editorial-project-row.row-reverse {
  flex-direction: row-reverse;
}

.editorial-media {
  flex: 0 0 55%;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/10;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.editorial-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.editorial-media:hover .editorial-img {
  transform: scale(1.05);
}

.editorial-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.editorial-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #fff;
}

.editorial-eyebrow {
  font-family: var(--gujarati);
  color: var(--sand);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.editorial-title {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
  margin: 0 0 20px;
  color: #fff;
  line-height: 1.2;
}

.editorial-meta {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 20px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-item small {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--sand);
  letter-spacing: 0.08em;
}

.meta-item strong {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.editorial-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 24px;
}

.editorial-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.editorial-tag {
  background: #1c1c19;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 12px;
  border-radius: 40px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
}

.editorial-btn {
  padding: 14px 28px !important;
  font-size: 12px !important;
  box-shadow: none !important;
}

/* Responsive Editorial Layout */
@media (max-width: 991px) {

  .editorial-project-row,
  .editorial-project-row.row-reverse {
    flex-direction: column !important;
    gap: 30px !important;
  }

  .editorial-media {
    width: 100% !important;
    flex: none !important;
  }

  .editorial-title {
    font-size: 30px !important;
  }
}

/* ==========================================================================
   Lead Inquiry Pop-up Modal Component
   ========================================================================== */
.inquiry-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 16, 14, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.inquiry-popup-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.inquiry-popup-card {
  background: #ffffff !important;
  color: var(--ink) !important;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  padding: 36px 36px 32px;
  position: relative;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(216, 120, 19, 0.25);
  box-sizing: border-box;
}

.inquiry-popup-backdrop.is-open .inquiry-popup-card {
  transform: scale(1) translateY(0);
}

.inquiry-popup-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(37, 37, 33, 0.12);
  background: #f7f4ef;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  outline: none;
}

.inquiry-popup-close:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
  transform: rotate(90deg);
}

.inquiry-popup-header {
  margin-bottom: 22px;
}

.popup-eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.inquiry-popup-header h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink);
  line-height: 1.15;
}

.inquiry-popup-header p {
  font-size: 13.5px;
  color: #66635c;
  line-height: 1.5;
  margin: 0;
}

.inquiry-popup-form {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.inquiry-popup-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.inquiry-popup-form label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #44423c;
  display: block;
  margin: 0;
  line-height: 1.3;
  min-height: 16px;
}

.inquiry-popup-form input,
.inquiry-popup-form select {
  width: 100%;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(37, 37, 33, 0.22);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: #1c1c18;
  background-color: #fcfbfa;
  box-sizing: border-box;
  margin: 0;
  outline: none;
  transition: all 0.2s ease;
  vertical-align: middle;
}

.inquiry-popup-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d87813' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 38px;
  cursor: pointer;
}

.inquiry-popup-form select option {
  background-color: #ffffff;
  color: #1c1c18;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 14px;
}

.inquiry-popup-form input:focus,
.inquiry-popup-form select:focus {
  outline: none;
  border-color: var(--gold);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(216, 120, 19, 0.18);
}

.inquiry-popup-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: end;
}

/* Modern Frosted Glass Budget Selection Buttons */
.budget-group-wrapper {
  margin-top: 2px;
  margin-bottom: 4px;
}

.budget-group-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #44423c;
  display: block;
  margin-bottom: 8px !important;
}

.budget-buttons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.budget-blur-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 13px 8px 11px;
  border-radius: 10px;
  cursor: pointer;
  background: rgba(248, 246, 240, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(37, 37, 33, 0.16);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  text-align: center;
  box-sizing: border-box;
}

.budget-blur-btn input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.budget-btn-amount {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 700;
  color: #22221e;
  line-height: 1.2;
  transition: color 0.2s ease;
  letter-spacing: -0.01em;
}

.budget-btn-sub {
  font-size: 10.5px;
  font-weight: 500;
  color: #78766f;
  margin-top: 3px;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.budget-btn-indicator {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(37, 37, 33, 0.15);
  transition: all 0.25s ease;
}

/* Hover State */
.budget-blur-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(216, 120, 19, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(216, 120, 19, 0.14);
}

.budget-blur-btn:hover .budget-btn-amount {
  color: #d87813;
}

/* Active / Checked State */
.budget-blur-btn:has(input[type="radio"]:checked),
.budget-blur-btn.is-selected {
  background: linear-gradient(135deg, rgba(216, 120, 19, 0.12) 0%, rgba(245, 175, 75, 0.22) 100%) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 6px 20px rgba(216, 120, 19, 0.22), 0 0 0 1px var(--gold) !important;
  transform: translateY(-2px);
}

.budget-blur-btn:has(input[type="radio"]:checked) .budget-btn-amount,
.budget-blur-btn.is-selected .budget-btn-amount {
  color: #b05a00 !important;
  font-weight: 800;
}

.budget-blur-btn:has(input[type="radio"]:checked) .budget-btn-sub,
.budget-blur-btn.is-selected .budget-btn-sub {
  color: #b05a00 !important;
  font-weight: 600;
}

.budget-blur-btn:has(input[type="radio"]:checked) .budget-btn-indicator,
.budget-blur-btn.is-selected .budget-btn-indicator {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  transform: scale(1.3);
}

@media (max-width: 480px) {
  .budget-buttons-grid {
    gap: 8px;
  }
  .budget-blur-btn {
    padding: 10px 4px;
  }
  .budget-btn-amount {
    font-size: 12px;
  }
  .budget-btn-sub {
    font-size: 9.5px;
  }
}

.popup-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 15px 24px;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.popup-form-note {
  font-size: 13px;
  color: #15803d;
  font-weight: 600;
  text-align: center;
  margin: 6px 0 0;
  min-height: 20px;
}

@media (max-width: 576px) {
  .inquiry-popup-card {
    padding: 28px 20px 24px;
  }

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

  .inquiry-popup-header h3 {
    font-size: 22px;
  }
}

/* ==========================================================================
   Brochure Lock & Gated Architectural Floor Plans Preview
   ========================================================================== */
.pdf-viewer-container {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #111411;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transition: all 0.35s ease;
}

/* Strictly hide iframe when locked so PDF content is NEVER rendered or peeked */
.pdf-viewer-container.is-locked {
  min-height: 560px;
  height: 560px;
}

.pdf-viewer-container.is-locked iframe {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Blurred architectural blueprint preview backdrop */
.brochure-preview-blur {
  position: absolute;
  inset: 0;
  background-color: #0b110f;
  background-image: 
    linear-gradient(rgba(216, 120, 19, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 120, 19, 0.09) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 40%, rgba(216, 120, 19, 0.15) 0%, rgba(10, 14, 12, 0.95) 75%);
  background-size: 28px 28px, 28px 28px, 100% 100%;
  filter: blur(4px);
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}

/* Overlay covering the locked brochure */
.brochure-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  background: radial-gradient(circle at center, rgba(17, 21, 19, 0.82) 0%, rgba(9, 12, 10, 0.96) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2;
  cursor: pointer;
  transition: backdrop-filter 0.3s ease;
}

.brochure-lock-overlay:hover {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brochure-lock-card {
  max-width: 500px;
  width: 100%;
  text-align: center;
  padding: 38px 32px 34px;
  background: rgba(26, 29, 25, 0.78);
  border: 1px solid rgba(216, 120, 19, 0.38);
  border-radius: 16px;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.65), 0 0 45px rgba(216, 120, 19, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-sizing: border-box;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.brochure-lock-card:hover {
  transform: translateY(-4px);
  border-color: rgba(216, 120, 19, 0.65);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.75), 0 0 60px rgba(216, 120, 19, 0.16);
}

.brochure-lock-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(216, 120, 19, 0.28) 0%, rgba(245, 175, 75, 0.1) 100%);
  border: 1.5px solid rgba(216, 120, 19, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  box-shadow: 0 0 24px rgba(216, 120, 19, 0.28);
}

.brochure-lock-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold);
}

.brochure-lock-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(216, 120, 19, 0.14);
  border: 1px solid rgba(216, 120, 19, 0.35);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.brochure-lock-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 10px;
}

.brochure-lock-desc {
  font-size: 13.5px;
  color: #b3b0a7;
  line-height: 1.55;
  max-width: 420px;
  margin: 0 auto 20px;
}

.brochure-unlock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 8px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(216, 120, 19, 0.35);
  cursor: pointer;
  transition: all 0.25s ease;
}

.brochure-unlock-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(216, 120, 19, 0.45);
}

.brochure-lock-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 500;
  color: #8c8981;
}

/* Unlocked State - Reveal PDF iframe seamlessly */
.pdf-viewer-container:not(.is-locked) {
  min-height: 720px;
  height: 720px;
}

.pdf-viewer-container:not(.is-locked) .brochure-lock-overlay,
.pdf-viewer-container:not(.is-locked) .brochure-preview-blur {
  display: none !important;
}

.pdf-viewer-container:not(.is-locked) iframe {
  display: block !important;
  width: 100% !important;
  height: 720px !important;
  border: none !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Media Queries
   ========================================================================== */

/* Enable Auto Pop-up Modal on Mobile Devices & Mobile Responsiveness */
@media (max-width: 768px) {
  .inquiry-popup-backdrop {
    display: flex !important;
    padding: 16px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .inquiry-popup-card {
    width: 92vw !important;
    max-width: 440px !important;
    max-height: 86vh !important;
    overflow-y: auto !important;
    padding: 24px 18px 20px !important;
    border-radius: 14px !important;
    -webkit-overflow-scrolling: touch;
  }
}

/* 1. Global Page Width & Container Protection */
html,
body {
  /* clip (not hidden) so body never becomes a scroll container - keeps position: sticky working */
  overflow-x: clip !important;
  max-width: 100vw !important;
}

/* 2. Mobile Section Padding & Layout Alignment */
@media (max-width: 768px) {

  /* Disable heavy GPU-taxing SVG noise overlay on mobile scroll */
  body:before {
    display: none !important;
  }

  /* Disable 3D continuous animation loop on mobile depth card for stutter-free scroll */
  .hero-depth-card {
    animation: none !important;
    transform: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(26, 26, 22, 0.88) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
  }

  /* Pure high-performance header background on scroll */
  .site-header.scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(20, 22, 20, 0.97) !important;
  }

  .section {
    padding: 40px 5vw !important;
  }

  .intro-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .intro-copy {
    padding-top: 0 !important;
  }

  .stats {
    flex-direction: column !important;
    gap: 20px !important;
    margin-top: 35px !important;
  }

  /* 3. Featured Ongoing Project Section & Arrow Controls on Mobile */
  .project-feature {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    max-height: none !important;
  }

  .feature-image {
    min-height: 240px !important;
    max-height: 280px !important;
  }

  .feature-content {
    padding: 24px 18px !important;
  }

  .feature-content h2 {
    font-size: 26px !important;
  }

  .feature-actions-row {
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .featured-slider-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 18px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #171713 !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    top: 130px !important;
    transform: translateY(-50%) !important;
    z-index: 15 !important;
  }

  .featured-slider-btn.featured-prev {
    left: 12px !important;
  }

  .featured-slider-btn.featured-next {
    right: 12px !important;
  }

  /* 4. Back to Directory Bar (Ultra Short Padding) */
  .back-nav-container {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    padding-left: 5vw !important;
    padding-right: 5vw !important;
    min-height: auto !important;
  }

  .back-directory-btn {
    font-size: 11px !important;
  }

  /* 5. Achievements Section Filter Tabs on Mobile */
  .section-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
  }

  .project-filters {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    padding: 5px !important;
    border-radius: 30px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
  }

  .project-filters::-webkit-scrollbar {
    display: none !important;
  }

  .filter-tab {
    flex-shrink: 0 !important;
    padding: 8px 16px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
  }

  /* 6. Location Map Section on Mobile */
  .map-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }

  .map-legend {
    width: 100% !important;
    justify-content: space-around !important;
  }

  .map-wrapper {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    height: auto !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }

  .map-sidebar {
    width: 100% !important;
    height: 250px !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  .map-container,
  #leaflet-map {
    width: 100% !important;
    height: 340px !important;
  }

  /* 7. Contact Form Section on Mobile */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  .contact form input,
  .contact form textarea {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .contact form .button {
    width: 100% !important;
    justify-content: center !important;
  }

  /* 8. Highlights Horizontal Card Slider on Ongoing Project Details Page */
  #highlightsGrid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 16px !important;
    padding: 10px 4px 20px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
  }

  #highlightsGrid::-webkit-scrollbar {
    display: none !important;
  }

  #highlightsGrid .highlight-card {
    scroll-snap-align: start !important;
    flex-shrink: 0 !important;
    width: 270px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* 9. Hero Banner Mobile Positioning & Text Overlap Fix */
  .hero,
  .ongoing-hero.hero {
    height: auto !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding: 95px 5vw 45px !important;
    box-sizing: border-box !important;
    position: relative !important;
  }

  .hero-content,
  .ongoing-hero .hero-content {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 5 !important;
  }

  .ongoing-page-theme .hero-content h1 {
    font-size: clamp(26px, 7vw, 40px) !important;
    line-height: 1.08 !important;
    margin-bottom: 14px !important;
  }

  .ongoing-page-theme .hero-copy {
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
  }

  /* 10. Amenities Grid (2-Column Grid Layout - Image 1 space saver) */
  #amenitiesGrid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-top: 14px !important;
  }

  .amenity-row {
    padding: 10px 10px !important;
    gap: 8px !important;
    align-items: center !important;
    min-height: 46px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-sizing: border-box !important;
  }

  .amenity-row span {
    font-size: 11.5px !important;
    line-height: 1.25 !important;
    font-weight: 500 !important;
  }

  .amenity-icon,
  .amenity-row svg,
  .amenity-row i {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    color: var(--gold) !important;
  }

  /* 11. Project Visuals Gallery (Horizontal Swipe Slider - Image 2 space saver) */
  .gallery-masonry {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 12px !important;
    padding: 6px 2px 14px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
  }

  .gallery-masonry::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .gallery-item {
    scroll-snap-align: center !important;
    flex-shrink: 0 !important;
    width: 82vw !important;
    max-width: 320px !important;
    aspect-ratio: 16/10 !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
  }

  .gallery-item-info {
    opacity: 1 !important;
    transform: none !important;
    padding: 10px 14px !important;
    background: linear-gradient(to top, rgba(18, 18, 16, 0.94) 0%, rgba(18, 18, 16, 0.35) 60%, transparent 100%) !important;
  }

  .gallery-item-info h4 {
    font-size: 13px !important;
    margin: 0 !important;
  }

  /* 12. Map Leaflet Popup Fit on Mobile */
  .project-map-container {
    height: 300px !important;
  }

  .leaflet-popup-content-wrapper {
    max-width: 220px !important;
  }

  .leaflet-popup-content {
    width: 200px !important;
  }

  .pdf-viewer-container iframe {
    height: 420px !important;
  }
}

/* ==========================================================================
   Smooth Logo Docking Intro Transition (Aesthetic Light Luxury Theme)
   ========================================================================== */
.site-intro-loader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  pointer-events: all;
  background: #ffffff;
  transition: background 0.4s ease;
}

.intro-loader-backdrop {
  position: absolute;
  inset: 0;
  background: #ffffff;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.intro-docking-stage {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Aesthetic Light Luxury Orbital Rings */
.intro-ambient-glow {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 320px;
  height: 320px;
  animation: introGlowBreathe 4.2s ease-in-out infinite;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 120, 19, 0.12) 0%, rgba(245, 200, 128, 0.03) 55%, transparent 75%);
  filter: blur(10px);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.intro-ring-outer {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px dashed rgba(216, 120, 19, 0.32);
  pointer-events: none;
  animation: spinOuterRing 22s linear infinite;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.intro-ring-inner {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(216, 120, 19, 0.18);
  border-top-color: #d87813;
  pointer-events: none;
  animation: spinInnerRing 12s linear infinite reverse;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

@keyframes spinOuterRing {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes spinInnerRing {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.intro-logo-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 260px;
  height: 260px;
  z-index: 2;
  /* The rings now live inside this box, so the logo is centred structurally
     instead of by a hand-tuned offset. */
}

/* Brand-gold progress arc that completes exactly as the intro hands off */
@property --intro-progress {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.intro-ring-progress {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 238px;
  height: 238px;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(from -90deg,
      rgba(216, 120, 19, 0.85) var(--intro-progress),
      transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  opacity: 0;
  transition: opacity 0.35s ease;
  animation: introProgressSweep var(--intro-hold, 1350ms) cubic-bezier(0.33, 0, 0.2, 1) forwards;
}

.intro-docking-stage.is-entered .intro-ring-progress {
  opacity: 1;
}

@keyframes introProgressSweep {
  from {
    --intro-progress: 0deg;
  }

  to {
    --intro-progress: 360deg;
  }
}

@keyframes introGlowBreathe {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }

  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

/* Single light sweep across the logo artwork itself (masked to the PNG shape,
   so it never reads as a rectangle passing over a transparent image) */
.intro-logo-shimmer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  -webkit-mask-image: url("assets/logo-removebg-preview (1).png");
  mask-image: url("assets/logo-removebg-preview (1).png");
  -webkit-mask-size: 205px auto;
  mask-size: 205px auto;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  background: linear-gradient(105deg,
      transparent 40%,
      rgba(255, 255, 255, 0.75) 50%,
      rgba(255, 236, 205, 0.55) 56%,
      transparent 66%);
  background-size: 240% 100%;
  background-repeat: no-repeat;
  animation: introShimmerSweep 1.05s cubic-bezier(0.4, 0, 0.2, 1) 0.42s 1;
}

@keyframes introShimmerSweep {
  0% {
    background-position: 170% 0;
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    background-position: -70% 0;
    opacity: 0;
  }
}

/* Larger, Majestic Logo */
.intro-docking-logo {
  width: 205px;
  height: auto;
  max-height: 175px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(216, 120, 19, 0.18)) drop-shadow(0 3px 10px rgba(0, 0, 0, 0.06));
  opacity: 0;
  transform: scale(0.9);
  transform-origin: center center;
  will-change: transform, opacity;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-docking-logo.is-entered {
  opacity: 1;
  transform: scale(1);
}

.intro-docking-logo.is-docking {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}

/* Refined Minimalist Tagline */
.intro-tagline-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  position: relative;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.18s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.18s;
  z-index: 2;
}

.intro-docking-stage.is-entered .intro-tagline-wrap {
  opacity: 1;
  transform: translateY(0);
}

.intro-tagline-bar {
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 120, 19, 0.45), transparent);
}

.intro-tagline {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: #6a665d;
  text-transform: uppercase;
}

/* Fade out aesthetic decorations when docking begins */
.intro-docking-stage.is-docking .intro-ring-outer,
.intro-docking-stage.is-docking .intro-ring-inner,
.intro-docking-stage.is-docking .intro-ring-progress,
.intro-docking-stage.is-docking .intro-logo-shimmer,
.intro-docking-stage.is-docking .intro-ambient-glow,
.intro-docking-stage.is-docking .intro-tagline-wrap {
  opacity: 0 !important;
  transform: scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Header brand docking synchronization */
.site-header .brand img.is-dock-target {
  opacity: 0 !important;
  transition: opacity 0.2s ease;
}

.site-header .brand span.is-dock-target {
  opacity: 0;
  transition: opacity 0.45s ease 0.3s;
}

.site-header .brand span.dock-arrived {
  opacity: 1 !important;
}

@media (max-width: 768px) {
  .intro-logo-box {
    width: 195px;
    height: 195px;
  }

  .intro-docking-logo {
    width: 155px;
    max-height: 130px;
  }

  .intro-ring-outer {
    width: 195px;
    height: 195px;
  }

  .intro-ring-inner {
    width: 165px;
    height: 165px;
  }

  .intro-ring-progress {
    width: 180px;
    height: 180px;
  }

  .intro-logo-shimmer {
    -webkit-mask-size: 155px auto;
    mask-size: 155px auto;
  }

  .intro-ambient-glow {
    width: 250px;
    height: 250px;
  }

  .intro-tagline {
    font-size: 10px;
    letter-spacing: 0.26em;
  }
}

/* Quiet "tap to skip" affordance - appears only if the visitor is still here */
.intro-skip-hint {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #a39c8e;
  opacity: 0;
  z-index: 4;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.site-intro-loader.show-skip .intro-skip-hint {
  opacity: 1;
}

/* Failsafe: if the controller in app.js ever fails to run, the splash must not
   trap the page. Nothing below fires in a normal load - the loader is removed
   from the DOM long before 6s. */
@keyframes introFailsafeRelease {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.site-intro-loader {
  animation: introFailsafeRelease 0.6s ease 6s forwards;
}

.site-intro-loader.intro-inspect-mode {
  animation: none;
}

/* Respect reduced-motion: keep the brand moment, drop the motion */
@media (prefers-reduced-motion: reduce) {

  .intro-ring-outer,
  .intro-ring-inner,
  .intro-ambient-glow,
  .intro-ring-progress,
  .intro-logo-shimmer {
    animation: none !important;
  }

  .intro-logo-shimmer {
    display: none;
  }

  .intro-ring-progress {
    background: conic-gradient(from -90deg, rgba(216, 120, 19, 0.85) 360deg, transparent 0);
  }

  .intro-docking-logo,
  .intro-tagline-wrap {
    transition-duration: 0.01ms !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Project Logos & Official GujRERA QR Code Styles (Featured & Ongoing)
   ========================================================================== */

/* Featured Ongoing Section - Project Logo On Left Side On Image */
.feature-image {
  position: relative;
}

.featured-image-logo-pill {
  position: absolute;
  top: 22px;
  left: 22px;
  background: #ffffff;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  overflow: hidden;
}

.featured-image-logo-pill:hover {
  transform: translateY(-2px) scale(1.03);
}

.featured-image-logo-pill .featured-brand-logo {
  max-height: 48px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

/* Featured Ongoing Section - Compact QR box sits directly beside Explore button */
.feature-actions-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  margin-top: 22px !important;
  flex-wrap: wrap !important;
}

.featured-btns-group {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.featured-rera-card {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
  background: #ffffff !important;
  border: 1px solid #dfdcd4 !important;
  border-left: 4px solid var(--gold) !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06) !important;
  box-sizing: border-box !important;
}

.featured-rera-card:hover {
  transform: translateY(-2px) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 8px 24px rgba(216, 120, 19, 0.18) !important;
}

.featured-rera-qr-box {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  background: #ffffff !important;
  border: 1.5px solid #d0cdc5 !important;
  border-radius: 6px !important;
  padding: 3px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

.featured-rera-qr-box:hover {
  transform: scale(1.1) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 4px 14px rgba(216,120,19,0.25) !important;
}

.featured-rera-large-qr {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  image-rendering: -webkit-optimize-contrast !important;
  image-rendering: crisp-edges !important;
  border-radius: 2px !important;
}

.featured-rera-text-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  text-align: left !important;
}

.featured-rera-header-line {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

.featured-rera-gov-tag {
  font-size: 9.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  color: #8c6b4e !important;
  text-transform: uppercase !important;
}

.featured-rera-scan-link {
  font-size: 9.5px !important;
  font-weight: 600 !important;
  color: var(--gold) !important;
  letter-spacing: 0.04em !important;
}

.featured-rera-reg-code {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #171714 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  letter-spacing: 0.03em !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}

.featured-rera-verify-text {
  font-size: 10.5px !important;
  color: #6a6860 !important;
  line-height: 1.35 !important;
}

/* Editorial Project Directory Listing - Logo on Image & RERA Card */
.editorial-media {
  position: relative !important;
}

.editorial-media-logo-badge {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  left: auto !important;
  background: #ffffff !important;
  padding: 6px 14px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
  z-index: 3 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  max-width: 140px !important;
  overflow: hidden !important;
}

.editorial-media-brand-logo {
  max-height: 38px !important;
  max-width: 120px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  border-radius: 8px !important;
}

/* Editorial Project Directory Listing - Action Bar with QR next to Explore Residences */
.editorial-bottom-action-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  margin-top: 22px !important;
  width: 100% !important;
}

.editorial-btns-group {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.editorial-rera-scan-card {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
  background: #ffffff !important;
  border: 1px solid #e0ded7 !important;
  border-left: 4px solid var(--gold) !important;
  border-radius: 8px !important;
  padding: 8px 16px !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22) !important;
  box-sizing: border-box !important;
}

.editorial-rera-scan-card:hover {
  transform: translateY(-2px) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 8px 26px rgba(216, 120, 19, 0.3) !important;
}

.editorial-rera-qr-box {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  background: #ffffff !important;
  border: 1.5px solid #d0cdc5 !important;
  border-radius: 6px !important;
  padding: 3px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

.editorial-rera-qr-box:hover {
  transform: scale(1.1) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 4px 14px rgba(216,120,19,0.25) !important;
}

.editorial-rera-large-qr {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  image-rendering: -webkit-optimize-contrast !important;
  image-rendering: crisp-edges !important;
  display: block !important;
}

.editorial-rera-info-col {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  text-align: left !important;
}

.editorial-rera-badge-title {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  color: #8c6b4e !important;
  text-transform: uppercase !important;
}

.rera-dot-gold {
  width: 5px !important;
  height: 5px !important;
  background: var(--gold) !important;
  border-radius: 50% !important;
  display: inline-block !important;
}

.editorial-rera-reg-number {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #171714 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  letter-spacing: 0.03em !important;
  white-space: nowrap !important;
}

.editorial-rera-scan-instruction {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  color: #6a6860 !important;
}

.editorial-rera-zoom-link {
  color: var(--gold) !important;
}

/* Ongoing Project Details View - Brand Logo in Overview */
.project-detail-brand-wrap {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  padding: 6px 14px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18) !important;
  margin-bottom: 18px !important;
  overflow: hidden !important;
}

.project-detail-brand-logo {
  max-height: 54px !important;
  max-width: 180px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  border-radius: 8px !important;
}

/* Ongoing Project Details View - Official GujRERA Verification Card */
.project-rera-official-card {
  margin-top: 45px;
  background: #ffffff;
  border: 1px solid #dfdcd4;
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 30px 34px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.project-rera-official-card:hover {
  box-shadow: 0 12px 36px rgba(216, 120, 19, 0.1);
  border-color: rgba(216, 120, 19, 0.4);
}

.rera-card-header {
  margin-bottom: 22px;
  border-bottom: 1px solid #f0eee9;
  padding-bottom: 16px;
}

.rera-card-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(216, 120, 19, 0.1);
  border: 1px solid rgba(216, 120, 19, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.rera-pill-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--gold);
}

.rera-card-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: #171714;
  margin: 4px 0 0;
}

.rera-card-body {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.rera-card-qr-box {
  background: #ffffff;
  border: 2px solid #e8e5dc;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
  width: 140px;
}

.rera-card-qr-box:hover {
  border-color: var(--gold);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(216, 120, 19, 0.18);
}

.rera-card-qr-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: #ffffff;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.rera-card-qr-hint {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-transform: uppercase;
}

.rera-card-meta {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rera-meta-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rera-meta-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #8c6b4e;
  text-transform: uppercase;
}

.rera-meta-value {
  font-size: 16px;
  font-weight: 700;
  color: #171714;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.04em;
}

.rera-meta-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #575650;
  margin: 0;
}

.rera-meta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.rera-scan-now-btn {
  padding: 10px 20px !important;
  font-size: 12px !important;
}

.rera-external-btn {
  padding: 10px 18px !important;
  font-size: 12px !important;
  color: #575650 !important;
  border-color: #dfdcd4 !important;
}

.rera-external-btn:hover {
  border-color: var(--gold) !important;
  color: var(--ink) !important;
}

/* ==========================================================================
   GujRERA QR Code Lightbox Modal Component
   ========================================================================== */
.rera-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 16, 14, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.rera-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.rera-modal-card {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  max-width: 440px;
  width: 100%;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(216, 120, 19, 0.25);
  transform: scale(0.94) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.rera-modal-backdrop.active .rera-modal-card {
  transform: scale(1) translateY(0);
}

.rera-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f4f2ec;
  border: none;
  font-size: 24px;
  line-height: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a4842;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rera-modal-close:hover {
  background: var(--gold);
  color: #ffffff;
  transform: rotate(90deg);
}

.rera-modal-header {
  margin-bottom: 16px;
}

.rera-modal-eyebrow {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.rera-modal-header h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: #171714;
  margin: 0;
}

.rera-modal-qr-container {
  background: #ffffff;
  border: 2px solid #e8e5dd;
  border-radius: 12px;
  padding: 16px;
  margin: 18px auto;
  width: fit-content;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.rera-modal-qr-container img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: #ffffff;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.rera-modal-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.rera-modal-reg-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #8c6b4e;
  text-transform: uppercase;
}

.rera-modal-reg-no {
  font-size: 15px;
  font-weight: 700;
  color: #171714;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  margin: 0;
  letter-spacing: 0.04em;
}

.rera-modal-hint {
  font-size: 12px;
  line-height: 1.5;
  color: #6a6860;
  max-width: 360px;
  margin: 6px 0 14px;
}

.rera-modal-gov-btn {
  width: 100%;
  justify-content: center;
  padding: 12px 20px !important;
  font-size: 12.5px !important;
}

/* ==========================================================================
   Mobile Responsiveness for Logos & RERA QR Elements
   ========================================================================== */
@media (max-width: 768px) {
  .featured-image-logo-pill {
    top: 14px;
    left: 14px;
    padding: 6px 12px;
  }

  .featured-image-logo-pill .featured-brand-logo {
    max-height: 36px;
    max-width: 110px;
  }

  .detail-row {
    flex-wrap: wrap;
    gap: 16px 24px;
  }

  .featured-rera-card {
    max-width: 100%;
    padding: 10px 12px;
    gap: 12px;
  }

  .featured-rera-reg-code {
    font-size: 12px;
    white-space: normal;
    word-break: break-all;
  }

  .editorial-media-logo-badge {
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    padding: 5px 10px !important;
    border-radius: 10px !important;
  }

  /* Status badge moves to the bottom-left so it never collides with the logo */
  .editorial-badge {
    top: auto;
    bottom: 12px;
    left: 12px;
    font-size: 10px;
  }

  .editorial-media-brand-logo {
    max-height: 32px;
    max-width: 95px;
    border-radius: 6px;
  }

  .editorial-rera-card {
    max-width: 100%;
    padding: 8px 10px;
    gap: 10px;
  }

  .editorial-rera-code {
    font-size: 11.5px;
    white-space: normal;
    word-break: break-all;
  }

  .project-rera-official-card {
    padding: 20px 18px;
    margin-top: 30px;
  }

  .rera-card-body {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .rera-card-qr-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px;
  }

  .rera-card-meta {
    min-width: 0;
  }

  .rera-meta-actions {
    flex-direction: column;
    width: 100%;
  }

  .rera-meta-actions .button {
    width: 100%;
    justify-content: center;
  }

  .rera-modal-card {
    padding: 26px 18px;
  }

  .rera-modal-qr-container img {
    width: 180px;
    height: 180px;
  }
}


/* ==========================================================================
   Awards & Recognition (top of the Achievements section)
   ========================================================================== */
.award-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-bottom: 96px;
  padding: clamp(28px, 4vw, 56px);
  border-radius: 20px;
  color: #f4ece0;
  background:
    radial-gradient(ellipse at 18% 30%, rgba(216, 120, 19, 0.22), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(211, 180, 137, 0.12), transparent 50%),
    #171713;
  border: 1px solid rgba(211, 180, 137, 0.25);
  box-shadow: 0 30px 70px rgba(23, 23, 19, 0.28);
  overflow: hidden;
}

.award-media {
  position: relative;
  padding: 0 14% 12% 0;
}

.award-photo {
  display: block;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  background: none;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.award-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.award-photo-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

.award-photo-main img {
  height: 100%;
  object-fit: cover;
}

/* Certificate tucked in front of the trophy, slightly turned like a framed piece on a shelf */
.award-photo-cert {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  border: 3px solid rgba(244, 236, 224, 0.9);
  transform: rotate(3deg);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
}

.award-photo:hover,
.award-photo:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
}

.award-photo-cert:hover,
.award-photo-cert:focus-visible {
  transform: rotate(0deg) translateY(-6px) scale(1.03);
}

.award-photo:focus-visible,
.award-view-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.award-copy .eyebrow {
  color: #e0a04c;
}

.award-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 22px;
  padding: 8px 16px;
  border: 1px solid rgba(224, 160, 76, 0.55);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.award-badge strong {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: #e0a04c;
}

.award-copy h2 {
  color: #fff;
  font-size: clamp(34px, 4vw, 58px);
  margin-bottom: 22px;
}

.award-copy h2 em {
  color: #e0a04c;
}

.award-recipients {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.award-recipients strong {
  color: #fff;
}

.award-note {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244, 236, 224, 0.68);
  margin-bottom: 28px;
}

.award-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid rgba(244, 236, 224, 0.35);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: 600 11px var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.award-view-btn:hover {
  background: #f4ece0;
  border-color: #f4ece0;
  color: var(--ink);
}

/* Lightbox */
.award-lightbox {
  max-width: min(92vw, 1100px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #0f0f0d;
  color: #f4ece0;
  overflow: hidden;
}

.award-lightbox::backdrop {
  background: rgba(10, 10, 9, 0.85);
  backdrop-filter: blur(4px);
}

.award-lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 52px);
  margin: 0 auto;
  object-fit: contain;
}

.award-lightbox p {
  margin: 0;
  padding: 14px 18px;
  font-size: 13px;
  text-align: center;
  color: rgba(244, 236, 224, 0.75);
}

.award-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .award-feature {
    grid-template-columns: 1fr;
    margin-bottom: 64px;
  }

  .award-media {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .award-feature {
    padding: 22px 18px 28px;
    border-radius: 16px;
  }

  .award-media {
    padding: 0 10% 14% 0;
  }

  .award-photo-cert {
    width: 58%;
  }

  .award-badge {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .award-view-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Light theme: Ongoing Projects page, featured slider counter, site footer
   (overrides the earlier dark styling; keep this block last in the file)
   ========================================================================== */
:root {
  --lt-page: #f4f1eb;      /* page background, matches the homepage sections */
  --lt-band: #ebe5da;      /* alternate section band */
  --lt-card: #ffffff;
  --lt-line: rgba(37, 37, 33, 0.12);
  --lt-muted: #5c5850;
  --ft-bg: #e9e1d4;        /* footer: warm sand, set apart from the cream page */
  --ft-strip: #f3e7d6;
  --ft-bottom: #ddd2c1;
}

/* Featured project slider: counter moves to the top-right so it never covers the project logo */
.feature-image .featured-slide-counter {
  left: auto;
  right: 20px;
}

@media (max-width: 768px) {
  .feature-image .featured-slide-counter {
    top: 14px;
    right: 14px;
  }
}

/* ---------- Ongoing Projects page: light ---------- */
.ongoing-page-theme {
  background: var(--lt-page) !important;
  color: var(--ink) !important;
}

.ongoing-page-theme .back-nav-container,
.ongoing-page-theme .project-details-wrapper,
.ongoing-page-theme .projects.section {
  background: var(--lt-page) !important;
  border-color: var(--lt-line) !important;
}

.ongoing-page-theme .section-tag,
.ongoing-page-theme .back-directory-btn {
  color: var(--gold) !important;
}

.ongoing-page-theme .back-directory-btn:hover {
  color: var(--ink) !important;
}

.ongoing-page-theme .intro-copy p {
  color: var(--lt-muted) !important;
}

.ongoing-page-theme .rera-badge strong {
  color: var(--ink) !important;
}

/* Cards: highlights, amenities, directory cards */
.ongoing-page-theme .highlight-card,
.ongoing-page-theme .amenity-row,
.ongoing-page-theme .project-card {
  background: var(--lt-card) !important;
  border: 1px solid var(--lt-line) !important;
  box-shadow: 0 10px 26px rgba(37, 37, 33, 0.06) !important;
  color: var(--ink) !important;
}

.ongoing-page-theme .highlight-card h4 {
  color: var(--gold) !important;
}

.ongoing-page-theme .highlight-card p,
.ongoing-page-theme .project-card .desc-text {
  color: var(--lt-muted) !important;
}

.ongoing-page-theme .amenity-text,
.ongoing-page-theme .project-card .card-content h3 {
  color: var(--ink) !important;
}

.ongoing-page-theme .amenity-row:hover {
  background: #fff8ef !important;
}

/* Directory rows */
.ongoing-page-theme .editorial-info,
.ongoing-page-theme .editorial-title,
.ongoing-page-theme .meta-item strong {
  color: var(--ink) !important;
}

.ongoing-page-theme .editorial-eyebrow,
.ongoing-page-theme .meta-item small {
  color: var(--gold) !important;
}

.ongoing-page-theme .editorial-meta {
  border-color: var(--lt-line) !important;
}

.ongoing-page-theme .editorial-desc {
  color: var(--lt-muted) !important;
}

.ongoing-page-theme .editorial-tag {
  background: var(--lt-card) !important;
  border: 1px solid var(--lt-line) !important;
  color: var(--ink) !important;
}

/* Gallery band (its colours are set inline in the page) */
.ongoing-page-theme #gallerySection {
  background: var(--lt-band) !important;
  color: var(--ink) !important;
}

.ongoing-page-theme #gallerySection .section-tag,
.ongoing-page-theme #gallerySection .eyebrow.light {
  color: var(--gold) !important;
}

/* Floor plans lock: light blueprint instead of a black vault */
.ongoing-page-theme .pdf-viewer-container {
  background: #f6f2ea !important;
}

.ongoing-page-theme .brochure-preview-blur {
  background-color: #f6f2ea !important;
  background-image:
    linear-gradient(rgba(47, 95, 158, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 95, 158, 0.08) 1px, transparent 1px) !important;
  background-size: 28px 28px, 28px 28px !important;
}

.ongoing-page-theme .brochure-lock-overlay {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4) 0%, rgba(241, 238, 232, 0.85) 100%) !important;
}

.ongoing-page-theme .brochure-lock-card {
  background: var(--lt-card) !important;
  border: 1px solid rgba(216, 120, 19, 0.35) !important;
  box-shadow: 0 24px 50px rgba(37, 37, 33, 0.12) !important;
}

.ongoing-page-theme .brochure-lock-title {
  color: var(--ink) !important;
}

.ongoing-page-theme .brochure-lock-desc {
  color: var(--lt-muted) !important;
}

.ongoing-page-theme .brochure-lock-meta {
  color: #7a766c !important;
}

/* Location and inquiry form */
.ongoing-page-theme .project-map-container {
  border-color: var(--lt-line) !important;
}

.ongoing-page-theme #ongoingLeadForm {
  background: var(--lt-card) !important;
  border: 1px solid var(--lt-line) !important;
  box-shadow: 0 16px 40px rgba(37, 37, 33, 0.08) !important;
}

.ongoing-page-theme #ongoingLeadForm label {
  color: var(--ink) !important;
}

.ongoing-page-theme #ongoingLeadForm input,
.ongoing-page-theme #ongoingLeadForm textarea,
.ongoing-page-theme #ongoingLeadForm .phone-input-wrap {
  background: #fbfaf8 !important;
  border: 1px solid rgba(37, 37, 33, 0.18) !important;
  color: var(--ink) !important;
}

.ongoing-page-theme #ongoingLeadForm .phone-input-wrap input {
  background: transparent !important;
  border: none !important;
  color: var(--ink) !important;
}

/* ---------- Footer, whole site: warm sand ---------- */
body .site-footer {
  background: var(--ft-bg) !important;
  color: var(--ink);
  border-top: 3px solid var(--gold);
}

body .site-footer::before {
  background: radial-gradient(ellipse at top, rgba(216, 120, 19, 0.1) 0%, rgba(233, 225, 212, 0) 70%);
}

.site-footer .footer-vip-strip {
  background: var(--ft-strip) !important;
  border-bottom: 1px solid var(--lt-line) !important;
}

.site-footer .vip-badge {
  color: var(--gold);
  background: rgba(216, 120, 19, 0.1);
  border-color: rgba(216, 120, 19, 0.3);
}

.site-footer .vip-strip-text h3,
.site-footer .footer-brand span,
.site-footer .footer-col-title,
.site-footer .f-contact-item div strong,
.site-footer .f-contact-item strong {
  color: var(--ink) !important;
}

.site-footer .vip-strip-text p,
.site-footer .footer-brand-desc {
  color: var(--lt-muted) !important;
}

.site-footer .vip-inquire-btn {
  background: var(--lt-card);
  border: 1px solid rgba(37, 37, 33, 0.2);
  color: var(--ink);
}

.site-footer .vip-inquire-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.site-footer .trust-pill,
.site-footer .social-pill {
  background: rgba(255, 255, 255, 0.6) !important;
  border: 1px solid var(--lt-line) !important;
  color: #4a4740 !important;
}

.site-footer .social-pill:hover {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: #fff !important;
}

.site-footer .footer-contact-items {
  background: rgba(255, 255, 255, 0.45);
  border-color: var(--lt-line);
}

.site-footer .f-contact-item {
  border-color: var(--lt-line);
}

.site-footer .f-contact-item div p,
.site-footer .f-contact-item div p a,
.site-footer .f-contact-item p,
.site-footer .f-contact-item a,
.site-footer .social-label {
  color: #4a4740 !important;
}

.site-footer .f-contact-item div p a:hover,
.site-footer .f-contact-item a:hover {
  color: var(--gold) !important;
}

.site-footer .footer-disclaimer-strip {
  background: rgba(37, 37, 33, 0.04) !important;
  border-top: 1px solid var(--lt-line) !important;
}

.site-footer .footer-disclaimer-strip p {
  color: #6b675e !important;
}

.site-footer .footer-disclaimer-strip strong {
  color: #4a4740 !important;
}

.site-footer .footer-bottom-bar {
  background: var(--ft-bottom) !important;
  border-top: 1px solid var(--lt-line) !important;
}

.site-footer .footer-bottom-bar,
.site-footer .footer-bottom-bar .copyright,
.site-footer .footer-bottom-links {
  color: var(--lt-muted) !important;
}

/* Footer contact block: a single raised card with divided rows */
.site-footer .footer-contact-items {
  background: #ffffff !important;
  border: 1px solid rgba(216, 120, 19, 0.18) !important;
  border-radius: 14px !important;
  padding: 6px 22px !important;
  gap: 0 !important;
  box-shadow: 0 14px 34px rgba(60, 40, 15, 0.12), 0 2px 6px rgba(60, 40, 15, 0.06) !important;
}

.site-footer .f-contact-item {
  padding: 16px 0 !important;
  border-bottom: 1px solid rgba(37, 37, 33, 0.08) !important;
  align-items: center !important;
  gap: 16px !important;
  background: none !important;
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
}

.site-footer .f-contact-item:last-child {
  border-bottom: 0 !important;
}

.site-footer .f-icon {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #fff4e6, #fde3c4) !important;
  border: 1px solid rgba(216, 120, 19, 0.25) !important;
  box-shadow: 0 4px 10px rgba(216, 120, 19, 0.15) !important;
}

.site-footer .f-contact-item div strong {
  font-size: 13px !important;
  letter-spacing: 0.02em;
}

.site-footer .f-contact-item div p,
.site-footer .f-contact-item p {
  margin-top: 3px !important;
  word-break: break-word;
}

@media (max-width: 480px) {
  .site-footer .footer-contact-items {
    padding: 4px 16px !important;
  }
}

/* Ongoing Projects directory: each project in its own raised card */
.ongoing-page-theme #ongoingProjectsGrid {
  gap: 36px !important;
}

.ongoing-page-theme .editorial-project-row.ongoing-card {
  background: #ffffff;
  border: 1px solid rgba(216, 120, 19, 0.18);
  border-radius: 18px;
  padding: 28px;
  gap: 44px;
  box-shadow: 0 18px 44px rgba(60, 40, 15, 0.10), 0 2px 8px rgba(60, 40, 15, 0.05);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.ongoing-page-theme .editorial-project-row.ongoing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(216, 120, 19, 0.4);
  box-shadow: 0 26px 56px rgba(60, 40, 15, 0.14), 0 4px 12px rgba(60, 40, 15, 0.06);
}

.ongoing-page-theme .ongoing-card .editorial-media {
  border-radius: 12px;
  overflow: hidden;
}

/* A project added without a photo shows its logo on a soft panel instead of a stretched image */
.ongoing-page-theme .ongoing-card .editorial-media.is-placeholder {
  min-height: 280px;
  background: linear-gradient(135deg, #f7efe3, #efe4d3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ongoing-page-theme .ongoing-card .editorial-media.is-placeholder .editorial-img {
  object-fit: contain;
  width: 55%;
  height: auto;
  max-height: 200px;
}

.ongoing-empty-note {
  padding: 40px;
  text-align: center;
  background: #ffffff;
  border: 1px dashed rgba(216, 120, 19, 0.35);
  border-radius: 18px;
  color: #5c5850;
}

@media (max-width: 991px) {
  .ongoing-page-theme .editorial-project-row.ongoing-card {
    padding: 18px;
    gap: 22px;
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .ongoing-page-theme #ongoingProjectsGrid {
    gap: 24px !important;
  }

  .ongoing-page-theme .editorial-project-row.ongoing-card {
    padding: 14px 14px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ongoing-page-theme .editorial-project-row.ongoing-card:hover {
    transform: none;
  }
}

.ongoing-placeholder-text {
  display: grid;
  gap: 8px;
  text-align: center;
  padding: 24px;
  font-family: var(--serif);
  font-size: 24px;
  color: #6b5a44;
}

.ongoing-placeholder-text small {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Budget choice buttons: amount and sub-line always on their own lines
   (a generic form-label rule was flattening them into one wrapped line on phones) */
.budget-buttons-grid .budget-blur-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px;
  min-width: 0;
  margin: 0 !important;
}

.budget-buttons-grid .budget-btn-amount,
.budget-buttons-grid .budget-btn-sub {
  display: block !important;
  width: 100%;
  margin: 0 !important;
  text-align: center;
}

.budget-buttons-grid .budget-btn-amount {
  white-space: nowrap;
}

.budget-buttons-grid .budget-btn-sub {
  text-transform: uppercase;
  line-height: 1.25;
}

@media (max-width: 480px) {
  .budget-buttons-grid .budget-blur-btn {
    padding: 12px 4px 10px !important;
    min-height: 64px;
  }

  .budget-buttons-grid .budget-btn-amount {
    font-size: clamp(11px, 3.2vw, 13px) !important;
  }

  .budget-buttons-grid .budget-btn-sub {
    font-size: clamp(8.5px, 2.4vw, 10px) !important;
    letter-spacing: 0.04em;
  }

  .budget-buttons-grid .budget-btn-indicator {
    top: 5px;
    right: 5px;
  }
}

/* ==========================================================================
   Phones only: tighter footer end and compact ongoing-project cards
   ========================================================================== */
@media (max-width: 768px) {
  .site-footer .footer-bottom-bar {
    padding: 16px 6vw calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 6px !important;
  }
}

@media (max-width: 600px) {
  .ongoing-page-theme #ongoingProjectsGrid {
    gap: 20px !important;
  }

  /* Card shell: photo runs edge to edge, content padded below */
  .ongoing-page-theme .editorial-project-row.ongoing-card,
  .ongoing-page-theme .editorial-project-row.ongoing-card.row-reverse {
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0 !important;
    border-radius: 16px !important;
    overflow: hidden;
  }

  .ongoing-page-theme .ongoing-card .editorial-media {
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
    aspect-ratio: 16 / 10;
    border-radius: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
  }

  .ongoing-page-theme .ongoing-card .editorial-media.is-placeholder {
    min-height: 0;
  }

  .ongoing-page-theme .ongoing-card .editorial-img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    border-radius: 0 !important;
  }

  .ongoing-page-theme .ongoing-card .editorial-badge {
    top: auto !important;
    bottom: 10px !important;
    left: 10px !important;
    font-size: 9.5px !important;
    padding: 5px 9px !important;
  }

  .ongoing-page-theme .ongoing-card .editorial-media-logo-badge {
    top: 10px !important;
    right: 10px !important;
    padding: 4px 8px !important;
    border-radius: 9px !important;
  }

  .ongoing-page-theme .ongoing-card .editorial-media-brand-logo {
    max-height: 30px !important;
    max-width: 80px !important;
  }

  /* Text block */
  .ongoing-page-theme .ongoing-card .editorial-info {
    width: 100% !important;
    padding: 16px 16px 18px !important;
    gap: 0;
  }

  .ongoing-page-theme .ongoing-card .editorial-eyebrow {
    font-size: 11px !important;
    margin-bottom: 2px !important;
  }

  .ongoing-page-theme .ongoing-card .editorial-title {
    font-size: 25px !important;
    line-height: 1.1 !important;
    margin: 2px 0 12px !important;
  }

  /* Typology / location as a compact two-column panel */
  .ongoing-page-theme .ongoing-card .editorial-meta {
    display: grid !important;
    grid-template-columns: 1.3fr 1fr;
    gap: 10px;
    padding: 10px 12px !important;
    margin: 0 0 12px !important;
    background: #faf5ec;
    border: 0 !important;
    border-radius: 10px;
  }

  .ongoing-page-theme .ongoing-card .meta-item small {
    font-size: 9.5px !important;
  }

  .ongoing-page-theme .ongoing-card .meta-item strong {
    font-size: 12.5px !important;
    line-height: 1.35 !important;
  }

  /* Description clamped to three lines */
  .ongoing-page-theme .ongoing-card .editorial-desc {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
    margin: 0 0 12px !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Highlights in one swipeable row */
  .ongoing-page-theme .ongoing-card .editorial-tags-row {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    gap: 6px !important;
    margin: 0 -16px 14px !important;
    padding: 0 16px 2px;
    scrollbar-width: none;
  }

  .ongoing-page-theme .ongoing-card .editorial-tags-row::-webkit-scrollbar {
    display: none;
  }

  .ongoing-page-theme .ongoing-card .editorial-tag {
    flex: none;
    white-space: nowrap;
    font-size: 11.5px !important;
    padding: 5px 10px !important;
  }

  /* Actions: Explore full width, then brochure + QR side by side */
  .ongoing-page-theme .ongoing-card .editorial-bottom-action-bar {
    display: grid !important;
    grid-template-columns: 1fr auto;
    gap: 8px !important;
    margin-top: 0 !important;
    align-items: stretch !important;
  }

  .ongoing-page-theme .ongoing-card .editorial-btns-group {
    display: contents !important;
  }

  .ongoing-page-theme .ongoing-card .editorial-btn {
    width: 100% !important;
    margin: 0 !important;
    justify-content: center !important;
    padding: 13px 10px !important;
    font-size: 11px !important;
    box-shadow: none !important;
    white-space: nowrap;
  }

  .ongoing-page-theme .ongoing-card .button-gold.editorial-btn {
    grid-column: 1 / -1;
  }

  .ongoing-page-theme .ongoing-card .editorial-rera-qr-box {
    width: 46px !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 3px !important;
    align-self: center;
  }

  .ongoing-page-theme .ongoing-card .editorial-rera-qr-box img {
    width: 100% !important;
    height: 100% !important;
  }
}

@media (max-width: 600px) {
  /* Let the project cards use the phone's width instead of the wide section gutters */
  .ongoing-page-theme #projectsListSection {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .ongoing-page-theme #projectsListSection #ongoingProjectsGrid {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }

  .ongoing-page-theme #projectsListSection .section-tag {
    display: none;
  }
}

@media (max-width: 600px) {
  /* Highlight tags wrap onto a second line so none are cut off at the screen edge */
  .ongoing-page-theme .ongoing-card .editorial-tags-row {
    flex-wrap: wrap !important;
    overflow: visible !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
  }

  .ongoing-page-theme .ongoing-card .editorial-tag {
    flex: 0 1 auto;
    max-width: 100%;
    white-space: normal;
  }
}

/* Phones: four project tabs as a 2x2 grid so none hide off the edge */
@media (max-width: 600px) {
  .project-filters {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 4px !important;
    overflow: visible !important;
    border-radius: 20px !important;
  }

  .project-filters .filter-tab {
    width: 100%;
    padding: 9px 8px !important;
    text-align: center;
    white-space: nowrap;
  }

  .project-filters .filter-tab[hidden] {
    display: none;
  }
}

/* ==========================================================================
   Brand logo: sharp vector logo, larger than the name beside it, with a light sheen
   ========================================================================== */
.brand .brand-mark {
  position: relative;
  display: inline-block;
  flex: none;
  line-height: 0;
}

.brand .brand-mark img {
  display: block;
  width: auto;
  max-width: none !important;
  object-fit: contain;
}

/* Sheen that sweeps across the logo shape every few seconds */
.brand .brand-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask: url('assets/brand/sahjanand-logo.svg') center / contain no-repeat;
  mask: url('assets/brand/sahjanand-logo.svg') center / contain no-repeat;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .85) 50%, transparent 62%) 160% 0 / 250% 100% no-repeat;
  animation: brandShine 7s ease-in-out 3s infinite;
}

@keyframes brandShine {
  0% { background-position: 160% 0; }
  22%, 100% { background-position: -60% 0; }
}

/* No sheen while the intro logo is still flying into the header */
.brand .brand-mark:has(img.is-dock-target)::after {
  display: none;
}

/* Header (dark bar) */
.site-header .brand {
  gap: 12px;
}

.site-header .brand .brand-mark img {
  height: 76px !important;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, .12)) drop-shadow(0 3px 6px rgba(0, 0, 0, .45));
  transition: height .3s ease, transform .3s ease;
}

.site-header.scrolled .brand .brand-mark img {
  height: 64px !important;
}

.site-header .brand > span:not(.brand-mark) {
  font-size: 13px;
  letter-spacing: .12em;
  line-height: 1.05;
}

.site-header .brand > span:not(.brand-mark) small {
  font-size: 7.5px;
  letter-spacing: .32em;
}

/* Footer (light sand) */
.site-footer .footer-brand {
  gap: 14px;
}

.site-footer .footer-brand .brand-mark img {
  height: 84px !important;
  filter: drop-shadow(0 4px 10px rgba(60, 40, 15, .15));
}

.site-footer .footer-brand > span:not(.brand-mark) {
  font-size: 14px !important;
  letter-spacing: .1em !important;
}

.site-footer .footer-brand > span:not(.brand-mark) small {
  font-size: 7px !important;
}

@media (max-width: 991px) {
  .site-header .brand .brand-mark img {
    height: 68px !important;
  }

  .site-header.scrolled .brand .brand-mark img {
    height: 58px !important;
  }
}

@media (max-width: 768px) {
  .site-header .brand {
    gap: 10px;
  }

  .site-header .brand .brand-mark img {
    height: 64px !important;
  }

  .site-header.scrolled .brand .brand-mark img {
    height: 56px !important;
  }

  .site-header .brand > span:not(.brand-mark) {
    font-size: 11.5px;
  }

  .site-header .brand > span:not(.brand-mark) small {
    font-size: 6.5px;
    letter-spacing: .26em;
  }

  .site-footer .footer-brand .brand-mark img {
    height: 80px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand .brand-mark::after {
    animation: none;
    display: none;
  }
}

/* Intro splash: the vector logo has no built-in margin, so it is sized to sit fully
   inside the 220px inner ring (and 165px on phones) with clear space around it */
.intro-docking-logo {
  width: 148px;
  max-height: none;
}

.intro-logo-shimmer {
  -webkit-mask-image: url("assets/brand/sahjanand-logo.svg");
  mask-image: url("assets/brand/sahjanand-logo.svg");
  -webkit-mask-size: 148px auto;
  mask-size: 148px auto;
}

@media (max-width: 768px) {
  .intro-docking-logo {
    width: 110px;
    max-height: none;
  }

  .intro-logo-shimmer {
    -webkit-mask-size: 110px auto;
    mask-size: 110px auto;
  }
}

/* Map: running projects get a blue pin; popup name readable on the white card */
.pin-icon.blue { background: #2f6bd1; box-shadow: 0 0 0 3px rgba(47, 107, 209, 0.28); }
.item-dot.blue { background: #2f6bd1; }
.popup-badge.blue { background: #2f6bd1; color: #fff; }
.map-popup-card h4 { color: #1f2430; }
.map-popup-card .popup-gujarati { color: #c06a10; }
.map-popup-card p { color: #5d6470; }
.map-popup-card .popup-directions { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 600; color: #2f6bd1; text-decoration: none; }
.map-popup-card .popup-directions:hover { text-decoration: underline; }
