/* ============================================
   Éclat Institute - Main Stylesheet
   Design: Afro-futurist luxury editorial
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Barlow:wght@300;400;500;600&family=Barlow+Condensed:wght@400;600;700&display=swap');

/* ── CSS Variables ─────────────────────────── */
:root {
  --gold:        #2563EB;       /* Vivid Blue (not dark) */
  --gold-light:  #60A5FA;       /* Soft Sky Blue */
  --gold-dark:   #1D4ED8;       /* Medium Blue for outlines */
  --gold-rgb:    37, 99, 235;   /* Vivid Blue RGB */
  --ink:         #F8FAFF;       /* Light body background (Ice White) */
  --ink-soft:    #FFFFFF;       /* Light card background */
  --ink-mid:     #EFF6FF;       /* Light alternate background (Pale Blue) */
  --white:       #1E293B;       /* Body text (Dark Slate, readable) */
  --white-dim:   #64748B;       /* Muted text (Medium Slate) */
  --accent:      #EF4444;       /* Vibrant Coral Red */
  --teal:        #06B6D4;       /* Sky Cyan */
  --font-display: 'Playfair Display', serif;
  --font-body:    'Barlow', sans-serif;
  --font-cond:    'Barlow Condensed', sans-serif;
  --max-w:       1280px;
  --radius:      4px;
  --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --border-color: rgba(37, 99, 235, 0.12);
  --chat-bg:      rgba(37, 99, 235, 0.03);
  --shadow-card:  0 20px 50px rgba(30, 41, 59, 0.06), 0 10px 30px rgba(37, 99, 235, 0.06);
  --shadow-hover: 0 20px 40px rgba(37, 99, 235, 0.15);
  --shadow-role-student: 0 0 35px rgba(37, 99, 235, 0.15), 0 25px 60px rgba(30, 41, 59, 0.08);
  --shadow-role-teacher: 0 0 35px rgba(6, 182, 212, 0.15), 0 25px 60px rgba(30, 41, 59, 0.08);
  --shadow-role-parent: 0 0 35px rgba(239, 68, 68, 0.15), 0 25px 60px rgba(30, 41, 59, 0.08);
  --shadow-role-admin: 0 0 35px rgba(138, 43, 226, 0.15), 0 25px 60px rgba(30, 41, 59, 0.08);
}

/* Dark Theme Overrides */
[data-theme="dark"], body.dark-theme {
  --gold:        #C9A84C;       /* Gold brand color restored in dark mode */
  --gold-light:  #E8C97A;
  --gold-dark:   #8A6A1F;
  --gold-rgb:    201, 168, 76;  /* Gold brand color RGB */
  --ink:         #0B0F19;       /* Midnight Blue body background */
  --ink-soft:    #131A26;       /* Midnight Card background */
  --ink-mid:     #1B2535;       /* Midnight Alternate background */
  --white:       #F1F5F9;       /* Slate White text */
  --white-dim:   #94A3B8;       /* Slate Grey muted text */
  --accent:      #E05C3A;       /* Original terracotta accent */
  --teal:        #2ABFBF;       /* Original teal accent */
  --border-color: rgba(241, 245, 249, 0.1);
  --chat-bg:      rgba(11, 15, 25, 0.6);
  --shadow-card:  0 20px 50px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.5);
  --shadow-role-student: 0 0 35px rgba(201, 168, 76, 0.15), 0 25px 60px rgba(0, 0, 0, 0.6);
  --shadow-role-teacher: 0 0 35px rgba(42, 191, 191, 0.15), 0 25px 60px rgba(0, 0, 0, 0.6);
  --shadow-role-parent: 0 0 35px rgba(224, 92, 58, 0.15), 0 25px 60px rgba(0, 0, 0, 0.6);
  --shadow-role-admin: 0 0 35px rgba(138, 43, 226, 0.15), 0 25px 60px rgba(0, 0, 0, 0.6);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Scrollbar ─────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ── Noise texture overlay ─────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
}

/* ── Typography ────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; }
h1 { font-size: clamp(2.8rem, 7vw, 6rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 400; }

.label {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Layout Utilities ──────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; }
.section--tight { padding: 3rem 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-row { display: flex; align-items: center; }
.flex-center-wrap { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }
.grid-2-sm { grid-template-columns: 1fr 1.2fr; }
.gap-1 { gap: 1rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-gold { color: var(--gold); }
.text-accent { color: var(--accent); }
.lh-18 { line-height: 1.8; }
.lh-19 { line-height: 1.9; }
.mb-1 { margin-bottom: 1rem; }
.mt-05 { margin-top: 0.5rem; }
.mt-20 { margin-top: 2rem; }
.small-note { font-size: 0.82rem; color: var(--white-dim); margin-bottom: 1rem; }
.table-row-emph { font-weight: 500; color: var(--white); }
.table-meta { font-family: var(--font-cond); font-size: 0.75rem; color: var(--white-dim); }

/* ── Divider ───────────────────────────────── */
.divider {
  width: 60px; height: 2px;
  background: var(--gold);
  margin: 1.5rem 0;
}
.divider--center { margin: 1.5rem auto; }

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  transform: translateX(-100%);
  transition: var(--transition);
}
.btn:hover::before { transform: translateX(0); }

.btn-gold {
  background: var(--gold);
  color: #FFFFFF !important;
}
[data-theme="dark"] .btn-gold, body.dark-theme .btn-gold {
  color: #0A0A0F !important;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(var(--gold-rgb),0.35); }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover { background: var(--gold); color: #0A0A0F !important; }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(138,135,128,0.3);
}
[data-theme="dark"] .btn-ghost, body.dark-theme .btn-ghost {
  border-color: rgba(245,240,232,0.3);
}
.btn-ghost:hover { border-color: var(--white); }

.btn-accent {
  background: var(--accent);
  color: #FAF9F6 !important;
}
.btn-accent:hover { filter: brightness(1.15); transform: translateY(-2px); }

/* ── Navbar ────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(250,249,246,0.95);
  backdrop-filter: blur(20px);
  padding: 0.8rem 0;
  box-shadow: 0 1px 0 rgba(var(--gold-rgb),0.15);
}
[data-theme="dark"] .navbar.scrolled, body.dark-theme .navbar.scrolled {
  background: rgba(10,10,15,0.95);
  box-shadow: 0 1px 0 rgba(var(--gold-rgb),0.2);
}

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

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
}
.nav-logo img {
  height: 2rem;
  width: auto;
  display: block;
}
.nav-logo-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-cond);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: var(--transition);
  position: relative;
}

/* Simple modal for MPesa */
.modal { position:fixed; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,0.6); }
.modal-inner { background:var(--ink-soft); padding:2rem; border-radius:6px; max-width:420px; width:90%; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { width: 100%; }

.nav-cta { margin-left: 1rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--white);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}
.hamburger:hover span:nth-child(1) {
  transform: translateY(-2px);
  background: var(--gold);
}
.hamburger:hover span:nth-child(2) {
  transform: scaleX(0.85);
  transform-origin: right;
  background: var(--gold);
}
.hamburger:hover span:nth-child(3) {
  transform: translateY(2px);
  background: var(--gold);
}

/* ── Hero ──────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(var(--gold-rgb),0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 70% at 20% 80%, rgba(42,191,191,0.05) 0%, transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-mid) 100%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--gold-rgb),0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--gold-rgb),0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 2rem 0 max(2rem, calc((100vw - var(--max-w)) / 2 + 2rem));
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.hero-eyebrow::before {
  content: '';
  width: 40px; height: 1px;
  background: var(--gold);
}

.hero-title {
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--white-dim);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(var(--gold-rgb),0.15);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-top: 0.3rem;
}

.hero-visual {
  position: relative;
  z-index: 2;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-graphic {
  position: relative;
  width: 500px;
  height: 500px;
}

/* Utility classes to replace inline styles */
.bg-ink-mid { background: var(--ink-mid) !important; }
.muted { color: var(--white-dim) !important; }
.btn-full { width: 100%; justify-content: center; display: inline-flex; }
.btn-compact { font-size: 0.8rem; padding: 0.6rem 1.2rem; }
.center-max { max-width: 520px; margin: 1rem auto 0; }
.mt-15 { margin-top: 1.5rem; }
.mt-25 { margin-top: 2.5rem; }
.mt-05 { margin-top: 0.5rem; }
.mt-20 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.text-right { text-align: right; }
.small-note { font-size: 0.82rem; color: var(--white-dim); margin-bottom: 1rem; }
.no-transform { text-transform: none; }
.muted-dim { color: var(--white-dim); opacity: 0.6; }
.profile-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.big-icon { font-size: 4rem; }
.spacer-80 { height: 80px; }
.lh-19 { line-height: 1.9; }
.flex-row { display: flex; align-items: center; }
.gap-1 { gap: 1rem; }
.flex-center-wrap { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }
.form-group-inline { display:flex; flex-direction:row; align-items:center; gap:0.75rem; margin-bottom:0; }
.legend-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; display: inline-block; margin-right: 0.7rem; }
.legend-dot-gold { background: var(--gold); }
.legend-dot-teal { background: var(--teal); }
.legend-dot-accent { background: var(--accent); }
.legend-dot-muted { background: rgba(245,240,232,0.1); }
.table-row-emph { font-weight: 500; color: var(--white); }
.table-meta { font-family: var(--font-cond); font-size: 0.75rem; color: var(--white-dim); }

.hex-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(var(--gold-rgb),0.2);
  animation: spin linear infinite;
}
.hex-ring:nth-child(1) { inset: 0; animation-duration: 30s; }
.hex-ring:nth-child(2) { inset: 40px; animation-duration: 20s; animation-direction: reverse; border-color: rgba(42,191,191,0.15); }
.hex-ring:nth-child(3) { inset: 90px; animation-duration: 15s; border-color: rgba(224,92,58,0.1); }

.hex-core {
  position: absolute;
  inset: 150px;
  background: radial-gradient(circle, rgba(var(--gold-rgb),0.15) 0%, transparent 70%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hex-core-text {
  text-align: center;
}
.hex-core-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.floating-badge {
  position: absolute;
  background: var(--ink-mid);
  border: 1px solid rgba(var(--gold-rgb),0.3);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-cond);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  animation: float 3s ease-in-out infinite;
}
.floating-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
  margin-right: 0.5rem;
  animation: pulse 2s ease-in-out infinite;
}

.floating-badge:nth-child(5) { top: 18%; left: -10%; animation-delay: 0s; }
.floating-badge:nth-child(6) { top: 30%; right: -8%; animation-delay: 0.8s; }
.floating-badge:nth-child(7) { bottom: 30%; left: -5%; animation-delay: 1.6s; }
.floating-badge:nth-child(8) { bottom: 18%; right: 0%; animation-delay: 0.4s; }

@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ── Section Headers ───────────────────────── */
.section-header {
  margin-bottom: 4rem;
}

.section-header.center { text-align: center; }
.section-header.center .divider { margin: 1.5rem auto; }

/* ── Services ──────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5px;
  background: rgba(var(--gold-rgb),0.1);
  border: 1px solid rgba(var(--gold-rgb),0.1);
}

.service-card {
  background: var(--ink-soft);
  padding: 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { background: var(--ink-mid); transform: translateY(-3px); }

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  display: block;
  transition: var(--transition);
}
.service-card:hover .service-icon { transform: scale(1.1); }

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--white);
}
.service-card p {
  font-size: 0.9rem;
  color: var(--white-dim);
  line-height: 1.7;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}
.tag {
  font-family: var(--font-cond);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  background: rgba(var(--gold-rgb),0.1);
  border: 1px solid rgba(var(--gold-rgb),0.2);
  color: var(--gold);
  border-radius: 2px;
}

/* ── About Strip ───────────────────────────── */
.about-strip {
  background: var(--ink-mid);
  border-top: 1px solid rgba(var(--gold-rgb),0.1);
  border-bottom: 1px solid rgba(var(--gold-rgb),0.1);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: center;
}

.about-img-wrap {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--ink-soft);
  overflow: hidden;
}

.about-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(var(--gold-rgb),0.1) 0%, rgba(42,191,191,0.05) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: var(--font-cond);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-img-wrap:hover .about-img {
  transform: scale(1.05);
}

.about-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(var(--gold-rgb),0.2);
  pointer-events: none;
}

.about-badge {
  position: absolute;
  bottom: 2rem;
  right: -1.5rem;
  background: var(--gold);
  color: var(--ink);
  padding: 1.5rem;
  text-align: center;
  font-family: var(--font-display);
}
.about-badge strong { display: block; font-size: 2rem; line-height: 1; }
.about-badge span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; }

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.skill-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-cond);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.skill-bar {
  height: 5px;
  background: rgba(var(--gold-rgb), 0.12);
  border-radius: 3px;
  overflow: hidden;
}
.skill-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 3px;
  transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Courses / Education ───────────────────── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.course-card {
  background: var(--ink-soft);
  border: 1px solid rgba(var(--gold-rgb),0.1);
  overflow: hidden;
  transition: var(--transition);
}
.course-card:hover { border-color: rgba(var(--gold-rgb),0.4); transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.course-header {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(var(--gold-rgb),0.1) 0%, transparent 100%);
  position: relative;
}
.course-cat {
  font-family: var(--font-cond);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.course-icon-big { font-size: 2.5rem; position: absolute; top: 1.5rem; right: 1.5rem; opacity: 0.4; }

.course-body { padding: 1.5rem 2rem 2rem; }
.course-body p { font-size: 0.88rem; color: var(--white-dim); line-height: 1.7; margin-bottom: 1.5rem; }

.course-meta {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-cond);
  font-size: 0.8rem;
  color: var(--white-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.course-meta span::before { content: '● '; color: var(--teal); font-size: 0.5rem; vertical-align: middle; }

/* ── Testimonials ──────────────────────────── */
.testimonials-section { background: var(--ink-mid); }

.testimonials-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testi-card {
  background: var(--ink-soft);
  padding: 2.5rem;
  border-left: 2px solid var(--gold);
  position: relative;
}
.testi-card::before {
  content: '"';
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-family: var(--font-display);
  font-size: 5rem;
  color: rgba(var(--gold-rgb),0.1);
  line-height: 1;
}

.testi-text {
  font-size: 0.95rem;
  color: var(--white-dim);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 2rem;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.testi-name { font-family: var(--font-cond); font-weight: 600; font-size: 0.9rem; }
.testi-role { font-size: 0.78rem; color: var(--gold); margin-top: 0.1rem; }

/* ── CTA Banner ────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10,10,15,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,10,15,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.cta-inner {
  position: relative;
  text-align: center;
}
.cta-inner h2 { color: var(--ink); }
.cta-inner p { color: rgba(10,10,15,0.7); margin: 1rem 0 2.5rem; font-size: 1.1rem; }
.btn-dark { background: var(--ink); color: var(--gold); }
.btn-dark:hover { background: var(--ink-mid); }

/* ── Contact Section ───────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { color: var(--white-dim); line-height: 1.8; margin-bottom: 2.5rem; }

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.channel-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--ink-soft);
  border: 1px solid rgba(var(--gold-rgb),0.1);
  transition: var(--transition);
}
.channel-link:hover { border-color: var(--gold); background: var(--ink-mid); }
.channel-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.channel-label { font-family: var(--font-cond); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.channel-value { font-size: 0.9rem; color: var(--white-dim); margin-top: 0.15rem; }

/* Channel colors */
.ch-whatsapp .channel-icon { background: rgba(37,211,102,0.15); color: #25D366; }
.ch-instagram .channel-icon { background: rgba(228,64,95,0.15); color: #E4405F; }
.ch-twitter .channel-icon { background: rgba(29,161,242,0.15); color: #1DA1F2; }
.ch-email .channel-icon { background: rgba(var(--gold-rgb),0.15); color: var(--gold); }

/* ── Contact Form ──────────────────────────── */
.contact-form {
  background: var(--ink-soft);
  padding: 3rem;
  border: 1px solid rgba(var(--gold-rgb),0.1);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.form-group label {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--ink);
  border: 1px solid rgba(var(--gold-rgb),0.15);
  color: var(--white);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: var(--transition);
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb),0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--ink-mid); }

/* ── Footer ────────────────────────────────── */
.footer {
  background: var(--ink);
  border-top: 1px solid rgba(var(--gold-rgb),0.15);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--white-dim);
  line-height: 1.8;
  margin: 1rem 0 2rem;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}
.social-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius);
  border: 1px solid rgba(var(--gold-rgb),0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.social-btn:hover { background: var(--gold); border-color: var(--gold); }

.footer-col h4 {
  font-family: var(--font-cond);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col li a {
  font-size: 0.88rem;
  color: var(--white-dim);
  transition: var(--transition);
}
.footer-col li a:hover { color: var(--gold); padding-left: 0.3rem; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(245,240,232,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 0.82rem; color: var(--white-dim); }
.footer-bottom a { color: var(--gold); }

/* ── Page Hero (inner pages) ───────────────── */
.page-hero {
  padding: 8rem 0 5rem;
  background: linear-gradient(160deg, var(--ink-mid) 0%, var(--ink) 100%);
  border-bottom: 1px solid rgba(var(--gold-rgb),0.1);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(var(--gold-rgb),0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--gold-rgb),0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.page-hero p { font-size: 1.1rem; color: var(--white-dim); max-width: 600px; margin-top: 1rem; }
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-family: var(--font-cond);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--white-dim);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb span { opacity: 0.4; }

/* ── Toast Notification ────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--ink-mid);
  border: 1px solid var(--gold);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-cond);
  font-size: 0.9rem;
  z-index: 9998;
  transform: translateX(200%);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.toast.show { transform: translateX(0); }
.toast.success { border-color: #25D366; }
.toast.error { border-color: var(--accent); }

/* ── WhatsApp Float Button ─────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  z-index: 998;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
  animation: float 3s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.6); }

/* ── Back to top ───────────────────────────── */
.back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px; height: 44px;
  background: var(--gold-dark);
  border: 1px solid var(--gold);
  color: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 997;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.back-top.visible { opacity: 1; pointer-events: all; }
.back-top:hover { background: var(--gold); }

/* ── Mobile Menu ───────────────────────────── */
/* ── Mobile Menu ───────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(250,249,246,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 7rem 2rem 3rem;
  gap: 1.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="dark"] .mobile-menu, body.dark-theme .mobile-menu {
  background: rgba(10,10,15,0.92);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu a {
  font-family: var(--font-cond);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(15px);
}
.mobile-menu.open a {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered entrance animation delays */
.mobile-menu a:nth-child(2) { transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s, color 0.3s ease, transform 0.3s ease; }
.mobile-menu a:nth-child(3) { transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s, color 0.3s ease, transform 0.3s ease; }
.mobile-menu a:nth-child(4) { transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s, color 0.3s ease, transform 0.3s ease; }
.mobile-menu a:nth-child(5) { transition: opacity 0.4s ease 0.25s, transform 0.4s ease 0.25s, color 0.3s ease, transform 0.3s ease; }
.mobile-menu a:nth-child(6) { transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s, color 0.3s ease, transform 0.3s ease; }
.mobile-menu a:nth-child(7) { transition: opacity 0.4s ease 0.35s, transform 0.4s ease 0.35s, color 0.3s ease, transform 0.3s ease; }
.mobile-menu a:nth-child(8) { transition: opacity 0.4s ease 0.4s, transform 0.4s ease 0.4s, color 0.3s ease, transform 0.3s ease; }

.mobile-menu a:hover {
  color: var(--gold);
  transform: scale(1.05);
}
.mobile-close {
  position: fixed;
  top: calc(1.5rem + env(safe-area-inset-top, 0px));
  right: calc(2rem + env(safe-area-inset-right, 0px));
  z-index: 1001;
  background: rgba(var(--gold-rgb), 0.08);
  border: 1px solid rgba(var(--gold-rgb), 0.15);
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s ease;
}
.mobile-close:hover {
  background: var(--gold);
  color: #0A0A0F !important;
  transform: rotate(90deg);
}


/* ── Animations on scroll ──────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 8rem 0 4rem; }
  .hero-visual { display: none; }
  .hero-content { padding: 0 2rem; }
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .about-badge { right: 1rem; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .testimonials-track { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  h1 { font-size: 2.5rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .testimonials-track { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .section { padding: 4rem 0; }
  .contact-form { padding: 2rem 1.5rem; }
}

/* ── Floating Theme Toggle ─────────────────── */
.theme-toggle-float {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--ink-soft);
  border: 1px solid var(--gold);
  color: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 997;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.theme-toggle-float:hover {
  background: var(--gold);
  color: #0A0A0F !important;
  transform: scale(1.05);
}
[data-theme="dark"] .theme-toggle-float:hover, body.dark-theme .theme-toggle-float:hover {
  color: #0A0A0F;
}

