/* =========================================================
   SSZ TRAINING — SITE STYLESHEET
   Palette matches admin + exercise pages: black / red / pink.
   ========================================================= */

:root {
  --black: #000000;
  --white: #ffffff;
  --red: #b20000;
  --pink: #ff95b6;
  --border: rgba(0, 0, 0, 0.1);

  --font-display: "Calibri", "Carlito", sans-serif;
  --font-body: "Calibri", "Carlito", sans-serif;
  --font-mono: "Calibri", "Carlito", sans-serif;

  --nav-height: 76px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 50px rgba(0, 0, 0, 0.16);

  --container-max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--black);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; }

.page-container { max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }

/* ================= HEADER / NAV ================= */
header {
  position: sticky; top: 0; width: 100%;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  z-index: 500;
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
header.scrolled { box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--border); }
.nav-container {
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--container-max); margin: 0 auto; padding: 0 24px; height: var(--nav-height);
}
.nav-logo {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  color: var(--black); text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.nav-logo img { width: 34px; height: 34px; object-fit: contain; }
.nav-logo span { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { text-decoration: none; color: var(--black); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--red); }

.cart-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--border); border-radius: 50%;
  background: #fff; cursor: pointer;
}
.cart-btn:hover { border-color: var(--red); }
.cart-btn svg { width: 19px; height: 19px; }
.cart-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: var(--red); color: #fff;
  font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.cart-count[hidden] { display: none; }

@media (max-width: 720px) {
  .nav-links a:not(.cart-btn) { display: none; }
  .nav-container { padding: 0 16px; }
}

/* ================= SECTION HEADING ================= */
.section-heading { text-align: center; padding-top: 64px; padding-bottom: 30px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 14px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 24px; height: 2px; background: var(--pink); border-radius: 2px; }
.section-heading h1 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 38px; color: var(--black); }

/* ================= WHY GRID ================= */
.why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; padding-bottom: 20px; }
.why-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
.why-icon { display: inline-flex; width: 42px; height: 42px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(0,0,0,.04); color: var(--red); margin-bottom: 12px; }
.why-icon svg { width: 20px; height: 20px; }
.why-card h3 { font-family: var(--font-display); font-size: 16px; margin: 0 0 6px; }
.why-card p { font-size: 13.5px; color: rgba(0,0,0,.6); line-height: 1.55; margin: 0; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2,1fr); } }

/* ================= CONTACT / FOOTER ================= */
.contact-wrap { max-width: 1100px; margin: 0 auto 70px; }
.contact-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--black); color: #fff; padding: 40px; border-radius: var(--radius-lg); }
.contact-cta h2 { margin: 0 0 10px; font-family: var(--font-display); font-size: 24px; }
.contact-cta p { margin: 0; max-width: 420px; color: rgba(255,255,255,.75); }
.contact-cta-btn { background: var(--pink); color: var(--black); font-weight: 700; padding: 13px 22px; border-radius: 999px; text-decoration: none; }
.contact-footer { margin-top: 20px; background: var(--black); color: #fff; border-radius: var(--radius-lg); border-top: 3px solid var(--pink); padding: 36px 40px 22px; }
.contact-footer-inner { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 28px; }
.contact-footer h4 { font-family: var(--font-display); font-size: 14px; margin: 0 0 12px; }
.contact-footer p { font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.6; }
.site-footer { background: var(--black); color: rgba(255,255,255,.8); text-align: center; padding: 22px; font-family: var(--font-mono); font-size: 12px; }
@media (max-width: 760px) { .contact-footer-inner { grid-template-columns: 1fr; } }

/* ================= IMAGE / DETAILS MODAL (class info popup) ================= */
.modal { display: none; position: fixed; inset: 0; z-index: 900; justify-content: center; align-items: center; padding: 20px; background: rgba(0,0,0,.6); }
.modal-content-wrapper { position: relative; display: flex; gap: 20px; background: #fff; padding: 16px; border-radius: var(--radius-lg); max-width: 900px; max-height: 90vh; }
.modal-close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: none; border-radius: 50%; background: rgba(0,0,0,.08); font-size: 18px; cursor: pointer; }
.modal-left img { width: 360px; max-width: 100%; border-radius: var(--radius-md); }
.modal-right { flex: 1; background: #14181f; color: #fff; border-radius: var(--radius-md); padding: 26px; overflow-y: auto; }
@media (max-width: 650px) { .modal-content-wrapper { flex-direction: column; max-width: 92vw; } .modal-left img { width: 100%; } }

/* ================= CLASS LIST (one row per class, top to bottom) ================= */
.class-section { margin-bottom: 14px; }
.class-section-title {
  margin: 36px 0 16px; padding-left: 12px;
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  border-left: 4px solid var(--pink);
}
.catalog-note { text-align: center; color: rgba(0,0,0,.5); padding: 30px 0; }

.class-list { display: flex; flex-direction: column; gap: 14px; }

.class-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 240px;
  grid-template-areas: "logo main side";
  gap: 24px; align-items: center;
  padding: 18px 24px;
  background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--pink);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, border-left-color .2s ease, transform .2s ease;
}
.class-row:hover { box-shadow: var(--shadow-md); border-left-color: var(--red); transform: translateY(-1px); }

/* every logo sits in the same square, whatever its shape */
.class-logo, .promo-logo {
  display: grid; place-items: center; overflow: hidden; background: #fff;
}
.class-logo { grid-area: logo; width: 88px; height: 88px; border-radius: 18px; border: 1px solid var(--border); }
.class-logo img, .promo-logo img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.logo-ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--pink), var(--red)); color: #fff;
  font-family: var(--font-display); font-size: 34px; font-weight: 700;
}

.class-main { grid-area: main; min-width: 0; }
.class-main h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 19px; }
.class-points { margin: 0; padding-left: 18px; columns: 2; column-gap: 32px; font-size: 13.5px; line-height: 1.7; color: rgba(0,0,0,.65); }
.class-points li { break-inside: avoid; }

.class-side { grid-area: side; display: flex; flex-direction: column; gap: 10px; }
.class-price-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.price { background: var(--pink); color: #fff; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.class-days { font-size: 13px; font-weight: 600; color: rgba(0,0,0,.65); }

.add-cart-btn {
  border: none; height: 44px; border-radius: var(--radius-sm);
  background: var(--black); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer;
  transition: background-color .15s ease;
}
.add-cart-btn:hover { background: var(--red); }
.add-cart-btn.is-added { background: var(--pink); color: var(--black); }

@media (max-width: 760px) {
  .class-row {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas: "logo main" "side side";
    gap: 14px 16px; padding: 16px;
  }
  .class-logo { width: 64px; height: 64px; border-radius: 14px; }
  .class-logo img { padding: 8px; }
  .logo-ph { font-size: 26px; }
  .class-main h3 { font-size: 16.5px; margin-bottom: 6px; }
  .class-points { columns: 1; font-size: 13px; }
  .class-side { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
  .class-side .add-cart-btn { flex: 0 0 156px; }                 /* same width on every row */
  .class-side .class-price-row { flex: 1 1 0; min-width: 0; }     /* price + days use what's left, and wrap if needed */
  .class-section-title { font-size: 19px; margin-top: 28px; }
}

/* ================= BUNDLE BANNER (logo + logo, changes every 5s) ================= */
.promo-hero { position: relative; overflow: hidden; margin-bottom: 70px; border-radius: var(--radius-lg); background: #000; }
.promo-stage { display: grid; }
.promo-slide {
  grid-area: 1 / 1;
  min-height: 430px; padding: 50px 24px 70px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(255,149,182,.24), transparent 62%), #000;
  opacity: 0; visibility: hidden;
  transition: opacity .8s ease, visibility 0s linear .8s;
}
.promo-slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease, visibility 0s; }

.promo-logos { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.promo-logo { width: 116px; height: 116px; border-radius: 26px; box-shadow: 0 14px 34px rgba(0,0,0,.45); }
.promo-logo .logo-ph { font-size: 44px; }
.promo-plus { font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1; color: var(--pink); }

.promo-title { margin: 0 0 8px; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; color: #fff; }
.promo-names { margin: 0 0 16px; font-size: 14px; color: rgba(255,255,255,.62); }
.promo-price { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 24px; color: #fff; }
.promo-price s { color: rgba(255,255,255,.45); font-size: 17px; }
.promo-price strong { font-family: var(--font-display); font-size: 30px; color: var(--pink); }
.save-chip { background: rgba(255,255,255,.14); color: #fff; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.promo-btn {
  border: 0; border-radius: 999px; padding: 15px 34px; cursor: pointer;
  background: var(--pink); color: #000; font-weight: 800; font-size: 16px;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.promo-btn:hover { background: var(--red); color: #fff; transform: translateY(-1px); }

@media (max-width: 650px) {
  .promo-slide { min-height: 410px; padding: 38px 18px 66px; }
  .promo-logos { gap: 12px; margin-bottom: 18px; }
  .promo-logo { width: 84px; height: 84px; border-radius: 20px; }
  .promo-logo .logo-ph { font-size: 32px; }
  .promo-plus { font-size: 30px; }
  .promo-price strong { font-size: 26px; }
  .promo-btn { width: 100%; max-width: 300px; }
  .promo-hero { margin-bottom: 50px; }
}
@media (prefers-reduced-motion: reduce) { .promo-slide, .promo-slide.is-active { transition: none; } }
