/* ═══════════════════════════════════════════════════════════
   Forever Fera — Plan Showcase
   Crossfade slider + staggered reveal + luxury dark aesthetic
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg:           #0c0910;
  --bg2:          #13101a;
  --bg3:          #1c1726;
  --text:         #f0ecf5;
  --text-muted:   #9a8ba8;
  --text-dim:     #5c506a;
  --rose:         #d4a5b5;
  --rose-deep:    #b85a7a;
  --rose-pale:    #e8c9d4;
  --border:       rgba(240, 236, 245, 0.08);
  --border-mid:   rgba(240, 236, 245, 0.15);

  --silver-1: #b8b8b8;
  --silver-2: #7a7a7a;
  --silver-glow: rgba(184,184,184,0.18);

  --gold-1:   #e8b84b;
  --gold-2:   #c9952a;
  --gold-glow: rgba(232,184,75,0.18);

  --plat-1:   #a8d8ff;
  --plat-2:   #4a90d9;
  --plat-glow: rgba(123,184,240,0.18);

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset & base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Subtle noise grain overlay on body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* ── Back link ─────────────────────────────────────────── */
.back-link {
  position: fixed;
  top: 20px;
  left: 28px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.25s, gap 0.3s var(--ease-back);
  background: rgba(12,9,16,0.75);
  backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: 40px;
  border: 1px solid var(--border);
}
.back-link:hover { color: var(--rose); gap: 12px; }

/* ── Plan nav pills ─────────────────────────────────────── */
.plan-nav {
  position: fixed;
  top: 20px;
  right: 28px;
  z-index: 200;
  display: flex;
  gap: 6px;
  background: rgba(12,9,16,0.75);
  backdrop-filter: blur(12px);
  padding: 6px;
  border-radius: 40px;
  border: 1px solid var(--border);
}
.pnav-pill {
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  transition: all 0.3s var(--ease-expo);
}
.pnav-pill:hover { color: var(--text); }
.pnav-pill[data-plan="silver"].active, .pnav-pill[data-plan="silver"]:hover { background: rgba(184,184,184,0.12); color: var(--silver-1); }
.pnav-pill[data-plan="gold"].active, .pnav-pill[data-plan="gold"]:hover   { background: rgba(232,184,75,0.12);  color: var(--gold-1); }
.pnav-pill[data-plan="platinum"].active, .pnav-pill[data-plan="platinum"]:hover { background: rgba(74,144,217,0.12); color: var(--plat-1); }

/* ── Section layout ─────────────────────────────────────── */
.plan-showcase {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 72px;
  position: relative;
  overflow: hidden;
}

/* Ambient glow per plan */
.plan-showcase[data-plan="silver"]::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(180,180,180,0.04) 0%, transparent 65%);
  pointer-events: none;
}
.plan-showcase[data-plan="gold"]::before {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(201,149,42,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.plan-showcase[data-plan="platinum"]::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(74,144,217,0.06) 0%, transparent 65%);
  pointer-events: none;
}

/* Subtle separator between sections */
.plan-showcase + .plan-showcase {
  border-top: 1px solid var(--border);
}

.showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}
.showcase-inner.reverse { direction: rtl; }
.showcase-inner.reverse > * { direction: ltr; }

/* ── Plan badge ─────────────────────────────────────────── */
.plan-badge {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.4em;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 14px;
}
.silver-badge { background: rgba(80,80,80,0.35); color: var(--silver-1); border: 1px solid rgba(120,120,120,0.35); }
.gold-badge   { background: rgba(201,149,42,0.15); color: var(--gold-1);   border: 1px solid rgba(201,149,42,0.35); }
.platinum-badge { background: rgba(74,144,217,0.15); color: var(--plat-1); border: 1px solid rgba(74,144,217,0.35); }

/* ═══════════════════════════════════════════════════════
   CROSSFADE SLIDER  ← The core fix
   Each slide is position:absolute & fills the container.
   Only the .active slide has opacity:1.
   Zero overlap, zero translate-math issues.
   ═══════════════════════════════════════════════════════ */
.slider-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;          /* tall portrait feels premium */
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg2);        /* shows while images load */
  box-shadow: 0 40px 120px rgba(0,0,0,0.55), 0 0 0 1px var(--border);
}

/* Every slide fills the full slider box */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s var(--ease-expo), transform 0.85s var(--ease-expo);
  transform: scale(1.03);
}

/* Active slide: fully visible, no scale */
.slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* Outgoing slide: fade out + slight shrink */
.slide.leaving {
  opacity: 0;
  transform: scale(0.97);
  z-index: 1;
}

/* The image itself: full size, no crop */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;           /* ← complete image, zero crop */
  object-position: center;
  display: block;
}

/* Ken Burns subtle on active image */
@keyframes kenBurns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.06); }
}
.slide.active img {
  animation: kenBurns 5s ease-in-out forwards;
}

/* ── Nav buttons ────────────────────────────────────────── */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(12,9,16,0.6);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s, background 0.25s, transform 0.3s var(--ease-back), border-color 0.25s;
}
.slider:hover .nav-btn { opacity: 1; }
.nav-btn.prev { left: 14px; }
.nav-btn.next { right: 14px; }
.nav-btn:hover {
  background: rgba(184,90,122,0.4);
  border-color: var(--rose-deep);
  transform: translateY(-50%) scale(1.1);
}

/* ── Slide counter ──────────────────────────────────────── */
.slide-counter {
  position: absolute;
  bottom: 54px;
  right: 16px;
  z-index: 10;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

/* ── Progress bar ───────────────────────────────────────── */
.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.08);
  z-index: 10;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--rose-deep);
  transition: width linear;
}

/* ── Dot indicators ─────────────────────────────────────── */
.dot-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 100%;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-mid);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.35s var(--ease-expo);
}
.dot.active {
  width: 22px;
  border-radius: 4px;
  background: var(--rose-deep);
}

/* Plan-specific active dot color */
[data-plan="silver"] .dot.active { background: var(--silver-1); }
[data-plan="gold"]   .dot.active { background: var(--gold-2); }
[data-plan="platinum"] .dot.active { background: var(--plat-2); }

/* ── Content column ─────────────────────────────────────── */
.content-col {
  padding: 20px 0;
}

.plan-eyebrow {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.plan-eyebrow::before { content: '✦'; font-size: 8px; }

.plan-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 24px;
}
.plan-title em {
  font-style: italic;
  color: var(--rose-pale);
}

/* Plan-specific title color for em */
[data-plan="silver"] .plan-title em { color: var(--silver-1); }
[data-plan="gold"]   .plan-title em { color: var(--gold-1); }
[data-plan="platinum"] .plan-title em { color: var(--plat-1); }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}
.price-tag {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 500;
}
.price-note {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

[data-plan="silver"] .price-tag { color: var(--silver-1); }
[data-plan="gold"]   .price-tag { color: var(--gold-1); }
[data-plan="platinum"] .price-tag { color: var(--plat-1); }

.plan-rule {
  width: 44px;
  height: 1px;
  background: var(--rose-deep);
  margin-bottom: 32px;
}
[data-plan="silver"] .plan-rule { background: var(--silver-2); }
[data-plan="gold"]   .plan-rule { background: var(--gold-2); }
[data-plan="platinum"] .plan-rule { background: var(--plat-2); }

/* ── Ceremony items ─────────────────────────────────────── */
.item {
  position: relative;
  padding: 18px 20px 18px 52px;
  margin-bottom: 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s, transform 0.4s var(--ease-expo), box-shadow 0.4s;
}
.item::before {
  content: attr(data-icon);
  position: absolute;
  left: 16px;
  top: 18px;
  font-size: 16px;
  line-height: 1;
}
.item:hover {
  border-color: var(--border-mid);
  transform: translateX(6px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

[data-plan="silver"] .item:hover { border-color: rgba(120,120,120,0.4); }
[data-plan="gold"]   .item:hover { border-color: rgba(201,149,42,0.3); }
[data-plan="platinum"] .item:hover { border-color: rgba(74,144,217,0.3); }

.item h3 {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}
.item p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
}

/* ── CTA row ────────────────────────────────────────────── */
.cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
}

.cta-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: none;
  border-radius: 40px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.35s var(--ease-expo), box-shadow 0.35s;
}
.cta-btn svg { transition: transform 0.35s var(--ease-back); flex-shrink: 0; }
.cta-btn:hover svg { transform: translateX(4px); }
.cta-btn:hover { transform: translateY(-2px); }

/* Shimmer sweep on hover */
.cta-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s var(--ease-expo);
}
.cta-btn:hover::after { left: 150%; }

.silver-cta {
  background: linear-gradient(135deg, #3a3a3a, #606060, #3a3a3a);
  background-size: 200% auto;
  color: #e8e8e8;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45), 0 0 0 1px rgba(120,120,120,0.3);
  animation: silverShimmer 4s linear infinite;
}
@keyframes silverShimmer { 0%{background-position:0%} 100%{background-position:200%} }
.silver-cta:hover { box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(160,160,160,0.4); }

.gold-cta {
  background: linear-gradient(135deg, #a07820, #e8b84b, #c9952a, #e8b84b);
  background-size: 200% auto;
  color: #1a1200;
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(201,149,42,0.35);
  animation: goldShimmer 3s linear infinite;
}
@keyframes goldShimmer { 0%{background-position:0%} 100%{background-position:200%} }
.gold-cta:hover { box-shadow: 0 16px 48px rgba(201,149,42,0.5); }

.platinum-cta {
  background: linear-gradient(135deg, #1a5fa8, #4a90d9, #a8d8ff, #7bb8f0, #4a90d9);
  background-size: 200% auto;
  color: #fff;
  box-shadow: 0 8px 28px rgba(74,144,217,0.35);
  animation: platShimmer 4s linear infinite;
}
@keyframes platShimmer { 0%{background-position:0%} 100%{background-position:200%} }
.platinum-cta:hover { box-shadow: 0 16px 48px rgba(74,144,217,0.5); }

.scroll-hint {
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.25s;
}
.scroll-hint:hover { color: var(--rose); }

/* ═══════════════════════════════════════════════════════
   REVEAL ANIMATIONS
   Items start invisible, JS adds .visible via
   IntersectionObserver with staggered delay.
   ═══════════════════════════════════════════════════════ */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-expo), transform 0.75s var(--ease-expo);
}
.reveal-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slider column reveal */
.slider-col {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.9s var(--ease-expo), transform 0.9s var(--ease-expo);
}
.slider-col.visible {
  opacity: 1;
  transform: translateX(0);
}
.showcase-inner.reverse .slider-col {
  transform: translateX(32px);
}
.showcase-inner.reverse .slider-col.visible {
  transform: translateX(0);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1000px) {
  .plan-showcase { padding: 90px 36px; }
  .showcase-inner { gap: 48px; }
}

@media (max-width: 768px) {
  .plan-showcase { padding: 88px 24px 60px; }

  .showcase-inner,
  .showcase-inner.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 36px;
  }

  .slider { aspect-ratio: 3/2; }  /* landscape on mobile saves space */

  .plan-title { font-size: 32px; }
  .plan-nav   { display: none; }
  .back-link  { top: 14px; left: 16px; }

  .cta-row { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 480px) {
  .plan-showcase { padding: 80px 18px 48px; }
  .showcase-inner { gap: 28px; }
  .slider { aspect-ratio: 1; }
  .item { padding-left: 42px; }
}