/* Connect Pregnancy Services — site stylesheet
   Tokens copied from brand/tokens.css (Sep 2026, Vantage Impact Partners)
   Google Fonts (Montserrat 700/800/900, Lato 300/400/700) are linked in each page's <head>. */

:root {
  --cps-blue:  #0047ab;
  --cps-blue-dark: #003580;
  --cps-coral: #f26b78;
  --cps-white: #ffffff;
  --cps-gray:  #f5f5f5;
  --cps-black: #000000;

  --font-head: "Montserrat", sans-serif;
  --font-body: "Lato", sans-serif;

  --radius-card: 16px;
  --radius-pill: 999px;

  --max-width: 1120px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--cps-black);
  background: var(--cps-white);
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cps-blue); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--cps-blue);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--cps-white);
  color: var(--cps-blue);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--cps-coral);
  outline-offset: 2px;
}

/* Header / Nav */
.site-header {
  background: var(--cps-white);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.nav-logo img { width: 200px; height: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--cps-black);
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 0.95rem;
}
.nav-links a:hover:not(.btn),
.nav-links a[aria-current="page"]:not(.btn) {
  color: var(--cps-blue);
}
.nav-links .btn { color: var(--cps-white); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--cps-blue);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn-primary {
  background: var(--cps-blue);
  color: var(--cps-white);
}
.btn-primary:hover { background: var(--cps-blue-dark); }
.btn-coral {
  background: var(--cps-coral);
  color: var(--cps-white);
  font-size: 1.125rem; /* 18px bold: brand contrast exception for coral */
  font-weight: 700;
}
.btn-coral:hover { background: #ee505f; }
.btn-outline {
  background: transparent;
  border-color: var(--cps-white);
  color: var(--cps-white);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-white {
  background: var(--cps-white);
  color: var(--cps-blue);
}
.btn-white:hover { background: #e6e6e6; }

/* Hero (Sky Fade) */
.hero-sky-fade {
  background: linear-gradient(180deg, var(--cps-blue) 0%, var(--cps-blue) 55%, var(--cps-white) 100%);
  padding: 72px 24px 56px;
  text-align: center;
}
.hero-sky-fade h1,
.hero-sky-fade p {
  color: var(--cps-white);
}
.hero-sky-fade h1 { font-weight: 700; }
.hero-sky-fade .sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.25rem;
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero-inner {
  max-width: 760px;
  margin: 0 auto;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page header (non-home hero, simpler) */
.page-header {
  background: linear-gradient(180deg, var(--cps-blue) 0%, var(--cps-blue) 55%, var(--cps-white) 100%);
  padding: 56px 24px 80px;
  text-align: center;
}
.page-header h1, .page-header p { color: var(--cps-white); }
.page-header p { font-weight: 300; font-size: 1.15rem; max-width: 600px; margin: 0 auto; }

/* Sections */
section { padding: 64px 0; }
.section-gray { background: var(--cps-gray); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 40px; }
.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--cps-blue);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--cps-white);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
.card .num {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--cps-coral);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

/* Two column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.two-col img { border-radius: var(--radius-card); }
.two-col figure { margin: 0; }

/* Placeholder / bracketed content */
mark.placeholder {
  background: #fff2ac;
  color: #4a3b00;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.92em;
  font-style: normal;
}

/* Figure captions */
figure { margin: 0; }
figcaption {
  font-size: 0.85rem;
  color: #555;
  margin-top: 10px;
  text-align: center;
}

/* Timeline (horizontal scroll, snap) */
.timeline-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 4px;
  padding: 8px 4px 24px;
  margin: 0 -4px;
  -webkit-mask-image: linear-gradient(to right, black 0%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, black 0%, black 92%, transparent 100%);
}
.timeline-scroll:focus-visible { outline: 3px solid var(--cps-coral); }
.timeline-item {
  scroll-snap-align: start;
  flex: 0 0 280px;
  background: var(--cps-white);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border-top: 4px solid var(--cps-blue);
}
.timeline-item .year {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--cps-coral);
  font-size: 1.1rem;
  margin-bottom: 6px;
  display: block;
}
.timeline-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.timeline-item p { font-size: 0.95rem; margin-bottom: 0; }
.timeline-hint {
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  margin-top: -8px;
}

/* Urgency / progress block */
.progress-track {
  background: var(--cps-gray);
  border-radius: var(--radius-pill);
  height: 16px;
  overflow: hidden;
  margin: 16px 0;
}
.progress-fill {
  background: var(--cps-blue);
  height: 100%;
  border-radius: var(--radius-pill);
}

/* CTA band */
.tagline-band {
  background: var(--cps-blue);
  color: var(--cps-white);
  text-align: center;
  padding: 56px 24px;
}
.tagline-band h2 { color: var(--cps-white); margin: 0 0 12px; }
.tagline-band p {
  color: var(--cps-white);
  font-weight: 300;
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 28px;
}

/* Disclaimer */
.disclaimer {
  font-size: 0.85rem;
  color: #555;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* Forms */
.form-card {
  background: var(--cps-white);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  padding: 32px;
  max-width: 560px;
  margin: 0 auto;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid #ccc;
  border-radius: 10px;
  background: var(--cps-white);
  color: var(--cps-black);
}
.field input:focus,
.field textarea:focus {
  border-color: var(--cps-blue);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note {
  font-size: 0.85rem;
  color: #555;
  margin-top: 16px;
}
.hidden-field { position: absolute; left: -9999px; top: -9999px; }
.form-actions { text-align: center; margin-top: 8px; }
.form-actions .btn { width: 100%; }

/* Contact / info blocks */
.info-list { list-style: none; padding: 0; margin: 0 0 1em; }
.info-list li { margin-bottom: 10px; }

/* Footer */
.site-footer {
  background: var(--cps-blue);
  color: var(--cps-white);
  padding: 48px 24px 32px;
}
.site-footer a { color: var(--cps-white); }
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.footer-logo img { width: 220px; height: auto; margin-bottom: 12px; }
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer-links a { text-decoration: underline; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.25);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}
.footer-bottom a { color: var(--cps-white); }

/* Blue header on every page (white logo, white tabs). Home hides the small logo and shows the big one in the hero. */
.site-header { background: var(--cps-blue); border-bottom: 0; }
.home .nav-logo { display: none; }
.home .nav-bar { justify-content: center; }
.nav-toggle .bar { background: var(--cps-white); }
@media (min-width: 641px) {
  .nav-links a:not(.btn) { color: var(--cps-white); }
  .nav-links a:hover:not(.btn),
  .nav-links a[aria-current="page"]:not(.btn) {
    color: var(--cps-white);
    text-decoration: underline;
    text-underline-offset: 6px;
  }
}
.home .hero-sky-fade { padding-top: 40px; padding-bottom: 96px; }
.hero-logo {
  display: block;
  width: min(760px, 100%);
  height: auto;
  margin: 0 auto 36px;
}
.home .hero-sky-fade h1 {
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  margin: 0;
}
.nav-links .btn-coral { padding: 10px 28px; }

/* Leadership: small headshot beside bio */
.leader {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  max-width: 820px;
  margin: 0 auto;
}
.leader-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 160px;
}
@media (max-width: 640px) {
  .leader { flex-direction: column; align-items: center; }
  .leader-photo { width: 140px; height: 140px; flex-basis: 140px; }
}

/* Give page closing thank-you */
.thank-you { text-align: center; padding-top: 0; }
.thank-you p {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--cps-blue);
  margin: 0;
}

/* Center helper */
.center { text-align: center; }
/* keep centered copy from leaving a single word alone on the last line */
.center p, .tagline-band p { text-wrap: balance; }
.stack-gap > * + * { margin-top: 16px; }

/* Mobile */
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col .two-col-media { order: -1; }
  .two-col .two-col-media.two-col-media-photo { order: 0; }
}

@media (max-width: 640px) {
  .nav-logo img { width: 180px; }
  .nav-bar { padding: 12px 16px; }
  .nav-toggle { margin-left: auto; }

  .nav-links {
    position: fixed;
    inset: 70px 0 0 0;
    background: var(--cps-white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    overflow-y: auto;
  }
  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links li { border-bottom: 1px solid var(--cps-gray); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a { display: block; padding: 16px 4px; }
  .nav-links .btn { display: block; margin: 14px 0; text-align: center; }
  .nav-toggle { display: block; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

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

  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; }

  .form-card { padding: 24px 20px; }

  .timeline-scroll {
    flex-direction: column;
    overflow-x: visible;
    scroll-snap-type: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .timeline-item { flex-basis: auto; }
  .timeline-hint { display: none; }
}

/* No horizontal scroll on mobile */
html, body { overflow-x: hidden; }
.timeline-scroll { overflow-x: auto; }
