/* School Connect — warm charcoal dark theme */


:root {
  --bg: #1a1410;
  --bg-1: #221a15;
  --bg-2: #2d241d;
  --bg-3: #3a2e25;
  --line: rgba(244, 234, 213, 0.08);
  --line-strong: rgba(244, 234, 213, 0.14);
  --ink: #f4ead5;
  --ink-muted: #bdb09a;
  --ink-dim: #8a7f6d;
  --coral: #e8798e;
  --coral-ink: #f4a5b4;
  --mustard: #e8a94a;
  --mustard-ink: #f0c07a;
  --teal: #3f8cab;
  --teal-ink: #6eb4cd;
  --cream: #f4ead5;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 8px 40px -8px rgba(0,0,0,0.5);
  --font-display: "Inter", system-ui, -apple-system, sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(232, 169, 74, 0.06), transparent 60%),
    radial-gradient(ellipse 800px 500px at 95% 40%, rgba(63, 140, 171, 0.05), transparent 60%);
  background-attachment: fixed;
}

/* Texture overlay — subtle grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.92 0 0 0 0 0.83 0 0 0 0.025 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  mix-blend-mode: screen;
}

/* Typography */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.eyebrow {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-dim);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 800;
  color: var(--cream);
}

.section-title em {
  font-style: italic;
  color: var(--mustard-ink);
}

.section-lede {
  font-size: 18px;
  color: var(--ink-muted);
  max-width: 620px;
  line-height: 1.5;
  margin-top: 18px;
}

/* Layout */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

section {
  padding: 80px 0;
  position: relative;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(26, 20, 16, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img { height: 56px; width: auto; }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta-group { display: flex; gap: 12px; align-items: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--cream);
  color: #1a1410;
}
.btn-primary:hover { background: #ffffff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-1); }
.btn-coral { background: var(--coral); color: #1a1410; }
.btn-lg { padding: 16px 30px; font-size: 15px; }

/* Chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
}
.chip .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mustard);
  box-shadow: 0 0 12px var(--mustard);
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer-col h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 13px;
}
.footer-logo img { height: 64px; margin-bottom: 16px; }
.footer-tag { color: var(--ink-muted); font-size: 14px; max-width: 320px; line-height: 1.5; }

/* ============ NAV BURGER ============ */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: 12px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: all 0.25s;
}
.nav-burger span.open:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger span.open:nth-child(2) { opacity: 0; }
.nav-burger span.open:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.nav-mobile a {
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--ink-muted);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-mobile a:hover { background: var(--bg-1); color: var(--cream); }
.nav-mobile a.active { color: var(--cream); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta-group { display: none; }
  .nav-burger { display: flex; }
  .nav-logo img { height: 40px; }
  section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .nav-inner { padding: 14px 20px; }
  .nav-logo img { height: 32px; }
  section { padding: 36px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}
