/* ============================================================
   THRIVE TUTORING SERVICES — Shared Stylesheet
   Brand: Purple #5A4C9C | Pink #EB387A | Yellow #F4C542 | Teal #64C1B1
   Font: Poppins
   ============================================================ */

:root {
  --purple: #5A4C9C;
  --purple-light: #7B6DB8;
  --purple-pale: #F0EEF9;
  --pink: #EB387A;
  --pink-pale: #FDEEF4;
  --yellow: #F4C542;
  --yellow-pale: #FEF8E7;
  --teal: #64C1B1;
  --teal-pale: #E8F7F5;
  --cream: #FAFAF9;
  --charcoal: #1A1535;
  --mid: #4A4268;
  --muted: #9B92C4;
  --radius: 16px;
  --shadow: 0 4px 30px rgba(90,76,156,0.08);
  --shadow-lg: 0 12px 50px rgba(90,76,156,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background: var(--cream); color: var(--charcoal); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 4px; }

/* ── NAVIGATION ── */
nav#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 5%; display: flex; align-items: center; justify-content: space-between;
  height: 72px; background: rgba(250,250,249,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(90,76,156,0.1); transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: var(--shadow); }
.nav-logo { display: flex; align-items: center; gap: 0.85rem; }
.nav-logo-icon { width: 44px; height: 44px; flex-shrink: 0; }
.nav-logo-text .brand-name { font-size: 1.3rem; font-weight: 800; color: var(--purple); line-height: 1.05; letter-spacing: -0.02em; }
.nav-logo-text { display: flex; flex-direction: column; gap: 2px; }
.nav-logo-text .sub { font-size: 0.6rem; font-weight: 500; color: var(--muted); line-height: 1; letter-spacing: 0.01em; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav-links a { font-size: 0.82rem; font-weight: 500; color: var(--mid); transition: color 0.2s; position: relative; white-space: nowrap; }
.nav-links a::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 2px; background: var(--purple); transition: width 0.25s; border-radius: 2px; }
.nav-links a:hover { color: var(--purple); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--purple); }
.nav-cta { background: var(--purple) !important; color: white !important; padding: 0.5rem 1.2rem; border-radius: 50px; font-weight: 600 !important; transition: all 0.2s !important; }
.nav-cta:hover { background: var(--purple-light) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-toggle span { width: 24px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: all 0.3s; }
.mobile-menu { display: none; position: fixed; top: 72px; left: 0; right: 0; background: var(--cream); padding: 1.5rem 5%; border-bottom: 1px solid rgba(90,76,156,0.1); box-shadow: var(--shadow); z-index: 99; flex-direction: column; gap: 1rem; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1rem; font-weight: 500; color: var(--mid); padding: 0.5rem 0; border-bottom: 1px solid rgba(90,76,156,0.08); }
.mobile-menu a:hover { color: var(--purple); }
.mobile-menu a.active { color: var(--purple); font-weight: 700; }

/* ── BUTTONS ── */
.btn-primary { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--purple); color: white; padding: 0.85rem 2rem; border-radius: 50px; font-weight: 600; font-size: 0.9rem; font-family: 'Poppins', sans-serif; transition: all 0.2s; box-shadow: 0 4px 20px rgba(90,76,156,0.35); }
.btn-primary:hover { background: var(--purple-light); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(90,76,156,0.4); }
.btn-secondary { display: inline-flex; align-items: center; gap: 0.4rem; background: transparent; color: var(--purple); padding: 0.85rem 2rem; border-radius: 50px; font-weight: 600; font-size: 0.9rem; border: 2px solid var(--purple); transition: all 0.2s; font-family: 'Poppins', sans-serif; }
.btn-secondary:hover { background: var(--purple-pale); transform: translateY(-2px); }
.btn-teal { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--teal); color: white; padding: 0.85rem 2rem; border-radius: 50px; font-weight: 600; font-size: 0.9rem; font-family: 'Poppins', sans-serif; transition: all 0.2s; box-shadow: 0 4px 20px rgba(100,193,177,0.35); }
.btn-teal:hover { background: #4DAOA0; transform: translateY(-2px); }
.btn-pink { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--pink); color: white; padding: 0.85rem 2rem; border-radius: 50px; font-weight: 600; font-size: 0.9rem; font-family: 'Poppins', sans-serif; transition: all 0.2s; box-shadow: 0 4px 20px rgba(235,56,122,0.35); }
.btn-pink:hover { background: #d4306c; transform: translateY(-2px); }

/* ── SECTION LAYOUT ── */
section { padding: 5.5rem 5%; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pink); margin-bottom: 0.7rem; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; color: var(--charcoal); line-height: 1.2; margin-bottom: 1rem; }
.section-sub { font-size: 0.98rem; color: var(--mid); max-width: 580px; line-height: 1.75; font-weight: 400; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.4); } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── PAGE HERO (inner pages) ── */
.page-hero { padding-top: 72px; background: var(--purple-pale); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: -120px; right: -120px; width: 500px; height: 500px; border-radius: 50%; background: rgba(90,76,156,0.07); pointer-events: none; }
.page-hero::after { content: ''; position: absolute; bottom: -80px; left: -60px; width: 300px; height: 300px; border-radius: 50%; background: rgba(244,197,66,0.1); pointer-events: none; }
.page-hero-inner { max-width: 1200px; margin: 0 auto; padding: 5rem 5% 4.5rem; position: relative; z-index: 1; }
.page-hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: white; color: var(--purple); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.4rem 1rem; border-radius: 50px; margin-bottom: 1.4rem; box-shadow: var(--shadow); }
.page-hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); animation: pulse 2s infinite; }
.page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800; line-height: 1.15; margin-bottom: 1.2rem; max-width: 700px; }
.page-hero h1 em { font-style: normal; color: var(--purple); position: relative; display: inline-block; }
.page-hero h1 em::after { content: ''; position: absolute; bottom: 2px; left: 0; right: 0; height: 6px; background: var(--yellow); z-index: -1; border-radius: 3px; opacity: 0.7; }
.page-hero-sub { font-size: 1rem; color: var(--mid); max-width: 560px; line-height: 1.75; margin-bottom: 2.5rem; font-weight: 400; }
.page-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.page-hero-trust { display: flex; gap: 1.8rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(90,76,156,0.15); flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--mid); font-weight: 600; }
.trust-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ── BREADCRUMB ── */
.breadcrumb { font-size: 0.75rem; color: var(--muted); margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--purple); font-weight: 600; }
.breadcrumb span { opacity: 0.5; }

/* ── CARD GRIDS ── */
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.feature-card { background: white; border-radius: var(--radius); padding: 1.8rem; border: 2px solid transparent; transition: all 0.3s; }
.feature-card:hover { border-color: var(--purple-light); transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card .icon { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1.1rem; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.85rem; color: var(--mid); line-height: 1.7; }
.feature-card .tag { display: inline-block; margin-top: 1rem; font-size: 0.7rem; font-weight: 700; padding: 0.28rem 0.75rem; border-radius: 50px; }

/* ── SPLIT LAYOUT ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.split-text p { font-size: 0.95rem; color: var(--mid); line-height: 1.75; margin-bottom: 1rem; }
.split-text ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; margin: 1.2rem 0; }
.split-text ul li { font-size: 0.88rem; color: var(--mid); display: flex; align-items: flex-start; gap: 0.6rem; line-height: 1.55; }
.split-text ul li::before { content: '✓'; font-weight: 800; color: var(--purple); flex-shrink: 0; margin-top: 1px; }

/* ── TESTIMONIAL CARDS ── */
.tcard { border-radius: 16px; padding: 1.4rem 1.6rem; }
.tcard-purple { background: var(--purple); color: white; }
.tcard-purple p { font-size: 0.92rem; line-height: 1.7; font-style: italic; margin: 0.5rem 0 0.8rem; }
.tcard-white { background: white; border: 2px solid rgba(90,76,156,0.1); box-shadow: var(--shadow); }
.tcard-white p { font-size: 0.88rem; line-height: 1.7; font-style: italic; color: var(--mid); margin: 0.5rem 0 0.8rem; }
.tcard-stars { font-size: 0.85rem; color: var(--yellow); letter-spacing: 2px; }
.tcard-cite { font-size: 0.75rem; font-weight: 700; opacity: 0.7; }
.testimonials-col { display: flex; flex-direction: column; gap: 1rem; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 1rem; max-width: 780px; margin: 2.5rem auto 0; }
details.faq-item { background: white; border-radius: 14px; padding: 1.4rem 1.6rem; border: 2px solid rgba(90,76,156,0.08); transition: border-color 0.2s; }
details.faq-item[open] { border-color: var(--purple-light); }
details.faq-item summary { font-weight: 700; font-size: 0.95rem; color: var(--charcoal); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary .plus { color: var(--purple); font-size: 1.3rem; flex-shrink: 0; transition: transform 0.2s; }
details.faq-item[open] summary .plus { transform: rotate(45deg); }
details.faq-item p { margin-top: 0.9rem; font-size: 0.88rem; color: var(--mid); line-height: 1.75; }

/* ── TRUST BADGES ── */
.badges-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.badge-item { background: white; border-radius: 14px; padding: 1.2rem 1.4rem; display: flex; align-items: center; gap: 1rem; box-shadow: var(--shadow); }
.badge-icon { font-size: 1.6rem; flex-shrink: 0; }
.badge-text strong { font-size: 0.85rem; font-weight: 700; color: var(--charcoal); display: block; }
.badge-text span { font-size: 0.75rem; color: var(--muted); }

/* ── CTA STRIP ── */
.cta-strip { background: linear-gradient(135deg, var(--charcoal) 0%, #2d2650 100%); color: white; text-align: center; padding: 5rem 5%; }
.cta-strip .section-title { color: white; max-width: 700px; margin: 0 auto 1rem; }
.cta-strip .section-sub { color: rgba(255,255,255,0.65); margin: 0 auto 2.5rem; }
.cta-strip-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-white { display: inline-flex; align-items: center; gap: 0.4rem; background: white; color: var(--purple); padding: 0.85rem 2rem; border-radius: 50px; font-weight: 700; font-size: 0.9rem; font-family: 'Poppins', sans-serif; transition: all 0.2s; }
.btn-white:hover { background: var(--purple-pale); transform: translateY(-2px); }
.btn-outline-white { display: inline-flex; align-items: center; gap: 0.4rem; background: transparent; color: white; padding: 0.85rem 2rem; border-radius: 50px; font-weight: 600; font-size: 0.9rem; border: 2px solid rgba(255,255,255,0.4); transition: all 0.2s; font-family: 'Poppins', sans-serif; }
.btn-outline-white:hover { border-color: white; background: rgba(255,255,255,0.08); transform: translateY(-2px); }

/* ── FOOTER ── */
footer { background: var(--charcoal); color: rgba(255,255,255,0.65); padding: 4rem 5% 2rem; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.05rem; font-weight: 700; color: white; margin-bottom: 0.8rem; }
.footer-logo-icon { width: 28px; height: 28px; }
.footer-brand p { font-size: 0.83rem; line-height: 1.65; max-width: 260px; }
.footer-col h4 { font-weight: 700; font-size: 0.78rem; color: white; margin-bottom: 1rem; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col li a { font-size: 0.82rem; transition: color 0.2s; }
.footer-col li a:hover { color: var(--teal); }
.footer-bottom { max-width: 1200px; margin: 2rem auto 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.77rem; }

/* ── BACK TO TOP ── */
#back-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 46px; height: 46px; background: var(--purple); color: white; border: none; border-radius: 50%; font-size: 1.2rem; cursor: pointer; box-shadow: 0 4px 20px rgba(90,76,156,0.35); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(10px); transition: opacity 0.3s, transform 0.3s; z-index: 99; font-family: inherit; }
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--purple-light); transform: translateY(-2px); }

/* ── COOKIE BANNER ── */
#cookie-banner { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; background: var(--charcoal); color: rgba(255,255,255,0.85); padding: 1.2rem 5%; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; box-shadow: 0 -4px 20px rgba(0,0,0,0.2); }
.cookie-text { font-size: 0.82rem; margin: 0; max-width: 700px; }
.cookie-text a { color: var(--teal); font-weight: 600; }
.cookie-btns { display: flex; gap: 0.8rem; flex-shrink: 0; }
.cookie-decline { background: transparent; border: 1.5px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.7); padding: 0.5rem 1.2rem; border-radius: 50px; cursor: pointer; font-family: 'Poppins', sans-serif; font-size: 0.82rem; font-weight: 600; }
.cookie-accept { background: var(--purple); border: none; color: white; padding: 0.5rem 1.4rem; border-radius: 50px; cursor: pointer; font-family: 'Poppins', sans-serif; font-size: 0.82rem; font-weight: 700; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .nav-links { gap: 1.1rem; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .card-grid-3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .badges-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  section { padding: 4rem 5%; }
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .badges-grid { grid-template-columns: 1fr; }
  .page-hero-trust { gap: 1rem; }
  .cta-strip-actions { flex-direction: column; align-items: center; }
}
