/* =========================
   styles.css
   ========================= */

:root {
  --bg: #ffffff;
  --text: #1a2535;
  --muted: #62707c;
  --primary: #1a65f0;
  --primary-dark: #1450cc;
  --border: #dde2e8;
  --section-alt: #f0f3f8;
  --green: rgb(120, 200, 175);
  --section-green: #e8f5f1;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

/* ========================= LAYOUT ========================= */

:is(section, #top)[id] {
  scroll-margin-top: 149px;
}

.container {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--section-alt);
}

.section-green {
  background: var(--section-green);
}

.section:not(.section-alt):not(.section-green) {
  background: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-subtext {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 12px;
  margin-bottom: 0;
}

/* ========================= TYPOGRAPHY ========================= */

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}
h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}
h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 16px;
}
p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

/* ========================= BUTTONS ========================= */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.95rem;
  transition:
    background 0.2s,
    transform 0.15s,
    border-color 0.2s,
    color 0.2s;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.05rem;
}

/* ========================= HEADER ========================= */

.site-header {
  position: sticky;
  top: 0;
  background: var(--section-green);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.logo {
  height: 125px;
  width: auto;
  display: block;
}

.logo-footer {
  height: 44px;
  filter: brightness(0) invert(1);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav a:not(.btn) {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav a:not(.btn):hover {
  color: var(--text);
}

/* ========================= HERO ========================= */

.hero {
  padding: 72px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-copy .eyebrow {
  margin-bottom: 16px;
}

.hero-copy h1 {
  margin-bottom: 20px;
}

.hero-copy > p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-video {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}

.hero-video iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ========================= WHO IT'S FOR ========================= */

.who-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.who-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.who-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: white;
  flex-shrink: 0;
}

.who-icon svg {
  width: 24px;
  height: 24px;
}

.who-card h3 {
  margin-bottom: 8px;
}

.who-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ========================= WHY BOOMZOOM ========================= */

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.why-item:last-child:nth-child(odd) {
  grid-column: 2 / span 2;
}

.why-item {
  grid-column: span 2;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.why-icon {
  background: var(--primary);
  color: white;
  font-weight: bold;
  font-size: 0.85rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.why-item h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.why-item p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ========================= CLASSES ========================= */

.classes-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.class-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.class-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.class-card {
  grid-column: span 2;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.class-schedule {
  background: var(--primary);
  color: white;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.class-day {
  font-weight: bold;
  font-size: 0.95rem;
}

.class-time {
  font-size: 0.85rem;
  opacity: 0.9;
}

.class-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.class-body h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.class-body > p {
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 16px;
  flex: 1;
}

.class-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
}

.sample-class {
  margin-top: 56px;
  text-align: center;
}

.sample-class-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
}

.sample-class-video {
  aspect-ratio: 16 / 9;
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.sample-class-video iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ========================= YOUTUBE FACADE ========================= */

.yt-facade {
  display: grid;
  cursor: pointer;
  background: #000;
}

.yt-facade > img,
.yt-facade > button {
  grid-area: 1 / 1;
}

.yt-facade > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.88;
  transition: opacity 0.2s;
}

.yt-facade:hover > img {
  opacity: 1;
}

.yt-play {
  justify-self: center;
  align-self: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 0;
  z-index: 1;
  transition: transform 0.15s;
}

.yt-facade:hover .yt-play {
  transform: scale(1.1);
}

.yt-play svg {
  width: 68px;
  height: 48px;
  drop-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* ========================= HOW IT WORKS ========================= */

.steps {
  display: flex;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 1.3rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.step-body h3 {
  margin-bottom: 8px;
}

.step-body p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.step-connector {
  width: 80px;
  height: 2px;
  background: var(--border);
  margin-top: 28px;
  flex-shrink: 0;
}

/* ========================= INSTRUCTOR ========================= */

.instructor-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: start;
}

.instructor-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.instructor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.instructor-bio .eyebrow {
  margin-bottom: 8px;
}

.instructor-bio h2 {
  margin-bottom: 20px;
}


.instructor-quote {
  border-left: 4px solid var(--primary);
  margin: 24px 0;
  padding: 14px 20px;
  color: var(--text);
  font-style: italic;
  font-size: 1.1rem;
  background: white;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.certs-label {
  font-weight: bold;
  color: var(--text);
  margin-bottom: 8px;
}

.instructor-bio p:not(.certs-label) {
  color: var(--muted);
}

.certs-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.certs-logos img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

/* ========================= TESTIMONIALS ========================= */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: var(--shadow);
}

.testimonial-card::before {
  content: "\201C";
  font-size: 4rem;
  line-height: 1;
  color: var(--primary);
  font-family: Georgia, serif;
  margin-bottom: -16px;
}

.testimonial-quote {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.author-location {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ========================= PRICING ========================= */

.join-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.join-image-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.join-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: block;
}

.join-image-caption {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  margin: 0;
}

.pricing-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 48px;
  text-align: center;
  border: 2px solid var(--border);
}

.pricing-amount {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
  color: var(--primary);
}

.price-dollar {
  font-size: 1.8rem;
  font-weight: bold;
  padding-top: 10px;
}

.price-number {
  font-size: 5rem;
  font-weight: bold;
  line-height: 1;
}

.price-per {
  font-size: 1.2rem;
  color: var(--muted);
  padding-top: 26px;
}

.pricing-tagline {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 28px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  text-align: left;
}

.pricing-features li {
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.pricing-features li::before {
  content: "✓";
  color: var(--primary);
  font-weight: bold;
  flex-shrink: 0;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ========================= FOOTER ========================= */

.site-footer {
  background: var(--text);
  color: white;
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer .brand {
  color: white;
}

.footer-right {
  text-align: right;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 4px;
}

.footer-credit {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.28);
  margin: 0;
}

.footer-credit a {
  color: inherit;
  text-decoration: none;
}

.footer-credit a:hover {
  color: rgba(255, 255, 255, 0.55);
}

/* ========================= NAV TOGGLE (hidden on desktop) ========================= */

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  line-height: 0;
  flex-shrink: 0;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* ========================= RESPONSIVE ========================= */

/* --- Tablet (≤ 1024px) --- */
@media (max-width: 1024px) {
  .nav {
    gap: 16px;
  }

  .nav a {
    font-size: 0.8rem;
  }
}

/* --- Small tablet / large phone (≤ 900px) --- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .instructor-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .instructor-photo {
    aspect-ratio: 4 / 3;
    max-width: 420px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Mobile (≤ 768px) --- */
@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 48px 0;
  }

  /* Hamburger button */
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Nav becomes a full-width dropdown */
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 12px 16px 20px;
    gap: 4px;
    z-index: 99;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a:not(.btn) {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
  }

  .nav a:not(.btn):hover {
    background: var(--section-alt);
  }

  .nav .btn {
    display: block;
    text-align: center;
    margin-top: 8px;
    padding: 14px;
  }

  /* Grids */
  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-item,
  .why-item:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .classes-grid {
    grid-template-columns: 1fr;
  }

  .class-card,
  .class-card:nth-child(4),
  .class-card:nth-child(5) {
    grid-column: auto;
  }

  /* Steps */
  .steps {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .step {
    padding: 0;
    max-width: 360px;
  }

  .step-connector {
    width: 2px;
    height: 36px;
    margin: 0;
  }

  /* Join */
  .join-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pricing-card {
    padding: 32px 20px;
  }

  /* Certs */
  .certs-logos {
    gap: 16px;
  }

  .certs-logos img {
    height: 44px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* --- Small phone (≤ 480px) --- */
@media (max-width: 480px) {
  .logo {
    height: 52px;
  }

  :is(section, #top)[id] {
    scroll-margin-top: 76px;
  }

  .section {
    padding: 44px 0;
  }

  .hero {
    padding: 36px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .who-grid {
    grid-template-columns: 1fr;
  }

  .price-number {
    font-size: 4rem;
  }

  .sample-class-video {
    border-radius: var(--radius-sm);
  }
}
