/* Riverlight Tutoring — layout: cool slate + blue; sharp geometry; system sans */

:root {
  --bg: #e8eef5;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #cbd5e1;
  --brand: #1d4ed8;
  --brand-hover: #1e40af;
  --violet: #6d28d9;
  --sky: #0ea5e9;
  --focus: #f59e0b;
  --footer-bg: #0b1220;
  --footer-link: #7dd3fc;
  --max: 1040px;
  --r: 6px;
  --r-lg: 12px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  background-image: linear-gradient(165deg, #dbeafe 0%, transparent 42%, #e8eef5 100%);
}

a {
  color: var(--brand);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip:focus {
  left: 8px;
  top: 8px;
  z-index: 300;
  padding: 0.5rem 0.9rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.15rem;
}

/* Header — flat white bar, geometric */
.shell-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--surface);
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--sky);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.logo {
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--ink);
  text-transform: uppercase;
}

.logo span {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  border: 2px solid var(--ink);
  background: var(--surface);
  padding: 0.4rem 0.75rem;
  font-weight: 700;
  border-radius: var(--r);
  cursor: pointer;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.35rem;
  align-items: center;
  justify-content: flex-end;
  max-width: min(100%, 760px);
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--r);
}

.nav a:hover {
  background: #eff6ff;
  color: var(--ink);
}

.nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--brand);
}

/* Hero */
.hero {
  padding: 3rem 0 2rem;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-split {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet);
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4.8vw, 3.1rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0;
  color: var(--muted);
  max-width: 38rem;
  font-size: 1.1rem;
}

.hero-fig {
  margin: 0;
  border: 3px solid var(--ink);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 8px 8px 0 var(--sky);
}

.hero-fig img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

/* Buttons — rectangular, not pills */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  border-radius: var(--r);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--fill {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn--fill:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #fff;
}

.btn--outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--line);
}

.btn--outline:hover {
  background: #f8fafc;
}

.btn--hero {
  font-size: 1.12rem;
  padding: 1rem 1.6rem;
  min-width: 240px;
}

.btn--md {
  font-size: 1rem;
  padding: 0.75rem 1.2rem;
  min-width: 200px;
}

/* Sections */
section.block {
  padding: 2.25rem 0;
}

section.block h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.tile {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 1.15rem;
  box-shadow: 6px 6px 0 rgba(15, 23, 42, 0.08);
}

.tile h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.tile h3 a {
  color: inherit;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--sky);
}

.tile h3 a:hover {
  color: var(--brand);
}

.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.dual-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.dual-photos figure {
  margin: 0;
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}

.dual-photos img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.dual-photos figcaption {
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 2px solid var(--line);
}

.point-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.point {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem;
  background: var(--surface);
  border-left: 4px solid var(--violet);
  border-radius: 0 var(--r) var(--r) 0;
}

.point strong {
  display: block;
  font-size: 0.75rem;
  color: var(--brand);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.point p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Legal / inner pages */
.page-intro {
  padding: 2.5rem 0 1rem;
}

.page-intro h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
}

.prose {
  max-width: 70ch;
}

.prose h2 {
  margin-top: 1.75rem;
  font-size: 1.2rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.note-box {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  background: #eff6ff;
  border: 2px dashed var(--brand);
  border-radius: var(--r-lg);
  color: var(--muted);
}

/* Footer */
.shell-footer {
  margin-top: 3rem;
  background: var(--footer-bg);
  color: #cbd5e1;
  padding: 2rem 0;
  border-top: 4px solid var(--sky);
}

.shell-footer a {
  color: var(--footer-link);
}

.shell-footer a:hover {
  color: #fff;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  justify-content: space-between;
  align-items: center;
}

.footer-policies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
}

.footer-policies a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem 1.25rem;
  min-height: 52px;
  min-width: 10rem;
  border-radius: var(--r);
  background: var(--brand);
  color: #fff !important;
  border: 2px solid #93c5fd;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}

.footer-policies a:hover {
  background: var(--brand-hover);
  color: #fff !important;
}

.footer-policies a:focus-visible {
  outline-color: var(--focus);
}

/* Cookie UI — dark strip */
.cookie-strip {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: #1e293b;
  color: #e2e8f0;
  border-top: 3px solid var(--sky);
  padding: 1.1rem 0 1.2rem;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
}

.cookie-strip[hidden],
.cookie-dim[hidden] {
  display: none !important;
}

.cookie-strip__inner {
  display: grid;
  gap: 0.75rem;
}

.cookie-strip__inner h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 900;
}

.cookie-strip__inner > p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.98rem;
  max-width: 88ch;
  line-height: 1.55;
}

.cookie-strip__inner a {
  color: #7dd3fc;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.cookie-actions .btn {
  font-size: 1.05rem;
  padding: 0.95rem 1.45rem;
  min-height: 54px;
  min-width: min(100%, 11.5rem);
  flex: 1 1 auto;
}

.cookie-actions .btn--fill {
  box-shadow: 4px 4px 0 #0f172a;
}

.cookie-actions .btn--outline {
  background: #334155;
  color: #f1f5f9;
  border-color: #94a3b8;
  box-shadow: none;
}

.cookie-actions .btn--outline:hover {
  background: #475569;
  color: #fff;
}

@media (min-width: 640px) {
  .cookie-actions .btn {
    flex: 0 1 auto;
    min-width: 12rem;
  }
}

.cookie-dim {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-panel {
  background: var(--surface);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: var(--r-lg);
  max-width: 480px;
  width: 100%;
  padding: 1.2rem;
  box-shadow: 10px 10px 0 var(--sky);
}

.cookie-panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.cookie-panel label {
  display: flex;
  gap: 0.6rem;
  margin: 0.75rem 0;
  color: var(--muted);
  align-items: flex-start;
}

.cookie-panel .cookie-actions .btn--fill {
  box-shadow: 4px 4px 0 var(--ink);
}

.cookie-panel .cookie-actions .btn--outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--ink);
}

@media (max-width: 780px) {
  .nav-toggle {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 1rem;
    margin-top: 0.35rem;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border: 3px solid var(--ink);
    padding: 0.5rem;
    border-radius: var(--r-lg);
    box-shadow: 8px 8px 0 var(--sky);
    min-width: 200px;
  }
  .nav.is-open {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
