/* CoreX Learning — landing page styles. Hand-matched to the main site's brand
   palette (frontend/tailwind.config.js: brand navy + gold accent) without
   pulling in a Tailwind build — this page is deliberately dependency-free. */

:root {
  --brand-50: #e8f0fb;
  --brand-100: #e8eaf5;
  --brand-300: #9fb4d8;
  --brand-700: #1a3a6b;
  --brand-800: #122a52;
  --brand-900: #0d1f40;
  --brand-950: #0c1836;
  --gold-100: #fef3c7;
  --gold-300: #e8b96a;
  --gold-400: #d4a24f;
  --gold-500: #c9943a;
  --gold-600: #b45309;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-900: #1e293b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--slate-900);
  background: #fff;
  line-height: 1.5;
}
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; margin: 0; }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.text-gradient {
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300), var(--gold-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(12, 24, 54, 0.8);
  backdrop-filter: blur(6px);
  padding: 16px 0;
  transition: background 0.2s ease, padding 0.2s ease, box-shadow 0.2s ease;
}
/* Added by script.js once the page scrolls past ~10px — a solid, denser bar reads better
   once it's no longer sitting over the hero photo. */
.site-header.is-scrolled {
  background: rgba(12, 24, 54, 0.97);
  padding: 11px 0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header .logo { display: flex; align-items: center; gap: 10px; }
.site-header .logo img { height: 34px; width: auto; }
.site-header .logo span { color: #fff; font-weight: 800; font-size: 18px; font-family: 'Inter', sans-serif; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: #e2e8f0; font-size: 14px; font-weight: 600; text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--gold-300); }
.nav-cta { padding: 11px 22px; font-size: 14px; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px; border: none; background: rgba(255,255,255,0.08);
  border-radius: 9px; cursor: pointer; padding: 0 9px;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 10px; font-weight: 700; font-size: 15px;
  padding: 13px 26px; cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: 'Inter', sans-serif;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(90deg, var(--gold-600), var(--gold-500));
  color: var(--brand-950);
  box-shadow: 0 2px 10px rgba(201, 148, 58, 0.35);
}
.btn-gold:hover { box-shadow: 0 6px 18px rgba(201, 148, 58, 0.45); }
.btn-outline {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-outline:hover { border-color: #fff; }
.btn-primary { background: var(--brand-700); color: #fff; }
.btn-primary:hover { background: var(--brand-800); }
.btn-block { width: 100%; }

/* ---------- Hero (full-bleed photo with a text overlay) ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  min-height: 620px; display: flex; align-items: center;
  background: var(--brand-950); /* shows briefly while the photo loads */
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%; z-index: 0;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(12,24,54,0.92) 0%, rgba(12,24,54,0.78) 38%, rgba(12,24,54,0.35) 68%, rgba(12,24,54,0.15) 100%),
    linear-gradient(0deg, rgba(12,24,54,0.55) 0%, rgba(12,24,54,0) 35%);
}
.hero-content {
  position: relative; z-index: 2; padding: 90px 24px; text-align: left; max-width: 720px;
  margin: 0; /* override .container's margin:0 auto — otherwise this box centers itself in
                the hero even though the text inside it is already left-aligned */
}
.eyebrow {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-300);
  background: rgba(201, 148, 58, 0.16); border: 1px solid rgba(201, 148, 58, 0.35);
  border-radius: 999px; padding: 7px 16px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px); font-weight: 800; line-height: 1.12;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero .sub {
  max-width: 580px; margin: 24px 0 0; color: #e2e8f0; font-size: 18px; line-height: 1.7;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.hero-ctas { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.trust-row {
  margin-top: 26px; display: flex; gap: 22px; flex-wrap: wrap;
  font-size: 13.5px; color: #e2e8f0; font-weight: 600;
}
.trust-row span::before { content: "✓ "; color: var(--gold-400); }
.hero-badge {
  position: absolute; z-index: 2; right: 28px; bottom: 28px;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 14px; padding: 12px 16px;
  box-shadow: 0 14px 30px rgba(12, 24, 54, 0.3);
  max-width: 230px;
}
.hero-badge-icon {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px;
  background: var(--gold-100); display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.hero-badge strong { display: block; font-size: 12.5px; color: var(--brand-950); }
.hero-badge span { display: block; font-size: 10.5px; color: var(--slate-500); margin-top: 1px; line-height: 1.3; }

/* ---------- Journey ---------- */
.journey { padding: 70px 0; background: #f8fafc; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .eyebrow-dark {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-600); margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(24px, 3.4vw, 32px); color: var(--brand-950); }
.steps { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.step-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 26px;
  position: relative; overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.step-card:hover {
  transform: translateY(-3px); box-shadow: 0 14px 30px rgba(12, 24, 54, 0.08);
  border-color: var(--brand-300);
}
.step-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.step-card .n {
  width: 34px; height: 34px; border-radius: 999px; background: var(--brand-700); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
}
.step-icon {
  width: 34px; height: 34px; border-radius: 10px; background: var(--brand-50);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.step-card h3 { font-size: 19px; color: var(--brand-950); margin-bottom: 8px; }
.step-card p { color: var(--slate-600); font-size: 14px; line-height: 1.6; }
.step-benefits { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.step-benefits li {
  font-size: 13px; color: var(--slate-600); padding-left: 20px; position: relative;
}
.step-benefits li::before {
  content: "✓"; position: absolute; left: 0; color: var(--gold-600); font-weight: 800; font-size: 12px;
}
.step-card .price { margin-top: 16px; font-weight: 800; color: var(--gold-600); font-size: 15px; }
.discount-pill {
  display: block; width: fit-content; margin-top: 8px; background: var(--gold-100); color: #92400e;
  font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
}
.badge-popular {
  position: absolute; top: 14px; right: 14px; background: var(--gold-100); color: var(--gold-600);
  font-size: 10px; font-weight: 800; padding: 4px 9px; border-radius: 999px; text-transform: uppercase;
}

/* ---------- Features ---------- */
.features { padding: 70px 0; }
.feature-grid { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }
.feature-item { display: flex; gap: 14px; }
.feature-item .icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(145deg, var(--brand-100), #fff);
  box-shadow: 0 4px 10px rgba(26, 58, 107, 0.1);
  color: var(--brand-700); display: flex; align-items: center; justify-content: center; font-size: 21px;
}
.feature-item h3 { font-size: 16px; color: var(--brand-950); margin-bottom: 4px; }
.feature-item p { font-size: 14px; color: var(--slate-600); line-height: 1.6; }

/* ---------- Programs ---------- */
.programs { padding: 50px 0; background: var(--brand-950); }
.programs .section-head h2 { color: #fff; }
.programs .section-head .eyebrow-dark { color: var(--gold-300); }
.program-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.program-chip {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  color: #e2e8f0; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 700;
}

/* ---------- FAQ (accordion via native <details>/<summary>) ---------- */
.faq { padding: 70px 0; }
.faq-item { border-bottom: 1px solid #e2e8f0; padding: 6px 0; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 14px 28px 14px 0; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 15.5px; color: var(--brand-950); display: inline; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  font-size: 20px; font-weight: 700; color: var(--gold-600); transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { font-size: 14px; color: var(--slate-600); line-height: 1.65; padding: 0 0 16px; }

/* ---------- Closing CTA ---------- */
.cta-band {
  background: radial-gradient(circle at 50% 30%, #163058 0%, var(--brand-900) 70%);
  color: #fff; padding: 70px 0; text-align: center;
}
.cta-band h2 { font-size: clamp(22px, 3.2vw, 30px); margin-bottom: 14px; }
.cta-band p { color: #cbd5e1; max-width: 520px; margin: 0 auto 26px; font-size: 15px; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--brand-950); color: #94a3b8; padding: 26px 0; font-size: 13px; text-align: center; }
footer.site-footer a { text-decoration: underline; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(12, 24, 54, 0.6); backdrop-filter: blur(2px);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff; border-radius: 18px; width: 100%; max-width: 440px; max-height: 92vh;
  overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.3); animation: pop .18s ease-out both;
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid #e2e8f0;
}
.modal-head h2 { font-size: 18px; color: var(--brand-950); font-family: 'Inter', sans-serif; font-weight: 800; }
.modal-close {
  background: none; border: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--slate-500);
  padding: 4px;
}
.modal-body { padding: 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--slate-900); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 11px 13px; border: 1.5px solid #e2e8f0; border-radius: 9px; font-size: 14px;
  font-family: inherit; color: var(--slate-900); background: #fff;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--brand-700); }
.field .hint { font-size: 12px; color: var(--slate-500); margin-top: 5px; }

/* Role toggle (Student / Tutor) — mirrors the main site's RegisterPage card-style toggle. */
.role-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.role-btn {
  text-align: left; border: 2px solid #e2e8f0; background: #fff; border-radius: 12px;
  padding: 12px 14px; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
  font-family: inherit;
}
.role-btn strong { display: block; font-size: 14px; color: var(--slate-900); }
.role-btn span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--slate-500); line-height: 1.4; }
.role-btn:hover { border-color: var(--brand-300); }
.role-btn.is-selected { border-color: var(--brand-700); background: var(--brand-50); }

/* Tutor's first/last name pair, side by side. */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 13px;
  border-radius: 8px; padding: 10px 12px; margin-bottom: 14px;
}
.success-box { text-align: center; padding: 10px 0 4px; }
.success-box .emoji { font-size: 40px; margin-bottom: 10px; }
.success-box h3 { font-size: 18px; color: var(--brand-950); margin-bottom: 8px; }
.success-box p { font-size: 14px; color: var(--slate-600); line-height: 1.6; }

/* Nav collapses to a hamburger once the links no longer comfortably fit beside the logo. */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--brand-950); border-top: 1px solid rgba(255,255,255,0.1);
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links a { padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-cta { margin: 14px 24px 20px; }
}

@media (max-width: 860px) {
  .hero { min-height: 520px; }
  .hero-content { padding: 70px 20px 90px; }
}

@media (max-width: 760px) {
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .role-toggle, .field-row { grid-template-columns: 1fr; }
  .hero { min-height: 560px; }
  .hero-badge { right: 16px; bottom: 16px; max-width: 170px; padding: 9px 12px; }
  .hero-badge-icon { width: 30px; height: 30px; font-size: 14px; }
  .hero-badge strong { font-size: 11px; }
  .hero-badge span { font-size: 9.5px; }
}
