/* ============================================================
   TIER CARDS — SHARED CARD FRONT   (cards-tiers-shared.css)
   The grid + card front shared by index #pricing, the program
   carousel, and welcome #pricing. Each page's own detail display
   (modal / accordion / carousel) lives in a sibling file — see the
   ownership map below. Reuses existing site tokens (same glass-
   gradient, radius, hover-lift); badge uses --ff-accent (Nemoy).
   No new colours introduced.
   ------------------------------------------------------------
   CLASS PREFIX MAP — what each prefix is, and which file OWNS it:

     .tier-cards        Shared 3-column grid wrapper.          → THIS FILE
     .tier-card__*      Shared CARD FRONT — photo, badge, name,
                        price, base reveal-trigger.            → THIS FILE
     .tier-detail__*    WELCOME accordion (inline panel).      → welcome.css
     .tier-modal__*     INDEX modal (centered pop-up).         → cards-tiers-modal.css
     .carousel-tiers__* PROGRAM carousel.                      → carousel-tiers.css
     .tier-card__cta,
     .cta-button--join  WELCOME Join + reveal-trigger CTAs
                        (equal width/height sizing).           → welcome.css

   Only the card FRONT is shared on purpose; everything page-specific
   was moved out so each page owns its own behaviour in its own file.
   Paired JS:  index → cards-tiers-modal.js · welcome → cards-tiers-accordion.js
               program → carousel-tiers.js
   ============================================================ */
/* ---- Shared grid: 1 col mobile, 3 cols tablet+ ---- */
.tier-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-m);
  margin-top: var(--space-m);
  align-items: stretch;
}
@media (min-width: 600px) {
  .tier-cards { grid-template-columns: repeat(3, 1fr); }
}

/* ---- The card ---- */
.tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to right, rgba(255,255,255,0.2), rgba(255,255,255,0.5), rgba(255,255,255,0.9));
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tier-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px -3px 4px rgba(124,149,134,0.25), 0px -1px 1px rgba(124,149,134,0.35), 6px 0px 8px rgba(124,149,134,0.8);
}
.tier-card--featured {
  border: 1px solid rgba(124,149,134,0.5);
  background: linear-gradient(to right, rgba(133,152,145,0.25), rgba(133,152,145,0.45), rgba(133,152,145,0.65));
}

/* ---- Photo (tier-1/2/3.webp) ---- */
.tier-card__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(133,152,145,0.15);
}
.tier-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.tier-card:hover .tier-card__photo img { transform: scale(1.04); }

/* ---- Body ---- */
.tier-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-s);
  text-align: center;
}
.tier-card__badge {
  font-family: var(--ff-accent);
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-lila);
  margin-bottom: var(--space-xxs);
}
.tier-card__name {
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  color: var(--color-blue);
  line-height: 1.2;
  margin: 0 0 var(--space-xxs);
}
/* Full static-style title: name on top, descriptive subtitle under it */
.tier-card__subtitle {
  display: block;
  font-family: var(--ff-base);
  font-weight: 400;
  font-size: 0.9em;
  color: var(--color-blue);
  line-height: 1.3;
  margin-top: 0.15rem;
}
.tier-card__tagline {
  font-family: var(--ff-base);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  margin: 0 0 var(--space-s);
}
.tier-card__tagline:last-child { margin-bottom: 0; }

/* ---- Price zone (anchors to bottom) ---- */
.tier-card__price {
  margin-top: auto;
  padding-top: var(--space-xs);
  border-top: 1px solid rgba(124,149,134,0.4);
}
.tier-card__price .price-main {
  font-family: var(--ff-accent);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-blue);
  margin: 0 0 0.1rem;
  line-height: 1.1;
}
/* Payment plan: smaller + muted, so it isn't the main message */
.tier-card .pricing-plan {
  font-size: 0.72rem;
  color: var(--color-muted);
  opacity: 0.85;
  margin-top: 0.1rem;
}

/* ---- Reveal trigger ("See what's included") — bridge green → yellow hover.
   SHARED base for index (modal trigger) and welcome (accordion trigger).
   Welcome's equal-width/height sizing lives in welcome.css. ---- */
.tier-card__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  box-sizing: border-box;
  gap: 0.2rem;
  margin-top: var(--space-xs);
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-family: 'Nemoy', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--color-bridge);
  color: var(--color-white);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.tier-card__trigger:hover {
  background: var(--color-yellow-hover);
  color: var(--color-lila);
  transform: translateY(-2px);
}
.tier-card__trigger .tier-card__chevron { transition: transform 0.25s ease; display: inline-block; }
/* modal trigger arrow */
.tier-card__trigger--modal .tier-card__chevron::after { content: '\2192'; }
/* accordion trigger arrow */
.tier-card__trigger--accordion .tier-card__chevron::after { content: '\25BE'; }
.tier-card.is-open .tier-card__trigger--accordion .tier-card__chevron { transform: rotate(180deg); }

/* ---- Welcome card-front CTAs (Join + reveal trigger, equal width/height)
   live in welcome.css — they are welcome-only (index uses tier-modal). ---- */


/* ============ MOBILE TWEAKS ============ */
@media (max-width: 599px) {
  .tier-cards { max-width: 480px; margin-left: auto; margin-right: auto; }
  .tier-card:hover { transform: none; }
  /* Smaller reveal trigger on mobile (index modal trigger; welcome's is sized in welcome.css) */
  .tier-card__trigger { font-size: 0.85rem; padding: 0.45rem 1rem; }
}

/* ============ iPads: tighten the "what's included" modal CTA ============
   Font size stays as-is; only the horizontal padding is reduced so the
   button isn't oversized — mirrors the tighter welcome.html tier CTAs. */
@media (min-width: 768px) and (max-width: 1366px) {
  /* Card-front "See what's included" trigger was oversized on iPads —
     reduce horizontal padding only (font size unchanged). */
  .tier-card__trigger {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }
}
