@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
@import 'variables.css';

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* NAV */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

nav.site-nav.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 4px 20px rgba(28, 25, 23, 0.08);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 24px;
}

.logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  line-height: 1.2;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}

.logo span { color: var(--dark); }
.logo small {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

nav.site-nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}

nav.site-nav ul a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav.site-nav ul a:hover,
nav.site-nav ul a.active { color: var(--primary); }

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 10px;
  transition: background 0.2s !important;
  font-weight: 600 !important;
}

.nav-cta:hover { background: var(--primary-dark) !important; }

.burger {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark);
}

/* BUTTONS */
.btn-primary {
  background: var(--primary);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 600;
  display: inline-block;
  transition: background 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); color: white; }

.btn-secondary {
  background: transparent;
  color: var(--primary);
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 600;
  display: inline-block;
  border: 2px solid var(--primary);
  transition: all 0.2s;
}

.btn-secondary:hover { background: var(--primary-light); }

.btn-white {
  background: white;
  color: var(--primary);
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 700;
  display: inline-block;
  transition: opacity 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-white:hover { opacity: 0.92; transform: translateY(-1px); }

.btn-secondary-on-dark {
  color: white;
  border-color: rgba(255,255,255,0.4);
}

.btn-secondary-on-dark:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  color: white;
}

.footer-teacher {
  margin-top: 12px;
  font-size: 0.85rem;
}

/* SECTIONS */
section { padding: 88px 0; }

.section-muted {
  background: var(--surface-muted);
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 14px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 48px;
}

/* PAGE HERO */
.page-hero {
  padding: 140px 0 60px;
  background: var(--page-hero-gradient);
  color: white;
  text-align: center;
}

.page-hero .section-label { color: var(--hero-text-sub); }
.page-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--hero-text);
  max-width: 600px;
  margin: 0 auto;
}

/* FOOTER */
footer.site-footer {
  background: var(--dark);
  color: #a8a29e;
  padding: 60px 24px 24px;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-logo {
  color: white;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.footer-grid p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #a8a29e;
  max-width: 300px;
}

.footer-col h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }

.footer-col a {
  color: #a8a29e;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: #fb923c; }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--dark-2);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-bottom a { color: #a8a29e; }
.footer-bottom a:hover { color: #fb923c; }

/* LEGAL STUB */
.legal-stub {
  padding: 140px 0 88px;
  text-align: center;
}

.legal-stub h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.legal-stub p {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 32px;
}

.legal-content {
  padding: 120px 0 88px;
}

.legal-content h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.legal-content .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.legal-content ul {
  margin-left: 20px;
  margin-bottom: 16px;
}

.legal-back {
  margin-top: 40px;
}

/* RESPONSIVE */
@media (max-width: 860px) {
  nav.site-nav ul { display: none; }

  nav.site-nav ul.open {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: white;
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    align-items: flex-start;
  }

  .burger { display: block; }
  .page-hero h1 { font-size: 2rem; }
  .section-title { font-size: 1.7rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  section { padding: 60px 0; }
}
