/* ============================================
   SmartB Academy - Global Styles (v2 Fresh)
   Mobile-first: base = 360px, scale up
   ============================================ */

:root {
  /* Colors - v7 palette (brand audit) */
  --blue:       #174263;
  --blue-text:  #12384F;
  --blue-light: #1D5280;
  --blue-soft:  rgba(23, 66, 99, 0.08);
  --blue-wash:  rgba(23, 66, 99, 0.06);
  --blue-hint:  rgba(23, 66, 99, 0.03);
  --blue-tint:  rgba(4, 38, 152, 0.08);
  --blue-tint-light: rgba(4, 38, 152, 0.06);
  --blue-tint-faint: rgba(4, 38, 152, 0.03);
  --blue-ring:  rgba(23, 66, 99, 0.15);
  --blue-mist:  rgba(23, 66, 99, 0.04);
  --blue-hover: rgba(23, 66, 99, 0.05);
  --blue-tint-bg: rgba(4, 38, 152, 0.025);
  --purple:     #3D0066;
  --green:      #16a34a;
  --green-soft: rgba(22, 163, 74, 0.08);
  --green-tint: rgba(22, 163, 74, 0.1);
  --grad:       linear-gradient(135deg, #0F2D45, #2A0047);
  --amber:      #B8780A;       /* darkened for WCAG AA on light bg (3.55:1) */
  --amber-d:    #9A6508;       /* hover state - 4.63:1 on cream */
  --amber-bright: #E8960A;    /* original - only on dark backgrounds */
  --white:      #FFFBF5;
  --pure-white: #FFFFFF;
  --bg:         #FFFBF5;
  --text:       #2D2D2D;
  --heading:    #1B1B1B;
  --muted:      #556677;
  --caption:    #475569;       /* small text - 7.35:1 AAA on cream */
  --border:     #E8E0D8;

  /* Semantic states */
  --success:      #15803D;
  --success-dark: #166534;
  --success-soft: rgba(21, 128, 61, 0.08);
  --success-bg:   #DCFCE7;
  --error:        #DC2626;
  --error-dark:   #991B1B;
  --error-soft:   rgba(220, 38, 38, 0.08);
  --error-bg:     #FEE2E2;
  --warning:      #B45309;
  --warning-soft: rgba(180, 83, 9, 0.08);
  --wa-green:     #25D366;

  /* Typography */
  --font:   'Satoshi', sans-serif;
  --font-s: 'Fraunces', serif;

  /* Sizing - mobile defaults */
  --hero-size: clamp(34px, 8vw, 62px);
  --sec-size:  clamp(30px, 5.5vw, 48px);
  --body-size: 18px;

  /* Spacing scale (4px base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-24: 96px;

  /* Spacing - mobile defaults, scale up via media queries */
  --sec-pad:  48px;
  --card-pad: 24px;
  --max-w:    1320px;

  /* Shape - v6 radii */
  --radius:     15px;
  --radius-sm:  10px;
  --radius-btn: 12px;

  /* Shadows */
  --sh:    0 4px 20px rgba(0, 0, 0, 0.06);
  --sh-hover: 0 16px 48px rgba(0, 0, 0, 0.08);

  /* Z-index scale - reference for all z-index values across the site
     900  - WhatsApp float button (.wa-float)
     999  - Scroll progress bar, mobile menu
     1000 - Navigation bar (.nav)
     1001 - Hamburger (above nav overlay)
     9998 - Film grain overlay
     10000 - Skip link (accessibility, topmost)
  */
}

@media (min-width: 768px) {
  :root {
    --sec-pad:  72px;
    --card-pad: 28px;
  }
}

@media (min-width: 1024px) {
  :root {
    --sec-pad:  100px;
    --card-pad: 32px;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--body-size);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
/* Reset removes list-style globally; re-add in content areas:
   .programme-part-list, .programme-agenda ul */
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; border: none; background: none; }
button { cursor: pointer; }

/* Typography */
h1, h2 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--heading);
}
h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--heading);
}
h1 { font-size: var(--hero-size); }
h2 { font-size: var(--sec-size); }
h3 { font-size: 20px; }
@media (min-width: 768px) { h3 { font-size: 22px; } }

p { color: var(--text); line-height: 1.7; }

/* Layout */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }
@media (min-width: 1440px) { .container { max-width: 1440px; padding: 0 60px; } }

.section { padding: var(--sec-pad) 0; }
.section-alt { padding: var(--sec-pad) 0; background: var(--bg); }

/* Section header */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 12px;
}

.sec-title { font-size: var(--sec-size); margin-bottom: 14px; }

.sec-desc {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.8;
}
@media (min-width: 768px) { .sec-desc { font-size: 18px; } }

.text-center { text-align: center; }
.text-center .sec-desc { margin: 0 auto; }

/* Gradient text */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Serif accent */
.accent {
  font-family: var(--font-s);
  font-style: italic;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-btn);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
@media (min-width: 768px) { .btn { padding: 14px 32px; font-size: 16px; } }
.btn:active { transform: translateY(0) !important; }

.btn-amber {
  background: var(--amber);
  color: var(--pure-white);
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(184, 120, 10, 0.25);
}
.btn-amber:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(184, 120, 10, 0.35); }

/* On dark backgrounds (hero, CTA band), use the brighter amber */
.hero .btn-amber,
.cta-band .btn-amber { background: var(--amber-bright); }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--blue); background: var(--blue-tint-faint); transform: translateY(-2px); }

.btn-white {
  background: var(--white);
  color: var(--text);
  font-weight: 700;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }

/* Accessibility - skip link only visible on keyboard focus */
.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -100%);
  padding: 10px 20px;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 10000;
  transition: transform 0.2s ease;
  text-decoration: none;
}
.skip-link:focus {
  transform: translate(-50%, 0);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* === TRAINER QUOTE (shared across pages) === */
.trainer-quote {
  padding: 16px 0 16px 18px;
  border-left: 3px solid var(--blue);
  margin: 20px 0;
}
.trainer-quote p {
  font-family: var(--font-s);
  font-style: italic;
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
}

/* === CTA BAND (shared across pages) === */
.cta-band {
  background: var(--grad);
  padding: var(--sec-pad) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band .container {
  position: relative;
  z-index: 1;
}
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.8); font-size: 16px; max-width: 480px; margin: 0 auto 28px; }
.cta-band-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (max-width: 479px) {
  .cta-band-btns { flex-direction: column; width: 100%; }
  .cta-band-btns .btn { width: 100%; text-align: center; }
}

/* === WHATSAPP FLOAT === */
.wa-float {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom)); right: max(20px, env(safe-area-inset-right));
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--wa-green);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 14px rgba(37, 211, 102, 0.3);
  z-index: 900;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }
.wa-float svg { width: 26px; height: 26px; fill: var(--pure-white); }
