/* =========================
   THEME COLORS & BASE
   ========================= */
:root {
  --rose-pink: #e58ab2;
  --lavender: #c8a2c8;
  --blush: #fce8f0;
  --soft-ivory: #fff9fc;
  --plum: #4a305d;
  --muted-text: #7c5b80;
  --shadow: rgba(0, 0, 0, 0.08);
  --max-width: 1100px;
  --vh: 100vh;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
html {
  --vh: 1vh;
}
/* fallback for dynamic vh */
html {
  --vh: 1vh; /* fallback until JS sets real value */
}
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--plum);
  background: var(--soft-ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* =========================
   PRELOADER + PETALS (cinematic)
   ========================= */
#preloader {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
  z-index: 9999;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-logo {
  width: 220px;
  opacity: 0;
  transform: scale(0.92);
  animation: prelogo 1.2s cubic-bezier(0.2, 0.9, 0.3, 1) forwards 0.15s;
}
@keyframes prelogo {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  60% {
    opacity: 1;
    transform: scale(1.06);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
/* Petals (pink) */
.petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.petals span {
  position: absolute;
  top: -40px;
  font-size: 16px;
  opacity: 0.95;
  color: #ffb7c5;
  transform-origin: center;
  animation: fall linear infinite;
  text-shadow: 0 2px 6px rgba(255, 183, 197, 0.5);
}
@keyframes fall {
  0% {
    transform: translateY(-40px) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translateY(55vh) translateX(var(--x)) rotate(180deg);
  }
  100% {
    transform: translateY(110vh) translateX(calc(var(--x) * 2)) rotate(360deg);
    opacity: 0;
  }
}
/* =========================
   HEADER
   ========================= */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999999;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-logo {
  height: 65px;
  cursor: pointer;
}
.header-nav {
  display: flex;
  gap: 12px;
  align-items: center;
}
.header-btn {
  background: var(--rose-pink);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}
.header-btn.ghost {
  background: transparent;
  color: var(--plum);
  border: 2px solid var(--rose-pink);
}
.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
}
@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }
  .header-nav {
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    padding: 18px 0;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-200%);
    transition: transform 0.28s ease;
  }
  .header-nav.open {
    transform: translateY(0);
  }
  .header-btn {
    width: 84%;
    text-align: center;
    padding: 12px 0;
    border-radius: 10px;
  }
}
/* ====== HEADER SHRINK + SWAP BEHAVIOR ====== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}
/* Inner container */
.header-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.3s ease;
}
/* Brand (Logo + Home icon overlayed) */
.header-brand {
  position: relative;
  width: 65px; /* fixed width to avoid shift */
  height: 65px; /* fixed height to prevent expansion */
}
/* Logo and Home share same space */
.header-logo,
.header-home {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
/* Default state — show logo, hide home */
.header-logo {
  opacity: 1;
  transform: scale(1);
}
.header-home {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}
/* When scrolled */
.header-scrolled .header-container {
  padding: 6px 20px; /* reduced height */
}
.header-scrolled .header-logo {
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
}
.header-scrolled .header-home {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
/* =========================
   HERO
   ========================= */
.hero {
  height: var(--vh);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: url("../images/hero.webp") center/cover no-repeat fixed;
}
.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(255, 249, 252, 0.5),
    rgba(252, 232, 240, 0.85)
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}
.hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.6rem;
  margin: 0 0 10px;
}
.hero h1 span {
  color: var(--rose-pink);
}
.hero p {
  margin: 0 0 18px;
  color: var(--muted-text);
  font-size: 1.05rem;
}
.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
/* Buttons */
.btn {
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: 0.3s ease;
}
.btn.primary {
  background: linear-gradient(90deg, var(--rose-pink), var(--lavender));
  color: #fff;
}
.btn.secondary {
  border: 2px solid var(--rose-pink);
  color: var(--plum);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px var(--shadow);
}
@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column; /* stack vertically */
    align-items: stretch; /* all children same width */
    max-width: 380px;
    margin: 0 auto;
  }

  .hero-buttons .btn {
    width: 100%; /* equal width buttons */
    text-align: center;
  }
}

/* ============================================
   ABOUT SECTION — FINAL REFACTORED VERSION
   ============================================ */

/* Overall container */
.about-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* Background layer */
.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/low-poly-grid-haikei.svg");
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}

/* Content above BG */
.about-intro,
.intro-inner,
.intro-photo,
.intro-text {
  position: relative;
  z-index: 2;
}

/* ============================================
   BASE LAYOUT — ALL SCREENS
   ============================================ */
.about-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 0 20px;
}

.intro-inner {
  width: 100%;
  max-width: 1200px;
  display: flex;
  gap: 40px;
}

.intro-photo {
  flex: 0 0 45%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.intro-text {
  flex: 1;
  color: var(--plum);
}

/* ============================================
   RESPONSIVE — MID SCREENS (< 900px)
   ============================================ */
@media (max-width: 900px) {
  .intro-inner {
    gap: 6%;
  }
  .intro-photo {
    flex: 0 0 46%;
  }
}

/* ============================================
   PHONE PORTRAIT (< 600px, portrait)
   ============================================ */
@media (max-width: 600px) and (orientation: portrait) {
  .intro-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .intro-photo {
    flex: 0 0 auto;
    width: 78%;
    margin-bottom: 18px;
  }
}

/* ============================================
   PHONE LANDSCAPE (< 600px, landscape)
   ============================================ */
@media (max-width: 600px) and (orientation: landscape) {
  .intro-inner {
    flex-direction: row;
    align-items: center;
  }
  .intro-photo {
    flex: 0 0 40%;
  }
}

/* ============================================
   MOBILE TYPOGRAPHY (< 600px)
   ============================================ */
@media (max-width: 600px) {
  .about-section .intro-text h2 {
    font-size: 1.7rem;
    line-height: 1.2;
  }
  .about-section .intro-text .subtitle {
    font-size: 0.95rem;
  }
  .about-section .intro-text p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.65rem;
  }

  /* slightly tighter layout */
  .intro-inner {
    gap: 8px !important;
  }
}

/* ============================================
   HERO IMAGE LOGIC
   - full-width hero on small screens
   - card image only on large screens
   ============================================ */
.intro-photo-hero {
  width: 100%;
  display: block;
}

.intro-photo-hero img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* large screens → show card, hide hero */
@media (min-width: 601px) {
  .intro-photo-hero {
    display: none;
  }
  .intro-photo {
    display: flex;
  }
}

/* small screens → show hero, hide card */
@media (max-width: 600px) {
  .intro-photo {
    display: none;
  }
  .intro-photo-hero {
    display: block;
    margin: 0 !important;
  }
  .intro-photo-hero img {
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}

/* ============================================
   FULL-BLEED HERO (REMOVE ALL TOP SPACING)
   ============================================ */
@media (max-width: 600px) {
  .about-section,
  .about-intro,
  .intro-inner,
  .intro-photo-hero {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  /* Remove outer horizontal padding too */
  .about-intro {
    padding: 0 !important;
  }

  .intro-inner {
    margin: 0 !important;
    padding: 0 !important;
  }
}
@media (min-width: 901px) {
  .intro-inner {
    align-items: center;
  }
}

/* -------- SCRUB OVERLAY (absolute) --------
   This overlay sits on top of the intro. It starts off-screen right (via JS) and is scrubbed across.
*/
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: #8b5e3c;
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  letter-spacing: 0.5px;
  opacity: 0;
  animation: fadeHint 4s ease-out forwards;
  animation-delay: 1s;
  pointer-events: none;
  z-index: 50;
}
@keyframes fadeHint {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  10%,
  60% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
}

.scrub-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: var(--vh);
  z-index: 8;
  pointer-events: auto; /* allow clicks inside panels */
  overflow: hidden;
  touch-action: pan-y;
}

/* track width = panels * 100vw, we'll set it in CSS for 3 panels => 300% */
.horizontal-track {
  position: absolute;
  top: 40px;
  left: 0;
  height: 100%;
  display: flex;
  flex-wrap: nowrap;
  width: 300%;
}
/* Each panel is full viewport width */
.panel {
  flex: 0 0 100vw;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px;
}
/* Experience */
.experience-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  width: 80%;
  max-width: 620px;
  box-shadow: 0 10px 25px var(--shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.experience-card .big {
  font-size: 3rem;
  font-weight: 700;
  color: var(--lavender);
}
.divider {
  width: 60%;
  height: 2px;
  background: var(--rose-pink);
  margin: 18px auto;
}
/* Packages */
.package-teaser-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  width: 80%;
  max-width: 620px;
  height: 80%;
  box-shadow: 0 10px 25px var(--shadow);
  background: #111;
}

.package-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, var(--rose-pink), var(--lavender));
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  border: none;
  z-index: 5;
  pointer-events: auto;
}

/* Video fills the card like the old slideshow images */
.package-teaser-card .package-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none; /* so CTA remains clickable */
  background: #000; /* safe fallback while video loads */
}

/* 🎯 Slim down the Experience + Package cards by ~15% for better proportion */
@media (min-width: 769px) {
  .experience-card,
  .package-teaser-card {
    padding: 32px 24px; /* tighter padding, better balance */
  }

  .experience-card .big {
    font-size: 2.4rem; /* slightly reduced from 3rem */
  }

  .package-teaser-card .package-btn {
    padding: 10px 22px;
    font-size: 0.95rem;
  }
}
/* 🌸 Services Card — fix background bleed and right edge transparency */
.services-card {
  position: relative;
  z-index: 50; /* ensure above the pinned about section */
  width: 102vw; /* overshoot to cover viewport rounding */
  height: calc(var(--vh, 1vh) * 100);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 0 40px 0 var(--soft-ivory); /* paint over sub-pixel gap */
}
.services-card h2 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}
/* =========================
   SERVICES SECTION AFTER SCRUB
   ========================= */
.services-section {
  padding: 80px 6%;
  background: var(--blush);
}
.services-track {
  max-width: var(--max-width);
  margin: 0 auto;
}
.services-panel h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 4rem;
  color: var(--plum);
  text-align: center;
  margin-bottom: 20px;
}
.services-content ul {
  list-style: none;
  padding: 0;
  font-weight: 600;
  line-height: 1.8;
  color: var(--muted-text);
}

/* small tweaks */
@media (max-width: 420px) {
  .preloader-logo {
    width: 180px;
  }
  .experience-card .big {
    font-size: 2.2rem;
  }
}

/* Make sure horizontal area covers full screen when active */
.horizontal-track {
  background: var(--soft-ivory);
  height: calc(var(--vh, 1vh) * 100);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}
/* Fade in the horizontal section only when pinned */
.horizontal-track.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.horizontal-track.visible {
  opacity: 1;
  pointer-events: auto;
}
/* Cards same size + style */
.experience-card,
.package-teaser-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  width: clamp(280px, 60%, 520px);
  height: 320px;
  text-align: center;
  /* Removed flex layout – it breaks overlay */
  transition: transform 0.3s ease;
}

.experience-card:hover,
.package-teaser-card:hover {
  transform: translateY(-6px);
}

/* Keep card contents tidy */
.experience-card .big {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--lavender);
  margin: 0;
}
.experience-card .divider {
  width: 60%;
  height: 2px;
  background: var(--rose-pink);
  margin: 18px auto;
}
.experience-card .small-text {
  font-size: 1rem;
  color: var(--muted-text);
}
/* Keep the section consistent on mobile too */
@media (max-width: 768px) {
  .experience-card,
  .package-teaser-card {
    width: 90%;
    min-height: 280px;
  }
}
/* 🌸 Horizontal Track Layout */
.horizontal-track {
  height: calc(var(--vh, 1vh) * 100);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  position: relative;
  z-index: 10;
}
/* 1️⃣ Ghost Panel — fully transparent */
.ghost-panel {
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100);
  background: transparent !important; /* fully see-through */
  pointer-events: none; /* allows scroll & interaction to pass through */
}
/* 2️⃣ Combined Cards Panel */
.cards-panel {
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100);
  background: var(--soft-ivory);
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 2%;
}
/* Cards side by side on same page */
.cards-wrapper {
  display: flex;
  gap: 10vw;
  justify-content: center;
  align-items: center;
  width: 90%;
  max-width: 1200px;
}
/* Experience + Packages cards identical size */
.experience-card,
.package-teaser-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  width: clamp(280px, 60%, 520px);
  height: 320px;
  text-align: center;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .cards-wrapper {
    flex-direction: column;
    gap: 6vh;
  }
  .experience-card,
  .package-teaser-card {
    width: 90%;
    height: auto;
    min-height: 320px;
  }
}
/* 🧩 Remove space between cards panel and services panel */
.horizontal-track {
  gap: 0 !important;
}
.cards-panel {
  margin-right: 0 !important;
  padding-right: 0 !important;
}
.services-panel {
  margin-left: 0 !important;
  padding-left: 0 !important;
}
/* 🧩 Fix right-edge white gap at end of horizontal scroll */
.horizontal-track {
  width: calc(100vw * var(--panel-count, 3) + 2px);
}
/* Prevent micro-gap between the last card and edge of viewport */
.panel:last-child,
.services-card:last-child {
  margin-right: -1px;
}
/* 🎬 Cinematic Services Teaser Panel Background */
.panel.services-teaser {
  position: relative;
  background-image: url("../images/servicesbg.webp"); /* adjust path */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll; /* moves with horizontal scrub */
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.panel.services-teaser .services-card h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}
.panel.services-teaser .services-card p {
  font-size: 1.1rem;
  color: #fff;
  max-width: 600px;
  margin: 0 auto;
}
/* Services card on top */
.panel.services-teaser .services-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.05); /* subtle glass effect */
  backdrop-filter: blur(4px);
  padding: 2.5rem 3rem;
  border-radius: 16px;
  color: var(--ivory);
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
/* 🎯 Scroll Hint Overlay */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: hintFade 4s ease-out forwards;
  animation-delay: 1.5s;
  pointer-events: none;
  z-index: 50;
}
.scroll-hint span {
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  letter-spacing: 0.5px;
  color: #8b5e3c;
  opacity: 0.8;
}
/* SVG animation (gentle up-down motion) */
.scroll-arrow {
  animation: arrowBounce 1.8s ease-in-out infinite;
}
@keyframes arrowBounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.9;
  }
  50% {
    transform: translateY(6px);
    opacity: 0.6;
  }
}
/* Fade-in/out animation */
@keyframes hintFade {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  20%,
  70% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -6px);
  }
}
/* Hide hint on small screens after short delay (cleaner experience) */
@media (max-width: 768px) {
  .scroll-hint {
    bottom: 20px;
    animation: hintFade 3s ease-out forwards;
  }
}
/* === Small-screen card reduction (physical sizing, reliable) === */
@media (max-width: 600px) {
  .experience-card,
  .package-teaser-card {
    width: 90%; /* keep cards slightly inset on phones */
    max-width: 520px;
    height: 270px; /* smaller than desktop 320px */
    min-height: 240px;
  }

  .experience-card .big {
    font-size: 2rem; /* down from ~2.4-2.6rem */
    line-height: 1.05;
  }

  .package-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}
/* home icon hover/tap glow */
.header-home svg {
  transition: all 0.3s ease;
}
.header-home:hover svg,
.header-home:focus svg {
  filter: drop-shadow(0 0 6px rgba(200, 162, 200, 0.6));
  transform: scale(1.1);
}
/* for mobile tap (touch) glow — short visible flash */
@media (hover: none) {
  .header-home:active svg {
    filter: drop-shadow(0 0 10px rgba(200, 162, 200, 0.7));
    transform: scale(1.15);
  }
}
.about-section {
  position: relative;
  z-index: 1; /* ensures hero is visible above, scrub starts after */
}
.hero {
  position: relative;
  z-index: 2; /* stays visually on top */
  height: 100vh; /* hero should always be viewport height */
  overflow: hidden;
}
.panel.services-teaser {
  margin-bottom: -1px;
  background-color: #000; /* or a solid fallback under your image */
}
.services-section {
  position: relative;
  margin-top: -1px; /* tiny overlap prevents “blank” flash */
  z-index: 1;
}
/* --- Anti-gap fixes to prevent 1px seam between teaser and services --- */
.panel.services-teaser {
  margin-bottom: -1px !important;
  z-index: 2;
  background-color: transparent;
}
/* 🧩 Horizontal Scrub Context Fix */
.about-section {
  position: relative;
  overflow: hidden;
}
.horizontal-track {
  position: relative !important; /* was absolute; that pinned it visually */
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  will-change: transform;
  z-index: 6;
}
.panel {
  flex: 0 0 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Align all scrub panels to same height visually */
.horizontal-track .panel {
  height: calc(100vh - 2px); /* equalize height to avoid bottom band */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Ensure Services teaser matches the card panels vertically */
.panel.services-teaser {
  height: calc(100vh - 2px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.panel.services-teaser .services-card {
  transform: translateY(0); /* remove upward offset */
}

/* Add subtle spacing correction to avoid white gap */
.services-section {
  margin-top: -2px;
}

/* ============================================
   UNIFIED "VIEW PACKAGES" BUTTON (GLOBAL)
   ============================================ */
.view-packages-btn {
  background: var(--rose-pink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  transition: 0.25s ease;
  z-index: 10; /* ensure visible above slides */
  position: relative;
}

/* Disable hover transform for teaser button */
.package-teaser-btn:hover {
  transform: translate(-50%, -50%) !important;
  box-shadow: none !important;
}

/* ============================================
   TEASER CARD BUTTON POSITIONING (CENTERED)
   ============================================ */
.package-teaser-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 20 !important; /* ensure button on top */
}

/* ================================
   FINAL WHITE-BAND FIX
   ================================ */

/* Force scrub area to fully occupy viewport */
.about-section,
.scrub-overlay,
.horizontal-track,
.horizontal-track .panel {
  min-height: 100vh;
  height: 100vh;
}
/* Pull next section upward to eliminate micro-gap */
.services-section {
  margin-top: -0.5vh;
  position: relative;
  z-index: 5;
}
/* Safety for large screens where rounding differs */
@media (min-width: 1024px) {
  .panel.services-teaser {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .panel.services-teaser .services-card {
    transform: translateY(0);
  }
}

/* =====================================
   PACKAGES SECTION
   ===================================== */
.packages-section {
  padding: 4rem 1.5rem;
  background: var(--soft-ivory);
  color: var(--plum);
}

.packages-header {
  text-align: center;
  margin-bottom: 2rem;
}

.packages-header h2 {
  font-size: 2.8rem;
  font-family: "Cormorant Garamond", serif;
}

.package-tabs {
  margin-top: 1rem;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.tab-btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid rgba(90, 56, 86, 0.2);
  background: transparent;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
}

.tab-btn.active {
  background: var(--plum);
  color: var(--soft-ivory);
}

/* ====================================
   GRID VIEW
   ==================================== */
.package-grid {
  display: grid;
  gap: 24px;
}

/* 3×3 standard grid */
#standard {
  grid-template-columns: repeat(3, 1fr);
}

/* 3×1 express row */
#express {
  grid-template-columns: repeat(3, 1fr);
}

/* Cards show ONLY title */
.package-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* Hide details in grid */
.package-card .price,
.package-card ul,
.package-card button {
  display: none !important;
}

.package-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* ====================================
   EXPANDED PANEL
   ==================================== */
.pkg-expanded {
  position: fixed;
  inset: 0;
  padding: 40px 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pkg-expanded .expanded-shell {
  width: min(1200px, 94vw);
  height: calc(100vh - 80px);
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 40% 60%; /* ENFORCE PERFECT 50:50 SPLIT */
  box-shadow: 0 40px 80px rgba(18, 12, 20, 0.1);
}

/* Left panel */
.expanded-left {
  padding: 36px;
  overflow-y: auto;
}

.expanded-left h3 {
  font-size: 2rem;
  margin-top: 0;
  font-family: "Cormorant Garamond", serif;
}

.expanded-left .price {
  margin: 10px 0 18px;
  font-weight: 700;
  color: var(--plum);
}

/* Right panel portrait image */
.expanded-right {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expanded-right img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* Close button */
.expanded-close {
  position: absolute;
  right: 24px;
  top: 24px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  z-index: 10000;
}

/* Responsive */
@media (max-width: 900px) {
  .pkg-expanded .expanded-shell {
    grid-template-columns: 1fr;
    height: calc(100vh - 40px);
  }
  .expanded-right {
    height: 45vh;
  }
  .expanded-left {
    padding: 20px;
  }
}

/* ==========================================
   MOBILE PACKAGE CARD TYPOGRAPHY OPTIMIZATION
   ========================================== */
@media (max-width: 600px) {
  .package-grid {
    gap: 14px; /* tighter spacing */
  }

  /* Standard: make 2 columns instead of 3 on mobile */
  #standard {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Express stays 1 column on mobile */
  #express {
    grid-template-columns: 1fr;
  }

  /* Card styling adjustments */
  .package-card {
    padding: 16px;
    min-height: 140px;
    border-radius: 10px;
  }

  .package-card h3 {
    font-size: 1rem !important;
    line-height: 1.25 !important;
  }
}

/* ===============================
   EXPANDED PANEL – LUXURY LAYOUT
   =============================== */
.expanded-shell {
  display: grid;
  grid-template-columns: 40% 60%;
}

/* LEFT CONTAINER: perfect vertical & horizontal centering */
.expanded-left {
  padding: 40px;
  display: flex;
  flex-direction: column;

  /* Center entire block */
  justify-content: center;
  align-items: center;

  /* But allow internal alignment overrides */
  text-align: center; /* for title + price + button */
}

/* Title */
.expanded-left h3 {
  font-size: 2.2rem;
  margin: 0 0 12px 0;
  font-family: "Cormorant Garamond", serif;
}

/* Price */
.expanded-left .price {
  font-size: 1.7rem; /* larger AED */
  font-weight: 800;
  margin-bottom: 22px;
  color: var(--plum);
}

/* Services list wrapper */
.expanded-left ul {
  margin: 0 0 26px 0; /* spacing under list */
  padding: 0;
  list-style: none;

  /* keep text left aligned */
  text-align: left;
  width: 100%;
  max-width: 320px;

  /* luxury line spacing */
  line-height: 1.55;
}

.expanded-left ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
}

/* small custom bullet */
.expanded-left ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2rem;
  color: var(--plum);
}

/* Book Now button */
.expanded-left .package-cta {
  margin-top: 10px;
  align-self: center;
}

/* Mobile tweaks */
@media (max-width: 900px) {
  .expanded-left {
    padding: 24px;
  }

  .expanded-left h3 {
    font-size: 1.8rem;
  }

  .expanded-left .price {
    font-size: 1.4rem;
  }

  .expanded-left ul {
    max-width: 100%;
  }
}

/* Expanded panel Book Now button */
.expanded-left .package-cta {
  background: var(--plum) !important;
  color: var(--soft-ivory) !important;
  border: none !important;
  padding: 12px 26px !important;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* Hover (desktop only) */
.expanded-left .package-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Remove weird inherited styles on mobile tap */
.expanded-left .package-cta:active {
  transform: scale(0.97);
}

/* Extra breathing room below the packages section */
.packages-section {
  padding-bottom: 10rem !important; /* adjust value as you like */
}

/* ============================
   Expanded View Navigation — refined spacing + purple style
   ============================ */
.expanded-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 10080;

  display: flex;
  justify-content: space-between;
  padding: 0 50px; /* pushes buttons inward */
  pointer-events: none;
}

.expanded-nav button {
  pointer-events: auto;
  background: var(--plum); /* full purple */
  color: var(--soft-ivory); /* white icon */
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 500;

  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: 0.25s ease;
}

.expanded-nav button:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

/* Mobile: center the buttons below the image */
@media (max-width: 900px) {
  .expanded-nav {
    top: auto;
    bottom: 14px;
    transform: none;
    justify-content: center;
    gap: 26px;
    padding: 0;
  }
}

/* =====================================
   EXPANDED VIEW — PRICE STYLING
   ===================================== */

.expanded-price {
  font-size: 1.7rem; /* larger, premium */
  font-weight: 800; /* bold */
  color: var(--plum); /* your brand color */
  margin-bottom: 22px; /* spacing under price */
  text-align: center; /* aligns with centered layout */
  background: linear-gradient(135deg, #c9a46d, #f6e7c1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Mobile: make the image flush with bottom edge */
@media (max-width: 900px) {
  .pkg-expanded .expanded-shell {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 40px) !important;
  }

  .expanded-right {
    margin-top: auto; /* pushes image to the bottom */
    height: 50vh !important; /* image half of the modal */
    flex-shrink: 0;
  }

  .expanded-right img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover;
  }
}

/* ==============================
   PORTFOLIO — FULLSCREEN CAROUSEL
   ============================== */

.carousel-mode {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
  background: transparent; /* was #000 — make transparent */
}

.portfolio-carousel-viewport {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
  background: transparent !important;
}

/* put pseudo ABOVE the host's background but behind slides/UI */
.portfolio-carousel-viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0; /* was -1 — bring it forward */
  transition: background 0.5s ease, opacity 0.5s ease;
  background: linear-gradient(
    180deg,
    rgba(var(--dominant-rgb, 60, 40, 80), 0.18),
    rgba(var(--dominant-rgb, 60, 40, 80), 0.36)
  );
  pointer-events: none;
}

/* ensure slides and UI are above the pseudo */
.portfolio-carousel-track,
.portfolio-slide,
.portfolio-carousel-ui {
  position: relative;
  z-index: 0;
}
.portfolio-carousel-track {
  height: 100%;
  display: flex;
  flex-wrap: nowrap;
  will-change: transform;
}

.portfolio-slide {
  flex: 0 0 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-drag: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-slide img {
  height: 100vh; /* ALWAYS fill height */
  width: auto; /* maintain aspect ratio */
  max-width: none; /* prevent auto scaling down */
  object-fit: contain; /* no cropping */
  margin: 0 auto; /* center horizontally */
  transform: scale(1);
  transition: transform 1.2s ease-out;
}

/* Ken Burns subtle zoom */
.portfolio-slide.active img {
  transform: scale(1.03);
}

.portfolio-carousel-ui {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 12px;
  z-index: 20;
}

.portfolio-carousel-ui .counter {
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--plum);
}

.zoom-btn {
  background: rgba(74, 48, 93, 0.95);
  border: none;
  color: white;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

/* Zoomed mode */
.portfolio-slide.zoomed img {
  transform: scale(2) !important;
  cursor: grab;
  transition: none;
}

@media (max-width: 640px) {
  .portfolio-carousel-ui {
    top: 12px;
    right: 12px;
  }
}

.portfolio-carousel-viewport {
  background: transparent !important;
}

/* ===========================
   NAVIGATION ARROWS (DESKTOP)
   =========================== */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.65);
  color: var(--plum);
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;

  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);

  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.nav-arrow:hover {
  background: rgba(255, 255, 255, 0.88);
}

.left-arrow {
  left: 20px;
}

.right-arrow {
  right: 20px;
}

/* show arrows on desktops only */
@media (min-width: 900px) {
  .nav-arrow {
    opacity: 0.75;
  }

  .portfolio-carousel-viewport:hover .nav-arrow {
    opacity: 1;
  }
}

/* hide arrows when zoomed */
.portfolio-slide.zoomed ~ .nav-arrow {
  display: none !important;
}

.faq-section {
  background: #fff;
  padding: 6rem 1.5rem;
  max-width: var(--max-width);
  margin: auto;
}
.faq-section h2 {
  text-align: center;
  color: var(--plum);
  margin-bottom: 2.5rem;
}
.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--plum);
  text-align: left;
  cursor: pointer;
  padding: 0.5rem 0;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer p {
  margin-top: 0.5rem;
  color: var(--muted-text);
  line-height: 1.5;
}
.reviews-section {
  background: var(--plum);
  padding: 0.5rem 1.5rem 4rem;
  text-align: center;
}
.reviews-section h2 {
  color: var(--soft-ivory);
  font-family: "Cormorant Garamond", serif;
  font-size: 2.4rem;
  margin-bottom: 2.5rem;
}
/* The scrolling ticker */
.review-ticker {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.review-track {
  display: inline-flex;
  gap: 3rem;
  animation: scrollReviews 55s linear infinite;
}
.review-track span {
  font-size: 1.1rem;
  color: var(--soft-ivory);
  opacity: 0.9;
}
/* Animation */
@keyframes scrollReviews {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.review-ticker::before,
.review-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(to right, var(--plum), transparent);
}
.review-ticker::after {
  right: 0;
  transform: rotate(180deg);
}
.inquiry-section {
  background: #fff;
  padding: 5rem 1.5rem;
  text-align: center;
}
.inquiry-section h2 {
  color: var(--plum);
  font-family: "Cormorant Garamond", serif;
  font-size: 2.6rem;
  margin-bottom: 1rem;
}
.inquiry-sub {
  color: var(--muted-text);
  margin-bottom: 2.5rem;
}
#inquiryForm {
  max-width: 500px;
  margin: auto;
  display: grid;
  gap: 1rem;
}
#inquiryForm input {
  padding: 1rem 1.2rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.6rem;
  font-size: 1rem;
  outline: none;
}
.inquiry-btn {
  padding: 1rem;
  background: var(--plum);
  color: var(--soft-ivory);
  border: none;
  border-radius: 0.6rem;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.3s ease;
}
.inquiry-btn:hover {
  background: #3a254b;
}
.site-footer {
  background: var(--blush);
  padding: 3rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
/* Left side — allow logo to feel anchored */
.footer-left {
  flex: 1;
  display: flex;
  align-items: center;
}
.footer-logo {
  width: 380px; /* increased for presence */
  opacity: 0.9;
}
/* Right side — clean stacking */
.footer-right {
  flex: 1;
  text-align: right;
  max-width: 420px;
}
.footer-contact a {
  color: var(--plum);
  text-decoration: none;
  font-weight: 500;
}
.footer-address,
.footer-contact {
  color: var(--plum);
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
/* Bottom credits */
.footer-bottom {
  text-align: center;
  margin-top: 1rem; /* Creates visual grounding */
  padding-bottom: 0.5rem; /* Pulls text closer to bottom */
  color: var(--plum);
}
.footer-bottom p {
  margin: 0.1rem 0;
}
/* Copyright slightly larger than credit */
.footer-bottom p:first-child {
  font-size: 0.95rem;
  opacity: 0.9;
}
/* Behest credit 10% smaller + subtle */
.footer-bottom p:last-child {
  font-size: 0.86rem;
  opacity: 0.75;
}
/* Behest link styling */
.footer-bottom a {
  color: var(--plum);
  font-weight: 600;
  text-decoration: none;
}
/* ✅ Mobile remains clean */
@media (max-width: 700px) {
  .footer-bottom {
    margin-top: 2rem;
  }
  .footer-logo {
    align-items: center;
    width: 240px;
    margin-bottom: 0.5rem;
  }
  .footer-right {
    text-align: center;
    max-width: 100%;
  }
  .footer-left {
    justify-content: center; /* ✅ centers logo */
    margin-bottom: 0.1rem; /* breathing room before text */
  }
}

/* ==========================================================
   FIX — Restore visible button for the Package Teaser Card
   ========================================================== */

.package-teaser-card .package-teaser-btn {
  background: linear-gradient(90deg, var(--rose-pink), var(--lavender));
  color: #fff !important;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  z-index: 20 !important;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Disable hover movement specifically for teaser card button */
.package-teaser-card .package-teaser-btn:hover {
  transform: translate(-50%, -50%) !important;
  box-shadow: 0 0 22px rgba(0, 0, 0, 0.12);
}
