/* More Money for Schools — site styles */

:root {
  --navy: #171e69;
  --navy-dark: #10154d;
  --blue: #2344c5;
  --blue-bright: #1a6aff;
  --blue-dark: #094bcc;
  --pink: #f281d9;
  --pink-deep: #ed45a0;
  --ink: #333333;
  --muted: #6e6e6e;
  --bg: #ffffff;
  --soft: #eef4ff;
  --border: #dce8ff;
  --radius: 14px;
  --font-head: "Raleway", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); font-weight: 600; }

p { margin: 0 0 1.2em; }

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow { max-width: 780px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 140px;
}

.brand { display: block; line-height: 0; }

.brand img { height: 108px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
}

.site-nav a:hover { background: var(--soft); }
.site-nav a[aria-current="page"] { color: var(--blue-bright); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  padding: 12px 28px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover { background: var(--navy); color: #fff; transform: translateY(-1px); }

.btn-lg { font-size: 1.1rem; padding: 15px 36px; }

.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--soft); color: var(--navy-dark); }

.btn-pink { background: var(--pink); }
.btn-pink:hover { background: var(--pink-deep); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--pink);
  padding: 10px 26px;
}
.btn-outline:hover { background: rgba(242, 129, 217, 0.15); }

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

.hero {
  background: var(--navy);
  color: #fff;
  padding: 88px 0 96px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  margin-bottom: 0.4em;
}

.hero .lede {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 2em;
  max-width: 34em;
}

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

/* ---------- Stat speech bubbles ----------
   Shapes and layout replicate the live Wix hero: two mirrored blob
   paths (viewBox 20.5 27.5 159 145), sized 21% / 17.4% / 14.5% of the
   section and staggered, per the source site's component CSS. */

.bubble-cluster {
  position: relative;
  container-type: inline-size;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 100 / 85;
  justify-self: center;
}

.bubble {
  position: absolute;
  margin: 0;
  aspect-ratio: 159 / 145;
  background: no-repeat center / contain;
  align-content: start;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.4;
}

.bubble-blue {
  left: 0;
  top: 0;
  width: 55.9%;
  padding: 6.7cqw 4.8cqw 9.2cqw;
  font-size: 3.85cqw;
  color: #fff;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="20.5 27.5 159 145"><path fill="%232344c5" d="M179.5 89.133c0 32.438-18.159 57.416-50.694 57.416H77.139C38.659 144.387 20.5 172.5 20.5 172.5V89.349C20.5 46.747 44.712 27.5 76.166 27.5h52.748c32.427.108 50.586 25.086 50.586 61.633z"/></svg>');
}
.bubble-blue strong { color: var(--pink); font-weight: 700; }

.bubble-pink {
  left: 60%;
  top: 26.7%;
  width: 40%;
  padding: 4.8cqw 3.4cqw 6.6cqw;
  font-size: 3.5cqw;
  color: #fff;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="20.5 27.5 159 145"><path fill="%23f281d9" d="M20.5 89.133c0-36.546 18.16-61.524 50.586-61.633h52.748c31.454 0 55.666 19.247 55.666 61.849V172.5s-18.16-28.114-56.639-25.951H71.194c-32.534 0-50.694-24.978-50.694-57.416z"/></svg>');
}
.bubble-pink strong { color: var(--navy); font-weight: 700; }

.bubble-white {
  left: 20.3%;
  top: 57.5%;
  width: 35.6%;
  padding: 4.3cqw 3cqw 5.9cqw;
  font-size: 3.15cqw;
  color: var(--navy);
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="20.5 27.5 159 145"><path fill="%23ffffff" d="M179.5 89.133c0 32.438-18.159 57.416-50.694 57.416H77.139C38.659 144.387 20.5 172.5 20.5 172.5V89.349C20.5 46.747 44.712 27.5 76.166 27.5h52.748c32.427.108 50.586 25.086 50.586 61.633z"/></svg>');
}
.bubble-white strong { color: var(--pink-deep); font-weight: 700; }

.lead {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.55;
}

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

.section { padding: 72px 0; }
.section-soft { background: var(--soft); }

.section-navy { background: var(--navy); color: #fff; }
.section-navy h2 { color: #fff; }

/* Decorative circles overlapping photos */

.photo-deco { position: relative; }

.photo-deco img { border-radius: var(--radius); }

.photo-deco::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
}

.deco-pink::after {
  background: var(--pink-deep);
  right: -34px;
  bottom: -10px;
}

.deco-blue::after {
  background: var(--blue);
  left: -34px;
  bottom: -24px;
}

.deco-navy::after {
  background: var(--navy);
  right: -26px;
  top: -26px;
}

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

.split img { border-radius: var(--radius); }

.kicker {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin-bottom: 10px;
}

/* ---------- Evidence ---------- */

.evidence-intro {
  max-width: 860px;
  margin: 0 auto 56px;
  text-align: center;
}

.evidence-intro p { margin-bottom: 0; }

.article-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.article-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.article-card img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 10px;
}

.article-card .card-body {
  padding: 22px 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.article-card h3 { margin: 0; font-size: 1.15rem; }

.article-card h3 a { color: var(--navy); text-decoration: none; }
.article-card h3 a:hover { color: var(--blue); }

.article-card p { margin: 0; color: var(--muted); font-size: 0.95rem; flex: 1; }

.read-more {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--navy);
}

a.read-more:hover { color: var(--blue); }

.coming-soon { color: var(--navy); }

/* ---------- CTA band ---------- */

.cta-card {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  border-radius: 28px;
  padding: 56px 60px;
}

.cta-card h2 { color: var(--pink); }

.cta-card p {
  position: relative;
  z-index: 1;
  max-width: 32em;
  margin-bottom: 2em;
  font-size: 1.15rem;
  color: #fff;
}

.cta-card .btn { position: relative; z-index: 1; }

.cta-card::after {
  content: "";
  position: absolute;
  right: 2.5%;
  bottom: 5%;
  width: 24%;
  aspect-ratio: 159 / 145;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="20.5 27.5 159 145"><path fill="%232344c5" d="M20.5 89.133c0-36.546 18.16-61.524 50.586-61.633h52.748c31.454 0 55.666 19.247 55.666 61.849V172.5s-18.16-28.114-56.639-25.951H71.194c-32.534 0-50.694-24.978-50.694-57.416z"/></svg>') no-repeat center / contain;
}

/* ---------- Article pages ---------- */

.page-hero {
  background: linear-gradient(155deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: #fff;
  padding: 64px 0;
}

.page-hero h1 { color: #fff; max-width: 840px; margin-bottom: 0.4em; }

.page-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.page-hero-split h1 { margin-bottom: 0; }

.page-hero-pink { background: var(--pink); }
.page-hero-pink h1 { color: var(--navy); }

.hero-photo { border-radius: var(--radius); }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #b9c3ea;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.tag {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 4px 14px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.82rem;
  color: #f7c8ec;
}

.article-body { padding: 64px 0; }

.article-body h2 { margin-top: 2em; }
.article-body h3 { margin-top: 1.6em; }
.article-body > .container > h2:first-child { margin-top: 0; }

.article-body ul { padding-left: 1.3em; margin: 0 0 1.4em; }
.article-body li { margin-bottom: 0.7em; }

.article-body figure { margin: 2.2em 0; }

.article-body figure img {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
}

.article-body figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.callout {
  background: var(--soft);
  border-left: 4px solid var(--pink-deep);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px;
  margin: 2em 0;
}

.callout h3 { margin-top: 0; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

address { font-style: normal; }

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

.site-footer {
  background: var(--blue);
  color: #fff;
  padding: 56px 0;
  font-size: 0.92rem;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-logo { height: 60px; width: auto; }

.footer-brand p { margin: 48px 0 0; }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
  font-family: var(--font-head);
  font-weight: 500;
}

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

@media (max-width: 880px) {
  .hero .container,
  .split,
  .article-cards,
  .page-hero-split {
    grid-template-columns: 1fr;
  }

  .footer-nav { text-align: left; }

  .hero { padding: 56px 0; }

  .brand img { height: 68px; }
  .site-header .container { min-height: 96px; }

  .split.flip img { order: -1; }
}
