/* ===================================================================
   Luxury Serviced Apartments — Custom Styles
   ===================================================================
   Hero (fading property images + SVG logo line-draw),
   Dev Breakdown (9 feature cards),
   Unique (Framer text-with-inline-images),
   CTA (redesigned with property image background)
   =================================================================== */


/* ===== HERO: FADING IMAGES + SVG LINE-DRAW ===== */

.lsa-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lsa-hero__slides {
  position: absolute;
  inset: 0;
}

.lsa-hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease;
  will-change: opacity;
}

.lsa-hero__slide.active {
  opacity: 1;
}

.lsa-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.55) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.lsa-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  max-width: 900px;
}

.lsa-hero__logo {
  margin-bottom: 2rem;
}

.lsa-hero__logo svg {
  width: 100%;
  max-width: 700px;
  height: auto;
}

/* Hidden until JS reveals via clip-path */
.lsa-hero__logo {
  clip-path: inset(0 100% 0 0);
}

.lsa-hero__logo svg path {
  fill: #fff;
}

.lsa-hero__title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
}

.lsa-hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.lsa-hero__scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.lsa-hero__scroll-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  animation: lsa-scroll-pulse 2s ease-in-out infinite;
}

@keyframes lsa-scroll-pulse {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}


/* ===== LIGHT MODE OVERRIDES ===== */

.pf-light .pf-overview__link {
  color: var(--pf-accent);
  background: rgba(var(--pf-accent-rgb), 0.06);
  border-color: rgba(var(--pf-accent-rgb), 0.25);
}

.pf-light .pf-overview__link:hover {
  background: rgba(var(--pf-accent-rgb), 0.12);
}


/* ===== DEV BREAKDOWN: 9 FEATURE CARDS ===== */

.lsa-devbreak {
  padding: calc(4rem + 4vh) 8vw;
  background: var(--pf-surface, #f5f5f5);
  color: var(--pf-heading);
  overflow: hidden;
}

.lsa-devbreak__intro {
  max-width: 56em;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.lsa-devbreak__heading {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--pf-heading, #fff);
  margin-bottom: 1rem;
}

.lsa-devbreak__text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--pf-text);
  max-width: 48em;
}

.lsa-devbreak__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.lsa-devbreak__card {
  background: #fff;
  border: 1px solid var(--pf-border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.lsa-devbreak__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 0 30px rgba(128, 57, 228, 0.06);
}

.lsa-devbreak__img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #f0f0f0;
}

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

.lsa-devbreak__card:hover .lsa-devbreak__img img {
  transform: scale(1.03);
}

.lsa-devbreak__title {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: var(--pf-heading, #fff);
  font-weight: 600;
  padding: 1.25rem 1.5rem 0.5rem;
  margin: 0;
}

.lsa-devbreak__desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--pf-text);
  padding: 0 1.5rem 1.5rem;
  margin: 0;
}


/* ===== UNIQUE: FRAMER TEXT-WITH-INLINE-IMAGES ===== */

.lsa-unique {
  min-height: auto;
  padding: calc(6rem + 6vh) 8vw;
  background: #f7f4f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lsa-unique__inner {
  max-width: 64em;
  text-align: center;
}

.lsa-unique__heading {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  color: #1a1a1a;
  margin: 0 0 2rem;
}

.lsa-inline-img {
  display: inline-block;
  width: 1.6em;
  height: 0.7em;
  object-fit: cover;
  border-radius: 0.1em;
  vertical-align: middle;
  margin: 0 0.06em;
  transform: translateY(-0.06em);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.lsa-unique__text {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  color: var(--pf-text);
  max-width: 40em;
  margin: 0 auto;
}


/* ===== CTA: REDESIGNED WITH LUXURY PROPERTY IMAGE ===== */

.lsa-cta {
  position: relative;
  padding: clamp(8rem, 15vh, 14rem) 8vw;
  overflow: hidden;
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lsa-cta::before {
  display: none; /* Override boilerplate grain */
}

.lsa-cta__bg-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.lsa-cta__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.lsa-cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Glass container wrapping all CTA content */
.lsa-cta__glass {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2rem;
  padding: clamp(3rem, 5vw, 5rem) clamp(2.5rem, 5vw, 5rem);
  max-width: 680px;
  width: 100%;
  box-shadow:
    0 0 80px rgba(128, 57, 228, 0.15),
    0 0 160px rgba(128, 57, 228, 0.08),
    0 25px 60px rgba(0, 0, 0, 0.3);
}

.lsa-cta__eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 1rem;
}

.lsa-cta .pf-cta__content {
  position: relative;
  text-align: center;
  flex-direction: column;
  align-items: center;
}

.lsa-cta .pf-cta__heading {
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.lsa-cta__subtext {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 2rem;
  max-width: 30em;
}

.lsa-cta .pf-cta__button.lsa-cta__btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 1rem 2.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.lsa-cta .pf-cta__button.lsa-cta__btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}


/* ===== RESPONSIVE ===== */

@media (max-width: 1200px) {
  .lsa-devbreak__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .lsa-hero {
    min-height: 500px;
  }

  .lsa-hero__content {
    max-width: 90%;
  }

  .lsa-hero__logo svg {
    max-width: 400px;
  }

  .lsa-hero__title {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
  }

  .lsa-devbreak {
    padding: 3rem 6vw;
  }

  .lsa-devbreak__grid {
    grid-template-columns: 1fr;
  }

  .lsa-devbreak__title {
    padding: 1rem 1.25rem 0.25rem;
  }

  .lsa-devbreak__desc {
    padding: 0 1.25rem 1.25rem;
  }

  .lsa-devbreak__card:hover {
    transform: none;
  }

  .lsa-unique {
    padding: 4rem 6vw;
  }

  .lsa-unique__heading {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    line-height: 1.5;
  }

  .lsa-cta {
    min-height: 400px;
    padding: 4rem 4vw;
  }

  .lsa-cta__glass {
    padding: 2.5rem 2rem;
    border-radius: 1.5rem;
  }

  .lsa-cta__bg-img {
    filter: blur(3px);
    opacity: 0.4;
  }
}

@media (max-width: 480px) {
  .lsa-hero__logo svg {
    max-width: 300px;
  }

  .lsa-inline-img {
    width: 1.2em;
    height: 0.55em;
  }
}
