/* =========================================
   VARIABLES & DIAGONAL OVAL PAGE TRANSITION
   ─────────────────────────────────────────
   How the diagonal oval works:
   • SVG ellipse is pre-rotated 45° inside the SVG itself
   • Applied as mask-image to ::view-transition-new(root)
   • mask-size animates from 0% → 400vmax (grows outward)
   • The overlay just toggles opacity/visibility via .is-open
   • NOTHING on .service-popup-overlay or .service-popup-modal
     ever gets clip-path, rotation, or transform for the reveal.
========================================= */
:root {
  --tilted-oval: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><ellipse cx="50" cy="50" rx="25" ry="45" transform="rotate(45 50 50)" fill="black"/></svg>');
}

html.oval-active.oval-opening::view-transition-old(root) {
  animation: none;
  z-index: 1;
}
html.oval-active.oval-opening::view-transition-new(root) {
  z-index: 9999;
  mask-image: var(--tilted-oval);
  mask-position: center;
  mask-repeat: no-repeat;
  animation: oval-expand 0.9s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}
@keyframes oval-expand {
  from { mask-size: 0%; }
  to   { mask-size: 400vmax; }
}

/* =========================================
   REVEAL OVERLAY (page-to-page transitions)
========================================= */
.reveal-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  clip-path: circle(0% at center);
  transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1);
  visibility: hidden;
  pointer-events: none;
}
.reveal-overlay.is-active {
  visibility: visible;
  pointer-events: all;
  clip-path: circle(150% at center);
}
.close-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

/* =========================================
   SPACING, UTILITIES & SCROLL ANIMATIONS
========================================= */
.section-spacing { padding: 100px 0; }
.mb-5            { margin-bottom: 3rem; }
.text-center     { text-align: center; }
.text-white      { color: #fff; }
.max-w-800       { max-width: 800px; margin-left: auto; margin-right: auto; }

.fade-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}
.fade-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Text-split animation scaffolding */
body.home .hero-title .word,
.animate-title .word {
  display: inline-block;
  white-space: nowrap;
  margin-right: 0.2em;
  overflow: visible !important;
}
.hero-title .char,
.animate-title .char {
  display: inline-block;
  transform-origin: center center;
  vertical-align: top;
  padding-top: 20px;
  margin-top: -20px;
  /* FIX: Added overflow visible to prevent letter clipping */
  overflow: visible !important; 
}
.hero-title .line,
.animate-title .line {
  /* FIX: Added !important to guarantee it doesn't clip */
  overflow: visible !important; 
  vertical-align: top;
  padding-top: 10px;
}
body.home .animate-title { visibility: hidden; }

/* =========================================
   GLOBAL BUTTONS
========================================= */

/* ── Pill: dark bg + pink border (used site-wide) ── */
.btn-hero-transparent {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 15px !important;
  background-color: rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(4px) !important;
  border: 1px solid #af2283 !important;
  color: #fff !important;
  padding: 8px 8px 8px 24px !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  font-family: var(--font-body), sans-serif;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  transition: all 0.3s ease !important;
  width: fit-content !important;
}
.btn-hero-transparent:hover {
  background-color: rgba(175, 34, 131, 0.2) !important;
  border-color: #d44c9d !important;
  transform: translateY(-2px);
}

/* Shared arrow circle used by ALL pill buttons */
.arrow-circle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #af2283 !important;
  color: #fff !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  font-size: 16px !important;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease !important;
  flex-shrink: 0;
}
.btn-hero-transparent:hover .arrow-circle {
  transform: rotate(-45deg);
  background: #fff !important;
  color: #af2283 !important;
}

/* ── Underline link ── */
.btn-underline {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--embe-cyan);
  border-bottom: 2px solid var(--embe-cyan);
  padding-bottom: 4px;
  transition: all 0.3s ease;
}
.btn-underline:hover { color: #fff; border-color: #fff; }

/* ── Blue pill (legacy) ── */
.btn-pill-blue {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background-color: #0a498d;
  color: #fff;
  padding: 10px 10px 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-family: "Visby", sans-serif;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.btn-pill-blue:hover { background-color: #083a70; }

/* =========================================
   FULL PAGE PARALLAX (HOME ONLY)
========================================= */
body.home {
  background-image: url("/wp-content/uploads/2026/01/body-bg3.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: var(--embe-black);
}
body.home .section-spacing,
body.home .services-section,
body.home .stats-section,
body.home .testimonial-section,
body.home footer {
  background-color: rgba(30, 32, 33, 0.85) !important;
  backdrop-filter: blur(5px);
  position: relative;
  z-index: 2;
  box-shadow: none;
}
body.home .hero-section {
  background-color: #000;
  position: relative;
  z-index: 3;
}
@media (max-width: 768px) {
  body.home {
    background-attachment: scroll;
    background-position: top center;
  }
}

/* =========================================
   HERO SECTION
========================================= */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #000;
}
.hero-video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.hero-bottom-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 350px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(31,33,34,0) 0%, rgba(31,33,34,1) 100%);
}

.hero-container {
  position: absolute !important;
  z-index: 25 !important;
  left: 40px !important;
  right: 40px !important;
  bottom: 110px !important;
  max-width: none !important;
  width: auto !important;
  display: block !important;
  text-align: center !important;
}

.hero-section h1.hero-title {
  position: relative !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 20px 32px !important;
  box-sizing: border-box !important;
  z-index: 20 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: baseline !important;
  justify-content: center !important;
  gap: 2vw !important;
  font-family: "TanPearl", serif !important;
  color: #fff !important;
  white-space: nowrap !important;
  visibility: visible !important;
}
.hero-section h1.hero-title .hero-word {
  display: inline-flex !important;
  align-items: baseline !important;
  font-size: clamp(10px, 1.8vw, 24px) !important;
  white-space: nowrap !important;
}
.hero-section h1.hero-title .hero-cap {
  font-size: clamp(24px, 6vw, 80px) !important;
  line-height: 1 !important;
}

.hero-tagline {
  font-family: "Visby", sans-serif !important;
  font-size: 18px !important;
  line-height: 1.6 !important;
  margin-bottom: 20px !important;
  opacity: 0.9 !important;
  color: #fff !important;
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.hero-cta-block {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

@media (max-width: 1200px) {
  .hero-tagline { font-size: 20px !important; max-width: 90% !important; }
}
@media (max-width: 1024px) {
  .hero-section h1.hero-title { padding: 0 24px 28px !important; }
  .hero-container { left: 24px !important; right: 24px !important; bottom: 100px !important; }
  .hero-tagline { font-size: 18px !important; max-width: 90% !important; }
}
@media (max-width: 900px) {
  .hero-container { bottom: 120px !important; padding: 0 20px !important; }
}
@media (max-width: 768px) {
  .hero-section h1.hero-title { padding: 0 5px 20px !important; }
}
@media (max-width: 600px) {
  .hero-section h1.hero-title { justify-content: space-around !important; }
  .hero-container { bottom: 100px !important; }
  /* FIX: Applied clipping fixes directly to mobile media query as well */
  .section-title { font-size: 32px; line-height: 1.3; padding-top: 10px; overflow: visible; } 
}

/* =========================================
   TRANSITION & INTRO SECTIONS
========================================= */
.transition-section {
  padding: 120px 0;
  background-color: var(--embe-black);
  position: relative;
  z-index: 2;
}
.intro-section { background-color: var(--embe-black); }
.intro-title {
  font-family: var(--font-heading), serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.2;
}
.intro-desc {
  font-family: var(--font-body), sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto 36px;
}

/* =========================================
   SERVICES CAROUSEL
========================================= */
.services-section {
  padding-bottom: 10px;
  overflow: hidden;
  background: var(--embe-black);
}
.services-header { text-align: center; margin-bottom: 50px; }
.services-header .section-title { margin-bottom: 0; }

.services-track-wrapper { width: 100%; position: relative; }
.services-track {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 20px 40px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.services-track::-webkit-scrollbar { display: none; }

.service-card {
  min-width: 420px;
  max-width: 420px;
  background: #25282a;
  border-radius: 8px;
  overflow: hidden;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.3s ease;
  cursor: pointer;
}
.service-card:hover { transform: translateY(-6px); }

.card-image {
  width: 100%;
  height: 360px;
  overflow: hidden;
  position: relative;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  animation: image-pan 15s ease-in-out infinite alternate;
}
.service-card:hover .card-image img { animation-play-state: paused; }

@keyframes image-pan {
  0%   { transform: scale(1.15) translateX(-4%); }
  100% { transform: scale(1.15) translateX(4%); }
}

.card-content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.card-title {
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 8px;
  color: #fff;
}
.card-subtitle {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 14px;
}
.card-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
  flex: 1;
  line-height: 1.6;
}
.card-learn-more {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--embe-gold);
  transition: color 0.2s;
}
.service-card:hover .card-learn-more { color: #fff; }

@media (max-width: 768px) {
  .service-card { min-width: 85vw; max-width: 85vw; }
}

/* =========================================
   IT STARTS WITH YOU
========================================= */
.abstract-section {
  position: relative;
  padding: 80px 0;
  overflow: visible;
  background: var(--embe-black);
}
.abstract-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.abstract-content p.h3 { margin-bottom: 30px; line-height: 1.6; }

.you-title {
  font-family: var(--font-heading), serif;
  font-size: clamp(3rem, 5vw, 6rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
}
.highlight-you {
  font-family: var(--font-heading), serif;
  font-weight: 400;
  display: inline-block;
  padding-top: 30px;
  margin-top: 25px;
  background: linear-gradient(120deg, #c4a169 0%, #af2283 40%, #4a8c88 80%, #c4a169 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: 0;
  animation: textShine 5s linear infinite, fadeInUp 1s ease-out 0.5s forwards;
}
@keyframes textShine { to { background-position: 200% center; } }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); filter: blur(10px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

/* =========================================
   WHAT YOU WILL LEARN
========================================= */
.mntn-learning-section {
  padding-top: 60px;
  margin-top: -1px;
  background-color: var(--embe-black);
  position: relative;
  z-index: 10;
}
.mntn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  margin-bottom: 150px;
  position: relative;
}
.mntn-row.reverse { flex-direction: row-reverse; }

.mntn-content {
  flex: 1;
  position: relative;
  padding-left: 60px;
  z-index: 2;
}
.mntn-row.reverse .mntn-content { padding-right: 0; }

.mntn-big-num {
  position: absolute;
  top: -80px;
  left: -40px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 200px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  z-index: -1;
  pointer-events: none;
}
.mntn-row.reverse .mntn-big-num { left: -40px; right: auto; }

.mntn-eyebrow { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.mntn-line { width: 40px; height: 1px; background-color: var(--embe-gold); }
.mntn-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--embe-gold);
}
.mntn-title {
  font-family: var(--font-heading);
  font-size: 32px;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 20px;
}
.mntn-desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  max-width: 450px;
  margin-bottom: 0;
}

.mntn-image { flex: 1; position: relative; max-width: 500px; }
.mntn-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/4;
  object-fit: cover;
  display: block;
  filter: brightness(0.9) contrast(1.1);
  transform: scale(1.15);
  animation: image-pan 15s ease-in-out infinite alternate;
}
.modern-shape img, .shape-reverse img {
  border-radius: 50%;
  transition: border-radius 0.5s ease;
}
.modern-shape:hover img { border-radius: 20px; }

@media (max-width: 900px) {
  .mntn-row, .mntn-row.reverse {
    flex-direction: column-reverse;
    gap: 40px;
    margin-bottom: 100px;
  }
  .mntn-content, .mntn-row.reverse .mntn-content { padding-left: 20px; padding-right: 0; }
  .mntn-big-num, .mntn-row.reverse .mntn-big-num { font-size: 120px; top: -50px; left: 0; }
  .mntn-title { font-size: 28px; }
  .mntn-image { max-width: 100%; width: 100%; }
}

/* =========================================
   CLIENT SUCCESS STORIES & LIGHTBOX
========================================= */
.embe-testimonials {
  background-color: var(--embe-black);
  padding: 80px 0;
  overflow: hidden;
  text-align: center;
}
.embe-testimonials .section-title { color: #fff; margin-bottom: 50px; }

/* FIX: Ensure the section title has room for font ascenders so they don't get clipped */
.section-title { 
  font-size: 42px; 
  font-weight: 700; 
  margin-bottom: 10px; 
  line-height: 1.3; 
  padding-top: 10px; 
  overflow: visible; 
}

.marquee-wrapper { width: 100%; overflow: hidden; white-space: nowrap; position: relative; }
.marquee-track {
  display: inline-flex;
  animation: scroll-left 40s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.reel-card {
  width: 280px;
  height: 500px;
  margin: 0 15px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.reel-card:hover { transform: scale(1.02); }
.reel-card img { width: 100%; height: 100%; object-fit: cover; }

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.reel-card:hover .play-overlay { background: rgba(0, 0, 0, 0.4); }
.play-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #1f2122;
  padding-left: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.video-lightbox.active { display: flex; opacity: 1; }
.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}
.lightbox-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 600px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
#lightbox-video, #lightbox-iframe {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 8px;
  outline: none;
}
.lightbox-close {
  position: absolute;
  top: -40px;
  right: -40px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
}
@media (max-width: 768px) {
  .lightbox-close { top: -40px; right: 0; }
}

/* =========================================
   STATS SECTION
========================================= */
.stats-section { background: var(--embe-black); }
.stats-grid-clean {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 60px;
}
.stat-item {
  text-align: center;
  padding: 60px 20px;
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.stat-item:nth-child(3n) { border-right: none; }
.stat-number {
  font-family: var(--font-heading), serif;
  font-size: 4rem;
  line-height: 1;
  color: #c4a169;
  margin-bottom: 20px;
  font-weight: 400;
}
.stat-number span { display: inline-block; }
.stat-label {
  font-family: var(--font-body), sans-serif;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  letter-spacing: 0.05em;
  max-width: 250px;
  margin: 0 auto;
}
@media (max-width: 992px) {
  .stats-grid-clean { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(3n) { border-right: 1px solid rgba(255, 255, 255, 0.1); }
  .stat-item:nth-child(2n) { border-right: none; }
}
@media (max-width: 600px) {
  .stats-grid-clean { grid-template-columns: 1fr; border: none; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding: 40px 0; }
  .stat-number { font-size: 4rem; }
}

/* =========================================
   SERVICE POPUP MODAL
========================================= */
.service-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.service-popup-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.service-popup-modal {
  background: #25282a;
  border-radius: 16px;
  width: 100%;
  max-width: 860px;
  overflow: hidden;
  position: relative;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.service-popup-overlay.is-open .service-popup-modal {
  transform: translateY(0) scale(1);
}

/* Close button */
.service-popup-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 22px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.service-popup-close:hover { background: rgba(255, 255, 255, 0.16); }

/* Two-column grid */
.service-popup-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  height: 520px;
}

/* Left: image stack */
.service-popup-images {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 0 6px 6px;
  border-radius: 16px 0 0 16px;
  overflow: hidden;
  background: #1f2122;
}
.service-popup-images img {
  width: 100%;
  flex: 1;
  object-fit: cover;
  border-radius: 12px;
  min-height: 0;
}
.popup-img-main      { flex: 1.4; }
.popup-img-secondary { flex: 1; }

/* Right: content — tightened to avoid any scroll */
.service-popup-content {
  padding: 20px 24px 20px 18px;
  display: flex;
  flex-direction: column;
  /* FIX: Changed from overflow: hidden to allow the container to scroll vertically */
  overflow-y: auto; 
}

.popup-stars {
  font-size: 12px;
  color: #c4a169;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.popup-rating {
  font-family: "Visby", sans-serif;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

.popup-title {
  font-family: "TanPearl", serif;
  font-size: 22px;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.popup-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
  font-family: "Visby", sans-serif;
}
.popup-price { font-size: 15px; font-weight: 700; color: #c4a169; }
.popup-duration {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  gap: 4px;
}
.popup-duration::before { content: "🕐"; font-size: 11px; }

.popup-description {
  font-family: "Visby", sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}

.popup-section-label {
  font-family: "Visby", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4a169;
  margin-bottom: 3px;
}

.popup-ideal-for { margin-bottom: 10px; }
.popup-ideal-text {
  font-family: "Visby", sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* FIX: Changed margin to 24px, and removed flex: 1 and min-height: 0 so it uses natural height and triggers scrolling */
.popup-whats-included { margin-bottom: 24px; flex: none; }
.popup-includes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.popup-includes-list li {
  font-family: "Visby", sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.6);
  padding-left: 15px;
  position: relative;
}
.popup-includes-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #af2283;
  font-size: 13px;
  line-height: 1.4;
}
.popup-includes-list li strong {
  display: inline;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  margin-right: 4px;
}

/* CTA button — full-width pill */
.popup-cta-btn {
  /* FIX: Changed to auto so it pushes to the bottom of the scroll container naturally */
  margin-top: auto !important; 
  /* FIX: Prevent button from being squashed by overflowing text */
  flex-shrink: 0 !important; 
  display: flex !important;
  width: 100% !important;
  align-items: center !important;
  justify-content: space-between !important;
  background-color: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid #af2283 !important;
  color: #fff !important;
  padding: 8px 8px 8px 22px !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  font-family: "Visby", sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  box-sizing: border-box !important;
  transition: all 0.3s ease !important;
}
.popup-cta-btn:hover {
  background-color: rgba(175, 34, 131, 0.2) !important;
  border-color: #d44c9d !important;
}
.popup-cta-btn .arrow-circle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #af2283 !important;
  color: #fff !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 50% !important;
  font-size: 15px !important;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease !important;
  flex-shrink: 0 !important;
}
.popup-cta-btn:hover .arrow-circle {
  transform: rotate(-45deg);
  background: #fff !important;
  color: #af2283 !important;
}

/* Mobile */
@media (max-width: 650px) {
  .service-popup-inner {
    grid-template-columns: 1fr;
    height: auto;
  }
  .service-popup-images {
    flex-direction: row;
    padding: 6px 6px 0;
    height: 180px;
    border-radius: 12px 12px 0 0;
  }
  .service-popup-images img { border-radius: 8px; }
  .service-popup-content { padding: 16px 16px 18px; overflow-y: auto; }
  .popup-title { font-size: 20px; }
}

.card-image {
  width: 100%;
  height: 360px;
  min-height: 360px;
  max-height: 360px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  display: block;
  line-height: 0;
}

.card-image img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: scale(1.15);
  animation: image-pan 15s ease-in-out infinite alternate;
}

/* =========================================
   POPUP FIXES: Scrollable Text + Sticky Button
========================================= */
.service-popup-content {
  padding: 0 !important; /* Padding moved to inner elements */
  display: flex;
  flex-direction: column;
  overflow: hidden !important; /* Locks the main container */
}

.popup-scroll-area {
  padding: 20px 24px 0 18px; /* Top, Right, Bottom, Left */
  flex: 1; /* Takes up all available space */
  overflow-y: auto; /* Scrolls ONLY the text */
  -webkit-overflow-scrolling: touch;
  
  /* Optional: Custom slim scrollbar so it looks elegant */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Webkit Scrollbar Styling */
.popup-scroll-area::-webkit-scrollbar {
  width: 5px;
}
.popup-scroll-area::-webkit-scrollbar-track {
  background: transparent;
}
.popup-scroll-area::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.popup-whats-included { 
  margin-bottom: 24px; /* Space at the very bottom of the scroll area */
  flex: none; 
}

.popup-sticky-bottom {
  padding: 15px 24px 20px 18px;
  background: #25282a; /* Matches the modal's background */
  border-top: 1px solid rgba(255, 255, 255, 0.08); /* Subtle divider line */
  flex-shrink: 0; /* Prevents the button from ever squashing */
  z-index: 5;
}

.popup-cta-btn {
  margin-top: 0 !important;
}

/* Mobile overrides for the new wrappers */
@media (max-width: 650px) {
  .popup-scroll-area {
    padding: 16px 16px 0 16px;
  }
  .popup-sticky-bottom {
    padding: 15px 16px 16px 16px;
  }
}

/* =========================================
   TEXT CLIPPING FIX ("Life is a dance" / Titles)
========================================= */
.section-title, 
.animate-title {
  line-height: 1.4 !important; /* Extra room for swirly font ascenders */
  padding-top: 15px !important; /* Pushes top down away from the invisible ceiling */
  padding-bottom: 10px !important; 
  overflow: visible !important;
}

/* Forces any JS animation wrappers to stop acting like masks */
.animate-title .word, 
.animate-title .char, 
.animate-title .line {
  overflow: visible !important;
}