/* =========================================================
   CLUB FITNESS — Inner page components
   ========================================================= */

/* ---------- Page hero (sub-banner) ---------- */
.page-hero { position: relative; padding: clamp(140px, 18vh, 200px) 0 clamp(50px, 7vw, 90px); overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 90% at 80% 0%, rgba(107,192,192,0.14), transparent 55%),
    radial-gradient(50% 80% at 5% 100%, rgba(198,213,132,0.10), transparent 55%),
    linear-gradient(180deg, #1f1f1e, #242423); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { margin: 16px 0 20px; max-width: 16ch; }
.page-hero .lead { max-width: 56ch; }
.breadcrumb { display: flex; gap: 10px; align-items: center; font-size: 0.82rem; color: var(--muted-2); margin-bottom: 6px; }
.breadcrumb a { color: var(--muted); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--aqua); }
.breadcrumb span { color: var(--lime); }

/* ---------- Generic content blocks ---------- */
.prose p { color: var(--muted); margin-bottom: 18px; max-width: 65ch; }
.prose p:last-child { margin-bottom: 0; }
.prose .accent-lead { color: var(--text); font-size: 1.1rem; }

/* alternating split rows */
.split-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.split-row + .split-row { margin-top: clamp(40px, 6vw, 90px); }
.split-row__media { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; position: relative;
  background: linear-gradient(150deg, #2c2f27, #283130); border: 1px solid var(--line); }
.split-row--rev .split-row__text { order: 2; }
.split-row--rev .split-row__media { order: 1; }
.split-row h2 { margin-bottom: 18px; }

/* feature list with check icons */
.check-list { display: grid; gap: 14px; margin-top: 22px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.check-list .ck { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  background: rgba(198,213,132,0.14); color: var(--lime); margin-top: 1px; }
.check-list .ck svg { width: 14px; height: 14px; }

/* ---------- Facilities cards (icon list) ---------- */
.facility-card { display: flex; gap: 20px; align-items: flex-start; }
.facility-card .card__icon { margin-bottom: 0; flex-shrink: 0; }

/* ---------- Numbered steps ---------- */
.steps { display: grid; gap: 18px; counter-reset: step; }
.step { display: flex; gap: 20px; align-items: flex-start; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 28px; transition: border-color 0.4s var(--ease), transform 0.4s var(--ease); }
.step:hover { border-color: var(--line-2); transform: translateX(4px); }
.step__num { flex: none; counter-increment: step; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--bg);
  background: linear-gradient(150deg, var(--aqua), var(--lime)); }
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Trainer cards ---------- */
.trainer-card { text-align: left; overflow: hidden; }
.trainer-card__photo { aspect-ratio: 1/1; border-radius: var(--radius-sm); overflow: hidden; position: relative; margin-bottom: 20px;
  background: linear-gradient(150deg, #2f322a, #283130); display: grid; place-items: center; }
.trainer-card__photo .initials { font-family: var(--font-display); font-weight: 700; font-size: 3rem;
  background: linear-gradient(120deg, var(--aqua), var(--lime)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.trainer-card h3 { margin-bottom: 2px; }
.trainer-card .role { color: var(--aqua); font-size: 0.85rem; margin-bottom: 12px; }
.trainer-card .bio { color: var(--muted); font-size: 0.95rem; }
.badge-placeholder { display: inline-block; font-size: 0.72rem; color: var(--muted-2); font-style: italic; }

/* ---------- Class filter bar ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; align-items: center; justify-content: space-between; }
.filter-bar__filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-btn { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 500;
  padding: 9px 18px; border-radius: 100px; color: var(--muted); border: 1px solid var(--line-2); background: transparent;
  transition: all 0.3s var(--ease); cursor: pointer; }
.filter-btn:hover { color: var(--text); border-color: var(--aqua); }
.filter-btn.active { background: linear-gradient(120deg, var(--aqua), var(--lime)); color: #1a1d16; border-color: transparent; }
.filter-search { position: relative; display: flex; align-items: center; }
.filter-search svg { position: absolute; left: 13px; color: var(--muted); pointer-events: none; flex-shrink: 0; }
.filter-search input { background: var(--card); border: 1px solid var(--line-2); border-radius: 100px;
  padding: 9px 18px 9px 38px; font-size: 0.85rem; color: var(--text); font-family: var(--font-body);
  outline: none; width: 220px; transition: border-color 0.3s; }
.filter-search input::placeholder { color: var(--muted-2); }
.filter-search input:focus { border-color: var(--aqua); }

/* ---------- Intensity badges ---------- */
.intensity-badge { position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-display); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 5px 12px; border-radius: 100px; }
.intensity-badge.intensity--low    { background: var(--aqua); color: #0d2424; border: none; }
.intensity-badge.intensity--medium { background: var(--lime); color: #1a1d16; border: none; }
.intensity-badge.intensity--high   { background: #dc5050;     color: #fff;    border: none; }

/* ---------- Timetable embed ---------- */
.embed-slot { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: clamp(40px, 6vw, 70px);
  text-align: center; background: var(--bg-2); }
.embed-slot .ic { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(107,192,192,0.12); color: var(--aqua); border: 1px solid var(--line-2); }
.embed-slot .ic svg { width: 28px; height: 28px; }
.embed-slot h3 { margin-bottom: 8px; }
.embed-slot p { color: var(--muted); max-width: 50ch; margin: 0 auto; }

/* ---------- Membership tabs + pricing ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.tab-btn { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; font-weight: 500;
  padding: 11px 22px; border-radius: 100px; color: var(--muted); border: 1px solid var(--line-2); background: transparent; transition: all 0.3s var(--ease); }
.tab-btn:hover { color: var(--text); border-color: var(--aqua); }
.tab-btn.active { background: linear-gradient(120deg, var(--aqua), var(--lime)); color: #1a1d16; border-color: transparent; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.price-card { display: flex; flex-direction: column; }
.price-card .plan { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.15rem; color: var(--text); margin-bottom: 6px; }
.price-card .amount { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--lime); }
.price-card .amount .cur { font-size: 1.1rem; color: var(--muted); vertical-align: top; margin-right: 2px; }
.price-card .per { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 8px; }
.price-card .note { font-size: 0.82rem; color: var(--aqua); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: flex-start; }
.price-card .note svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.price-card.featured { border-color: var(--aqua); box-shadow: 0 0 0 1px rgba(107,192,192,0.3), 0 20px 60px -30px rgba(107,192,192,0.4); }
.price-card .ribbon { position: absolute; top: 16px; right: 16px; font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.66rem; padding: 5px 12px; border-radius: 100px; background: var(--lime); color: #20231a; }

/* ---------- App / Gym Master ---------- */
.store-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.store-btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: 14px;
  background: var(--bg-2); border: 1px solid var(--line-2); transition: all 0.4s var(--ease); }
.store-btn:hover { transform: translateY(-3px); border-color: var(--aqua); box-shadow: var(--glow-aqua); }
.store-btn svg { width: 26px; height: 26px; color: var(--text); }
.store-btn .s { display: block; font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.store-btn .l { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--text); }
.app-mock { aspect-ratio: 9/16; max-width: 300px; margin-inline: auto; border-radius: 28px; border: 1px solid var(--line-2);
  background: linear-gradient(160deg, #2a2d26, #20231f); position: relative; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,0.8); }
.app-mock::before { content:""; position:absolute; top:14px; left:50%; transform:translateX(-50%); width:90px; height:6px; border-radius:6px; background: var(--line-2); }
.app-mock .glow { position:absolute; inset:0; background: radial-gradient(60% 40% at 50% 20%, rgba(107,192,192,0.2), transparent 60%); }

/* ---------- Info rows (shared with home) ---------- */
.info-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: none; }
.info-row .ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: rgba(107,192,192,0.12); color: var(--aqua); border: 1px solid var(--line-2); }
.info-row .ic svg { width: 20px; height: 20px; }
.info-row h4 { font-size: 0.78rem; letter-spacing: 0.18em; color: var(--muted); margin-bottom: 4px; }
.info-row p { color: var(--text); font-size: 1.02rem; }

/* ---------- Hours table ---------- */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.hours-table tr:last-child td { border-bottom: none; }
.hours-table td:first-child { color: var(--muted); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.95rem; }
.hours-table td:last-child { text-align: right; font-weight: 500; }

/* ---------- Accordion (FAQ) ---------- */
.faq-group { margin-bottom: 44px; }
.faq-group__title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.9rem;
  color: var(--lime); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.accordion__item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden;
  background: var(--bg-2); transition: border-color 0.4s var(--ease); }
.accordion__item:hover { border-color: var(--line-2); }
.accordion__item.open { border-color: var(--line-2); }
.accordion__q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 24px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; font-size: 1.02rem; color: var(--text); }
.accordion__q .ic { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--aqua); transition: transform 0.4s var(--ease), background 0.4s var(--ease); position: relative; }
.accordion__q .ic::before, .accordion__q .ic::after { content:""; position:absolute; background: currentColor; border-radius: 2px; }
.accordion__q .ic::before { width: 12px; height: 2px; }
.accordion__q .ic::after { width: 2px; height: 12px; transition: transform 0.4s var(--ease); }
.accordion__item.open .ic { background: rgba(107,192,192,0.14); }
.accordion__item.open .ic::after { transform: scaleY(0); }
.accordion__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.accordion__a > div { overflow: hidden; }
.accordion__item.open .accordion__a { grid-template-rows: 1fr; }
.accordion__a p { color: var(--muted); padding: 0 24px 22px; font-size: 0.97rem; }
.accordion__a a { color: var(--aqua); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea, .field select { width: 100%; padding: 14px 16px; border-radius: 10px; background: var(--bg);
  border: 1px solid var(--line-2); color: var(--text); font-family: inherit; font-size: 0.97rem; transition: border-color 0.3s, box-shadow 0.3s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(107,192,192,0.18); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--muted-2); margin-top: 14px; }

/* ---------- CTA mini band ---------- */
.cta-mini { text-align: center; border: 1px solid var(--line-2); border-radius: var(--radius); padding: clamp(34px, 5vw, 56px);
  background: linear-gradient(120deg, #232a2a, #2a2e22); position: relative; overflow: hidden; }
.cta-mini::before { content:""; position:absolute; inset:0; background: radial-gradient(50% 100% at 50% 0%, rgba(107,192,192,0.16), transparent 60%); }
.cta-mini > * { position: relative; z-index: 1; }
.cta-mini h2 { margin-bottom: 14px; }
.cta-mini .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

@media (max-width: 860px) {
  .split-row, .contact-grid { grid-template-columns: 1fr; }
  .split-row--rev .split-row__text { order: 1; }
  .split-row--rev .split-row__media { order: 2; }
}
