/* ==========================================================
   SIDEKOM | Pricing packs
   ========================================================== */

.packs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
}

.pack {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 38px 30px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.pack h3 { font-size: 1.3rem; margin-bottom: 8px; }
.pack__tagline { min-height: 3.4em; color: var(--muted); font-size: 0.95rem; }

.pack__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  margin-block: 18px 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.pack__amount {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--navy-700);
}
.pack__currency { font-weight: 800; color: var(--navy-700); }
.pack__duration { font-size: 0.88rem; font-weight: 600; color: var(--muted); }

.pack .check-list { flex: 1; margin-bottom: 26px; }
.pack__note {
  margin: -10px 0 20px;
  font-size: 0.84rem;
  font-style: italic;
  color: var(--muted);
}

/* The recommended pack stands out in navy */
.pack--featured {
  color: var(--navy-200);
  background: linear-gradient(165deg, var(--navy-700), var(--navy-950));
  border-color: var(--navy-700);
  box-shadow: var(--shadow-lg);
  transform: translateY(-10px);
}
.pack--featured h3,
.pack--featured .pack__amount,
.pack--featured .pack__currency { color: var(--white); }
.pack--featured .pack__tagline,
.pack--featured .pack__duration,
.pack--featured .pack__note { color: var(--navy-200); }
.pack--featured .pack__price { border-color: rgba(255, 255, 255, 0.2); }
.pack--featured .check-list li { color: var(--white); }

.pack__badge {
  position: absolute;
  inset-inline-start: 30px;
  top: -14px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--gold-500);
  color: var(--navy-900);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Short version used on the home page (no feature list) */
.pack--summary { padding-bottom: 28px; }
.pack--summary .pack__price { margin-bottom: 24px; }

@media (max-width: 900px) {
  .packs { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .pack--featured { transform: none; }
  .pack__tagline { min-height: 0; }
}

/* ---------- Packs page: comparison, compact cards and single pack (js/pack-details.js) ---------- */

/* Extra buttons: "Book an appointment" only in the single-pack view, "See details" only on compact cards */
.pack__book { margin-top: 12px; }
.packs--compare:not(.is-single) .pack__book,
.pack__more { display: none; }

/* Phones and tablets: short cards (name, tagline, price, "See details") instead of three long lists */
@media (max-width: 900px) {
  html.js .packs--compare:not(.is-single) .check-list,
  html.js .packs--compare:not(.is-single) .pack__note,
  html.js .packs--compare:not(.is-single) .pack__choose { display: none; }
  html.js .packs--compare:not(.is-single) .pack__more { display: inline-flex; }
  html.js .packs--compare:not(.is-single) .pack__price { margin-bottom: 24px; }
}

/* ?pack=growth: one pack, centered */
.packs.is-single { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; }
.packs.is-single .pack--featured { transform: none; }
.packs.is-single .pack__tagline { min-height: 0; }

.packs-back { max-width: 640px; margin: 0 auto 28px; }
