/* ===== Package Promo – Premium High-Usability & High-Dopamine Layout ===== */

.sub-home-promo {
  position: relative;
  padding: clamp(5rem, 8vw, 8rem) 0;
  background:
    radial-gradient(ellipse at top left, rgba(212, 175, 55, 0.08), transparent 45%),
    radial-gradient(ellipse at bottom right, rgba(212, 175, 55, 0.06), transparent 45%),
    linear-gradient(180deg, #050505 0%, #0d0d0d 100%);
  overflow: hidden;
}

.sub-home-promo::before,
.sub-home-promo::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}

.sub-home-promo::before {
  top: -10rem;
  left: -10rem;
  width: 40rem;
  height: 40rem;
  background: rgba(212, 175, 55, 0.05);
}

.sub-home-promo::after {
  bottom: -15rem;
  right: -10rem;
  width: 50rem;
  height: 50rem;
  background: rgba(212, 175, 55, 0.04);
}

/* ---- Layout ---- */

.sub-home-promo__wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  align-items: center;
}

.sub-home-promo__content,
.sub-home-promo__calculator {
  animation: sub-home-promo-fade-in 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.sub-home-promo__calculator {
  animation-delay: 0.2s;
}

/* ---- Left Content ---- */

.sub-home-promo__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.text-gold-gradient {
  background: linear-gradient(135deg, #f1d57d 0%, #b8860b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 4px 15px rgba(212, 175, 55, 0.15));
}

.sub-home-promo__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  width: fit-content;
  margin-bottom: 2rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.1);
  color: #dfba46;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.sub-home-promo__eyebrow strong {
  font-weight: 800;
  color: #fff;
}

.sub-home-promo__eyebrow::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: eyebrow-flare 4s infinite;
}

.sub-home-promo__eyebrow svg {
  color: #dfba46;
  flex-shrink: 0;
}

.sub-home-promo__headline {
  margin: 0 0 1.5rem;
  font-size: clamp(3.2rem, 4.5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  max-width: 14ch;
  text-shadow: 0 10px 30px rgba(0,0,0,0.8);
  letter-spacing: -0.02em;
}

.sub-home-promo__lede {
  margin: 0 0 2.5rem;
  max-width: 44ch;
  color: #a3a3a3;
  font-size: 1.65rem;
  line-height: 1.6;
}

/* Premium Compare Widget */
.promo-price-compare {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(18, 18, 18, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  padding: 12px 28px;
  margin-bottom: 3rem;
  box-shadow: 
    inset 0 2px 10px rgba(0, 0, 0, 0.3), 
    0 15px 30px rgba(0, 0, 0, 0.4);
}

.promo-price-compare__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.promo-price-compare__label {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.promo-price-compare__value {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.promo-price-compare__value--old {
  color: rgba(255, 255, 255, 0.3);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(255, 255, 255, 0.15);
}

.promo-price-compare__value--new {
  color: #f1d57d;
  text-shadow: 0 2px 15px rgba(212, 175, 55, 0.25);
}

.promo-price-compare__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-arrow 2s infinite alternate;
}

/* Testimonial */

.sub-home-promo__testimonial {
  margin: 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid rgba(212, 175, 55, 0.8);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.08) 0%, transparent 100%);
  border-radius: 0 16px 16px 0;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.sub-home-promo__testimonial.is-fading {
  opacity: 0;
  transform: translateY(5px);
}

.sub-home-promo__testimonial p {
  margin: 0 0 0.8rem;
  color: #ececec;
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.5;
}

.sub-home-promo__testimonial cite {
  color: #888;
  font-size: 1.3rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.02em;
}

/* ---- Calculator Card ---- */

.sub-home-promo__calculator {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 36px;
  border-radius: 28px;
  background: rgba(18, 18, 18, 0.7);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 40px 80px rgba(0, 0, 0, 0.7), 
    inset 0 0 60px rgba(212, 175, 55, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
  transform-style: preserve-3d;
}

/* Spotlight that tracks mouse variable */
.sub-home-promo__calculator::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(212, 175, 55, 0.11),
    transparent 40%
  );
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.sub-home-promo__calculator:hover::after {
  opacity: 1;
}

/* Glow behind the calculator */
.sub-home-promo__calculator::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 120%; height: 120%;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.sub-home-promo__calculator > * {
  position: relative;
  z-index: 1;
}

.sub-home-promo__calculator-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sub-home-promo__calculator-head h3 {
  margin: 0;
  color: #fff;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.sub-home-promo__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f1d57d, #c4961c);
  color: #0a0a0a;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

/* ---- Shared Layout Groups ---- */

.sub-home-promo__group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sub-home-promo__label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding-left: 2px;
}

/* ---- Service / Visits Grid (High Usability + Bouncy physics) ---- */

.sub-home-promo__service-grid,
.sub-home-promo__visits-grid {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
  gap: 6px;
}

/* Common button styles with dopamine physics */
.sub-home-promo__option {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.6);
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0 8px;
  transform: scale(1);
}

.sub-home-promo__option:hover:not(.is-active) {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.03);
}

.sub-home-promo__option:active {
  transform: scale(0.92) !important;
}

.sub-home-promo__option.is-active {
  background: linear-gradient(120deg, #d4af37 0%, #f1d57d 40%, #b8860b 80%, #d4af37 100%);
  background-size: 200% auto;
  color: #000;
  border: 1px solid #f1d57d;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
  animation: shimmer-gold 3s linear infinite;
  transform: scale(1.05);
  z-index: 2; /* To pop over others */
}

.sub-home-promo__option-title {
  font-size: 1.3rem;
  font-weight: 600;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.sub-home-promo__option.is-active .sub-home-promo__option-title {
  font-weight: 800;
  color: #000;
  transform: scale(1.05); /* Text subtle pop */
}

/* Larger text for visits */
.sub-home-promo__option--visit .sub-home-promo__option-title {
  font-size: 1.6rem;
}

/* ---- Result Interface ---- */

.sub-home-promo__result {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(212, 175, 55, 0.08) 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 40px rgba(0, 0, 0, 0.4);
}

.sub-home-promo__result.is-updating {
  animation: pulse-result-dopamine 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Ensuring no break on large prices -> wrapping gracefully or reducing font sizes */
.sub-home-promo__result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap; /* Safety wrap just in case container gets extremely tight */
}

.sub-home-promo__plan {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Main Price fixed size so no 2 rows */
.sub-home-promo__price {
  margin: 0;
  color: #fff;
  font-size: clamp(2.6rem, 8vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.sub-home-promo__per-visit {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
  white-space: nowrap;
}

.sub-home-promo__per-visit-value {
  color: #f1d57d;
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.sub-home-promo__per-visit-label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  font-weight: 600;
}

/* Savings Section */

.sub-home-promo__savings {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.sub-home-promo__saving-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.15) 0%, rgba(46, 204, 113, 0.05) 100%);
  border: 1px solid rgba(46, 204, 113, 0.4);
  color: #38e07a;
  font-size: 1.35rem;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(46, 204, 113, 0.2);
  white-space: nowrap;
  animation: glow-pulse-green 2.5s infinite alternate;
}

.sub-home-promo__saving-chip strong {
  font-weight: 800;
  font-size: 1.45rem;
}

.sub-home-promo__saving-chip--percent {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
  border-color: rgba(212, 175, 55, 0.4);
  color: #f1d57d;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
  animation: glow-pulse-gold 2.5s infinite alternate;
}

/* ---- CTA Button ---- */

.sub-home-promo__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60px;
  padding: 16px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, #e5c35b 0%, #c4961c 100%);
  color: #0a0a0a;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
}

.sub-home-promo__cta:hover {
  transform: translateY(-4px) scale(1.02);
  background: linear-gradient(135deg, #f1d57d 0%, #d4af37 100%);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
  color: #000;
}

.sub-home-promo__cta:active {
  transform: scale(0.96);
}

.sub-home-promo__cta-note {
  margin: -16px 0 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.2rem;
  line-height: 1.5;
  text-align: center;
  font-weight: 500;
}

/* ---- Animations ---- */

@keyframes shimmer-gold {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes glow-pulse-green {
  0% { box-shadow: 0 0 10px rgba(46, 204, 113, 0.15); transform: scale(1); }
  100% { box-shadow: 0 0 25px rgba(46, 204, 113, 0.4); transform: scale(1.02); }
}

@keyframes glow-pulse-gold {
  0% { box-shadow: 0 0 10px rgba(212, 175, 55, 0.15); transform: scale(1); }
  100% { box-shadow: 0 0 25px rgba(212, 175, 55, 0.4); transform: scale(1.02); }
}

@keyframes sub-home-promo-fade-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse-result-dopamine {
  0% { transform: scale(1); box-shadow: 0 5px 20px rgba(0,0,0,0.2); }
  40% { transform: scale(1.04); box-shadow: 0 25px 50px rgba(212, 175, 55, 0.25); border-color: rgba(212, 175, 55, 0.6); }
  100% { transform: scale(1); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); }
}

@keyframes eyebrow-flare {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

@keyframes pulse-arrow {
  0% { transform: scale(0.95) translateX(-2px); opacity: 0.7; }
  100% { transform: scale(1.1) translateX(2px); opacity: 1; filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6)); }
}

/* ---- Desktop ---- */

@media (min-width: 1040px) {
  .sub-home-promo__wrap {
    grid-template-columns: 1fr minmax(420px, 480px);
    column-gap: 60px;
  }
}

/* ---- Mobile / Tablet adjustments ---- */

@media (max-width: 767px) {
  .sub-home-promo {
    padding: 3rem 0 4rem;
  }

  .sub-home-promo__headline {
    font-size: 3rem;
  }

  .sub-home-promo__calculator {
    padding: 2.2rem 1.6rem;
    border-radius: 20px;
    gap: 20px;
  }

  .sub-home-promo__calculator-head h3 {
    font-size: 1.7rem;
  }

  /* Grids wrap neatly if screen is extremely tight, but flex takes care of squishing cleanly */
  .sub-home-promo__service-grid,
  .sub-home-promo__visits-grid {
    padding: 4px;
    gap: 4px;
    border-radius: 16px;
  }

  .sub-home-promo__option {
    padding: 0 4px;
    min-height: 48px;
    border-radius: 12px;
  }

  .sub-home-promo__option-title {
    font-size: 1.15rem;
  }

  .sub-home-promo__option--visit .sub-home-promo__option-title {
    font-size: 1.45rem;
  }

  .sub-home-promo__result {
    padding: 20px 16px;
  }

  .sub-home-promo__result-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  /* Safe font clamps for price */
  .sub-home-promo__price {
    font-size: clamp(2.4rem, 8vw, 3rem);
  }

  .sub-home-promo__per-visit {
    align-self: flex-start;
    flex-direction: row;
    align-items: baseline;
    padding: 8px 14px;
  }

  .sub-home-promo__per-visit-value {
     font-size: 1.7rem;
  }

  .sub-home-promo__saving-chip {
    font-size: clamp(1.1rem, 3.5vw, 1.25rem);
    padding: 6px 10px;
  }

  .sub-home-promo__saving-chip strong {
    font-size: clamp(1.15rem, 4vw, 1.4rem);
  }
}

/* ---- Reduced Motion ---- */

@media (prefers-reduced-motion: reduce) {
  .sub-home-promo__content,
  .sub-home-promo__calculator,
  .sub-home-promo__option,
  .sub-home-promo__result,
  .sub-home-promo__saving-chip,
  .sub-home-promo__saving-chip--percent {
    animation: none !important;
    transition: none !important;
  }
}
