/* ===========================================================
   Voice of Learners — shared stylesheet
   =========================================================== */

:root {
  /* Brand colors sampled directly from the client's live site */
  --navy: #c0392b;       /* brand red (was navy in the first draft) */
  --navy-dark: #0f1013;  /* brand near-black */
  --gold: #eeb640;       /* gold accent from the logo */
  --gold-dark: #cf9a26;
  --green: #27ae60;      /* checkmark green */
  --ink: #16233a;
  --body: #3c4657;
  --subtle: #6b7488;
  --line: #e4e8ef;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 16, 19, 0.12);
  /* Dark on the left (where the logo sits) easing into brand red on the right */
  --brand-gradient: linear-gradient(120deg, #101115 0%, #1d1214 38%, #5e1b17 72%, #a8322a 100%);
  --shadow-sm: 0 4px 14px rgba(15, 16, 19, 0.08);
  --max: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
}

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 16px; }

.eyebrow {
  display: inline-block;
  color: var(--gold-dark);
  background: rgba(201, 151, 47, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section {
  padding: 72px 0;
}
.section--soft { background: var(--bg-soft); }
.section--navy {
  background: var(--brand-gradient);
  color: #dfe6f2;
  position: relative;
  overflow: hidden;
}
.section--navy .container { position: relative; z-index: 2; }
.section--navy h2, .section--navy h3 { color: #fff; }

.text-center { text-align: center; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--subtle); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
/* The header floats over the hero so its gradient and particles run straight
   through it; once the page scrolls it picks up the same gradient itself. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  background: var(--brand-gradient);
  box-shadow: 0 6px 20px rgba(15, 16, 19, 0.25);
}
.site-header:not(.scrolled) .particle-layer { opacity: 0; }
html { scroll-padding-top: 90px; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #fff;
  font-size: 1.15rem;
  white-space: nowrap;
}
.logo { flex-shrink: 0; }
.logo img { height: 46px; width: auto; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35)); }

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
}
.nav > li { position: relative; list-style: none; }
.nav a.nav-link, .nav button.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 14px;
  font-weight: 600;
  font-size: 0.93rem;
  line-height: 1.2;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Poppins", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav a.nav-link:hover, .nav button.nav-link:hover { color: #fff; background: rgba(255,255,255,0.12); }
.nav a.nav-link[aria-current="page"] {
  background: rgba(255, 201, 23, 0.16);
  color: #ffc917;
}
.nav ul { list-style: none; }
.dropdown { position: relative; }
.caret { width: 12px; height: 12px; margin-left: 2px; transition: transform 0.25s ease; }
.dropdown:hover .caret,
.dropdown:focus-within .caret { transform: rotate(180deg); }

/* Desktop dropdown: dark glass panel that fades and slides down */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: 12px;
  min-width: 270px;
  padding: 8px;
  background: rgba(20, 21, 26, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  font-family: "Poppins", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}
/* Invisible bridge so the menu doesn't close while the pointer crosses the gap */
.dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -14px;
  height: 14px;
}
/* Small notch pointing at the button */
.dropdown-menu::after {
  content: "";
  position: absolute;
  top: -6px; left: 50%;
  width: 12px; height: 12px;
  background: rgba(20, 21, 26, 0.97);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateX(-50%) rotate(45deg);
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}
.dropdown-menu li {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.dropdown:hover .dropdown-menu li,
.dropdown:focus-within .dropdown-menu li { opacity: 1; transform: none; }
.dropdown:hover .dropdown-menu li:nth-child(1),
.dropdown:focus-within .dropdown-menu li:nth-child(1) { transition-delay: 0.05s; }
.dropdown:hover .dropdown-menu li:nth-child(2),
.dropdown:focus-within .dropdown-menu li:nth-child(2) { transition-delay: 0.11s; }
.dropdown-menu li a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 40px 11px 14px;
  border-radius: 10px;
  transition: background 0.18s ease;
}
.dd-title { font-size: 0.93rem; font-weight: 600; color: #f1f3f8; transition: color 0.18s ease; }
.dd-title, .dd-sub { white-space: nowrap; }
.dd-sub { font-size: 0.78rem; font-weight: 500; color: #98a1b3; }
.dropdown-menu li a::after {
  content: "→";
  position: absolute;
  right: 14px; top: 50%;
  color: #ffc917;
  font-weight: 600;
  opacity: 0;
  transform: translate(-8px, -50%);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.dropdown-menu li a:hover,
.dropdown-menu li a:focus-visible { background: rgba(255, 201, 23, 0.1); }
.dropdown-menu li a:hover .dd-title,
.dropdown-menu li a:focus-visible .dd-title { color: #ffc917; }
.dropdown-menu li a:hover::after,
.dropdown-menu li a:focus-visible::after { opacity: 1; transform: translate(0, -50%); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 20px;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .dropdown-menu,
  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu {
    position: static; display: none; min-width: 0; margin: 2px 0 8px 16px; padding: 0 0 0 8px;
    border-left: 2px solid var(--line); border-radius: 0;
    background: none; border: none; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .dropdown-menu::before, .dropdown-menu::after { display: none; }
  .dropdown.open .dropdown-menu { display: block; }
  .dropdown-menu li { opacity: 1; transform: none; }
  .dropdown-menu li a { padding: 9px 12px; }
  .dropdown-menu li a::after { display: none; }
  .dd-title { color: var(--ink); }
  .dd-sub { color: var(--subtle); }
  .dropdown-menu li a:hover { background: var(--bg-soft); }
  .dropdown-menu li a:hover .dd-title { color: var(--navy); }
  .dropdown:hover .caret, .dropdown:focus-within .caret { transform: none; }
  .dropdown.open .caret { transform: rotate(180deg); }
  .nav a.nav-link, .nav button.nav-link { color: var(--ink); width: 100%; }
  .nav a.nav-link:hover, .nav button.nav-link:hover { color: var(--navy); background: var(--bg-soft); }
  .nav a.nav-link[aria-current="page"] { color: var(--navy); background: var(--bg-soft); }
}
@media (min-width: 981px) and (max-width: 1140px) {
  .nav a.nav-link, .nav button.nav-link { padding: 8px 10px; font-size: 0.86rem; }
  .logo img { height: 40px; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--brand-gradient);
  color: #eaf0fb;
  padding: 170px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(238,182,64,0.18), transparent 55%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; }

/* ---------- Particle canvas ---------- */
.particle-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.site-header .header-inner { position: relative; z-index: 2; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.15rem; color: #cfd9ee; max-width: 600px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.page-hero {
  background: var(--brand-gradient);
  color: #fff;
  padding: 140px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: #cfd9ee; max-width: 640px; margin: 0; }
.breadcrumb { font-size: 0.85rem; color: #a9b8d8; margin-bottom: 12px; }
.breadcrumb a { color: #d8e2f5; }

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img.card-icon { height: 48px; width: 48px; object-fit: contain; margin-bottom: 16px; }
.card img.card-photo {
  width: 100%; height: 190px; object-fit: cover; border-radius: 10px; margin-bottom: 16px;
}

.team-card { text-align: center; }
.team-card img {
  width: 130px; height: 130px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px;
  border: 4px solid var(--bg-soft);
}
.team-card h4 { margin-bottom: 4px; }
.team-card .role { color: var(--gold-dark); font-weight: 700; font-size: 0.85rem; margin-bottom: 10px; }

.value-pill {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.value-pill .num {
  font-weight: 800; color: var(--gold-dark); font-size: 1.4rem; margin-bottom: 6px;
}

.course-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.course-card .meta {
  display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--subtle);
  margin: 12px 0;
}
.course-card .price { font-weight: 800; color: var(--navy); font-size: 1.1rem; }

.stat-row { display: flex; gap: 40px; flex-wrap: wrap; }
.stat { }
.stat .n { font-size: 2.2rem; font-weight: 800; color: var(--gold); }
.stat .l { color: #cfd9ee; font-size: 0.9rem; }

.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
}
.list-check li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 800;
}

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.field .req { color: #c0392b; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

.form-note { font-size: 0.85rem; color: var(--subtle); margin-top: 10px; }
.form-status { margin-top: 16px; font-weight: 600; display: none; padding: 12px 16px; border-radius: 9px; }
.form-status.show { display: block; }
.form-status.ok { background: #e7f6ec; color: #1e7a3e; }
.form-status.err { background: #fdeceb; color: #b23b2e; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #b9c4dc;
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 40px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 {
  color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 18px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid a:hover { color: #fff; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo img { height: 46px; }
.footer-logo span { color: #fff; font-weight: 800; font-size: 1.1rem; }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.social-row a:hover { background: var(--gold); color: var(--navy-dark); }
.social-row svg { width: 17px; height: 17px; display: block; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.82rem; color: #8a97b3;
}

.built-by {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  color: #8a97b3; transition: color 0.15s ease;
}
.built-by img { display: inline-block; flex-shrink: 0; width: 22px; height: 22px; opacity: 0.85; transition: opacity 0.15s ease, transform 0.15s ease; }
.built-by strong { color: #c9d2e3; font-weight: 700; letter-spacing: 0.02em; }
.built-by:hover { color: #fff; }
.built-by:hover strong { color: var(--gold); }
.built-by:hover img { opacity: 1; transform: rotate(-12deg); }

.affiliate-row {
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap; justify-content: center;
  opacity: 0.9;
}
.affiliate-row img { height: 46px; width: auto; object-fit: contain; }

.whatsapp-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: #25d366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  z-index: 90;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* Spam trap: hidden from people, filled in by bots (see google-apps-script/Code.gs) */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .dropdown-menu, .dropdown-menu li, .caret, .dropdown-menu li a::after { transition: none; }
}
