/* ==========================================================================
   Squirrel Wisdom Academy — landing page
   Warm, painterly, academic aesthetic. Self-contained (no dependency on the
   old dark "bot list" theme). No emoji, no SVG icons — raster art only.
   ========================================================================== */

:root {
  --paper: #f4ead6;
  --paper-light: #fbf6eb;
  --ink: #332719;
  --brown: #5a3b22;
  --dark-brown: #2d2118;
  --gold: #b58a32;
  --gold-dark: #8f681d;
  --green: #3d4932;
  --muted: #796c59;
  --border: rgba(80, 55, 30, .16);
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

body.landing {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.5;
}

.landing img {
  display: block;
  width: 100%;
}

.landing :where(a) {
  color: inherit;
  text-decoration: none;
}

.landing h1,
.landing h2,
.landing h3 {
  font-weight: 500;
  margin: 0;
}

.landing p {
  margin: 0;
}

.container {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 16px;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: .2s;
}

.button-primary {
  color: #fff;
  background: linear-gradient(180deg, #c59b43, var(--gold-dark));
}

.button-primary:hover {
  background: linear-gradient(180deg, var(--gold-dark), var(--gold-dark));
}

.button-secondary {
  background: var(--paper-light);
  border-color: var(--border);
  color: var(--ink);
}

.button-secondary:hover {
  background: #fff;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--paper-light);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.05;
  white-space: nowrap;
}

.brand-tagline {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  white-space: nowrap;
}

.brand {
  flex: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

nav a:hover {
  color: var(--gold-dark);
}

/* ---------- Nav dropdown (e.g. "For Schools") ---------- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-dropdown-toggle:hover {
  color: var(--gold-dark);
}

.nav-dropdown-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform .15s ease;
  flex: none;
}

.nav-dropdown.open .nav-dropdown-toggle::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(43, 32, 19, .14);
  padding: 8px;
  min-width: 210px;
  display: none;
  flex-direction: column;
  z-index: 60;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

.nav-dropdown-menu a:hover {
  background: var(--paper);
  color: var(--gold-dark);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--paper-light);
  position: relative;
  cursor: pointer;
  flex: none;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  content: "";
}

.menu-toggle span {
  top: 19px;
}

.menu-toggle span::before {
  top: -7px;
}

.menu-toggle span::after {
  top: 7px;
}

/* ---------- Hero (full-bleed background photo) ---------- */
.hero {
  min-height: 650px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(35, 24, 15, .94) 0%, rgba(35, 24, 15, .82) 40%, rgba(35, 24, 15, .2) 70%, rgba(35, 24, 15, .05) 100%),
    url("../../img/landing/hero.jpg") center / cover no-repeat;
}

.hero-content {
  width: min(620px, 60%);
  padding: 90px 0;
}

.hero h1 {
  font-size: clamp(36px, 5.2vw, 66px);
  line-height: 1.02;
}

.hero-text {
  margin: 26px 0;
  max-width: 550px;
  font-size: 19px;
  color: #f2eadb;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-points {
  display: flex;
  gap: 28px;
  margin-top: 46px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: #e6d8be;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

/* ---------- Sections ---------- */
.section {
  padding: 80px 0;
}

.section-light {
  background: var(--paper-light);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head h2 {
  font-size: 34px;
  margin: 0 0 14px;
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
}

/* ---------- Feature cards ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card {
  background: rgba(255, 255, 255, .36);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.feature-card img {
  height: 180px;
  object-fit: cover;
}

.feature-body {
  padding: 24px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.15;
}

.feature-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
}

.text-link {
  font-weight: 700;
  font-size: 14px;
}

.text-link:hover {
  color: var(--gold-dark);
}

/* ---------- Split bands (full-bleed image | content) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  min-height: 520px;
}

.split-reverse {
  grid-template-columns: 1fr 1.25fr;
}

.split-image img {
  height: 100%;
  object-fit: cover;
}

.split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px;
  background: var(--paper);
}

.split-content h2 {
  font-size: clamp(32px, 3.6vw, 50px);
  line-height: 1.04;
  margin: 0 0 22px;
}

.split-content p {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 26px;
}

/* ---------- Schools ---------- */
.schools {
  background: var(--paper-light);
}

.schools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.schools h2 {
  font-size: 44px;
  line-height: 1.05;
  margin: 0 0 18px;
}

.schools p {
  color: var(--muted);
  font-size: 17px;
}

.benefits {
  margin: 26px 0 30px;
  padding: 0;
  list-style: none;
}

.benefits li {
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}

.schools-image {
  border-radius: 16px;
  overflow: hidden;
}

/* ---------- CTA band ---------- */
.cta {
  padding: 60px 0;
  color: #fff;
  background: var(--green);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta h2 {
  margin: 0 0 8px;
  font-size: 36px;
}

.cta p {
  margin: 0;
  color: #e3e6dc;
}

/* ---------- Footer ---------- */
footer {
  background: #eee1c7;
  padding: 34px 0;
  font-size: 14px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-nav a:hover {
  color: var(--gold-dark);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 950px) {
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper-light);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 6px 20px 14px;
    transform: translateY(-6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }

  nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0 0 0 16px;
    min-width: 0;
  }

  .nav-dropdown-menu a {
    padding: 10px 0;
    border-radius: 0;
  }

  .site-header {
    position: relative;
  }

  .menu-toggle {
    display: block;
  }

  .header-inner .button-primary {
    display: none;
  }

  .hero {
    min-height: auto;
    background-position: 62% center;
  }

  .hero-content {
    width: 80%;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .split-reverse,
  .schools-grid {
    grid-template-columns: 1fr;
  }

  .split-image {
    height: 340px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, var(--max-width));
  }

  .hero-content {
    width: 100%;
    padding: 64px 0;
  }

  .hero-points {
    flex-direction: column;
    gap: 10px;
    margin-top: 34px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }

  .split-content {
    padding: 44px 24px;
  }

  .schools h2 {
    font-size: 32px;
  }

  .cta-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
