/* =============================================
   IMPACT MARTIAL ARTS ACADEMY — styles.css
   Brand Colors: Lime Green #7DC242, Charcoal #2B2B2B, Gray #9A9A9A
   ============================================= */

/* ===== CSS VARIABLES ===== */
:root {
  --green:        #7DC242;
  --green-dark:   #5f9a2e;
  --green-light:  #9fd460;
  --dark:         #1C1C1C;
  --darker:       #111111;
  --charcoal:     #2B2B2B;
  --gray:         #6B6B6B;
  --gray-light:   #BEBEBE;
  --off-white:    #F4F4F4;
  --white:        #FFFFFF;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.18);

  --radius:     8px;
  --radius-lg:  14px;
  --transition: 0.3s ease;

  --container:  1200px;
  --nav-h:      72px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 17px;
  background: var(--darker);
  overscroll-behavior-y: none;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--darker);
  line-height: 1.7;
  margin: 0;
  padding: 0;
  overscroll-behavior-y: none;
}

.page-wrapper {
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ===== UTILITY ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; background: var(--white); }
.section-dark  { background: var(--charcoal); color: var(--white); }
.section-light { background: var(--off-white); }

.text-green { color: var(--green); }.text-white { color: var(--white); }
.text-gray  { color: rgba(255,255,255,0.92); }
.text-center { text-align: center; }

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.section-label-light { color: var(--green-light); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 560px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header .section-desc { margin: 0 auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(125, 194, 66, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-light);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn-nav {
  background: var(--green);
  color: var(--white);
  padding: 8px 20px;
  font-size: 0.9rem;
}
.btn-nav:hover { background: var(--green-dark); }

.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-full { width: 100%; }

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }

/* ===== NAVIGATION ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  border: none;
  transition: background var(--transition), box-shadow var(--transition);
  background: transparent;
}
.site-header.scrolled,
.site-header.menu-open {
  background: rgba(20,20,20,0.97);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav-logo { flex-shrink: 0; }
.logo-img {
  display: block;
  width: auto;
  height: 72px;
  object-fit: contain;
  mix-blend-mode: lighten;
}
.logo-img--sm { height: 56px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 8px 12px;
  border-radius: 4px;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--green); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
  width: 100%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--darker);
}
.hero-bg-img {
  opacity: 0.78;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    /* Dark band on the left so text stays readable */
    linear-gradient(
      to right,
      rgba(10,10,10,0.78) 0%,
      rgba(10,10,10,0.52) 45%,
      rgba(10,10,10,0.15) 75%,
      rgba(10,10,10,0.08) 100%
    ),
    /* Bottom vignette to anchor the badges */
    linear-gradient(
      to top,
      rgba(0,0,0,0.50) 0%,
      transparent 40%
    ),
    /* Subtle green brand wash on the right edge */
    linear-gradient(
      to left,
      rgba(125,194,66,0.10) 0%,
      transparent 50%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.92);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.badge { text-align: center; }
.badge-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}
.badge-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.2);
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
  background: var(--green);
  color: var(--white);
  text-align: center;
  padding: 12px 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.announcement-link {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.announcement-link:hover { opacity: 0.85; }

/* ===== PROGRAMS ===== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}
@media (max-width: 960px) {
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .programs-grid { grid-template-columns: 1fr; }
}

.program-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.program-img-wrap {
  position: relative;
  height: 220px;
  background: var(--charcoal);
  overflow: hidden;
}
.program-img {
  transition: transform 0.5s ease;
}
.program-card:hover .program-img { transform: scale(1.05); }

/* PLACEHOLDER FALLBACK COLORS per program */
.program-card:nth-child(1) .program-img-wrap { background: #1e2d14; }
.program-card:nth-child(2) .program-img-wrap { background: #1a1a2a; }
.program-card:nth-child(3) .program-img-wrap { background: #2a1a1a; }
.program-card:nth-child(4) .program-img-wrap { background: #1a2520; }
.program-card:nth-child(5) .program-img-wrap { background: #252520; }
.program-card:nth-child(6) .program-img-wrap { background: #1e2020; }

.program-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
}
.program-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

.program-body {
  padding: 24px;
}
.program-body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--dark);
}
.program-body p {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 16px;
}
.program-link {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  transition: gap var(--transition);
}
.program-link:hover { color: var(--green-dark); }

.programs-cta { text-align: center; }

/* Force 3-col for the Titans pillars */
.programs-grid--3 { grid-template-columns: repeat(3, 1fr) !important; }
@media (max-width: 860px) { .programs-grid--3 { grid-template-columns: 1fr !important; } }

/* ===== BENEFITS GRID ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 48px 0;
}
.benefit-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 24px;
  border-left: 3px solid var(--green);
}
.benefit-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; }
.benefit-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}
.benefit-item p { font-size: 1rem; color: var(--gray); margin: 0; line-height: 1.65; }
@media (max-width: 600px) { .benefits-grid { grid-template-columns: 1fr; } }

/* ===== PRICING ===== */
.pricing-section {
  background: var(--green-dark);
  padding: 80px 0;
}
.pricing-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.pricing-text .section-label { color: rgba(255,255,255,0.7); }
.pricing-text .section-title { margin-bottom: 16px; }
.pricing-text p {
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  margin-bottom: 10px;
  font-size: 1rem;
}
.pricing-text strong { color: var(--white); }

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  min-width: 300px;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
}
.pricing-card p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 24px;
  line-height: 1.5;
}
.pricing-learn {
  display: block;
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color var(--transition);
}
.pricing-learn:hover { color: var(--green-dark); }

@media (max-width: 760px) {
  .pricing-inner {
    grid-template-columns: 1fr;
  }
  .pricing-card { max-width: 100%; min-width: unset; }
}

/* ===== SCHEDULE ===== */
.schedule-wrap { margin-bottom: 32px; }

.schedule-scroll {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
  -webkit-overflow-scrolling: touch;
}

/* Mobile schedule — hide table, show stacked day cards */
.schedule-mobile { display: none; }

@media (max-width: 680px) {
  .schedule-scroll { display: none; }
  .schedule-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
  }
  .sched-day {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .sched-day-header {
    background: rgba(125,194,66,0.15);
    padding: 10px 16px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green);
    border-bottom: 1px solid rgba(125,194,66,0.2);
  }
  .sched-day-classes {
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .sched-row {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .sched-time {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    width: 60px;
    flex-shrink: 0;
  }
  .sched-empty {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.25);
    font-style: italic;
    padding: 4px 0;
  }
}

.schedule-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.schedule-table thead tr {
  background: rgba(125,194,66,0.12);
  border-bottom: 2px solid var(--green);
}

.schedule-table thead th {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  padding: 14px 12px;
  text-align: center;
  white-space: nowrap;
}

.schedule-table thead th:first-child { text-align: left; padding-left: 20px; }

.schedule-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background var(--transition);
}
.schedule-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.schedule-table tbody tr:last-child { border-bottom: none; }

.schedule-table td {
  padding: 10px 8px;
  text-align: center;
  vertical-align: middle;
  color: var(--gray-light);
}

.time-col {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5) !important;
  white-space: nowrap;
  text-align: left !important;
  padding-left: 20px !important;
  letter-spacing: 0.04em;
}

.sunday-col {
  color: rgba(255,255,255,0.18) !important;
  font-size: 0.8rem;
  font-style: italic;
}

.class-pill {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}

/* Adult classes — green */
.class-pill--adult {
  background: rgba(125,194,66,0.15);
  color: var(--green-light);
  border: 1px solid rgba(125,194,66,0.3);
}

/* Kids programs — warm amber */
.class-pill--kids {
  background: rgba(255,180,50,0.12);
  color: #fbbf24;
  border: 1px solid rgba(255,180,50,0.25);
}

/* Competition / sparring — red-orange */
.class-pill--comp {
  background: rgba(239,100,60,0.12);
  color: #f87171;
  border: 1px solid rgba(239,100,60,0.25);
}

.schedule-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  padding: 0 4px;
  align-items: center;
}
.legend-item {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: var(--gray);
}

.schedule-cta { text-align: center; margin-top: 40px; }

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-images {
  position: relative;
  height: 520px;
}
.about-img-main-wrap {
  position: absolute;
  top: 0; left: 0;
  width: 75%;
  height: 80%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #333;
  box-shadow: var(--shadow-lg);
}
.about-img-secondary-wrap {
  position: absolute;
  bottom: 0; right: 0;
  width: 52%;
  height: 48%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #3a3a3a;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--charcoal);
}
.about-img-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  padding: 12px 20px;
  text-align: center;
  z-index: 2;
  box-shadow: var(--shadow-md);
}
.about-badge-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.about-badge-label {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.9;
  line-height: 1.2;
}

.about-content p {
  color: rgba(255,255,255,0.88);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-features {
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
}
.feature-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
}

.about-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-light);
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 24px;
  transition: color var(--transition);
}
.social-link:hover { color: var(--green-light); }


/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
  align-items: start;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.testimonial-card--featured {
  border-color: var(--green);
  border-width: 2px;
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.testimonial-card--featured:hover { transform: translateY(-12px); }

.testimonial-avatar-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--charcoal);
  border: 3px solid var(--green);
}
.testimonial-avatar { border-radius: 50%; }

.testimonial-card blockquote {
  font-size: 1.05rem;
  color: var(--charcoal);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  padding-left: 16px;
  border-left: 3px solid var(--green);
}

.testimonial-author strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
}
.testimonial-author span {
  font-size: 0.95rem;
  color: var(--gray);
}
.testimonial-stars {
  color: var(--green);
  font-size: 1rem;
  margin-top: 12px;
  letter-spacing: 2px;
}

.testimonials-cta { text-align: center; }
@media (max-width: 680px) {
  .testimonials-cta .btn {
    width: 100%;
    white-space: normal;
    line-height: 1.4;
  }
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info .section-title { margin-bottom: 12px; }
.contact-info > p { margin-bottom: 32px; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}
.contact-details li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  color: var(--gray-light);
}
.contact-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.contact-details strong {
  display: block;
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  font-family: var(--font-display);
}
.contact-details span, .contact-details a {
  font-size: 1.05rem;
  line-height: 1.6;
}
.contact-link {
  color: var(--green-light);
  transition: color var(--transition);
}
.contact-link:hover { color: var(--green); }

/* Contact Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 14px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 1.05rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(125,194,66,0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { cursor: pointer; }

.form-note {
  font-size: 0.95rem;
  color: var(--gray);
  text-align: center;
  margin-top: 12px;
}
.form-note a { color: var(--green); }

/* ===== FOOTER ===== */
.footer {
  background: var(--darker);
  color: var(--white);
  padding-top: 56px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-logo p {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
.footer-logo span { color: var(--gray); font-weight: 400; font-size: 0.85rem; }

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--green); }

.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--gray);
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover {
  background: var(--green);
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  transform: scale(0.94) translateY(16px);
  transition: transform var(--transition);
  box-shadow: var(--shadow-lg);
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }

.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 1.8rem;
  color: var(--gray);
  line-height: 1;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--dark); }

.modal-header {
  text-align: center;
  margin-bottom: 28px;
}
.modal-logo {
  display: block;
  height: 72px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 16px;
  background: var(--dark);
  border-radius: 50%;
  padding: 4px;
}
.modal-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.modal-header p {
  font-size: 0.95rem;
  color: var(--gray);
}

.modal-success {
  text-align: center;
  padding: 20px 0;
}
.success-icon { font-size: 3rem; margin-bottom: 16px; }
.modal-success h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.modal-success p {
  color: var(--gray);
  margin-bottom: 24px;
}

/* ===== RESPONSIVE — TABLET ===== */
@media (max-width: 960px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-images { height: 380px; }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .testimonial-card--featured { transform: none; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .gallery-item--large  { grid-row: span 1; }
  .gallery-item--wide   { grid-column: span 2; }
}

/* ===== RESPONSIVE — MOBILE ===== */
@media (max-width: 680px) {
  :root { --nav-h: 64px; }
  .section { padding: 64px 0; }

  /* Hard clamp — nothing should be wider than the screen */
  html, body { width: 100%; max-width: 100vw; margin: 0; padding: 0; }
  .container  { width: 100%; padding: 0 16px; }
  .section    { width: 100%; }
  .announcement-bar { width: 100%; }

  /* Fix logo clipping in nav */
  .logo-img { height: 52px; }
  .nav { padding: 0 16px; overflow: visible; }

  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    width: 100%;
    background: rgba(20,20,20,0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 0 24px;
    gap: 0;
    transform: translateY(calc(-100% - var(--nav-h)));
    transition: transform var(--transition);
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 999;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { padding: 0 24px; }
  .nav-links a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 1.1rem;
  }
  .btn-nav { margin: 16px 24px 0; display: block; text-align: center; }

  .hero-title { font-size: 3rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .programs-grid { grid-template-columns: 1fr; }

  .about-images { height: 300px; }
  .about-img-main-wrap { width: 80%; height: 75%; }
  .about-img-secondary-wrap { width: 55%; height: 45%; }

  .form-row { grid-template-columns: 1fr; }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .gallery-item { height: 200px; }
  .gallery-item--wide { grid-column: span 1; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-nav { gap: 16px; }

  .modal { padding: 28px 20px; }
}

/* ===== PLACEHOLDER IMAGE FALLBACK ===== */
/* Applied when img src is missing or broken */
.program-img:not([src]) { display: none; }

/* ===== CLASS PICKER ===== */
.slot-group-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.slot-required { color: #e53e3e; }

.slot-hint {
  font-size: 0.82rem;
  color: var(--gray);
  margin-bottom: 12px;
  line-height: 1.4;
}

/* --- Class type groups & pills --- */
.class-type-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.class-type-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.class-type-group-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-dark);
}

.class-type-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.class-pill-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
  user-select: none;
  white-space: nowrap;
}

.class-pill-btn input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.class-pill-btn:hover {
  border-color: var(--green);
  background: #f0f9e6;
  color: var(--green-dark);
}

.class-pill-btn:has(input:checked),
.class-pill-btn.selected {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

/* --- Week calendar --- */
.week-cal-wrap {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.week-cal-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 10px;
}

.week-cal {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.week-day-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.week-day-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gray);
}

.week-day-btn {
  width: 100%;
  padding: 8px 4px;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  background: #f0f9e6;
  color: var(--green-dark);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  line-height: 1.2;
  text-align: center;
}

.week-day-btn:hover {
  background: var(--green);
  color: #fff;
}

.week-day-btn.selected {
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 8px rgba(125,194,66,0.35);
}

.week-day-empty {
  width: 100%;
  padding: 8px 4px;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius);
  background: #f8fafc;
  color: #ccc;
  font-size: 0.85rem;
  text-align: center;
  display: block;
}

@media (max-width: 420px) {
  .week-cal {
    gap: 4px;
  }
  .week-day-btn,
  .week-day-empty {
    padding: 6px 2px;
    font-size: 0.75rem;
  }
  .week-day-label {
    font-size: 0.68rem;
  }
}