/* =====================================================
   DOMUS ARCHITECTURAL ISOMETRIC HERO SLIDER
   Clean, scoped styling for the homepage hero section
   Source implementation from 2167_orbital
   ===================================================== */

:root {
  --site-header-height: 58px;
}

/* Scoped hero wrapper (integrated with GSAP pinned scroll scene) */
.domus-hero-slider-section {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  max-height: none;
  margin-top: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  padding-top: var(--site-header-height, 58px) !important;
  padding-bottom: 0 !important;
  padding-left: clamp(24px, 5vw, 68px) !important;
  padding-right: clamp(24px, 5vw, 68px) !important;
  z-index: 5;
  overflow: hidden;
  box-sizing: border-box;
  background-color: #FAF9F6 !important;
  color: #0A0A0C;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Continuous ambient daylight gallery backdrop */
.domus-hero-slider-section .hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 75% 35%, rgba(255, 255, 255, 0.98) 0%, transparent 65%),
    radial-gradient(ellipse at 25% 80%, rgba(238, 235, 227, 0.55) 0%, transparent 70%),
    linear-gradient(to bottom, #FFFFFF 0%, #FAF9F6 50%, #F3F1EC 100%);
}

/* Subtle architectural grid */
.domus-hero-slider-section .hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 35%, transparent 80%);
}

/* Film grain texture */
.domus-hero-slider-section .hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.024;
  pointer-events: none;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Giant Background Watermark Numeral in Upper-Right area */
.domus-hero-slider-section .hero-watermark {
  position: absolute;
  top: clamp(6px, 1.5vh, 20px);
  right: clamp(24px, 5vw, 68px);
  left: auto;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(6.5rem, 13vw, 12rem);
  font-weight: 700;
  line-height: 0.8;
  color: rgba(10, 10, 12, 0.045);
  user-select: none;
  pointer-events: none;
  z-index: 1;
  text-align: right;
  transition: opacity 0.5s ease;
}

/* Main Hero Stage Area */
.domus-hero-slider-section .hero-body {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 10;
  min-height: 0;
}

/* -----------------------------------------------------
   LEFT SIDE: EDITORIAL CONTENT LAYOUT
   ----------------------------------------------------- */
.domus-hero-slider-section .hero-editorial {
  position: relative;
  width: clamp(280px, 24vw, 380px);
  max-width: 380px;
  z-index: 15;
  padding-left: clamp(0px, 1.5vw, 24px);
}

.domus-hero-slider-section .editorial-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #71717A;
  margin-bottom: 10px;
}

.domus-hero-slider-section .editorial-badge::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0A0A0C;
}

.domus-hero-slider-section .editorial-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 4.2vw, 4rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.06;
  color: #0A0A0C;
  margin-bottom: 8px;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.domus-hero-slider-section .editorial-meta {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #52525B;
  margin-bottom: 14px;
  transition: opacity 0.35s ease;
}

.domus-hero-slider-section .editorial-desc {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.62;
  color: #52525B;
  max-width: 380px;
  margin-bottom: 22px;
  transition: opacity 0.35s ease;
}

.domus-hero-slider-section .editorial-explore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #0A0A0C;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1.5px solid #0A0A0C;
  transition: gap 0.25s ease, border-color 0.25s ease;
}

.domus-hero-slider-section .editorial-explore:hover {
  gap: 16px;
  color: #0A0A0C;
}

.domus-hero-slider-section .editorial-explore svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.domus-hero-slider-section .editorial-explore:hover svg {
  transform: translateX(4px);
}

/* -----------------------------------------------------
   FEATURED ISOMETRIC BUILDING STAGE
   ----------------------------------------------------- */
.domus-hero-slider-section .hero-building-stage {
  position: absolute;
  left: 58.5%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(480px, 45vw, 680px);
  height: calc(100% - 10px);
  max-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1500px;
  perspective-origin: 50% 50%;
  pointer-events: auto;
  z-index: 10;
}

/* Ground architectural contact shadow plinth */
.domus-hero-slider-section .stage-plinth {
  position: absolute;
  bottom: 0%;
  left: 50%;
  width: clamp(320px, 32vw, 480px);
  height: 44px;
  transform: translateX(-50%) rotateX(75deg);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(10, 10, 15, 0.28) 0%, rgba(10, 10, 15, 0.07) 50%, transparent 75%);
  filter: blur(11px);
  pointer-events: none;
  z-index: 2;
}

/* Active & Transitioning Building Wrapper */
.domus-hero-slider-section .building-slide-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.domus-hero-slider-section .building-slide {
  position: absolute;
  bottom: 0%;
  left: 50%;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  transform-origin: 50% 90%;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.75s ease,
    visibility 0.75s ease;
}

/* Building Cutout Image */
.domus-hero-slider-section .building-slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 35px 50px rgba(0, 0, 0, 0.18))
         drop-shadow(0 15px 20px rgba(0, 0, 0, 0.08));
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Transparent padding compensation so all buildings match Ashtabhuja reference height */
.domus-hero-slider-section .building-slide[data-title="Shivam"] img,
.domus-hero-slider-section .building-slide[data-title="Shivam Pavilion"] img {
  transform: scale(1.14);
  transform-origin: center bottom;
}

.domus-hero-slider-section .building-slide[data-title="Mayuresh Trinity"] img,
.domus-hero-slider-section .building-slide[data-title="Mayuresh Sky Suites"] img {
  transform: scale(1.12);
  transform-origin: center bottom;
}

.domus-hero-slider-section .building-slide[data-title="Audumber Heights"] img {
  transform: translateY(4px) scale(1.11);
  transform-origin: center bottom;
}

.domus-hero-slider-section .building-slide[data-title="Trinity"] img {
  transform: scale(1.02);
  transform-origin: center bottom;
}

.domus-hero-slider-section .building-slide[data-title="Ashtabhuja"] img {
  transform: scale(1);
  transform-origin: center bottom;
}

/* Active Slide State */
.domus-hero-slider-section .building-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0px) translateZ(0px) rotateY(0deg) rotateX(0deg) scale(1);
  z-index: 20;
}

/* Outgoing slide exiting down & forward along isometric axis */
.domus-hero-slider-section .building-slide.exit-next {
  opacity: 0;
  visibility: visible;
  transform: translateX(-50%) translate3d(-100px, 110px, 80px) rotateY(-18deg) rotateX(8deg) scale(0.88);
  z-index: 10;
}

/* Incoming slide entering from top & background along isometric axis */
.domus-hero-slider-section .building-slide.enter-next {
  opacity: 0;
  visibility: visible;
  transform: translateX(-50%) translate3d(110px, -80px, -90px) rotateY(18deg) rotateX(-6deg) scale(1.08);
  z-index: 15;
}

/* Outgoing slide exiting up & backward for Prev */
.domus-hero-slider-section .building-slide.exit-prev {
  opacity: 0;
  visibility: visible;
  transform: translateX(-50%) translate3d(110px, -80px, -90px) rotateY(18deg) rotateX(-6deg) scale(1.08);
  z-index: 10;
}

/* Incoming slide entering from down & foreground for Prev */
.domus-hero-slider-section .building-slide.enter-prev {
  opacity: 0;
  visibility: visible;
  transform: translateX(-50%) translate3d(-100px, 110px, 80px) rotateY(-18deg) rotateX(8deg) scale(0.88);
  z-index: 15;
}

/* -----------------------------------------------------
   RESPONSIVE DESIGN & REDUCED MOTION
   ----------------------------------------------------- */
@media (max-width: 1024px) {
  .domus-hero-slider-section .hero-editorial {
    width: clamp(240px, 28vw, 320px);
    max-width: 320px;
  }

  .domus-hero-slider-section .editorial-title {
    font-size: 2.2rem;
  }

  .domus-hero-slider-section .hero-watermark {
    top: 6px;
    right: 20px;
    font-size: clamp(5.5rem, 13vw, 8.5rem);
  }

  .domus-hero-slider-section .hero-building-stage {
    left: 59%;
    top: 50%;
    width: clamp(380px, 46vw, 520px);
    height: calc(100% - 10px);
    max-height: 520px;
  }
}

@media (max-width: 820px) {
  .domus-hero-slider-section {
    height: auto;
    min-height: calc(100svh - var(--site-header-height, 58px));
    max-height: none;
    padding: calc(var(--site-header-height, 58px) + 16px) 20px 24px !important;
  }

  .domus-hero-slider-section .hero-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    margin: 0 auto;
  }

  .domus-hero-slider-section .hero-editorial {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .domus-hero-slider-section .editorial-title {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    margin-bottom: 6px;
  }

  .domus-hero-slider-section .editorial-desc {
    font-size: 0.82rem;
    margin-bottom: 14px;
    max-width: 90%;
  }

  .domus-hero-slider-section .hero-watermark {
    top: 6px;
    right: 16px;
    font-size: clamp(4.5rem, 16vw, 6.5rem);
  }

  .domus-hero-slider-section .hero-building-stage {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 420px;
    height: clamp(280px, 45vh, 400px);
    max-height: 400px;
    margin: 0 auto;
  }

  .domus-hero-slider-section .stage-plinth {
    width: clamp(240px, 60vw, 340px);
    bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .domus-hero-slider-section .building-slide,
  .domus-hero-slider-section .editorial-title,
  .domus-hero-slider-section .editorial-desc {
    transition: opacity 0.3s ease !important;
    transform: none !important;
  }
}
