/* ============================================================
   Industrial Vastu Mastery Program — Mobile-first stylesheet
   ============================================================ */

/* ── Reset & base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #1B2D4F;
  --navy-dark:  #111e36;
  --navy-light: #243d6a;
  --gold:       #D4961A;
  --gold-light: #F5C842;
  --gold-pale:  #FFF8E7;
  --sage:       #2E5247;
  --sage-light: #EAF3EE;
  --white:      #FFFFFF;
  --offwhite:   #F8F9FA;
  --grey-100:   #F1F3F5;
  --grey-300:   #DEE2E6;
  --grey-500:   #868E96;
  --grey-700:   #495057;
  --text:       #1A1A2E;
  --radius:     8px;
  --radius-lg:  14px;
  --shadow:     0 2px 12px rgba(0,0,0,.12);
  --shadow-lg:  0 6px 30px rgba(0,0,0,.18);
  --transition: .22s ease;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── Typography helpers ────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(1.6rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 4vw, 2rem); }
h3 { font-size: clamp(1.05rem, 3vw, 1.35rem); }

.text-white h1, .text-white h2, .text-white h3,
.text-white p { color: var(--white); }

/* ── Layout helpers ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  padding-inline: 1rem;
}

section { padding-block: 2.5rem; }

.divider {
  width: 56px; height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: .75rem 0 1.25rem;
}
.divider.center { margin-inline: auto; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: .85rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-align: center;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
  box-shadow: 0 4px 18px rgba(212,150,26,.4);
}
.btn-gold:hover {
  background: var(--gold-light);
  box-shadow: 0 6px 24px rgba(212,150,26,.55);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.65);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
}

.btn-full { width: 100%; display: block; }

/* ── Sticky header ─────────────────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-dark);
  border-bottom: 2px solid var(--gold);
  padding: .6rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.site-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.site-logo span { color: var(--gold); display: block; font-size: .7rem; letter-spacing: .08em; font-family: 'Poppins', sans-serif; font-weight: 500; }

.header-logo { height: 36px; width: auto; display: block; }

.header-cta {
  font-size: .82rem;
  padding: .55rem 1.1rem;
  flex-shrink: 0;
}

/* ── Hero ──────────────────────────────────────────────────── */
#hero {
  background: var(--navy-dark);
  color: var(--white);
  padding-block: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}

/* Photo layer — sits behind overlay */
.hero-bg-photo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-bg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* Dark overlay — above photo, below content */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10,18,36,.88) 0%,
    rgba(10,18,36,.80) 45%,
    rgba(10,18,36,.88) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Hero two-column layout */
.hero-layout {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.hero-text {
  flex: 1 1 0;
  min-width: 0;
}

.hero-portrait {
  display: none; /* hidden on mobile */
  flex: 0 0 auto;
  align-self: flex-end;
  width: clamp(220px, 36%, 420px);
  position: relative;
  pointer-events: none;
}
.hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}
/* Multi-directional fade — blends white bg into dark hero on all edges */
.hero-portrait::before { content: none; }
.hero-portrait::after  { content: none; }

@media (min-width: 700px) {
  .hero-portrait { display: block; }
}

/* Mobile-only portrait — hidden on desktop */
.hero-portrait-mobile { display: none; }
/* Wrapper is transparent on desktop — acts like a plain block */
.hero-meta-row { display: contents; }

@media (max-width: 699px) {
  #hero { padding-block: 1.25rem 1.5rem; }
  .hero-sub { margin-bottom: .9rem; }

  /* Two-column row: pills left, portrait right */
  .hero-meta-row {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: .6rem;
    margin-bottom: 1.25rem;
  }
  .hero-meta-row .program-meta {
    flex: 1 1 0;
    min-width: 0;
    margin-bottom: 0;
    gap: .32rem;
  }
  .hero-meta-row .meta-pill {
    font-size: .73rem;
    padding: .3rem .7rem;
  }
  .hero-meta-row .meta-pill svg { width: 12px; height: 12px; }
  .hero-portrait-mobile {
    display: block;
    flex: 0 0 130px;
    align-self: flex-end;
    pointer-events: none;
  }
  .hero-portrait-mobile img {
    display: block;
    width: 130px;
    height: 190px;
    object-fit: contain;
    object-position: bottom center;
    mix-blend-mode: multiply;
  }
  .hero-portrait-mobile::after { content: none; }
}

.hero-badge {
  display: inline-block;
  background: rgba(212,150,26,.2);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

#hero h1 {
  color: var(--white);
  margin-bottom: .75rem;
}

#hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}

.hero-sub {
  color: rgba(255,255,255,.82);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 540px;
}

/* Program meta pills */
.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.75rem;
}

.meta-pill {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  padding: .35rem .8rem;
  font-size: .82rem;
  color: var(--white);
}
.meta-pill svg { width:14px; height:14px; flex-shrink: 0; fill: var(--gold-light); }

.hero-fee-box {
  background: rgba(212,150,26,.15);
  border: 1px solid rgba(212,150,26,.4);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  margin-bottom: 1.5rem;
}
.hero-fee-box .fee-label { font-size: .78rem; color: rgba(255,255,255,.7); margin-bottom: .15rem; }
.hero-fee-box .fee-amount { font-size: 1.5rem; font-weight: 800; color: var(--gold-light); font-family: 'Playfair Display', serif; }
.hero-fee-box .fee-incl { font-size: .78rem; color: rgba(255,255,255,.65); margin-top: .15rem; }

.hero-buttons { display: flex; flex-direction: column; gap: .75rem; }

/* ── Countdown ─────────────────────────────────────────────── */
#countdown-section {
  background: var(--navy);
  padding-block: 1.75rem;
}

.countdown-label {
  text-align: center;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  max-width: 400px;
  margin-inline: auto;
}

.countdown-unit {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(212,150,26,.35);
  border-radius: var(--radius);
  padding: .85rem .4rem;
  text-align: center;
}
.countdown-unit .num {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
  font-family: 'Playfair Display', serif;
}
.countdown-unit .lbl {
  display: block;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-top: .3rem;
}

.countdown-closed {
  text-align: center;
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  padding: .5rem;
  display: none;
}

/* ── Stats strip ───────────────────────────────────────────── */
#stats-strip {
  background: var(--gold-pale);
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  padding-block: 1.25rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--gold);
}

.stat-item {
  background: var(--gold-pale);
  text-align: center;
  padding: 1rem .75rem;
}
.stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  font-family: 'Playfair Display', serif;
  display: block;
}
.stat-txt {
  font-size: .78rem;
  color: var(--grey-700);
  margin-top: .15rem;
}

/* ── Who is it for ─────────────────────────────────────────── */
#who-for {
  background: var(--offwhite);
}

.who-cards {
  display: grid;
  gap: .85rem;
  margin-top: 1.25rem;
}

.who-card {
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: .85rem;
  align-items: flex-start;
}

.who-card-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.who-card-icon svg { width: 18px; height: 18px; fill: var(--navy-dark); }

.who-card-text h3 { font-size: .98rem; color: var(--navy); margin-bottom: .2rem; }
.who-card-text p  { font-size: .85rem; color: var(--grey-700); line-height: 1.5; }

/* ── Program details ───────────────────────────────────────── */
#program-details {
  background: var(--white);
}

.includes-grid {
  display: grid;
  gap: .75rem;
  margin-top: 1.25rem;
}

.include-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: var(--sage-light);
  border-radius: var(--radius);
  padding: .9rem 1rem;
}

.include-icon {
  width: 32px; height: 32px;
  background: var(--sage);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.include-icon svg { width: 16px; height: 16px; fill: var(--white); }

.include-item h4 { font-size: .9rem; color: var(--navy); font-family: 'Poppins', sans-serif; font-weight: 700; }
.include-item p  { font-size: .82rem; color: var(--grey-700); margin-top: .1rem; }

/* Placeholder box */
.placeholder-block {
  background: var(--grey-100);
  border: 2px dashed var(--grey-300);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-top: 1.25rem;
  font-size: .85rem;
  color: var(--grey-700);
  font-style: italic;
}
.placeholder-block strong { color: var(--grey-500); font-style: normal; display: block; margin-bottom: .25rem; }

/* ── Spaces You'll Explore ─────────────────────────────────── */
#spaces {
  background: var(--navy-dark);
  padding-block: 2.5rem;
}
#spaces h2 { color: var(--white); }
#spaces > .container > p { color: rgba(255,255,255,.7); font-size: .9rem; margin-top: .4rem; }

.spaces-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin-top: 1.5rem;
}

.space-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(212,150,26,.22);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.space-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,150,26,.55);
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.space-card svg { display: block; width: 100%; height: auto; }
.space-card img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px 6px 0 0; }
.space-card-title {
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold-light);
  padding: .55rem .4rem;
  font-family: 'Poppins', sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.3;
}

@media (min-width: 600px) {
  .spaces-grid { grid-template-columns: repeat(4, 1fr); gap: .85rem; }
  .space-card-title { font-size: .75rem; padding: .65rem .5rem; }
}
@media (min-width: 900px) {
  .space-card-title { font-size: .78rem; }
}

/* ── Venue ─────────────────────────────────────────────────── */
#venue {
  background: var(--navy);
  color: var(--white);
  padding-block: 0;
  overflow: hidden;
}

.venue-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.venue-images img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.venue-images img:first-child {
  grid-column: 1 / -1;
  height: 220px;
}

.venue-content {
  padding: 2rem 1rem;
  text-align: center;
}
.venue-content h2 { color: var(--white); margin-bottom: .5rem; }
.venue-content p  { color: rgba(255,255,255,.8); font-size: .92rem; margin-top: .5rem; }
.venue-content .section-label { margin-top: .5rem; }

/* ── Trainer ───────────────────────────────────────────────── */
#trainer {
  background: var(--offwhite);
}

.trainer-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.trainer-photo-wrap {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  overflow: hidden;
}

.trainer-photo-wrap img {
  width: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.trainer-photo-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 3px dashed rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: rgba(255,255,255,.5);
  font-size: .75rem;
  text-align: center;
  padding: .5rem;
  margin: 1.5rem auto;
}
.trainer-photo-placeholder svg { width: 44px; height: 44px; fill: rgba(255,255,255,.3); margin-bottom: .4rem; }

.trainer-info {
  padding: 1.5rem;
}
.trainer-name {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: .15rem;
}
.trainer-title {
  font-size: .82rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.trainer-bio {
  font-size: .9rem;
  color: var(--grey-700);
  line-height: 1.65;
}

/* ── Application form ──────────────────────────────────────── */
#apply {
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
}

#apply h2 { color: var(--white); }

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

/* Progress bar */
.form-progress {
  margin-bottom: 1.5rem;
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: .5rem;
}
.progress-labels span {
  font-size: .78rem;
  font-weight: 600;
  color: var(--grey-500);
  transition: color var(--transition);
}
.progress-labels span.active { color: var(--navy); }
.progress-track {
  height: 6px;
  background: var(--grey-100);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 3px;
  transition: width .4s ease;
  width: 50%;
}

/* Steps */
.form-step { display: none; }
.form-step.active { display: block; }

.step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.1rem;
  font-family: 'Playfair Display', serif;
}

/* Question group */
.q-group { margin-bottom: 1.25rem; }
.q-label {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .6rem;
  line-height: 1.4;
}
.q-label em { color: var(--grey-500); font-size: .78rem; font-style: normal; font-weight: 400; display: block; margin-top: .2rem; }

/* Radio options */
.radio-options { display: flex; flex-direction: column; gap: .45rem; }

.radio-option {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  background: var(--grey-100);
  border: 2px solid var(--grey-300);
  border-radius: var(--radius);
  padding: .65rem .85rem;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  font-size: .88rem;
  line-height: 1.45;
  user-select: none;
  color: var(--text);
}

.radio-option input[type="radio"] {
  margin-top: .15rem;
  flex-shrink: 0;
  accent-color: var(--navy);
  width: 16px;
  height: 16px;
}

.radio-option:has(input:checked) {
  border-color: var(--navy);
  background: rgba(27,45,79,.06);
}

/* Text inputs */
.input-group { margin-bottom: 1.1rem; }
.input-label {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .4rem;
}
.form-input {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--grey-300);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color var(--transition);
  background: var(--white);
}
.form-input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,45,79,.1);
}

/* Consent */
.consent-text {
  font-size: .78rem;
  color: var(--grey-700);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.consent-text a { color: var(--navy); text-decoration: underline; }

/* Form navigation */
.form-nav {
  display: flex;
  gap: .75rem;
  margin-top: 1.1rem;
}
.btn-prev {
  background: var(--grey-100);
  color: var(--grey-700);
  border: 2px solid var(--grey-300);
}
.btn-prev:hover { background: var(--grey-300); }
.btn-submit { flex: 1; }

@media (max-width: 479px) {
  .form-nav { flex-wrap: wrap; }
  .btn-submit { width: 100%; flex: none; }
}

/* Messages */
.form-success, .form-error-box {
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  font-size: .9rem;
  font-weight: 600;
  margin-top: 1rem;
  display: none;
}
.form-success { background: #D4EDDA; color: #155724; border: 1px solid #C3E6CB; }
.form-error-box { background: #F8D7DA; color: #721C24; border: 1px solid #F5C6CB; }
.form-error-box ul { margin: .4rem 0 0 1rem; list-style: disc; font-weight: 400; }

/* ── FAQ ───────────────────────────────────────────────────── */
#faq {
  background: var(--white);
}

.faq-list { margin-top: 1.25rem; }

.faq-item {
  border-bottom: 1px solid var(--grey-300);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  text-align: left;
  font-family: inherit;
  font-size: .93rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}

.faq-q svg {
  width: 20px; height: 20px;
  fill: var(--gold);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.open .faq-q svg { transform: rotate(180deg); }

.faq-a {
  font-size: .88rem;
  color: var(--grey-700);
  line-height: 1.65;
  padding-bottom: 1rem;
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* ── Final CTA ─────────────────────────────────────────────── */
#final-cta {
  background: linear-gradient(135deg, var(--gold) 0%, #B8780E 100%);
  text-align: center;
  padding-block: 2.5rem;
}
#final-cta h2 { color: var(--navy-dark); font-size: clamp(1.2rem, 4vw, 1.75rem); }
#final-cta p { color: rgba(0,0,0,.7); font-size: .9rem; margin: .6rem 0 1.5rem; }
#final-cta .btn {
  background: var(--navy-dark);
  color: var(--white);
  border-color: var(--navy-dark);
}
#final-cta .btn:hover { background: var(--navy); }

/* ── Footer ────────────────────────────────────────────────── */
#site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.65);
  font-size: .82rem;
  padding-block: 1.75rem;
  text-align: center;
}
#site-footer a { color: var(--gold); text-decoration: underline; }
#site-footer p + p { margin-top: .4rem; }
.footer-links { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }

/* ── Sticky CTA bar ────────────────────────────────────────── */
#sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--navy-dark);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -4px 24px rgba(0,0,0,.35);
  padding: .85rem 1rem;
  /* iOS safe-area-inset-bottom (notch / home indicator) */
  padding-bottom: max(.85rem, calc(.55rem + env(safe-area-inset-bottom)));
  /* Slide in from below */
  transform: translateY(calc(100% + 2px));
  visibility: hidden;
  transition: transform .3s cubic-bezier(.4,0,.2,1), visibility 0s .3s;
  will-change: transform;
}
#sticky-cta.visible {
  transform: translateY(0);
  visibility: visible;
  transition: transform .3s cubic-bezier(.4,0,.2,1), visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  #sticky-cta,
  #sticky-cta.visible { transition: none; }
}

.sticky-cta-inner {
  max-width: 900px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Trainer portrait inside sticky bar */
.sticky-portrait {
  flex-shrink: 0;
  width: 46px;
  height: 64px;
  overflow: hidden;
  border-radius: 8px;
  border: 1.5px solid rgba(212,150,26,.45);
  background: #f2eee8; /* matches the portrait's off-white bg so edges blend */
}
.sticky-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.sticky-cta-info {
  flex: 1 1 0;
  min-width: 0;
}
.sticky-full-title {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.sticky-price {
  display: block;
  font-size: .78rem;
  color: var(--gold-light);
  margin-top: .1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Mobile-only info lines — hidden on desktop */
.sticky-mobile-title { display: none; }
.sticky-mobile-date  { display: none; }
/* Row-break spacer — hidden on desktop (all items in one row) */
.sticky-break        { display: none; }

/* Countdown timer inside sticky bar — column layout: label above digits */
.sticky-timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  border-left:  1px solid rgba(255,255,255,.18);
  border-right: 1px solid rgba(255,255,255,.18);
  padding-inline: .9rem;
  gap: .18rem;
}
.sticky-timer-lbl {
  font-size: .56rem;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
  white-space: nowrap;
}
.sticky-timer-digits {
  display: flex;
  align-items: center;
  gap: .15rem;
}
.sticky-closed-msg {
  font-size: .75rem;
  font-weight: 700;
  color: rgba(255,255,255,.55);
  letter-spacing: .06em;
  text-transform: uppercase;
  display: none;
}
.sticky-tick {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 1.6ch;
}
.sticky-tick-num {
  font-size: .95rem;
  font-weight: 800;
  color: var(--gold-light);
  font-family: 'Playfair Display', serif;
  line-height: 1;
  letter-spacing: -.01em;
}
.sticky-tick-lbl {
  font-size: .56rem;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-top: .05rem;
  font-weight: 600;
}
.sticky-tick-sep {
  color: rgba(255,255,255,.35);
  font-size: .7rem;
  font-weight: 700;
  align-self: flex-start;
  padding-top: .08rem;
  margin-inline: .05rem;
}

.sticky-cta-btns { flex-shrink: 0; }
.sticky-btn-full  { white-space: nowrap; }
.sticky-btn-compact { display: none; white-space: nowrap; }

/* ── Mobile two-row layout (≤540px) ─────────────────────────────────────────
   Row 1: portrait | programme name · date · price
   Row 2: "Program begins in" D:H:M:S | Apply for the Program
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 540px) {
  #sticky-cta {
    padding: .8rem .9rem;
    padding-bottom: max(.8rem, calc(.55rem + env(safe-area-inset-bottom)));
  }

  /* Flex-wrap puts portrait+info in row 1, then break forces row 2 for timer+button */
  .sticky-cta-inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 0 .75rem; /* zero row-gap; break element provides vertical spacing */
    justify-content: space-between;
  }

  /* ── Row 1 ── */
  .sticky-portrait {
    flex: 0 0 auto;
    width: 54px;
    height: 72px;
    border-radius: 8px;
    align-self: flex-start;
  }
  .sticky-cta-info {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .22rem;
    align-self: center;
  }
  .sticky-full-title      { display: none; }
  .sticky-mobile-title {
    display: block;
    font-size: .88rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.25;
    white-space: normal;
  }
  .sticky-mobile-date {
    display: block;
    font-size: .78rem;
    color: rgba(255,255,255,.8);
    white-space: nowrap;
  }
  .sticky-price {
    white-space: normal;
    font-size: .72rem;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.35;
  }

  /* Row-break: 100% width forces flex-wrap to push timer+button to their own row */
  .sticky-break {
    display: block;
    flex: 0 0 100%;
    height: .6rem; /* vertical gap between row 1 and row 2 */
  }

  /* ── Row 2 ── */
  .sticky-timer {
    flex: 1 1 auto;
    border: none;
    padding-inline: 0;
    gap: .2rem;
    align-items: flex-start;
  }
  .sticky-timer-lbl {
    display: block;
    font-size: .6rem;
    text-align: left;
  }
  .sticky-timer-digits { gap: .12rem; }
  .sticky-tick-num     { font-size: .88rem; }
  .sticky-tick-lbl     { font-size: .52rem; }
  /* Show seconds on mobile (row 2 has space for all four units) */
  .sticky-secs-tick,
  .sticky-secs-sep     { display: flex; }
  .sticky-closed-msg   { font-size: .72rem; }

  .sticky-cta-btns     { flex: 0 0 auto; }
  /* Full-text button in row 2 */
  .sticky-btn-full {
    display: inline-block;
    white-space: nowrap;
    padding: .65rem 1.1rem;
    font-size: .82rem;
  }
  .sticky-btn-compact  { display: none; }
}

/* ── Utility ───────────────────────────────────────────────── */
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.text-center { text-align: center; }

/* ── Desktop breakpoints ───────────────────────────────────── */
@media (min-width: 480px) {
  .hero-buttons { flex-direction: row; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .includes-grid { grid-template-columns: repeat(2, 1fr); }
  .form-card { padding: 2rem 1.75rem; }
}

@media (min-width: 700px) {
  section { padding-block: 3.5rem; }
  .who-cards { grid-template-columns: repeat(2, 1fr); }
  .trainer-card { display: grid; grid-template-columns: 220px 1fr; }
  .trainer-photo-wrap { min-height: unset; }
  .venue-images img:first-child { height: 300px; }
  .venue-images img { height: 200px; }
  .countdown-unit .num { font-size: 2.4rem; }
}

@media (min-width: 900px) {
  .who-cards { grid-template-columns: repeat(2, 1fr); }
  .includes-grid { grid-template-columns: repeat(2, 1fr); }
}
