/* ==========================================================================
   DWELLIS - Luxury Architecture & Real Estate Design System
   Font: Astetes & Tenor Sans
   ========================================================================== */

/* 1. Font Definitions */
@font-face {
  font-family: 'Astetes';
  src: url('./fonts/Astetes-BF675deaaaa9f10.otf') format('opentype'),
       url('./fonts/Astetes-BF675deaaa101f4.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* 2. Global Resets & Core System */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-color: #0d0d0d;
  color: #ffffff;
  font-family: 'Tenor Sans', 'Plus Jakarta Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Utility Class to enforce Astetes Font everywhere */
.font-astetes,
h1, h2, h3, h4, h5, h6,
.dwellis-about-heading {
  font-family: 'Astetes', serif !important;
}

.font-tenor {
  font-family: 'Tenor Sans', 'Plus Jakarta Sans', sans-serif !important;
}

.font-quote {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-style: italic !important;
}

/* ==========================================================================
   FELLA-NAV — Exact port from agentPritam47/fella-nav (Nav.jsx)
   Floating pill navbar · GSAP clip-path mega menu · Orange indicator
   ========================================================================== */

/* The floating pill navbar — fixed top: 20px, centered, w-[95vw] */
.fella-pill-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 92vw;
  max-width: 1400px;
  background: rgba(30, 30, 32, 0.68) !important;
  backdrop-filter: blur(18px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(12px, 1.2vw, 18px) clamp(16px, 2vw, 28px);
  z-index: 9999999 !important;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}

.fella-pill-nav__brand {
  font-family: 'Astetes', serif;
  color: #ffffff;
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fella-pill-nav__toggle {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 18px);
  padding: 0;
  cursor: pointer;
  user-select: none;
}

.fella-pill-nav__menu-label {
  color: #ffffff;
  font-family: 'Tenor Sans', sans-serif;
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 400;
  margin: 0;
  transition: opacity 0.2s;
}
.fella-pill-nav__toggle:hover .fella-pill-nav__menu-label {
  opacity: 0.75;
}

.fella-pill-nav__lines {
  position: relative;
  width: 22px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fella-pill-nav__line {
  position: absolute;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  left: 0;
  transform-origin: center;
}
.fella-pill-nav__line--top  { transform: translateY(-4px); }
.fella-pill-nav__line--bottom { transform: translateY(4px); }

/* The mega menu panel that clips in below the pill nav */
.fella-mega-menu {
  position: fixed;
  top: calc(5vw + 20px);
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  background: rgba(30, 30, 32, 0.88) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px;
  z-index: 9999998 !important;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  clip-path: inset(0% 0% 100% 0%);
}

.fella-mega-menu.is-open {
  pointer-events: auto !important;
}

.fella-mega-menu__inner {
  padding: 2.5vw;
  min-height: fit-content;
  display: flex;
  gap: 0;
}

/* LEFT PANEL — nav links + indicator */
.fella-mega-menu__links-col {
  width: 30%;
  display: flex;
  flex-direction: column;
  gap: 0.5vw;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 2vw;
  position: relative;
}

/* Warm skin/cream square indicator */
.fella-mega-menu__indicator {
  position: absolute;
  left: 0;
  top: 0;
  width: 1.2vw;
  height: 1.2vw;
  background: #E8DED4 !important; /* Skin/cream accent color */
  border-radius: 3px;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
}

.fella-mega-menu__link-row {
  display: flex;
  width: 100%;
  flex-direction: row;
  align-items: center;
  overflow: visible !important; /* Never clip link text */
  padding-left: 2vw;
}

.fella-mega-menu__link {
  font-family: 'Astetes', serif;
  font-size: 2.8vw;
  font-weight: 400;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
  overflow: visible !important;
  white-space: nowrap;
}
.fella-mega-menu__link:hover,
.fella-mega-menu__link.active {
  color: #E8DED4 !important; /* Skin/cream text hover */
}

/* The split-line class added by GSAP SplitText (simulated with overflow hidden on parent) */
.fella-mega-menu__link-row {
  overflow: hidden;
}

/* MIDDLE PANEL — contact info */
.fella-mega-menu__info-col {
  width: 25%;
  display: flex;
  flex-direction: column;
  gap: 1.5vw;
  padding: 0 2vw;
  color: rgba(255,255,255,0.7);
  font-size: 1.1vw;
  font-family: 'Funnel Sans', system-ui, sans-serif;
}

.fella-mega-menu__info-group {
  display: flex;
  flex-direction: column;
  gap: 0.2vw;
}

.fella-mega-menu__info-label {
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  font-size: 0.85vw;
  margin-bottom: 0.3vw;
  letter-spacing: 0.05em;
}

.fella-mega-menu__info-col p {
  margin: 0;
  overflow: hidden; /* for SplitText line masking */
}

/* RIGHT PANEL — two image cards */
.fella-mega-menu__images-col {
  width: 50%;
  display: flex;
  gap: 1vw;
  padding-left: 2vw;
}

.fella-mega-menu__img-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1vw;
}

.fella-mega-menu__img-label {
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  font-size: 0.85vw;
  font-family: 'Funnel Sans', system-ui, sans-serif;
  letter-spacing: 0.05em;
  margin: 0;
}

.fella-mega-menu__img-wrap {
  flex: 1;
  border-radius: 6px;
  overflow: hidden;
  min-height: 16vw;
}
.fella-mega-menu__img-wrap--featured {
  border: 2px solid #f97316; /* orange-500 border on featured card */
}

.fella-mega-menu__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   MOBILE — fella-nav at <= 768px
   On mobile: pill shrinks, lines stay visible, text hidden
   ============================================================ */
@media (max-width: 768px) {
  .fella-pill-nav {
    padding: 3vw 4vw;
    top: 3%;
    width: 92vw;
  }
  .fella-pill-nav__brand {
    font-size: 3.5vw;
  }
  .fella-pill-nav__menu-label {
    font-size: 3.5vw;
  }
  .fella-pill-nav__lines {
    width: 5vw;
  }
  .fella-pill-nav__line {
    width: 5vw;
  }
  .fella-pill-nav__line--top { transform: translateY(-0.8vw); }
  .fella-pill-nav__line--bottom { transform: translateY(0.8vw); }

  .fella-mega-menu {
    top: calc(14vw + 3%);
    width: 92vw;
  }
  .fella-mega-menu__inner {
    flex-direction: column;
    padding: 5vw;
    gap: 6vw;
  }
  .fella-mega-menu__links-col {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-right: 0;
    padding-bottom: 5vw;
    gap: 1vw;
  }
  .fella-mega-menu__link {
    font-size: 9vw;
  }
  .fella-mega-menu__indicator {
    width: 4vw;
    height: 4vw;
  }
  .fella-mega-menu__info-col {
    width: 100%;
    font-size: 3.5vw;
    gap: 4vw;
    padding: 0;
  }
  .fella-mega-menu__info-label {
    font-size: 2.5vw;
  }
  .fella-mega-menu__images-col {
    width: 100%;
    padding-left: 0;
    gap: 3vw;
  }
  .fella-mega-menu__img-wrap {
    min-height: 40vw;
  }
  .fella-mega-menu__img-label {
    font-size: 2.5vw;
  }
}

@media (max-width: 480px) {
  .fella-pill-nav {
    width: 94vw;
    top: 2%;
    padding: 4vw 5vw;
    border-radius: 4px;
  }
  .fella-pill-nav__brand { font-size: 4vw; }
  .fella-pill-nav__menu-label { font-size: 4vw; }
  .fella-mega-menu {
    top: calc(18vw + 2%);
    width: 94vw;
  }
  .fella-mega-menu__link { font-size: 11vw; }
  .fella-mega-menu__images-col { display: none; } /* hide images on very small screens */
}



/* 3. Hero Section Container */
.hero-section {
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100vh;
  min-height: 650px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Push content below the fella-pill-nav: top:5% + nav height ~6vw */
  padding-top: calc(5% + 6vw + 16px);
  box-sizing: border-box;
  z-index: 1;
  will-change: filter, opacity;
}

/* All sections after hero MUST stay at z-index: 10 so hero is completely covered and never bleeds through */
section:not(.hero-section),
.dwellis-about-section,
.featured-properties-section,
.property-type-section,
.marble-ticker-wrapper,
.why-dwellis-section,
footer {
  position: relative;
  z-index: 10 !important;
}

.dwellis-about-section {
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
  box-shadow: 0 -30px 80px rgba(0, 0, 0, 0.45);
}


/* 4. Hero Background & Crossfade Carousel */
.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 8s cubic-bezier(0.1, 0, 0.1, 1);
}

.hero-bg.active {
  opacity: 1;
  transform: scale(1);
}

/* Atmospheric Layered Gradient Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.25) 25%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.88) 100%),
    radial-gradient(circle at 30% 40%, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
  z-index: 2;
}

/* 5. Watermark Background Accent "A" */
.hero-watermark-a {
  position: absolute;
  top: -4rem;
  left: -2rem;
  font-family: 'Astetes', serif;
  font-size: clamp(20rem, 38vw, 42rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.14);
  line-height: 0.75;
  user-select: none;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: overlay;
}

/* 6. Header Navigation Bar */
.hero-header {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.2rem 4rem;
  width: 100%;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

/* Brand Logo */
.brand-logo {
  text-decoration: none;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: opacity 0.3s ease;
}

.brand-logo:hover {
  opacity: 0.85;
}

.logo-main {
  font-family: 'Astetes', serif;
  font-size: 1.65rem;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 300;
}

.logo-light {
  font-weight: 300;
}

.logo-bold {
  font-weight: 600;
  letter-spacing: 0.14em;
}

.logo-sub {
  font-family: 'Astetes', serif;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 4px;
}

.arrow-small {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Divider */
.nav-divider {
  width: 1px;
  height: 28px;
  background-color: rgba(255, 255, 255, 0.2);
  display: none; /* Subtly integrated */
}

/* Services Button / Link */
.btn-services {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Astetes', serif;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.2rem;
  position: relative;
  transition: all 0.3s ease;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.85);
}

.btn-services::after {
  content: '';
  position: absolute;
  bottom: -1.5px;
  left: 0;
  width: 0%;
  height: 1.5px;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.btn-services:hover::after {
  width: 100%;
}

.arrow-icon {
  width: 15px;
  height: 15px;
  transition: transform 0.3s ease;
}

.btn-services:hover .arrow-icon {
  transform: translate(3px, 3px);
}

/* Header Right Options */
.header-right {
  display: flex;
  align-items: center;
  gap: 2.8rem;
}

/* Scene Switcher Dots */
.scene-switcher {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.scene-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  background-color: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.scene-dot.active, .scene-dot:hover {
  background-color: #ffffff;
  border-color: #ffffff;
  transform: scale(1.25);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Language Selector */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Astetes', serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.lang-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.3s ease;
}

.lang-btn.active, .lang-btn:hover {
  color: #ffffff;
  font-weight: bold;
}

.lang-slash {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

/* Hamburger Menu Button */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  width: 38px;
  height: 30px;
}

.menu-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

.menu-toggle:hover .menu-line:first-child {
  transform: translateY(-1px);
}

.menu-toggle:hover .menu-line:last-child {
  transform: translateY(1px);
}

/* 7. Hero Content Layout (Desktop PC Version) */
.hero-content {
  position: relative;
  z-index: 5;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  padding: 1rem 4rem 3.5rem 4rem;
  pointer-events: none;
}

.hero-content * {
  pointer-events: auto;
}

/* Top Left Title: STUDY OF ARCHITECTURE */
.hero-title-top {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
  align-self: start;
  margin-top: 0.8rem;
}

.title-line {
  font-family: 'Astetes', serif;
  font-size: clamp(3.6rem, 7.8vw, 8.8rem);
  font-weight: 300;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  margin: 0;
}

.indent-architect {
  display: block;
}

/* Bottom Left Tagline: Exclusive design, timeless emotions */
.hero-tagline {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  align-self: end;
  margin-bottom: 0.8rem;
}

.tagline-line {
  font-family: 'Astetes', serif;
  font-size: clamp(1.4rem, 2.3vw, 2.4rem);
  font-weight: 300;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
}

/* Bottom Right Title: INTERIOR DESIGN */
.hero-title-bottom {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  align-self: end;
  text-align: right;
  margin-bottom: 0.8rem;
}

.text-right {
  text-align: right;
}

.hero-title-bottom .title-line {
  font-size: clamp(4.0rem, 8.8vw, 9.6rem);
  line-height: 0.85;
}

/* 8. Interactive Menu Drawer */
.menu-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 450px;
  max-width: 100vw;
  height: 100vh;
  background-color: rgba(13, 13, 13, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
}

.menu-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
}

.drawer-logo {
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  color: #ffffff;
}

.drawer-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.drawer-close:hover {
  transform: rotate(90deg);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.drawer-nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
}

.drawer-nav a:hover {
  color: #ffffff;
  padding-left: 10px;
}

/* 9. Responsiveness & Mobile Optimization */
@media (max-width: 1024px) {
  .hero-header {
    padding: 1.8rem 2.5rem;
  }
  
  .hero-content {
    padding: 1rem 2.5rem 2.5rem 2.5rem;
  }

  .header-left {
    gap: 1.5rem;
  }

  .header-right {
    gap: 1.8rem;
  }
}

/* MOBILE ONLY STYLES (Strictly applied <= 768px) */
@media (max-width: 768px) {
  .hero-header {
    padding: 1.5rem 1.2rem;
  }

  .btn-services {
    display: none;
  }

  .scene-switcher {
    display: none;
  }

  .header-right {
    gap: 1.2rem;
  }

  .hero-watermark-a {
    font-size: 19rem;
    top: -2.5rem;
    left: -2.5rem;
    opacity: 0.18;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem 1.2rem 3rem 1.2rem;
  }

  /* Mobile Title Stacking */
  .hero-title-top {
    order: 1;
    grid-column: auto;
    grid-row: auto;
    margin-top: auto;
    text-align: left;
  }

  .hero-title-top .title-line {
    font-size: clamp(2.3rem, 10.5vw, 3.6rem);
    line-height: 0.95;
  }

  .hero-title-bottom {
    order: 2;
    grid-column: auto;
    grid-row: auto;
    align-self: flex-end;
    text-align: right;
    margin-right: 0.2rem;
    margin-top: 0.6rem;
    margin-bottom: auto;
  }

  .hero-title-bottom .title-line {
    font-size: clamp(2.3rem, 10.5vw, 3.6rem);
    line-height: 0.92;
  }

  .hero-tagline {
    order: 3;
    grid-column: auto;
    grid-row: auto;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    align-self: flex-start;
  }

  .tagline-line {
    font-size: clamp(1.35rem, 5.8vw, 2.1rem);
    line-height: 1.22;
  }
}

/* ==========================================================================
   10. DWELLIS ABOUT SECTION (Exact Pixel to Pixel as in Figma Screenshot)
   ========================================================================== */
.dwellis-about-section {
  width: 100%;
  background-color: #FAF6F0;
  color: #000000;
  padding: 96px 0;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.dwellis-about-container {
  width: 100%;
  max-width: 1428px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.dwellis-about-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.dwellis-about-text-group {
  display: flex;
  flex-direction: column;
  gap: 23px;
  max-width: 860px;
}

.dwellis-about-tag {
  font-family: 'Geist Mono', monospace, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 19.6px;
  text-transform: uppercase;
  color: #000000;
  opacity: 0.6;
  letter-spacing: 0.02em;
}

.dwellis-about-heading {
  font-family: 'Funnel Sans', system-ui, -apple-system, sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 38.4px;
  color: #000000;
  letter-spacing: -0.01em;
}

.dwellis-about-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  background-color: #F0E6DC;
  border-radius: 12px;
  color: #000000;
  font-family: 'Funnel Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
  outline: 1px solid #F0E6DC;
  outline-offset: -1px;
}

.dwellis-about-btn:hover {
  background-color: #e5d8cb;
  border-color: #e5d8cb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Horizontal Cards Carousel Slider (Infinite Left Marquee ←) */
.dwellis-carousel-wrapper {
  width: 100%;
  overflow: hidden;
  user-select: none;
  padding-bottom: 8px;
}

@keyframes dwellisMarqueeLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-2480px); /* 5 cards * (480px + 16px gap) = 2480px */
  }
}

.dwellis-carousel-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: dwellisMarqueeLeft 25s linear infinite;
  will-change: transform;
}

.dwellis-carousel-track:hover {
  animation-play-state: paused;
}

/* NO HOVER ANIMATION ON CARDS */
.dwellis-card {
  width: 480px;
  height: 600px;
  flex: 0 0 480px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background-color: #e8ded4;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transform: none !important;
  transition: none !important;
}

.dwellis-card:hover {
  transform: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

.dwellis-card-img {
  width: 100%;
  height: 100%;
  max-width: 480px;
  object-fit: cover;
  border-radius: 24px;
  display: block;
  pointer-events: none;
  transform: none !important;
  transition: none !important;
}

/* Responsiveness for Dwellis About Section */
@media (max-width: 1024px) {
  .dwellis-about-section {
    padding: 64px 0;
  }
  .dwellis-about-container {
    padding: 0 24px;
  }
  .dwellis-card {
    width: 380px;
    height: 480px;
    flex: 0 0 380px;
  }
  @keyframes dwellisMarqueeLeft {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-1980px); /* 5 * (380px + 16px) */
    }
  }
}

@media (max-width: 768px) {
  .dwellis-about-section {
    padding: 48px 0;
  }
  .dwellis-about-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .dwellis-about-heading {
    font-size: 24px;
    line-height: 30px;
  }
  .dwellis-card {
    width: 260px !important;
    height: 340px !important;
    flex: 0 0 260px !important;
  }
}

/* ==========================================================================
   11. FEATURED PROPERTIES SECTION (Exact Figma Match)
   ========================================================================== */
.featured-properties-section {
  width: 100%;
  background-color: #F0E6DC !important;
  color: #000000;
  padding: 96px 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

#propPrevBtn:hover, #propNextBtn:hover {
  background: #f5f5f5 !important;
  transform: translateY(-1px);
}

.property-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.12) !important;
}

@media (max-width: 1024px) {
  .featured-properties-section {
    padding: 64px 0;
  }
  .property-card {
    width: 520px !important;
    height: 400px !important;
    flex: 0 0 520px !important;
  }
}

@media (max-width: 768px) {
  .featured-properties-section {
    padding: 48px 0;
  }
  .property-card {
    width: calc(88vw) !important;
    height: 360px !important;
    flex: 0 0 calc(88vw) !important;
  }
  .property-card-overlay {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
}

/* ==========================================================================
   12. PROPERTY TYPE SECTION (Exact Figma Match)
   ========================================================================== */
.property-type-section {
  width: 100%;
  background-color: #FAF6F0;
  color: #000000;
  padding: 96px 0 144px 0;
  overflow: hidden;
  position: relative;
}

.property-type-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

@media (max-width: 1024px) {
  .property-type-section {
    padding: 64px 0 96px 0;
  }
  .property-type-layout {
    flex-direction: column !important;
  }
  .property-type-main-img {
    width: 100% !important;
    min-width: 100% !important;
    height: 480px !important;
  }
}

@media (max-width: 768px) {
  .property-type-section {
    padding: 48px 0 64px 0;
  }
  .property-type-grid {
    grid-template-columns: 1fr !important;
  }
  .property-type-card {
    height: auto !important;
    padding: 28px !important;
    gap: 24px !important;
  }
}

/* ==========================================================================
   13. MARBLE TICKER BANNER & WHY DWELLIS SECTION (Exact Figma Match)
   ========================================================================== */
@keyframes marbleMarqueeLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marble-ticker-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  user-select: none;
  padding: 24px 0;
  background: #121212;
  background-image: radial-gradient(circle at 50% 50%, #2a2a2a 0%, #121212 100%);
  border-top: 1px solid #222222;
  border-bottom: 1px solid #222222;
}

.marble-ticker-track {
  display: flex !important;
  width: max-content !important;
  white-space: nowrap !important;
  animation: dwellisMarqueeLeft 12s linear infinite !important;
}

.marble-ticker-track div,
.marble-ticker-track span {
  white-space: nowrap !important;
  font-family: 'Astetes', serif !important;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.12) !important;
}

@media (max-width: 1024px) {
  .why-cards-row {
    flex-direction: column !important;
  }
  .why-features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .why-dwellis-section {
    padding: 48px 0 64px 0;
  }
  .why-card {
    height: auto !important;
    padding: 28px !important;
    gap: 32px !important;
  }
  .why-features-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   14. TESTIMONIALS, FAQ, CTA BANNER & FOOTER RESPONSIVENESS
   ========================================================================== */
@media (max-width: 1024px) {
  .testimonial-cards-row {
    flex-direction: column !important;
  }
  .testimonial-img-card {
    width: 100% !important;
    min-width: 100% !important;
    height: 380px !important;
  }
  .testimonial-quote-card {
    height: auto !important;
    min-height: 280px !important;
    padding: 36px !important;
  }
  .footer-promo-row {
    flex-direction: column !important;
  }
  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .testimonials-section,
  .faq-section,
  .dwellis-footer {
    padding: 64px 0 !important;
  }
  .faq-container {
    padding: 0 24px !important;
  }
  .footer-links-grid {
    grid-template-columns: 1fr !important;
  }
  .cta-banner-section {
    height: auto !important;
    padding: 80px 20px !important;
  }
}

/* ==========================================================================
   15. COMPLETE MOBILE OPTIMIZATION SYSTEM (All Phones & Tablets)
   ========================================================================== */

/* --- About Section mobile --- */
@media (max-width: 768px) {
  .dwellis-about-container {
    padding: 0 20px !important;
  }
  .dwellis-about-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }
  .dwellis-about-text-group {
    max-width: 100% !important;
  }
  .dwellis-about-heading {
    font-size: 22px !important;
    line-height: 30px !important;
  }
  .dwellis-about-btn {
    width: fit-content;
  }
}

/* --- Featured Properties mobile --- */
@media (max-width: 768px) {
  .featured-properties-container,
  .featured-properties-track {
    padding: 0 20px !important;
  }
  .featured-properties-track {
    gap: 16px !important;
  }
}

/* --- Property Type mobile --- */
@media (max-width: 768px) {
  .property-type-container {
    padding: 0 20px !important;
  }
  .property-type-container h2 {
    font-size: 26px !important;
    line-height: 34px !important;
  }
  .property-type-layout {
    flex-direction: column !important;
    gap: 20px !important;
  }
  .property-type-main-img {
    width: 100% !important;
    height: 300px !important;
    object-fit: cover !important;
    border-radius: 20px !important;
  }
}

/* --- Marble Ticker mobile --- */
@media (max-width: 768px) {
  .marble-ticker-wrapper {
    padding: 14px 0 !important;
  }
}

/* --- Why Dwellis mobile --- */
@media (max-width: 768px) {
  .why-dwellis-container,
  .why-dwellis-section > div {
    padding: 0 20px !important;
  }
  .why-cards-row {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .why-card {
    width: 100% !important;
    min-width: 100% !important;
    padding: 24px !important;
  }
  .why-features-grid {
    padding: 0 20px !important;
  }
}

/* --- Testimonials mobile --- */
@media (max-width: 768px) {
  .testimonials-container {
    padding: 0 20px !important;
  }
  .testimonial-cards-row {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .testimonial-img-card {
    width: 100% !important;
    height: 300px !important;
  }
  .testimonial-quote-card {
    padding: 24px !important;
  }
  .testimonial-quote-card blockquote {
    font-size: 20px !important;
    line-height: 28px !important;
  }
  .testimonial-nav-row {
    gap: 12px !important;
  }
}

/* --- FAQ mobile --- */
@media (max-width: 768px) {
  .faq-section {
    padding: 60px 0 !important;
  }
  .faq-container {
    padding: 0 16px !important;
  }
  .faq-item {
    padding: 16px 18px !important;
    border-radius: 14px !important;
  }
  .faq-header {
    gap: 12px !important;
  }
  .faq-header span:first-child {
    font-size: 14px !important;
    line-height: 20px !important;
  }
}

/* --- CTA Banner mobile --- */
@media (max-width: 768px) {
  .cta-banner-section {
    padding: 60px 16px !important;
    min-height: 400px !important;
  }
  .cta-banner-section > * {
    padding: 28px 20px !important;
  }
  .cta-inner-card {
    padding: 28px 20px !important;
  }
}

/* --- Footer mobile --- */
@media (max-width: 768px) {
  .dwellis-footer {
    padding: 60px 0 32px 0 !important;
  }
  .footer-container {
    padding: 0 20px !important;
    gap: 40px !important;
  }
  .footer-promo-row {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .footer-promo-row > div:first-child {
    padding: 28px !important;
    height: auto !important;
    min-height: 220px !important;
  }
  .footer-promo-row > div:first-child h3 {
    font-size: 18px !important;
    line-height: 26px !important;
  }
  .footer-promo-row > div:last-child {
    height: 220px !important;
    min-height: 220px !important;
    border-radius: 20px !important;
    overflow: hidden !important;
  }
  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 28px 20px !important;
  }
  .footer-bottom-bar {
    flex-direction: column !important;
    gap: 16px !important;
    text-align: center !important;
  }
}

/* --- Extra small phones (<= 480px) --- */
@media (max-width: 480px) {
  .footer-links-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .next-timeline-box {
    width: 310px !important;
    height: 310px !important;
    border-radius: 16px !important;
  }
  .property-card {
    width: calc(92vw) !important;
    flex: 0 0 calc(92vw) !important;
    height: 320px !important;
  }
  .dwellis-card {
    width: 240px !important;
    height: 310px !important;
    flex: 0 0 240px !important;
  }
  .hero-title-top .title-line,
  .hero-title-bottom .title-line {
    font-size: clamp(2rem, 10vw, 3.2rem) !important;
  }
}

/* FEATURED PROPERTIES SECTION - DIAGONAL SKEW BORDER EFFECT */
.featured-properties-section {
  position: relative !important;
  background-color: #F0E6DC !important;
  clip-path: polygon(0 3.5vw, 100% 0, 100% calc(100% - 3.5vw), 0 100%) !important;
  margin-top: -3.5vw !important;
  margin-bottom: -3.5vw !important;
  padding-top: calc(96px + 3.5vw) !important;
  padding-bottom: calc(96px + 3.5vw) !important;
  z-index: 5 !important;
}


