/* ============================================================
   cards-tiers-modal.css
   INDEX "See what's included" → centered MODAL overlay.
   Loaded on index.html ONLY (pairs with cards-tiers-modal.js).
   - Shared card front lives in cards-tiers-shared.css
   - Welcome accordion + welcome booking/T&C modal live in welcome.css
   No new tokens — reuses existing site variables.
   ============================================================ */

/* ============ CENTERED MODAL (index) ============ */
/* Backdrop tinted in the recap sage-green (matches the image/recap modal) */
.tier-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(124,149,134,0.7);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  padding: var(--space-s);
}
.tier-modal-backdrop.is-open { display: flex; }
.tier-modal {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(to bottom right, #ffffff, #f3f6f4);
  border-radius: 12px;
  border-top: 4px solid var(--color-bridge-old);
  box-shadow: 0 18px 50px rgba(124,149,134,0.45);
}
.tier-modal__panel {
  display: grid;
  grid-template-columns: 200px 1fr;
}
.tier-modal__panel[hidden] { display: none; }
.tier-modal__photo { overflow: hidden; min-height: 260px; background: rgba(133,152,145,0.15); }
.tier-modal__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tier-modal__content { padding: var(--space-l) var(--space-m) var(--space-m); display: flex; flex-direction: column; }
.tier-modal__close {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-accent);
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  transition: color 0.2s ease;
}
.tier-modal__close:hover { color: var(--color-white); }

/* Sash: the longer text introduction as a sage-green band (sits below header/price) */
.tier-modal__intro {
  background: var(--color-bridge-old);
  color: var(--color-white);
  margin: var(--space-s) calc(-1 * var(--space-m)) var(--space-m);
  padding: var(--space-s) var(--space-m);
  font-family: var(--ff-base);
  font-size: var(--fs-body);
  line-height: 1.6;
}

.tier-modal__badge {
  font-family: var(--ff-accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-lila);
  font-size: var(--fs-body);
  margin: 0 0 0.2rem;
}
.tier-modal__name { font-family: var(--ff-heading); color: var(--color-vividblue); line-height: 1.2; margin: 0 0 0.25rem; }
.tier-modal__tagline { font-family: var(--ff-base); color: var(--color-softblue); font-size: var(--fs-body); margin: 0 0 var(--space-s); }
.tier-modal__price { margin: 0 0 var(--space-s); }
.tier-modal__price .price-display {
  font-family: var(--ff-accent);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-blue);
}
.tier-modal__price .pricing-plan { font-family: var(--ff-base); font-size: var(--fs-footer-meta); color: var(--color-bridge); margin: 0.15rem 0 0; }

/* Section sub-labels — sage-green to match the modal theme */
.tier-modal__sub {
  font-family: var(--ff-accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-bridge-old);
  margin: var(--space-s) 0 0.45rem;
}
.tier-modal__sub:first-of-type { margin-top: 0; }

.tier-modal__list { list-style: none; margin: 0 0 var(--space-s); padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.tier-modal__list li {
  position: relative;
  padding-left: 1.25rem;
  font-family: var(--ff-base);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--color-text);
}
.tier-modal__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-bridge-old);
}
/* Bold lead phrase on each line */
.tier-modal__list li strong { font-weight: 700; color: var(--color-blue); }

.tier-modal__cta { margin-top: auto; display: flex; justify-content: center; }
/* Modal CTA inverted (like the card trigger): bridge → yellow */
.tier-modal__cta .cta-button {
  background: var(--color-bridge);
  color: var(--color-white);
}
.tier-modal__cta .cta-button:hover {
  background: var(--color-yellow-hover);
  color: var(--color-lila);
}

/* Detail line stacked under the bold title inside modal list items */
.tier-modal__detail {
  display: block;
}

/* ---- Mobile: single-column panel, photo as banner ---- */
@media (max-width: 599px) {
  .tier-modal__panel { grid-template-columns: 1fr; }
  .tier-modal__photo { min-height: 0; aspect-ratio: 16 / 9; }
  .tier-modal__content { padding: var(--space-l) var(--space-s) var(--space-s); }
  /* keep the sash bleeding to the (narrower) content padding on mobile */
  .tier-modal__intro { margin: var(--space-s) calc(-1 * var(--space-s)) var(--space-m); padding: var(--space-s); }
}

/* ---- iPads: tighten the modal CTA horizontal padding ---- */
@media (min-width: 768px) and (max-width: 1366px) {
  .tier-modal__cta .cta-button {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
}
