/*
Theme Name: Thuto Optimiser
Theme URI: https://thutooptimiser.co.za
Author: Thuto Optimiser
Author URI: https://thutooptimiser.co.za
Description: Premium weekend tutoring theme for Thuto Optimiser. Mobile-first, navy and gold branding, PAS framework stats, parent-directed copy.
Version: 4.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thuto-optimiser
Tags: education, tutoring, one-page, custom-logo
*/

/* ===== RESET & BASE ===== */
:root {
  --navy: #1b2a4a;
  --navy-mid: #2a3f6e;
  --navy-light: #e8ecf4;
  --navy-pale: #f3f5f9;
  --gold: #d4982a;
  --gold-hover: #bf8a24;
  --gold-light: #f5e6c4;
  --gold-pale: #fdf8ef;
  --white: #ffffff;
  --off-white: #fafafa;
  --text: #111111;
  --text-muted: #555555;
  --border: #e0e0e0;
  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  background: var(--white); color: var(--text);
  line-height: 1.6; font-size: 16px; overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }

/* ===== NAV (mobile-first) ===== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--border);
  z-index: 1000; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.nav-logo { display: flex; align-items: center; cursor: pointer; text-decoration: none; }
.nav-logo img { height: 40px; width: auto; display: block; }
.nav-links { display: none; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text);
  font-size: 0.85rem; font-weight: 600;
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s; cursor: pointer;
}
.nav-links a:hover { background: var(--navy-light); color: var(--navy); }
.nav-cta {
  background: var(--gold) !important; color: var(--white) !important;
  font-weight: 700 !important; padding: 10px 20px !important;
  border-radius: var(--radius-sm) !important; text-decoration: none !important;
}
.nav-cta:hover { background: var(--gold-hover) !important; }
.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; border: none; background: none;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.3s; }

@media (min-width: 900px) {
  .site-nav { padding: 0 5%; height: 76px; }
  .nav-logo img { height: 52px; }
  .nav-links { display: flex; align-items: center; gap: 4px; }
  .hamburger { display: none; }
}

.mobile-nav {
  position: fixed; top: 64px; left: 0; right: 0;
  background: var(--white); z-index: 999;
  padding: 0; max-height: 0; overflow: hidden;
  transition: max-height 0.3s, padding 0.3s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.mobile-nav.open { max-height: 420px; padding: 16px; }
.mobile-nav a {
  display: block; padding: 14px 0; text-decoration: none;
  color: var(--text); font-weight: 600; font-size: 1rem;
  border-bottom: 1px solid var(--border); cursor: pointer;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .nav-cta {
  display: block; margin-top: 12px; text-align: center;
  border-bottom: none; border-radius: var(--radius-sm); padding: 14px !important;
}
@media (min-width: 900px) { .mobile-nav { display: none; } }

/* ===== PAGE SECTIONS ===== */
.page-section { display: none; padding-top: 64px; min-height: 100vh; }
.page-section.active { display: block; }
@media (min-width: 900px) { .page-section { padding-top: 76px; } }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, #1e3560 100%);
  color: var(--white); padding: 120px 16px 40px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(212,152,42,0.06);
}
.hero-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 32px;
  position: relative; z-index: 1;
}
.hero-tag {
  display: inline-block;
  background: rgba(212,152,42,0.2); color: var(--gold);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; padding: 6px 14px; border-radius: 20px;
  margin-bottom: 16px; border: 1px solid rgba(212,152,42,0.3);
}
.hero h1 { font-size: 1.75rem; font-weight: 900; line-height: 1.15; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-sub { font-size: 0.95rem; color: rgba(255,255,255,0.8); line-height: 1.7; margin-bottom: 24px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; }

@media (min-width: 900px) {
  .hero { padding: 100px 5% 80px; }
  .hero-inner { flex-direction: row; gap: 60px; align-items: center; }
  .hero-inner > div { flex: 1; }
  .hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
  .hero-actions { flex-direction: row; }
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--gold); color: var(--white);
  font-weight: 700; font-size: 0.95rem;
  padding: 14px 24px; border-radius: var(--radius-sm);
  border: none; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s; font-family: 'Montserrat', sans-serif;
  text-align: center; width: 100%;
}
.btn-primary:hover { background: var(--gold-hover); transform: translateY(-1px); }
@media (min-width: 900px) { .btn-primary { width: auto; } }

.btn-outline-white {
  background: transparent; color: var(--white);
  font-weight: 600; font-size: 0.95rem;
  padding: 14px 24px; border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,0.4);
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s; font-family: 'Montserrat', sans-serif;
  text-align: center; width: 100%;
}
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
@media (min-width: 900px) { .btn-outline-white { width: auto; } }

.btn-submit {
  background: var(--gold); color: var(--white); border: none;
  padding: 14px 24px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.95rem; cursor: pointer;
  width: 100%; transition: all 0.2s; font-family: 'Montserrat', sans-serif;
}
.btn-submit:hover { background: var(--gold-hover); transform: translateY(-1px); }

/* ===== HERO STATS ===== */
.hero-stats {
  background: rgba(255,255,255,0.07); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 24px;
}
.hero-stats h3 {
  font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px; font-weight: 700;
}
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-item { text-align: center; padding: 14px 8px; background: rgba(255,255,255,0.06); border-radius: var(--radius-sm); }
.stat-num { font-size: 1.6rem; font-weight: 900; color: var(--gold); line-height: 1; display: block; }
.stat-label { font-size: 0.7rem; color: rgba(255,255,255,0.7); margin-top: 6px; line-height: 1.35; }
@media (min-width: 900px) { .hero-stats { padding: 36px; } .stat-num { font-size: 2.2rem; } .stat-label { font-size: 0.75rem; } }

/* ===== GENERIC SECTIONS ===== */
.section { padding: 48px 16px; }
.section-alt { background: var(--off-white); }
.container { max-width: 1100px; margin: 0 auto; }
@media (min-width: 900px) { .section { padding: 80px 5%; } }

.section-label {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.section-title {
  font-size: 1.4rem; font-weight: 800; line-height: 1.2; color: var(--navy); margin-bottom: 16px;
}
.section-sub { font-size: 0.95rem; color: var(--text-muted); max-width: 600px; line-height: 1.7; margin-bottom: 40px; }
@media (min-width: 900px) { .section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); } }

/* ===== PAS PROBLEM BAND ===== */
.problem-band { background: var(--navy); color: var(--white); padding: 48px 16px; }
.pas-intro { text-align: center; margin-bottom: 32px; }
.pas-intro h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; color: var(--white); }
.pas-intro p { font-size: 0.9rem; color: rgba(255,255,255,0.75); line-height: 1.65; max-width: 600px; margin: 0 auto; }
.pas-grid { display: flex; flex-direction: column; gap: 24px; }
.pas-card { background: rgba(255,255,255,0.06); border-radius: var(--radius); padding: 24px; border: 1px solid rgba(255,255,255,0.08); }
.pas-card-label { font-size: 0.65rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.pas-problem .pas-card-label { color: #e57373; }
.pas-agitate .pas-card-label { color: #ffb74d; }
.pas-solve .pas-card-label { color: #81c784; }
.pas-card .pas-num { font-size: 2.4rem; font-weight: 900; color: var(--gold); line-height: 1; margin-bottom: 8px; }
.pas-card .pas-text { font-size: 0.88rem; color: rgba(255,255,255,0.8); line-height: 1.55; }
.pas-card .pas-source { font-size: 0.65rem; color: rgba(255,255,255,0.4); margin-top: 8px; }
@media (min-width: 900px) {
  .problem-band { padding: 64px 5%; }
  .pas-intro h2 { font-size: 1.6rem; }
  .pas-grid { flex-direction: row; gap: 20px; }
  .pas-card { flex: 1; padding: 32px; }
  .pas-card .pas-num { font-size: 2.8rem; }
}

/* ===== STREAMS ===== */
.streams-grid { display: flex; flex-direction: column; gap: 20px; }
.stream-card { border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.2s, border-color 0.2s; }
.stream-card:hover { box-shadow: var(--shadow-lg); border-color: var(--navy); }
.stream-header { background: var(--navy); color: var(--white); padding: 20px; }
.stream-icon { font-size: 2rem; margin-bottom: 8px; }
.stream-header h3, .stream-header h2 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.stream-header p { font-size: 0.8rem; opacity: 0.7; }
.stream-body { padding: 20px; }
.subject-list { list-style: none; margin-bottom: 20px; }
.subject-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-weight: 500; font-size: 0.9rem; }
.subject-list li:last-child { border-bottom: none; }
.subject-list li::before { content: ''; display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.careers-tag { font-size: 0.75rem; font-weight: 700; color: var(--navy); background: var(--navy-light); padding: 4px 12px; border-radius: 20px; display: inline-block; margin-bottom: 6px; }
.careers-list { font-size: 0.82rem; color: var(--text-muted); }
@media (min-width: 900px) { .streams-grid { flex-direction: row; gap: 28px; } .streams-grid > * { flex: 1; } .stream-header { padding: 28px 32px; } .stream-body { padding: 28px 32px; } }

/* ===== STEPS ===== */
.steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.step-card { text-align: center; padding: 24px 16px; border-radius: var(--radius); border: 1px solid var(--border); }
.step-card:hover { box-shadow: var(--shadow); }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; margin: 0 auto 12px; }
.step-card h3 { font-size: 0.88rem; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.step-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
@media (min-width: 900px) { .steps-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

/* ===== METHOD ===== */
.method-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.method-card { padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--white); }
.method-card:hover { box-shadow: var(--shadow); }
.method-icon { font-size: 1.5rem; margin-bottom: 8px; }
.method-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.method-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; }
@media (min-width: 600px) { .method-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .method-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ===== SESSION STRUCTURE ===== */
.session-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.session-block { background: var(--navy-pale); border-radius: var(--radius-sm); padding: 14px 8px; text-align: center; }
.session-block .s-time { font-weight: 700; font-size: 0.75rem; color: var(--navy); }
.session-block .s-desc { font-size: 0.68rem; color: var(--text-muted); line-height: 1.3; margin-top: 2px; }
@media (min-width: 600px) { .session-grid { grid-template-columns: repeat(5, 1fr); gap: 12px; } .session-block { padding: 20px 10px; } }

/* ===== PRICING ===== */
.pricing-card { max-width: 600px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 2px solid var(--navy); }
.pricing-header { background: var(--navy); color: var(--white); padding: 32px 24px; text-align: center; }
.pricing-header h2 { font-size: 0.78rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.price-amount { font-size: 3rem; font-weight: 900; line-height: 1; }
.price-period { font-size: 0.82rem; opacity: 0.7; margin-top: 6px; }
.pricing-body { padding: 24px; }
.pricing-features { list-style: none; margin-bottom: 24px; }
.pricing-features li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; line-height: 1.5; }
.pricing-features li:last-child { border-bottom: none; }
.check { color: var(--gold); font-weight: 700; flex-shrink: 0; }
.pricing-note { font-size: 0.75rem; color: var(--text-muted); text-align: center; margin-top: 12px; line-height: 1.5; }
@media (min-width: 900px) { .pricing-header { padding: 40px 36px; } .price-amount { font-size: 4rem; } .pricing-body { padding: 36px; } }

/* ===== ABOUT ===== */
.about-grid { display: flex; flex-direction: column; gap: 32px; }
.about-img-block { background: var(--navy); color: white; border-radius: var(--radius); padding: 32px; text-align: center; }
.big-stat { font-size: 2.2rem; font-weight: 900; color: var(--gold); }
.mission-quote { background: var(--navy-pale); border-left: 4px solid var(--gold); padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.9rem; line-height: 1.65; color: var(--navy); font-weight: 500; }
@media (min-width: 900px) { .about-grid { flex-direction: row; gap: 48px; } .about-grid > * { flex: 1; } .big-stat { font-size: 3rem; } }

/* ===== FORMS ===== */
.enrol-wrap { max-width: 680px; margin: 0 auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 24px; border: 1px solid var(--border); }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 0.9rem; font-family: 'Montserrat', sans-serif; transition: border-color 0.2s; background: var(--white); -webkit-appearance: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--navy); }
.form-row { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 600px) { .form-row { flex-direction: row; gap: 16px; } .form-row > * { flex: 1; } }
@media (min-width: 900px) { .enrol-wrap { padding: 48px; } }
.form-note { font-size: 0.72rem; color: var(--text-muted); margin-top: 10px; text-align: center; line-height: 1.5; }
.success-banner { display: none; background: #e8f5e9; border: 1px solid #66bb6a; color: #2e7d32; padding: 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 0.85rem; font-weight: 500; line-height: 1.5; }

/* ===== FAQ ===== */
.faq-list { max-width: 720px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 16px 0; font-size: 0.9rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--text); font-family: 'Montserrat', sans-serif; gap: 12px; }
.faq-q span { font-size: 1.2rem; color: var(--gold); font-weight: 700; flex-shrink: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s, padding 0.3s; font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }
.faq-a.open { max-height: 400px; padding-bottom: 16px; }

/* ===== CONTACT ===== */
.contact-grid { display: flex; flex-direction: column; gap: 24px; }
.contact-info-block { background: var(--navy); color: white; border-radius: var(--radius); padding: 24px; }
.contact-info-block h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 24px; }
.contact-item { display: flex; gap: 12px; margin-bottom: 20px; }
.contact-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.contact-item strong { display: block; font-weight: 700; margin-bottom: 2px; font-size: 0.9rem; }
.contact-item p { font-size: 0.82rem; opacity: 0.8; line-height: 1.5; margin: 0; }
.contact-item a { color: var(--gold); text-decoration: none; }
@media (min-width: 900px) { .contact-grid { flex-direction: row; gap: 40px; } .contact-grid > * { flex: 1; } .contact-info-block { padding: 40px; } }

/* ===== TWO COL ===== */
.two-col { display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 900px) { .two-col { flex-direction: row; gap: 60px; align-items: center; } .two-col > * { flex: 1; } }

/* ===== FOOTER ===== */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 40px 16px 24px; font-size: 0.82rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand img { height: 36px; margin-bottom: 8px; }
.footer-col h4 { font-weight: 700; color: var(--white); margin-bottom: 12px; font-size: 0.78rem; letter-spacing: 1px; text-transform: uppercase; }
.footer-col a { display: block; color: rgba(255,255,255,0.6); text-decoration: none; padding: 3px 0; font-size: 0.8rem; cursor: pointer; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { max-width: 1100px; margin: 0 auto; padding-top: 16px; font-size: 0.7rem; color: rgba(255,255,255,0.4); }
@media (min-width: 900px) { .site-footer { padding: 60px 5% 32px; } .footer-inner { flex-direction: row; gap: 40px; } .footer-inner > *:first-child { flex: 2; } .footer-inner > *:not(:first-child) { flex: 1; } .footer-bottom { display: flex; justify-content: space-between; } }

/* ===== MISC GRIDS ===== */
.vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 600px) { .vision-grid { grid-template-columns: repeat(4, 1fr); } }
.sibling-grid { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 520px; margin: 24px auto 0; }
@media (min-width: 600px) { .sibling-grid { grid-template-columns: 1fr 1fr; } }
.apart-list { display: flex; flex-direction: column; gap: 12px; }
.apart-item { display: flex; align-items: flex-start; gap: 12px; }
.apart-title { font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.apart-desc { font-size: 0.82rem; color: var(--text-muted); }
.compliance-item { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; padding: 4px 0; }

/* ===== HELPERS ===== */
.text-center { text-align: center; }
.mb-48 { margin-bottom: 48px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.count-up { display: inline-block; }


/* ═══════════════════════════════════════════
   PAGE HERO — Inner page header banner
   ═══════════════════════════════════════════ */
.page-hero {
  background: var(--navy);
  padding: 120px 16px 64px;
  text-align: center;
}

.page-hero .section-label {
  display: block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.page-hero .page-title {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 auto;
  max-width: 800px;
}

@media (min-width: 768px) {
  .page-hero {
    padding: 140px 32px 80px;
  }
}