/* ===================================================
   LULEKA CARES — Design System 2026
   =================================================== */

:root {
  --teal:        #0A7C6E;
  --teal-dark:   #065A50;
  --teal-deep:   #0A2E32;
  --teal-tint:   #EEF7F6;
  --teal-mid:    #C6E8E4;
  --gold:        #C8972A;
  --gold-light:  #F5C842;
  --gold-tint:   #FEF9ED;
  --charcoal:    #1A1A1A;
  --charcoal-dim:#5A5A5A;
  --white:       #FAFAF8;
  --line:        #E2E2DE;
  --line-soft:   #F0F0EC;
  --success:     #1A7A4A;
  --danger:      #B23A2E;
  --radius:      10px;
  --radius-lg:   18px;
  --shadow-card: 0 4px 24px rgba(10,46,50,0.10);
  --shadow-lift: 0 12px 40px rgba(10,46,50,0.18);
  --mono:        'IBM Plex Mono', monospace;
  --sans:        'Inter', system-ui, sans-serif;
  --serif:       'Fraunces', Georgia, serif;
  --transition:  all 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--charcoal); background: var(--white); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
ul { list-style: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 80px 0; }
.text-center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 14px;
}
.eyebrow::before { content: ''; display: block; width: 28px; height: 2px; background: var(--gold); }

.section-title { font-family: var(--serif); font-size: clamp(1.8rem,3.5vw,2.8rem); line-height: 1.2; font-weight: 600; margin-bottom: 18px; }
.section-title em { color: var(--teal); font-style: normal; }
.section-lede { font-size: 1.05rem; color: var(--charcoal-dim); max-width: 640px; margin-bottom: 40px; }

/* ---- BUTTONS ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: var(--radius); font-weight: 600; font-size: 0.9rem; cursor: pointer; border: none; transition: var(--transition); text-decoration: none; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #a87920; color: #fff; }
.btn-outline { background: transparent; border: 2px solid currentColor; color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-ghost { background: transparent; color: var(--teal); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--teal-tint); }
.btn-sm { padding: 9px 18px; font-size: 0.82rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-wrap { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- TOPBAR ---- */
.topbar { background: var(--teal-deep); color: rgba(255,255,255,0.75); font-size: 0.78rem; padding: 9px 0; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar-left { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-left span { display: flex; align-items: center; gap: 6px; }
.topbar-right { display: flex; gap: 14px; align-items: center; }
.topbar-right a { color: rgba(255,255,255,0.75); font-weight: 500; }
.topbar-right a:hover { color: var(--gold-light); }

/* ---- NAV ---- */
#site-nav { position: sticky; top: 0; z-index: 200; background: rgba(250,250,248,0.96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 66px; }
.brand img { height: 46px; }
.nav-links { display: flex; gap: 28px; flex: 1; }
.nav-links a { font-size: 0.88rem; font-weight: 500; color: var(--charcoal); padding: 4px 0; border-bottom: 2px solid transparent; transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--teal); border-bottom-color: var(--teal); }
.nav-cta { margin-left: auto; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--charcoal); transition: var(--transition); }

/* ---- HERO ---- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(10,46,50,0.85) 40%, rgba(10,46,50,0.35) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 660px; padding: 80px 0; }
.hero-content .eyebrow { color: var(--gold-light); }
.hero-content .eyebrow::before { background: var(--gold-light); }
.hero-content h1 { font-family: var(--serif); font-size: clamp(2.2rem,5vw,3.8rem); color: #fff; line-height: 1.15; margin-bottom: 20px; font-weight: 700; }
.hero-content h1 em { color: var(--gold-light); font-style: normal; }
.hero-content p { font-size: 1.1rem; color: rgba(255,255,255,0.85); margin-bottom: 36px; max-width: 520px; }
.hero-badges { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 40px; }
.hero-badge { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); border-radius: 50px; padding: 8px 18px; color: rgba(255,255,255,0.85); font-size: 0.8rem; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.hero-badge i { color: var(--gold-light); }
.hero-scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.5); font-size: 0.75rem; display: flex; flex-direction: column; align-items: center; gap: 6px; animation: bounce 2s infinite; z-index: 2; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ---- STATS ROW ---- */
.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 40px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-card); }
.stat-label { display: block; font-size: 0.75rem; color: var(--charcoal-dim); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.stat-value { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--teal-deep); }
.stat-value.teal { color: var(--teal); }
.stat-value.gold { color: var(--gold); }

/* ---- FEATURES / CARDS ---- */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.course-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); box-shadow: var(--shadow-card); }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.course-media { overflow: hidden; aspect-ratio: 16/10; }
.course-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.course-card:hover .course-media img { transform: scale(1.04); }
.course-body { padding: 22px 24px; }
.course-body h3 { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 8px; color: var(--teal-deep); }
.course-body p { font-size: 0.88rem; color: var(--charcoal-dim); margin-bottom: 14px; }
.course-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-family: var(--mono); color: var(--teal); }
.course-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.course-price { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--teal-deep); }

/* ---- ABOUT ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-visual { position: relative; }
.about-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); width: 100%; object-fit: cover; max-height: 520px; }
.badge-est { position: absolute; bottom: -16px; right: -16px; background: var(--gold); color: #fff; border-radius: var(--radius); padding: 14px 18px; text-align: center; box-shadow: var(--shadow-lift); }
.badge-est strong { display: block; font-family: var(--serif); font-size: 1.8rem; line-height: 1; }
.badge-est { font-size: 0.78rem; }
.about-copy p { color: var(--charcoal-dim); margin-bottom: 16px; }

/* ---- VM GRID ---- */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.vm-card { background: #fff; border-radius: var(--radius-lg); padding: 32px; border-left: 4px solid var(--teal); box-shadow: var(--shadow-card); }
.vm-card h3 { font-family: var(--serif); font-size: 1.3rem; color: var(--teal-deep); margin-bottom: 10px; }

/* ---- CTA BAND ---- */
.cta-band { background: var(--teal-deep); border-radius: var(--radius-lg); padding: 40px 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h3 { font-family: var(--serif); font-size: 1.5rem; color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.7); }

/* ---- BREADCRUMB HERO ---- */
.breadcrumb-hero { background: var(--teal-deep); padding: 60px 0; }
.breadcrumb-hero .eyebrow { color: var(--gold-light); }
.breadcrumb-hero .eyebrow::before { background: var(--gold-light); }
.breadcrumb-hero h1 { font-family: var(--serif); font-size: clamp(2rem,4vw,3rem); color: #fff; font-weight: 700; margin-bottom: 10px; }
.breadcrumb-hero p { color: rgba(255,255,255,0.75); max-width: 540px; font-size: 1rem; }

/* ---- FOOTER ---- */
#site-footer { background: var(--teal-deep); color: rgba(255,255,255,0.75); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-brand img { height: 44px; margin-bottom: 16px; filter: brightness(0) invert(1); }
#site-footer p { font-size: 0.85rem; line-height: 1.7; }
.footer-social { display: flex; gap: 14px; margin-top: 20px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); font-size: 0.8rem; transition: var(--transition); }
.footer-social a:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
#site-footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; font-family: var(--mono); }
#site-footer ul li { margin-bottom: 10px; font-size: 0.85rem; display: flex; align-items: flex-start; gap: 8px; }
#site-footer ul li i { color: var(--gold-light); margin-top: 3px; flex-shrink: 0; }
#site-footer ul a { color: rgba(255,255,255,0.7); }
#site-footer ul a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; display: flex; justify-content: space-between; font-size: 0.78rem; color: rgba(255,255,255,0.45); gap: 16px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: rgba(255,255,255,0.8); }

/* ---- SPLIT PAGE (auth) ---- */
.split-page { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 66px); }
.split-form { display: flex; align-items: center; justify-content: center; padding: 48px 32px; }
.split-visual { position: relative; overflow: hidden; }
.split-visual img { width: 100%; height: 100%; object-fit: cover; }
.split-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,46,50,0.6) 0%, rgba(10,46,50,0.85) 100%); }
.split-visual-content { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; padding: 40px; }
.split-visual-content h2 { font-family: var(--serif); font-size: 1.6rem; color: #fff; margin: 8px 0; }
.split-visual-content p { color: rgba(255,255,255,0.75); font-size: 0.9rem; }

/* ---- AUTH SHELL ---- */
.auth-shell { max-width: 420px; width: 100%; }
.auth-head { margin-bottom: 28px; }
.auth-head h2 { font-family: var(--serif); font-size: 1.7rem; color: var(--teal-deep); }
.auth-switch { text-align: center; font-size: 0.85rem; color: var(--charcoal-dim); margin-top: 18px; }

/* ---- FORM ---- */
.form-shell { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-card); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--charcoal); }
.form-group input, .form-group select, .form-group textarea {
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 11px 14px; font-size: 0.9rem;
  font-family: var(--sans); color: var(--charcoal); background: #fff; transition: border-color .2s;
  width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(10,124,110,0.12);
}
.form-hint { font-size: 0.78rem; color: var(--charcoal-dim); }
.form-alert { background: #FBEAEA; color: var(--danger); border-radius: var(--radius); padding: 12px 14px; font-size: 0.86rem; }

/* ---- PORTAL / DASHBOARD ---- */
.portal-shell { display: flex; min-height: 100vh; }
.portal-sidebar { width: 250px; background: var(--teal-deep); display: flex; flex-direction: column; padding: 24px 0; flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.portal-sidebar .brand { padding: 0 20px 24px; display: block; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 16px; }
.portal-sidebar .brand img { height: 40px; filter: brightness(0) invert(1); }
.portal-nav { flex: 1; }
.portal-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: rgba(255,255,255,0.65); font-size: 0.88rem; font-weight: 500; transition: var(--transition); }
.portal-nav a:hover, .portal-nav a.active { color: #fff; background: rgba(255,255,255,0.1); }
.portal-nav a.active { border-right: 3px solid var(--gold); }
.portal-nav a .ic { width: 20px; text-align: center; }
.portal-sidebar-foot { padding: 20px; border-top: 1px solid rgba(255,255,255,0.1); margin-top: auto; }
.portal-user { display: flex; align-items: center; gap: 12px; }
.portal-user img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.portal-user strong { display: block; font-size: 0.85rem; color: #fff; }
.portal-user span { font-size: 0.75rem; color: rgba(255,255,255,0.55); }
.portal-main { flex: 1; padding: 36px 40px; overflow-y: auto; background: #F8F8F5; min-height: 100vh; }
.portal-topline { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.portal-topline h1 { font-family: var(--serif); font-size: 1.9rem; color: var(--teal-deep); margin-bottom: 4px; }
.portal-topline p { color: var(--charcoal-dim); font-size: 0.9rem; }

/* ---- PANEL ---- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 24px; box-shadow: var(--shadow-card); }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.panel-head h3 { font-family: var(--serif); font-size: 1.15rem; color: var(--teal-deep); }

/* ---- TABLE ---- */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.data-table th { text-align: left; padding: 10px 14px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--charcoal-dim); border-bottom: 2px solid var(--line); font-family: var(--mono); }
.data-table td { padding: 13px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--teal-tint); }
.table-search { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.table-search input, .table-search select { flex: 1; min-width: 160px; padding: 9px 13px; border: 1.5px solid var(--line); border-radius: var(--radius); font-size: 0.85rem; font-family: var(--sans); }
.table-search input:focus, .table-search select:focus { outline: none; border-color: var(--teal); }

/* ---- PILLS ---- */
.pill { display: inline-block; padding: 4px 11px; border-radius: 20px; font-size: 0.74rem; font-weight: 600; }
.pill.paid { background: #D4EDDA; color: var(--success); }
.pill.pending { background: var(--gold-tint); color: var(--gold); }
.pill.overdue { background: #FBEAEA; color: var(--danger); }
.pill.active { background: #D4EDDA; color: var(--success); }

/* ---- PROGRESS BAR ---- */
.progress-wrap { display: flex; align-items: center; gap: 10px; }
.progress-bar { flex: 1; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--teal); border-radius: 3px; transition: width 0.6s ease; }
.progress-pct { font-size: 0.78rem; color: var(--charcoal-dim); font-family: var(--mono); min-width: 36px; text-align: right; }

/* ---- MOODLE CALLOUT ---- */
.moodle-callout { display: flex; align-items: center; gap: 18px; background: linear-gradient(90deg, #EEF7F6 0%, #F9FEFF 100%); border: 1px solid var(--teal-mid); border-radius: var(--radius-lg); padding: 18px 22px; margin-bottom: 28px; }
.moodle-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.moodle-callout strong { display: block; font-size: 0.9rem; color: var(--teal-deep); }
.moodle-callout p { font-size: 0.82rem; color: var(--charcoal-dim); margin: 0; }

/* ---- COURSE CATALOGUE ---- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn { padding: 9px 20px; border: 1.5px solid var(--line); border-radius: 50px; font-size: 0.82rem; font-weight: 500; cursor: pointer; background: #fff; color: var(--charcoal); transition: var(--transition); }
.filter-btn:hover, .filter-btn.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.courses-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }

/* ---- SIGNUP STEPPER ---- */
.stepper { display: flex; align-items: center; gap: 0; margin-bottom: 36px; }
.step-item { display: flex; align-items: center; gap: 10px; }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--line); color: var(--charcoal-dim); font-weight: 700; font-size: 0.82rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.step-num.active { background: var(--teal); color: #fff; }
.step-num.done { background: var(--success); color: #fff; }
.step-label { font-size: 0.82rem; font-weight: 500; color: var(--charcoal-dim); }
.step-label.active { color: var(--teal); font-weight: 600; }
.step-line { flex: 1; height: 2px; background: var(--line); margin: 0 12px; }
.step-line.done { background: var(--success); }
.step-panel { display: none; }
.step-panel.active { display: block; }

/* ---- REVEAL ANIMATION ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---- CONTACT ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.contact-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--teal-tint); color: var(--teal); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem; }

/* ---- MOBILE ---- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px; z-index: 100; gap: 4px; }
  .nav-toggle { display: flex; }
  .hero { min-height: 75vh; }
  .about-grid, .vm-grid, .contact-grid, .split-page { grid-template-columns: 1fr; }
  .feature-grid, .courses-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .portal-sidebar { display: none; }
  .portal-main { padding: 24px 20px; }
  .split-visual { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
  .badge-est { bottom: 8px; right: 8px; }
}
@media (max-width: 600px) {
  .stat-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-pad { padding: 50px 0; }
}
