/* =========================================================
   REENAV INSTITUTE — Public Site Stylesheet
   Path: /assets/css/site.css
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:    #0a0a14;
  --ink-soft: #12121e;
  --white:  #ffffff;
  --cream:  #f7f6f2;
  --blue:   #4547FA;
  --purple: #A138B8;
  --pink:   #FD2F9C;
  --grad:   linear-gradient(135deg, var(--blue) 0%, var(--purple) 55%, var(--pink) 100%);
  --muted:  rgba(255,255,255,.55);
  --muted-dim: rgba(255,255,255,.35);
  --border-dim: rgba(255,255,255,.1);
  --overlay-weak: rgba(255,255,255,.05);
  --overlay-medium: rgba(255,255,255,.08);
  --overlay-strong: rgba(255,255,255,.25);
  --overlay-hover: rgba(255,255,255,.4);
  --overlay-solid: rgba(255,255,255,.5);
  --shadow-color: rgba(0,0,0,.3);
  --nav-bg: rgba(10,10,20,.85);
  --font-heading: 'Syne';
  --font-body: 'DM Sans';
}

/* ---------- LIGHT THEME ---------- */
[data-theme="light"] {
  --ink:    #f7f6f2;
  --ink-soft: #ffffff;
  --white:  #12121a;
  --muted:  rgba(18,18,26,.62);
  --muted-dim: rgba(18,18,26,.42);
  --border-dim: rgba(18,18,26,.12);
  --overlay-weak: rgba(18,18,26,.04);
  --overlay-medium: rgba(18,18,26,.06);
  --overlay-strong: rgba(18,18,26,.15);
  --overlay-hover: rgba(18,18,26,.25);
  --overlay-solid: rgba(18,18,26,.08);
  --shadow-color: rgba(18,18,26,.12);
  --nav-bg: rgba(247,246,242,.85);
}
[data-theme="light"] body { background: var(--ink); }
[data-theme="light"] .course-card-noimg,
[data-theme="light"] .testi-slide-photo-fallback { color: #fff; opacity: .85; }

html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--font-body), sans-serif;
  background: var(--ink);
  color: var(--white);
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading), sans-serif; font-weight: 800; letter-spacing: -0.02em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ---------- NAV ---------- */
.site-nav {
  position: sticky; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 1.1rem 5%; flex-wrap: nowrap;
  background: var(--nav-bg); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-dim);
  transition: transform 0.3s ease;
}
.site-nav.nav-hidden { transform: translateY(-100%); }
.nav-logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-logo-img { width: 34px; height: 34px; border-radius: 8px; }
.nav-logo-text { font-family: var(--font-heading), sans-serif; font-size: 1.15rem; font-weight: 800; color: var(--white); white-space: nowrap; }
.nav-links { display: flex; gap: 1.4rem; list-style: none; flex-wrap: nowrap; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: .82rem; font-weight: 500;
  letter-spacing: .03em; text-transform: uppercase; transition: color .2s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-enroll {
  background: var(--grad); color: var(--white); border: none; border-radius: 50px;
  padding: .6rem 1.4rem; font-size: .85rem; font-weight: 600; text-decoration: none;
  white-space: nowrap; transition: opacity .2s, transform .2s; flex-shrink: 0;
}
.nav-enroll:hover { opacity: .85; transform: translateY(-1px); }

.theme-toggle {
  background: var(--overlay-medium); border: 1px solid var(--border-dim); border-radius: 50%;
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; font-size: 16px; line-height: 1;
}
.theme-toggle .theme-icon-light { display: none; }
[data-theme="light"] .theme-toggle .theme-icon-dark { display: none; }
[data-theme="light"] .theme-toggle .theme-icon-light { display: inline; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; flex-shrink: 0; }
.hamburger span { width: 24px; height: 2px; background: var(--white); display: block; transition: .3s; }
.nav-mobile-register { display: none; }

@media (max-width: 1180px) {
  .nav-links, .nav-enroll { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; position: fixed; top: 68px; left: 0; right: 0; background: var(--ink-soft);
    flex-direction: column; gap: 0; max-height: 80vh; overflow-y: auto;
    border-bottom: 1px solid var(--border-dim); z-index: 99;
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a { display: block; padding: 14px 24px; border-bottom: 1px solid var(--border-dim); text-transform: none; font-size: .92rem; }
  .nav-links.open .nav-mobile-register a {
    margin: 16px 24px; background: var(--grad); color: var(--white); text-align: center;
    padding: 12px; border-radius: 50px; font-weight: 600; border: none; border-bottom: none;
  }
}

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px var(--shadow-color); text-decoration: none;
}

/* ---------- FORM ELEMENTS (dark theme) ---------- */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}
input[type="date"] { color-scheme: dark; }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh; min-height: 100dvh; display: grid; align-items: center;
  padding: 7rem 5% 4rem; position: relative; overflow: hidden;
}
@media (max-width: 700px) {
  .hero { min-height: auto; padding: 6rem 6% 3.5rem; }
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }
.orb1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(69,71,250,.35) 0%, transparent 70%); top: -100px; left: -100px; }
.orb2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(253,47,156,.25) 0%, transparent 70%); bottom: -50px; right: -80px; }
.orb3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(161,56,184,.3) 0%, transparent 70%); top: 40%; left: 50%; }

.hero-inner { position: relative; z-index: 2; max-width: 900px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; border: 1px solid var(--border-dim);
  border-radius: 50px; padding: .4rem 1.1rem; font-size: .78rem; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 2rem;
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
.hero h1 { font-size: clamp(2.4rem, 7vw, 5.5rem); line-height: 1.02; margin-bottom: 1.6rem; }
.hero-desc { max-width: 540px; font-size: clamp(1rem, 2vw, 1.1rem); line-height: 1.75; color: var(--muted); margin-bottom: 2.4rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-main, .btn-ghost {
  border-radius: 50px; padding: .9rem 2.2rem; font-size: .95rem; font-weight: 600;
  text-decoration: none; display: inline-block; transition: transform .2s, box-shadow .2s, border-color .2s, color .2s;
}
.btn-main { background: var(--grad); color: var(--white); border: none; box-shadow: 0 0 40px rgba(161,56,184,.3); }
.btn-main:hover { transform: translateY(-3px); box-shadow: 0 0 60px rgba(161,56,184,.5); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border-dim); }
.btn-ghost:hover { border-color: var(--overlay-solid); color: var(--white); }

.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--border-dim); }
@media (max-width: 600px) {
  .hero-stats { gap: 1.6rem 2rem; }
}
.stat-num { font-family: var(--font-heading), sans-serif; font-size: 2rem; font-weight: 800; line-height: 1; }
.stat-lbl { font-size: .8rem; color: var(--muted); margin-top: 6px; white-space: nowrap; }

/* ---------- MARQUEE ---------- */
.marquee-wrap { overflow: hidden; border-top: 1px solid var(--border-dim); border-bottom: 1px solid var(--border-dim); padding: 1.2rem 0; background: var(--ink-soft); }
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-item { font-family: var(--font-heading), sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--muted); padding: 0 1.5rem; white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- SECTIONS (shared across pages) ---------- */
.section { padding: 6rem 5%; position: relative; }
.section-label { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); margin-bottom: 1rem; }
.section-title { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 1rem; }
.section-sub { max-width: 600px; color: var(--muted); font-size: 1.02rem; line-height: 1.7; margin-bottom: 3rem; }

/* ---------- COURSE CARDS ---------- */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; }
@media (max-width: 380px) {
  .courses-grid { grid-template-columns: 1fr; }
}
.course-card { background: var(--ink-soft); border: 1px solid var(--border-dim); border-radius: 20px; overflow: hidden; transition: transform .25s, border-color .25s; display: flex; flex-direction: column; }
.course-card:hover { transform: translateY(-6px); border-color: var(--overlay-strong); }
.course-card-img { width: 100%; height: 180px; object-fit: cover; background: linear-gradient(135deg, rgba(69,71,250,.2), rgba(253,47,156,.2)); }
.course-card-noimg { width: 100%; height: 180px; background: var(--grad); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading), sans-serif; font-weight: 800; font-size: 2rem; opacity: .5; }
.card-top-meta { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px 0; }
.card-duration { font-size: .75rem; background: var(--overlay-medium); padding: 4px 12px; border-radius: 20px; color: var(--muted); }
.card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.25rem; margin-bottom: 8px; overflow-wrap: break-word; }
.card-desc { font-size: .9rem; color: var(--muted); line-height: 1.6; margin-bottom: 14px; overflow-wrap: break-word; }
.card-includes { list-style: none; margin-bottom: 16px; }
.card-includes li { font-size: .82rem; color: var(--muted); padding: 4px 0; display: flex; gap: 8px; align-items: flex-start; }
.card-includes li::before { content: '✓'; color: var(--pink); font-weight: 700; }
.card-fee-row { display: flex; align-items: baseline; gap: 10px; margin: auto 0 14px; }
.card-fee-now { font-family: var(--font-heading), sans-serif; font-weight: 800; font-size: 1.4rem; }
.card-fee-was { font-size: .85rem; color: var(--muted-dim); text-decoration: line-through; }
.card-cta-row { display: flex; gap: 10px; }
.card-cta { flex: 1; text-align: center; background: var(--grad); color: #fff; border-radius: 50px; padding: .7rem 1rem; font-size: .85rem; font-weight: 600; text-decoration: none; }
.card-cta-outline { flex: 1; text-align: center; border: 1px solid var(--border-dim); border-radius: 50px; padding: .7rem 1rem; font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--muted); }
.card-cta-outline:hover { border-color: var(--overlay-hover); color: var(--white); }

/* ---------- WHY US GRID ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }
.why-card { background: var(--ink-soft); border: 1px solid var(--border-dim); border-radius: 18px; padding: 26px; }
.why-num { font-family: var(--font-heading), sans-serif; font-size: 1.6rem; font-weight: 800; opacity: .3; margin-bottom: 10px; }
.why-card h4 { font-size: 1.1rem; margin-bottom: 8px; }
.why-card p { font-size: .88rem; color: var(--muted); line-height: 1.6; }

/* ---------- TESTIMONIAL CAROUSEL ---------- */
.testi-carousel { max-width: 900px; margin: 0 auto; position: relative; }
.testi-slide {
  display: none; background: var(--ink-soft); border: 1px solid var(--border-dim); border-radius: 22px;
  padding: 30px; gap: 30px; align-items: center;
  grid-template-columns: 220px 1fr;
}
.testi-slide.active { display: grid; }
@media (max-width: 700px) { .testi-slide { grid-template-columns: 1fr; text-align: center; } }
.testi-slide-photo { width: 100%; aspect-ratio: 1; border-radius: 16px; object-fit: cover; background: var(--grad); }
.testi-slide-photo-fallback {
  width: 100%; aspect-ratio: 1; border-radius: 16px; background: var(--grad);
  display: flex; align-items: center; justify-content: center; font-family:var(--font-heading), sans-serif; font-weight:800; font-size:2.5rem;
}
.testi-slide-msg { font-size: 1.05rem; line-height: 1.7; color: var(--muted); font-style: italic; margin-bottom: 18px; }
.testi-slide-stars { color: #f2a93b; font-size: 1.1rem; margin-bottom: 10px; }
.testi-slide-name { font-weight: 700; font-size: 1rem; }
.testi-slide-course { font-size: .82rem; color: var(--muted); }
.testi-nav { display: flex; gap: 10px; justify-content: center; margin-top: 24px; }
.testi-nav button {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-dim);
  background: var(--overlay-weak); color: var(--white); font-size: 1.1rem; cursor: pointer; transition: background .2s;
}
.testi-nav button:hover { background: var(--grad); border-color: transparent; }

/* ---------- BLOG CARDS ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.6rem; }
.blog-card { background: var(--ink-soft); border: 1px solid var(--border-dim); border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s; display:block; }
.blog-card:hover { transform: translateY(-4px); }
.blog-card-img { width: 100%; height: 160px; object-fit: cover; }
.blog-card-noimg { width: 100%; height: 160px; background: var(--grad); opacity: .5; }
.blog-card-body { padding: 18px 20px; }
.blog-card-cat { font-size: .72rem; color: var(--pink); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.blog-card-title { font-size: 1.05rem; margin-bottom: 8px; line-height: 1.3; }
.blog-card-excerpt { font-size: .85rem; color: var(--muted); line-height: 1.6; }
.blog-card-meta { font-size: .75rem; color: var(--muted-dim); margin-top: 12px; }

/* ---------- CTA SECTION ---------- */
.cta-section { text-align: center; padding: 6rem 5%; }
.cta-pill { display: inline-block; background: var(--overlay-medium); border: 1px solid var(--border-dim); border-radius: 50px; padding: .5rem 1.3rem; font-size: .8rem; margin-bottom: 1.5rem; color: var(--muted); }
.cta-section h2 { font-size: clamp(1.8rem, 5vw, 3rem); margin-bottom: 1rem; }
.cta-section p { color: var(--muted); margin-bottom: 2rem; }

/* ---------- FOOTER ---------- */
.site-footer { padding: 4rem 5% 2rem; border-top: 1px solid var(--border-dim); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-family: var(--font-heading), sans-serif; font-weight: 800; font-size: 1.3rem; margin-bottom: 8px; }
.footer-tagline { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%; background: var(--overlay-medium);
  display: flex; align-items: center; justify-content: center; font-size: .75rem;
  text-decoration: none; color: var(--white); font-weight: 700;
}
.footer-col-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; color: var(--muted); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; font-size: .88rem; }
.footer-links a { text-decoration: none; color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { text-align: center; font-size: .8rem; color: var(--muted-dim); padding-top: 2rem; border-top: 1px solid var(--border-dim); }

/* ---------- GENERIC INNER PAGE HEADER (About, Courses, Contact, etc.) ---------- */
.page-hero { padding: 4.5rem 5% 3rem; text-align: center; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: .8rem; }
.page-hero p { color: var(--muted); max-width: 560px; margin: 0 auto; }

/* ---------- EMPTY STATE ---------- */
.empty-note { text-align: center; padding: 3rem 1rem; color: var(--muted); }
