/* Tutoring Together Chicago — shared styles
   Design direction: bold oversized display type, soft pastel-blue color
   blocking, dark navy accents, and fully rounded pill buttons/badges. */

:root {
  --ink: #0e1f3d;          /* dark navy — headings, footer, pill buttons */
  --ink-soft: #46567a;
  --paper: #eaf2fb;        /* soft pastel light-blue background */
  --white: #ffffff;
  --border: #cfe0f4;
  --accent: #1f8a5f;
  --blue: #2f6fed;
  --coral: #ff5a3c;
  --purple: #8b5cf6;
  --radius: 14px;
  --radius-pill: 999px;
  --max-width: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header / Nav ---------- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(234, 242, 251, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}

header.site-header.scrolled {
  box-shadow: 0 4px 16px rgba(17, 17, 17, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

.brand .logo-mark {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 800;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color 0.15s;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--ink);
}

.nav-cta {
  background: var(--ink) !important;
  border-color: var(--ink) !important;
  color: var(--white) !important;
  margin-left: 10px;
  font-weight: 600 !important;
  border-radius: var(--radius-pill) !important;
}

.nav-cta:hover {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  color: white !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
}

/* ---------- Hero ---------- */

.hero {
  padding: 96px 32px 80px;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--ink);
  display: inline-block;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
  font-weight: 800;
  margin: 0 0 22px;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero p.lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 44ch;
  margin: 0 0 34px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary,
.btn-green {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(14, 31, 61, 0.06), 0 8px 20px rgba(14, 31, 61, 0.14);
}
.btn-primary:hover,
.btn-green:hover {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 1px 2px rgba(47, 111, 237, 0.1), 0 12px 26px rgba(47, 111, 237, 0.28);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--paper); }

.hero-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  padding: 0;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(14, 31, 61, 0.04), 0 16px 40px rgba(14, 31, 61, 0.08);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.stat-grid .stat {
  text-align: left;
  padding: 26px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-grid .stat:nth-child(2n) { border-right: none; }
.stat-grid .stat:nth-last-child(-n+2) { border-bottom: none; }

.stat .num {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-grid .stat:nth-child(4n+1) .num { color: var(--ink); }
.stat-grid .stat:nth-child(4n+2) .num { color: var(--blue); }
.stat-grid .stat:nth-child(4n+3) .num { color: var(--ink); }
.stat-grid .stat:nth-child(4n+4) .num { color: var(--blue); }

.stat .label {
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 500;
  margin-top: 4px;
}

/* ---------- Sections ---------- */

section { padding: 88px 32px; }

.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin: 0;
}

.section-alt { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Decorative shapes ---------- */

.has-deco {
  position: relative;
  overflow: hidden;
}

.has-deco > .section-head {
  position: relative;
  z-index: 1;
}

.deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.deco > span {
  position: absolute;
  display: block;
}

.deco-circle {
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.09;
}

.deco-dots {
  background-image: radial-gradient(var(--blue) 1.4px, transparent 1.4px);
  background-size: 12px 12px;
  opacity: 0.3;
}

.deco-hatch {
  background-image: repeating-linear-gradient(
    45deg,
    var(--blue) 0 1.5px,
    transparent 1.5px 9px
  );
  opacity: 0.22;
}

@media (max-width: 700px) {
  .deco > .deco-dots,
  .deco > .deco-hatch {
    display: none;
  }
}

/* ---------- Cards / Grid ---------- */

.grid-3 {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  padding: 36px 32px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(14, 31, 61, 0.03), 0 10px 28px rgba(14, 31, 61, 0.05);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.15s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 8px rgba(14, 31, 61, 0.05), 0 20px 40px rgba(14, 31, 61, 0.1);
  border-color: rgba(47, 111, 237, 0.25);
}

.card .icon { transition: color 0.2s ease; }

.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.icon-blue, .icon-green, .icon-amber, .icon-purple {
  background: none;
}

.card:nth-child(4n+2) .icon,
.card:nth-child(4n+4) .icon { color: var(--blue); }

.card h3 { margin: 0 0 10px; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 0.95rem; }
.card ul li { margin-bottom: 6px; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(14, 31, 61, 0.06);
  color: var(--ink);
  border: 1px solid rgba(14, 31, 61, 0.15);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

/* ---------- Link Cards (clickable, image + description) ---------- */

.link-card {
  display: block;
  background: var(--white);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(14, 31, 61, 0.03), 0 10px 28px rgba(14, 31, 61, 0.05);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.15s;
}

.link-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 8px rgba(14, 31, 61, 0.05), 0 20px 40px rgba(14, 31, 61, 0.1);
  border-color: rgba(47, 111, 237, 0.25);
}

.link-card .link-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transition: transform 0.3s ease;
}

.link-card:hover .link-card-img { transform: scale(1.04); }

.link-card .link-card-body { padding: 28px 28px 32px; }
.link-card h3 { margin: 0 0 10px; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.link-card p { margin: 0 0 18px; color: var(--ink-soft); font-size: 0.95rem; }

.link-card .link-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--blue);
  font-size: 0.92rem;
}

.link-card .link-card-cta span { display: inline-block; transition: transform 0.2s ease; }
.link-card:hover .link-card-cta span { transform: translateX(4px); }

/* ---------- Steps ---------- */

.steps {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.step {
  text-align: left;
  padding: 28px 24px 0 0;
  border-right: 1px solid var(--border);
}
.step:not(:first-child) { padding-left: 24px; }
.step:last-child { border-right: none; }

.step .step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.step:nth-child(4n+1) .step-num { background: var(--ink); }
.step:nth-child(4n+2) .step-num { background: var(--blue); }
.step:nth-child(4n+3) .step-num { background: var(--ink); }
.step:nth-child(4n+4) .step-num { background: var(--blue); }

.step h4 { margin: 0 0 8px; font-size: 1.02rem; font-weight: 700; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Forms ---------- */

.form-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 1px 2px rgba(14, 31, 61, 0.03), 0 20px 48px rgba(14, 31, 61, 0.07);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 0.88rem;
  font-weight: 500;
}

.checkbox-item input { width: auto; }

.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 16px;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--ink);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: left;
  color: var(--white);
  box-shadow: 0 20px 60px rgba(14, 31, 61, 0.25);
}

.cta-banner h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; }
.cta-banner p { margin: 0 0 30px; color: rgba(255,255,255,0.75); max-width: 50ch; }
.cta-banner .btn-primary { background: var(--white); border-color: var(--white); color: var(--ink); }
.cta-banner .btn-primary:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.cta-banner .btn-secondary { border-color: rgba(255,255,255,0.5); color: var(--white); }
.cta-banner .btn-secondary:hover { background: var(--white); color: var(--ink); }

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--ink);
  color: #b8c2db;
  padding: 64px 32px 28px;
  margin-top: 40px;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-grid h4 {
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid ul li { margin-bottom: 11px; }
.footer-grid a { text-decoration: none; color: #b8b8b8; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--paper); }

.footer-brand p { color: #94a3c4; font-size: 0.88rem; max-width: 32ch; }
.footer-brand .brand { color: var(--paper); margin-bottom: 14px; }
.footer-brand .logo-mark { background: var(--blue); color: var(--white); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 22px;
  font-size: 0.82rem;
  color: #8a8a8a;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Photography ---------- */

.photo-band {
  width: 100%;
  aspect-ratio: 21 / 8;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--border);
}

.photo-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.05);
  display: block;
}

.photo-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.photo-grid figure {
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--border);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(14, 31, 61, 0.03), 0 10px 28px rgba(14, 31, 61, 0.06);
  position: relative;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.05);
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.photo-grid figure:hover img {
  transform: scale(1.06);
  filter: saturate(1.3) contrast(1.08);
}

.photo-grid figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

@media (max-width: 640px) {
  .photo-grid { grid-template-columns: 1fr; }
  .photo-band { aspect-ratio: 4 / 3; }
}

/* ---------- Page header (non-home pages) ---------- */

.page-hero {
  padding: 80px 32px 56px;
  text-align: left;
  max-width: var(--max-width);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(2.1rem, 4vw, 2.9rem); font-weight: 700; margin: 0 0 16px; letter-spacing: -0.03em; }
.page-hero p { color: var(--ink-soft); font-size: 1.05rem; max-width: 56ch; margin: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-3:not(:has(.card:nth-child(4))) { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-bottom: 1px solid var(--border); padding-top: 24px; padding-bottom: 24px; padding-left: 0; }
  .step:nth-child(even) { padding-left: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row, .checkbox-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  nav.main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 14px; }
  .nav-toggle { display: block; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .cta-banner { padding: 40px 28px; }
  section { padding: 64px 24px; }
  .hero { padding: 64px 24px 56px; }
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card:hover,
  .photo-grid figure:hover img,
  .link-card:hover,
  .link-card:hover .link-card-img,
  .link-card:hover .link-card-cta span {
    transform: none;
  }
}
