/*
 * ============================================================
 *  Optimetrik Classes — Global Shared Stylesheet
 *  File: /classes/style.css
 *
 *  HOW TO USE:
 *  Add this ONE line inside <head> on every classes page,
 *  BEFORE the page's own <style> block:
 *
 *    <link rel="stylesheet" href="/classes/style.css">
 *
 *  ⚡ Change anything here → ALL 26 classes pages update instantly.
 * ============================================================
 */


/* ============================================================
   1. CSS VARIABLES — Change colors & fonts in ONE place
   ============================================================
   COMMON THINGS TO CHANGE:
   ─────────────────────────────────────────────────────────
   Nav/dark background?    → change --cls-dark
   Accent/highlight color? → change --cls-accent
   Heading color?          → change --cls-primary
   Body text color?        → change --cls-text
   Muted/light text?       → change --cls-muted
   Page background?        → change --cls-light
   Heading font?           → change --cls-font-heading
   Body/paragraph font?    → change --cls-font-body
   ─────────────────────────────────────────────────────────
*/
:root {
  /* ── Brand Colors ── */
  --cls-primary:   #1B2A4A;   /* headings, nav bg highlight */
  --cls-accent:    #F97316;   /* buttons, links, nav border */
  --cls-secondary: #0EA5E9;   /* secondary accent */
  --cls-dark:      #0D1B2A;   /* nav background, footer background */

  /* ── Text Colors ── */
  --cls-text:  #e0e0e0;   /* body paragraphs */
  --cls-muted: #64748B;   /* captions, labels, secondary text */

  /* ── Backgrounds ── */
  --cls-light: #F0F4FF;   /* card backgrounds, section alternates */
  --cls-white: #FFFFFF;

  /* ── Typography ── */
  --cls-font-heading: Calibri, 'Trebuchet MS', Arial, sans-serif;
  --cls-font-body:    Calibri, 'Trebuchet MS', Arial, sans-serif;

  /* ── Font Sizes — Headings ── */
  --cls-size-h1: clamp(2.2rem, 5vw, 3.8rem);
  --cls-size-h2: clamp(1.8rem, 4vw, 3rem);
  --cls-size-h3: clamp(1.2rem, 2.5vw, 1.7rem);
  --cls-size-h4: 1.05rem;

  /* ── Font Sizes — Body ── */
  --cls-size-body:  1.05rem;
  --cls-size-small: 0.9rem;
  --cls-size-tiny:  0.78rem;

  /* ── Line Heights ── */
  --cls-lh-heading: 1.15;
  --cls-lh-body:    1.75;

  /* ── Nav height ── */
  --cls-nav-h: 76px;
}


/* ============================================================
   2. GLOBAL RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--cls-font-body);
  font-size: var(--cls-size-body);
  color: var(--cls-text);
  line-height: var(--cls-lh-body);
  overflow-x: hidden;
  background: var(--cls-white);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: var(--cls-font-body);
  cursor: pointer;
}


/* ============================================================
   3. HEADINGS — Change font, size, color, weight here
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--cls-font-heading);
  font-weight: 700;
  color: var(--cls-primary);
  line-height: var(--cls-lh-heading);
}

h1 { font-size: var(--cls-size-h1); }
h2 { font-size: var(--cls-size-h2); }
h3 { font-size: var(--cls-size-h3); }
h4 { font-size: var(--cls-size-h4); }


/* ============================================================
   4. PARAGRAPHS & BODY TEXT
   ============================================================ */
p {
  font-family: var(--cls-font-body);
  font-size: var(--cls-size-body);
  color: var(--cls-text);
  line-height: var(--cls-lh-body);
}


/* ============================================================
   5. UTILITY CLASSES
   ============================================================ */

.cls-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Section label badge */
.cls-section-label {
  display: inline-block;
  background: rgba(249, 115, 22, 0.1);
  color: var(--cls-accent);
  border: 1px solid rgba(249, 115, 22, 0.25);
  padding: 0.28rem 0.9rem;
  border-radius: 50px;
  font-size: var(--cls-size-tiny);
  font-weight: 700;
  font-family: var(--cls-font-body);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

/* Muted text */
.cls-text-muted {
  color: var(--cls-muted);
  font-size: var(--cls-size-small);
}

/* Accent text */
.cls-text-accent {
  color: var(--cls-accent);
  font-weight: 700;
}

/* Focus ring */
:focus-visible {
  outline: 3px solid var(--cls-accent);
  outline-offset: 3px;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   6. BUTTONS
   ============================================================ */
.cls-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--cls-accent);
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-family: var(--cls-font-body);
  font-size: var(--cls-size-body);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}
.cls-btn-primary:hover {
  background: #ea6c0a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.45);
}

.cls-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-family: var(--cls-font-body);
  font-size: var(--cls-size-body);
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.25s;
}
.cls-btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}


/* ============================================================
   7. SECTION SPACING
   ============================================================ */
.cls-section {
  padding: 4.5rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

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

.cls-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.cls-section-header h2 {
  margin-bottom: 0.7rem;
}

.cls-section-header p {
  color: var(--cls-muted);
  max-width: 600px;
  margin: 0 auto;
}


/* ============================================================
   8. WHATSAPP FLOAT
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 9997;
  transition: transform 0.3s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}


/* ============================================================
   9. COURSE PAGE — Shared styles for all 21 course pages
   ============================================================ */

/* Syllabus module cards */
.module-card {
  background: var(--cls-white);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.module-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--cls-accent);
  color: #fff;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  font-family: var(--cls-font-heading);
  margin-bottom: 0.8rem;
}
.module-card h4 {
  color: var(--cls-primary);
  margin-bottom: 0.4rem;
}
.module-card p {
  font-size: var(--cls-size-small);
  color: var(--cls-muted);
  line-height: 1.65;
}

/* Enroll CTA strip */
.enroll-strip {
  background: linear-gradient(135deg, var(--cls-dark), var(--cls-primary));
  padding: 3rem 5%;
  text-align: center;
  color: #fff;
}
.enroll-strip h2 { color: #fff; margin-bottom: 0.7rem; }
.enroll-strip p  { color: rgba(255,255,255,0.75); margin-bottom: 1.5rem; max-width: 560px; margin-left: auto; margin-right: auto; }


/* ============================================================
   10. RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --cls-size-h1: clamp(1.9rem, 6vw, 2.8rem);
    --cls-size-h2: clamp(1.5rem, 5vw, 2.2rem);
    --cls-size-h3: clamp(1.1rem, 4vw, 1.4rem);
    --cls-size-body: 1rem;
    --cls-nav-h: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   11. FOOTER TEXT COLORS
   ============================================================ */
.cls-footer p {
  color: rgba(255, 255, 255, 0.85);
}

.cls-footer-bottom {
  color: rgba(255, 255, 255, 0.85);
}

.cls-footer-bottom p {
  color: rgba(255, 255, 255, 0.85);
}
