/* Bitesized Design System — 2026 Rebrand */
:root {
  --gold: #F5A800;
  --black: #111111;
  --white: #FAFAF7;
  --gray: #F0EFE9;
  --text-muted: #777;

  /* Legacy compat tokens (used by enroll.html / dashboard.html) */
  --bg-color: #FAFAF7;
  --text-primary: #111111;
  --text-secondary: #666666;
  --accent-color: #111111;
  --accent-hover: #333333;
  --border-color: #e0dfd8;
  --surface-color: #F0EFE9;
  --success-color: #2e7d32;
  --error-color: #d32f2f;

  --font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 48px;
  --font-size-h2: 32px;
  --font-size-sm: 14px;

  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 48px;
  --spacing-xl: 80px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-family);
  background: var(--white);
  color: var(--black);
  font-size: var(--font-size-base);
  line-height: 1.5;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

/* ─── Layout Utilities (legacy compat) ─── */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-md { margin-bottom: var(--spacing-md); }

/* ─── Legacy Components (enroll / dashboard) ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--text-primary);
}

.card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background-color: var(--surface-color);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.brand-logo {
  width: 28px;
  height: 28px;
  display: block;
}

.brand-text {
  line-height: 1;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: var(--white);
  border-bottom: 1px solid #e8e8e3;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--black);
}

.nav-wordmark {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.3px;
}

nav a.cta {
  background: var(--black);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

nav a.cta:hover { background: var(--gold); color: var(--black); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 100px 48px 60px;
  gap: 40px;
  overflow: hidden;
}

.hero-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-composite {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(52px, 7vw, 100px);
  line-height: 0.97;
  letter-spacing: -1px;
  max-width: 800px;
  margin-bottom: 32px;
}

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

.hero p.lead {
  font-size: 20px;
  line-height: 1.6;
  color: #444;
  max-width: 520px;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover { background: var(--gold); color: var(--black); }

.btn-secondary {
  color: var(--black);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1.5px solid var(--black);
  padding-bottom: 2px;
}

/* ─── SECTIONS ─── */
.section { padding: 100px 48px; }

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.section h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -1.5px;
  max-width: none;
  white-space: normal;
  text-wrap: balance;
  margin-bottom: 60px;
}

/* ─── FEATURES ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--gray);
  padding: 48px 36px;
  border-radius: 16px;
  transition: background 0.2s;
}

.feature-card:hover { background: var(--gold); }

.feature-icon {
  width: 56px; height: 56px;
  margin-bottom: 28px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--black);
}

.feature-card:hover .feature-icon svg {
  fill: var(--black);
}

.feature-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.feature-card p { font-size: 15px; line-height: 1.6; color: #555; }
.feature-card:hover p { color: #222; }

/* ─── CLASSES ─── */
.classes-section {
  background: var(--gray);
  padding: 100px 48px;
}

.classes-header {
  margin-bottom: 48px;
}

.classes-header h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -1px;
  line-height: 1;
  white-space: normal;
  text-wrap: balance;
  margin-bottom: 12px;
}

.classes-subtitle {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

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

.class-card {
  background: var(--white);
  border: 1px solid #e0dfd8;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.class-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.11);
}

.class-cover {
  width: 100%;
  padding: 7%;
  padding-bottom: 4%;
  overflow: visible;
  flex-shrink: 0;
  background: transparent;
}

.class-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.10);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.class-card:hover .class-cover img {
  transform: scale(1.03) translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.22), 0 4px 12px rgba(0,0,0,0.10);
}

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

.class-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.class-tag {
  background: var(--gold);
  color: var(--black);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.class-days { font-size: 12px; color: var(--text-muted); }

.class-desc {
  font-size: 14px;
  line-height: 1.65;
  color: #666;
  margin-bottom: 24px;
  flex: 1;
}

.class-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--black);
  color: var(--white);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 100px;
  align-self: flex-start;
  transition: background 0.2s, color 0.2s;
}

.class-cta:hover {
  background: var(--gold);
  color: var(--black);
}

.class-cta-arrow {
  font-size: 15px;
  line-height: 1;
  transition: transform 0.2s;
}

.class-cta:hover .class-cta-arrow {
  transform: translateX(3px);
}

/* ─── CTA BAND ─── */
.cta-band {
  background: var(--gold);
  padding: 100px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-band h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 4vw, 60px);
  letter-spacing: -1px;
  line-height: 1;
  max-width: 600px;
}

.cta-band .btn-primary {
  background: var(--black);
  color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 17px;
  padding: 18px 38px;
}

.cta-band .btn-primary:hover { background: var(--white); color: var(--black); }

/* ─── FOOTER ─── */
footer {
  background: var(--black);
  color: var(--white);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}

footer p { font-size: 13px; color: #666; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .hero {
    grid-template-columns: 1fr;
    padding: 100px 24px 60px;
    gap: 32px;
    min-height: auto;
  }
  .hero-visual { max-width: 380px; margin: 0 auto; }
  .hero h1 { font-size: 52px; }
  .section { padding: 60px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .classes-section { padding: 60px 24px; }
  .classes-grid { grid-template-columns: repeat(2, 1fr); }
  .classes-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cta-band { flex-direction: column; padding: 60px 24px; }
  footer { flex-direction: column; gap: 16px; padding: 32px 24px; }
}

@media (max-width: 560px) {
  nav {
    padding: 14px 16px;
  }
  nav a.cta {
    font-size: 12px;
    padding: 8px 14px;
  }
  .section h2 {
    font-size: clamp(30px, 9vw, 40px);
    line-height: 1.08;
  }
  .classes-grid { grid-template-columns: 1fr; }
}
