/* =========================================================
   AJ's Education Group — Shared Stylesheet
   Theme: Deep purple/navy + gold, matching brand poster
   ========================================================= */

:root {
  --bg-dark: #150629;
  --bg-darker: #0d0320;
  --purple: #2a0f52;
  --purple-light: #3d1a73;
  --gold: #f4b400;
  --gold-light: #ffd447;
  --text-light: #f2eefc;
  --text-muted: #c9bfe0;
  --green: #25d366;
  --radius: 14px;
}

* , *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Arial, sans-serif; }
html, body { max-width: 100%; overflow-x: hidden; }
body { background: var(--bg-dark); color: var(--text-light); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* ---------- TOP BAR ---------- */
.tophead {
  background: var(--bg-darker); color: var(--text-muted);
  text-align: center; padding: 8px 16px; font-size: 13px;
  letter-spacing: 0.5px;
}
.tophead a { color: var(--gold-light); text-decoration: none; margin: 0 10px; }

/* ---------- HEADER / NAV ---------- */
header {
  background: var(--purple); padding: 14px 0;
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 14px rgba(0,0,0,0.35);
}
nav { width: 92%; max-width: 1300px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.brand-lockup { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-lockup img { width: 42px; }
.brand-lockup .brand-text { font-weight: 800; font-size: 20px; color: var(--gold-light); line-height: 1.1; }
.brand-lockup .brand-text small { display: block; font-size: 11px; font-weight: 400; color: var(--text-muted); }

.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links li a { text-decoration: none; color: var(--text-light); font-size: 16px; font-weight: 600; transition: color 0.25s; }
.nav-links li a:hover, .nav-links li a.active { color: var(--gold); }

.hamburger { display: none; flex-direction: column; cursor: pointer; width: 28px; gap: 5px; }
.hamburger div { height: 3px; background: var(--gold); border-radius: 2px; transition: all 0.3s ease; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 13px 28px; border-radius: 8px; border: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease; font-size: 15px;
}
.btn-gold { background: var(--gold); color: #201000; }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-whatsapp { background: var(--green); color: #06210f; }
.btn-whatsapp:hover { transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: #201000; }

/* ---------- HERO ---------- */
.hero {
  padding: 70px 6% 50px; text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(244,180,0,0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(120,60,220,0.25) 0%, transparent 45%),
    linear-gradient(160deg, var(--bg-darker) 0%, var(--purple) 100%);
}
.hero .tag { color: var(--gold); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: 14px; }
.hero h1 { font-size: 44px; font-weight: 900; margin: 14px 0 18px; line-height: 1.2; }
.hero h1 span { color: var(--gold); }
.hero p { max-width: 700px; margin: 0 auto 30px; color: var(--text-muted); font-size: 17px; line-height: 1.7; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* generic page banner (for inner pages) */
.page-hero {
  padding: 70px 6%; text-align: center;
  background: linear-gradient(160deg, var(--bg-darker) 0%, var(--purple) 100%);
}
.page-hero h1 { font-size: 36px; font-weight: 900; }
.page-hero p { color: var(--text-muted); margin-top: 10px; }

/* ---------- SECTIONS ---------- */
section { padding: 60px 0; }
.section-title { text-align: center; font-size: 30px; font-weight: 800; margin-bottom: 40px; }
.section-title span { color: var(--gold); }

.section-alt { background: #1b0a34; }

/* CARD GRID */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--purple-light); border: 1px solid rgba(244,180,0,0.15);
  border-radius: var(--radius); padding: 28px;
}
.card h3 { color: var(--gold-light); font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.card ul { list-style: none; margin-top: 14px; }
.card ul li { padding: 6px 0; font-size: 14px; color: var(--text-light); }
.card ul li::before { content: "✔ "; color: var(--gold); font-weight: 700; }

/* TEACHER CARD */
.teacher-card { text-align: center; }
.teacher-card img { width: 100%; border-radius: var(--radius); margin-bottom: 18px; }
.teacher-card h3 { font-size: 22px; color: var(--gold-light); }
.teacher-card .role { color: var(--text-muted); font-size: 14px; margin-bottom: 12px; }
.teacher-card p { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin-bottom: 16px; }

/* RESOURCE / PRICING CARD */
.price-card { text-align: center; border: 1px solid rgba(244,180,0,0.25); }
.price-card .price { font-size: 38px; font-weight: 900; color: var(--gold); margin: 12px 0; }
.price-card .price small { font-size: 15px; color: var(--text-muted); font-weight: 400; }
.price-card ul { text-align: left; margin: 18px 0; }

/* GROUP JOIN BANNER */
.join-banner {
  background: linear-gradient(135deg, var(--purple) 0%, var(--bg-darker) 100%);
  border: 1px solid rgba(244,180,0,0.3); border-radius: var(--radius);
  padding: 40px; text-align: center; margin: 40px auto; max-width: 800px;
}
.join-banner h2 { font-size: 26px; margin-bottom: 12px; }
.join-banner p { color: var(--text-muted); margin-bottom: 22px; }

/* WHY CHOOSE US ICON LIST */
.why-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.why-item { display: flex; align-items: center; gap: 14px; background: var(--purple-light); padding: 16px 20px; border-radius: 10px; }
.why-item .icon { font-size: 22px; }
.why-item span { font-weight: 600; }

/* FORMS */
.form-box {
  background: var(--purple-light); border-radius: var(--radius); padding: 32px;
  max-width: 480px; margin: 0 auto; border: 1px solid rgba(244,180,0,0.2);
}
.form-box h2 { text-align: center; margin-bottom: 20px; color: var(--gold-light); }
.form-box label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.form-box input, .form-box select, .form-box textarea {
  width: 100%; padding: 12px 14px; margin-bottom: 16px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06);
  color: var(--text-light); font-size: 14px; outline: none;
}
.form-box input:focus, .form-box select:focus, .form-box textarea:focus { border-color: var(--gold); }
.form-box button { width: 100%; }
.form-note { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 14px; }
.form-note a { color: var(--gold-light); text-decoration: none; }

.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.alert-success { background: rgba(37,211,102,0.15); border: 1px solid var(--green); color: #b6f5d3; }
.alert-error { background: rgba(220,53,69,0.15); border: 1px solid #dc3545; color: #ffc9ce; }
.alert-pending { background: rgba(244,180,0,0.12); border: 1px solid var(--gold); color: var(--gold-light); }

/* CONTACT */
.contact-methods { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.contact-methods .card { flex: 1; min-width: 220px; text-align: center; }

/* FOOTER */
footer { background: var(--bg-darker); padding: 50px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { color: var(--gold-light); margin-bottom: 14px; }
.footer-grid p, .footer-grid li { color: var(--text-muted); font-size: 14px; line-height: 1.8; }
.footer-grid ul { list-style: none; }
.footer-grid ul li a { text-decoration: none; color: var(--text-muted); }
.footer-grid ul li a:hover { color: var(--gold); }
.footer-bottom { text-align: center; color: var(--text-muted); font-size: 13px; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); }

/* WHATSAPP FLOAT */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; background: var(--green);
  width: 56px; height: 56px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 28px;
  text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,0.4); z-index: 999;
}

/* ---------- MOBILE ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .why-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%; height: 100vh; width: 250px;
    background: var(--purple); flex-direction: column; padding: 90px 0 30px 24px;
    gap: 22px; transition: right 0.35s ease; z-index: 999;
    box-shadow: -4px 0 20px rgba(0,0,0,0.4);
  }
  .nav-links.open { right: 0; }
  .hamburger.active div:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
  .hamburger.active div:nth-child(2) { opacity: 0; }
  .hamburger.active div:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

  .hero h1 { font-size: 30px; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .contact-methods .card { min-width: 100%; }
}
