/* Toys for Toddlers — layout modelled on baby2baby.org */

:root {
  --ink: #2f2445;
  --accent: #6c4f9e;
  --accent-dark: #573f82;
  --soft: #f4effa;
  --soft-card: #eee7f6;
  --soft-band: #efe8f6;
  --line: #e0d5ee;
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --caps: "Montserrat", system-ui, sans-serif;
  --logo: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 40px; }

/* ---------- Shared type ---------- */
.eyebrow {
  font-family: var(--caps);
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.1;
}
.title-sm {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1.2;
}
.statement {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.3;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.caps-title {
  font-family: var(--caps);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 44px;
  border: 0;
  border-radius: 6px;
  font-family: var(--caps);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn-white { background: #fff; color: var(--accent); }
.btn-white:hover { background: var(--soft); }
.btn-accent { background: var(--accent); color: #fff; font-weight: 600; }
.btn-accent:hover { background: var(--accent-dark); }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: #fff; position: relative; z-index: 20; }
.site-header .bar {
  max-width: 1440px;
  height: 88px;
  margin: 0 auto;
  padding: 0 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--logo);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: #fff;
}
.logo svg { width: 40px; height: 40px; flex: none; }
.logo .head { fill: var(--ink); }
.nav { display: flex; align-items: center; gap: 38px; }
.nav ul { list-style: none; display: flex; gap: 22px; }
.nav ul a {
  font-family: var(--caps);
  font-size: 16px;
  text-transform: uppercase;
  transition: opacity 0.2s;
}
.nav ul a:hover { opacity: 0.7; }
.nav ul a[aria-current="page"] { box-shadow: inset 0 -2px 0 #fff; padding-bottom: 4px; }
.socials { display: flex; align-items: center; gap: 18px; }
.socials a { display: grid; place-items: center; transition: opacity 0.2s; }
.socials a:hover { opacity: 0.7; }
.socials svg { width: 19px; height: 19px; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
}
.menu-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.site-header.open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-header.open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Home: hero ---------- */
.hero { height: clamp(300px, 38.4vw, 553px); overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }

/* ---------- Home: mission ---------- */
.mission { background: var(--soft); }
.mission .inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 120px 80px;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 80px;
}
.mission .copy { padding-top: 150px; max-width: 640px; }
.mission .lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 34px;
  line-height: 1.3;
}
.mission .body { margin-top: 46px; font-size: 18px; }
.mission .more { display: inline-block; margin-top: 52px; font-size: 15px; }
.mission .more:hover { text-decoration: underline; }
.media-card {
  margin-top: -56px;
  background: #fff;
  border-radius: 24px;
  padding: 32px 42px;
  box-shadow: 0 12px 32px rgba(47, 36, 69, 0.10);
  align-self: start;
}
.media-card img { width: 100%; aspect-ratio: 396 / 540; object-fit: cover; }

/* ---------- Home: by the numbers ---------- */
.numbers { padding: 54px 0 90px; text-align: center; }
.numbers .title { margin-top: 6px; }
.intro { max-width: 820px; margin: 22px auto 0; font-size: 17px; text-align: center; }
.intro strong { font-family: var(--caps); font-weight: 400; text-transform: uppercase; font-size: 16px; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 250px);
  justify-content: center;
  gap: 20px;
  margin-top: 56px;
}
.stat { background: var(--soft-card); border-radius: 14px; padding: 40px 22px 44px; min-height: 268px; }
.stat .num { font-family: var(--serif); font-style: italic; font-size: 56px; line-height: 1; }
.stat .label { font-family: var(--caps); font-size: 17px; text-transform: uppercase; line-height: 1.4; margin-top: 12px; }
.stat p { font-size: 15px; line-height: 1.45; margin-top: 18px; }

/* ---------- Full-width photo ---------- */
.banner { height: clamp(260px, 36.5vw, 525px); overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Home: our work cards ---------- */
.spotlight { padding: 64px 0 100px; text-align: center; }
.spotlight .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin-top: 54px;
}
.program img {
  width: 100%;
  aspect-ratio: 380 / 230;
  object-fit: cover;
  border-radius: 24px;
  transition: transform 0.35s;
}
.program .caps-title { margin-top: 28px; }
.program:hover img { transform: scale(1.02); }

/* ---------- Partner band (replaces newsletter band) ---------- */
.band { background: var(--soft-band); }
.band .container {
  padding-top: 48px;
  padding-bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.band h2 { font-family: var(--sans); font-weight: 500; font-size: 18px; text-transform: uppercase; }
.band p { font-size: 18px; margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; }
.site-footer .container {
  padding-top: 52px;
  padding-bottom: 46px;
  display: grid;
  grid-template-columns: 465px 1fr;
  gap: 40px;
}
.site-footer .logo { font-size: 34px; }
.site-footer .logo svg { width: 48px; height: 48px; }
.site-footer .socials { margin-top: 36px; gap: 26px; }
.site-footer .socials svg { width: 22px; height: 22px; }
.foot-cols { display: flex; gap: 72px; padding-top: 28px; }
.foot-cols h3 {
  font-family: var(--caps);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.foot-cols a { display: block; font-size: 14.5px; line-height: 1.6; }
.foot-cols a:hover { text-decoration: underline; }
.foot-meta { grid-column: 2; margin-top: 60px; }
.foot-meta .contact { font-size: 18px; padding-bottom: 24px; border-bottom: 2px solid #fff; }
.foot-meta .contact a { text-decoration: underline; text-underline-offset: 3px; }
.foot-meta .legal { font-size: 12.5px; margin-top: 22px; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; height: clamp(300px, 41.6vw, 600px); overflow: hidden; }
.page-hero img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: rgba(36, 24, 56, 0.40); }
.page-hero h1 {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(48px, 6vw, 86px);
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

/* ---------- Our Work page ---------- */
.soft-intro { background: var(--soft-card); text-align: center; padding: 76px 40px 64px; }
.soft-intro p { max-width: 1240px; margin: 0 auto; font-size: 19px; }
.big-num { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(52px, 5.4vw, 76px); line-height: 1; margin-top: 32px; }
.big-label { font-family: var(--caps); font-size: 15px; text-transform: uppercase; margin-top: 12px; }

.split { display: grid; grid-template-columns: 600px 1fr; gap: 50px; align-items: center; padding: 100px 0; }
.split img { width: 100%; aspect-ratio: 595 / 420; object-fit: cover; border-radius: 24px; }
.split .title-sm { margin-bottom: 18px; }
.split p + p { margin-top: 14px; }

.statement-block { padding: 10px 40px 100px; }

.work-rows { display: grid; gap: 90px; padding: 20px 0 110px; }
.work-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.work-row:nth-child(even) .work-img { order: 2; }
.work-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 24px; }
.work-row .caps-title { margin-bottom: 18px; }

.who { padding: 90px 0 100px; text-align: center; }
.who-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 40px;
  max-width: 820px;
  margin: 40px auto 0;
  font-size: 16px;
}

.quote-band { background: var(--soft-card); padding: 90px 40px; }
.quote-band .statement { max-width: 760px; }

.cta { text-align: center; padding: 90px 40px 100px; }
.cta p { max-width: 640px; margin: 18px auto 34px; }

/* ---------- Get Involved page ---------- */
.opps { padding: 76px 0 40px; text-align: center; }
.opps .title { color: var(--ink); font-size: clamp(36px, 3.6vw, 46px); }
.opps .intro { margin-top: 18px; }
.opp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px 50px;
  margin-top: 60px;
  text-align: center;
}
.opp img { width: 100%; aspect-ratio: 380 / 240; object-fit: cover; }
.opp .caps-title { margin-top: 34px; font-size: 19px; }
.opp p { font-size: 15.5px; margin-top: 14px; line-height: 1.55; }

.how { display: grid; grid-template-columns: 1fr 1fr; margin-top: 100px; }
.how .photo { min-height: 520px; }
.how .photo img { width: 100%; height: 100%; object-fit: cover; }
.how .panel { background: var(--soft-card); padding: 70px 60px; display: flex; flex-direction: column; justify-content: center; }
.steps { list-style: none; counter-reset: step; margin-top: 30px; display: grid; gap: 22px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.steps li::before {
  content: counter(step);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
}
.steps strong { display: block; font-weight: 600; }

.partner { background: var(--soft); padding: 90px 0 110px; scroll-margin-top: 0; }
.partner .head { text-align: center; }
.partner .head p { max-width: 640px; margin: 16px auto 0; }
.partner-form {
  max-width: 840px;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14.5px; font-weight: 500; }
.field .opt { font-weight: 400; opacity: 0.6; }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
  width: 100%;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232f2445' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: transparent;
}
fieldset.field { border: 0; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 7px; }
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 15.5px;
  cursor: pointer;
}
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; margin-top: 6px; }
.form-error { grid-column: 1 / -1; color: #b3261e; font-size: 15px; display: none; }
.partner-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-done { display: none; text-align: center; max-width: 640px; margin: 48px auto 0; background: #fff; border-radius: 24px; padding: 48px 40px; }
.form-done p { margin-top: 12px; }
.partner.sent .partner-form { display: none; }
.partner.sent .form-done { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .site-header .bar { padding: 0 40px; }
  .site-header .socials { display: none; }
  .mission .inner { padding: 0 60px 70px; gap: 50px; grid-template-columns: 1fr 420px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .menu-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .site-header.open .nav { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .nav ul a[aria-current="page"] { box-shadow: none; padding-bottom: 16px; }
  .nav .btn { margin-top: 22px; }

  .mission .inner { grid-template-columns: 1fr; padding: 0 24px 60px; gap: 0; }
  .mission .copy { padding-top: 56px; }
  .mission .lead { font-size: 28px; }
  .media-card { order: -1; margin-top: -48px; padding: 18px; max-width: 480px; width: 100%; justify-self: center; }
  .media-card img { aspect-ratio: 4 / 3; }

  .stats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat { min-height: 0; padding: 30px 16px 32px; }
  .spotlight .grid, .opp-grid { grid-template-columns: 1fr; gap: 44px; max-width: 520px; margin-left: auto; margin-right: auto; }
  .band .container { flex-direction: column; align-items: flex-start; }

  .site-footer .container { grid-template-columns: 1fr; }
  .foot-cols { flex-wrap: wrap; gap: 36px 56px; }
  .foot-meta { grid-column: 1; margin-top: 20px; }

  .split, .work-row, .how { grid-template-columns: 1fr; }
  .split { padding: 64px 0; gap: 32px; }
  .work-row { gap: 28px; }
  .work-row:nth-child(even) .work-img { order: 0; }
  .work-rows { gap: 64px; }
  .how .photo { min-height: 300px; }
  .how .panel { padding: 50px 24px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .site-header .bar { padding: 0 16px; height: 72px; }
  .nav { top: 72px; }
  .logo { font-size: 22px; }
  .logo svg { width: 32px; height: 32px; }
  .site-footer .logo { font-size: 28px; }
  .mission .inner { padding: 0 16px 56px; }
  .stats { grid-template-columns: 1fr; }
  .stat .num { font-size: 48px; }
  .partner-form, .checks, .who-list { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
  .soft-intro, .quote-band, .cta { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
