/* ================================================
   Preschool & Daycare Readiness — page stylesheet
   All colour values come from tokens.css.
   No hardcoded hex values.
================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--clr-ink);
  background: var(--bg-page);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: var(--clr-teal); }
a:hover { text-decoration: underline; color: var(--clr-teal-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; top: 0; left: 0; width: auto; height: auto;
  padding: 8px 16px; background: var(--clr-teal); color: var(--clr-white);
  font-family: var(--font-head); font-size: 14px; font-weight: 700; z-index: 9999;
}

/* ── CONTAINER ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: var(--pad-btn);
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
  text-decoration: none;
  line-height: 1;
  text-wrap: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn--primary { background: var(--clr-teal); border-color: var(--clr-teal); color: var(--clr-white); }
.btn--primary:hover { background: var(--clr-teal-dark); border-color: var(--clr-teal-dark); color: var(--clr-white); }

.btn--outline { background: transparent; border-color: var(--clr-teal); color: var(--clr-teal-dark); }
.btn--outline:hover { background: var(--clr-teal); color: var(--clr-white); }

.btn--white { background: var(--bg-page); border-color: var(--clr-white); color: var(--clr-teal-dark); }
.btn--white:hover { background: var(--bg-hero); border-color: var(--bg-hero); color: var(--clr-teal-dark); }

.btn--large { padding: 16px 36px; font-size: 16px; }

/* ── TRUST DOT ── */
.trust-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--clr-teal); flex-shrink: 0; display: inline-block;
}

/* ================================================
   HERO   bg: var(--bg-hero) warm beige
================================================ */
.hero {
  background: var(--bg-hero);
  padding: var(--section-pad) 0 calc(var(--section-pad) - 20px);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -60px; right: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(116,164,170,0.10); pointer-events: none;
}
.hero__inner { }
.hero__content { max-width: 760px; }
.hero__label {
  font-family: var(--font-head);
  font-size: 11px; font-weight: 900;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--clr-teal); margin-bottom: 16px;
}
.hero__title {
  font-size: clamp(30px, 4.5vw, 48px); font-weight: var(--weight-h1);
  color: var(--clr-ink); margin-bottom: 10px; line-height: 1.15;
  text-wrap: balance;
}
.hero__sublabel {
  font-family: var(--font-head);
  font-size: 15px; font-weight: 700;
  color: var(--clr-teal); margin-bottom: 16px;
}
.hero__lead {
  font-size: 17px; color: var(--clr-ink); opacity: 0.82;
  line-height: 1.75; margin-bottom: 28px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 20px; }

/* ================================================
   INTRO TEAL SECTION   bg: var(--clr-teal)
================================================ */
.pdr-intro {
  background: var(--clr-teal);
  padding: var(--section-pad) 0;
}
.pdr-intro__inner {
  display: block;
  max-width: 720px;
}
.pdr-intro__heading {
  font-size: var(--text-h2); font-weight: var(--weight-h2);
  color: var(--clr-white); margin-bottom: 20px; text-wrap: balance;
}
.pdr-intro__content p {
  font-size: var(--text-base); color: rgba(255,255,255,0.87);
  line-height: 1.75; margin-bottom: 18px;
}
.pdr-intro__content p:last-child { margin-bottom: 0; }
.pdr-intro__content a {
  color: var(--clr-white); text-decoration: underline;
  text-underline-offset: 2px; opacity: 0.9;
}
.pdr-intro__content a:hover { opacity: 1; }
.pdr-intro__media img {
  width: 100%; height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--clr-teal);
  border-radius: var(--radius-lg);
}

/* ================================================
   SUPPORT SECTION   bg: var(--bg-section) teal-pale
================================================ */
.pdr-support {
  background: var(--bg-section);
  padding: var(--section-pad) 0;
}
.pdr-support__heading {
  font-size: var(--text-h2); font-weight: var(--weight-h2);
  color: var(--clr-ink); margin-bottom: 10px; text-wrap: balance;
}
.pdr-support__subtitle {
  font-size: var(--text-sm); color: var(--clr-ink);
  opacity: 0.65; margin-bottom: 40px; line-height: 1.6;
}
.pdr-support__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-split);
}
.pdr-support__col h3 {
  font-size: var(--text-h3); font-weight: var(--weight-h3);
  color: var(--clr-ink); margin-bottom: 16px;
}
.pdr-support__col ul { margin-bottom: 18px; }
.pdr-support__col li {
  font-size: var(--text-sm); color: var(--clr-ink);
  line-height: 1.65; padding-left: 20px;
  position: relative; margin-bottom: 8px;
}
.pdr-support__col li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--clr-teal);
}
.pdr-support__col p {
  font-size: var(--text-sm); color: var(--clr-ink);
  line-height: 1.75; margin-bottom: 16px;
}
.pdr-support__col p:last-child { margin-bottom: 0; }
.pdr-support__col a { color: var(--clr-teal); text-decoration: underline; text-underline-offset: 2px; }
.pdr-support__col a:hover { color: var(--clr-teal-dark); }

/* ================================================
   CTA FORM — page-specific layout overrides
================================================ */
.cta-form__inner { display: grid; grid-template-columns: 44fr 56fr; gap: var(--gap-split); align-items: start; }
.cta-form__copy { padding-top: 8px; }
.cta-form__heading {
  font-size: clamp(24px, 3.2vw, 36px); font-weight: var(--weight-h2);
  color: var(--clr-ink); line-height: 1.2; margin-bottom: 14px; text-wrap: balance;
}
.cta-form__lead {
  font-size: var(--text-sm); color: var(--clr-ink);
  opacity: 0.75; line-height: 1.7; margin-bottom: 20px;
}
.cta-form__list { margin-bottom: 24px; }
.cta-form__list li {
  font-size: var(--text-sm); color: var(--clr-ink);
  line-height: 1.6; padding-left: 22px;
  position: relative; margin-bottom: 8px;
}
.cta-form__list li::before {
  content: '\2713';
  position: absolute; left: 0;
  color: var(--clr-teal); font-weight: 900;
}
.cta-form__form {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.cta-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.cta-form__group {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 16px;
}
.cta-form__group:last-of-type { margin-bottom: 20px; }
.cta-form__group label {
  font-family: var(--font-head); font-size: var(--text-xs); font-weight: 700;
  color: var(--clr-ink);
}
.cta-form__group input,
.cta-form__group textarea,
.cta-form__group select {
  font-family: var(--font-body); font-size: var(--text-sm); color: var(--clr-ink);
  padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-page); width: 100%; transition: border-color 0.2s;
}
.cta-form__group input:focus,
.cta-form__group textarea:focus { outline: none; border-color: var(--clr-teal); }
.cta-form__group textarea { resize: vertical; }
.cta-form__form .btn { width: 100%; justify-content: center; font-size: 15px; padding: 14px 28px; }

/* ================================================
   FAQ SECTION — supplemental classes
================================================ */
.faq-section__intro {
  font-size: var(--text-sm); color: var(--clr-ink);
  opacity: 0.7; line-height: 1.7; margin-bottom: 32px;
}
.faq-section__list { display: flex; flex-direction: column; gap: 8px; }
.faq-item__answer {
  padding: 4px 22px 20px;
  font-size: var(--text-sm); color: var(--clr-ink); opacity: 0.8; line-height: 1.75;
}
.faq-item__answer p { margin: 0; }
.faq-item__answer a { color: var(--clr-teal); }

/* ================================================
   FINAL CTA — supplemental classes
================================================ */
.final-cta__lead {
  font-size: 17px; color: var(--clr-white); opacity: 0.88;
  margin-bottom: 36px; line-height: 1.7;
  max-width: 600px; margin-left: auto; margin-right: auto;
}

/* ================================================
   INSURANCE — page-specific list variant
================================================ */
.insurance__lead {
  font-size: var(--text-sm); color: var(--clr-ink);
  opacity: 0.7; text-align: center; margin-bottom: 40px; line-height: 1.65;
}
.insurance__logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px 24px;
  align-items: center;
}
.insurance__logos li { display: flex; align-items: center; justify-content: center; }
.insurance__logos img {
  width: 100%; max-height: 64px;
  object-fit: contain; display: block;
  transition: opacity 0.2s;
}
.insurance__logos img:hover { opacity: 0.7; }

/* ================================================
   RESPONSIVE — 900px
================================================ */
@media (max-width: 900px) {
  .pdr-intro__inner { grid-template-columns: 1fr; gap: 36px; }
  .pdr-intro__media { order: -1; max-width: 380px; margin: 0 auto; }
  .pdr-intro__media img { aspect-ratio: unset; height: 280px; }
  .pdr-support__grid { grid-template-columns: 1fr; gap: 36px; }
  .cta-form__inner { grid-template-columns: 1fr; gap: 36px; }
  .insurance__logos { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .cta-form__row { grid-template-columns: 1fr; }
  .insurance__logos { grid-template-columns: repeat(2, 1fr); }
  .final-cta__lead { font-size: 15px; }
}

@media (max-width: 480px) {
  .insurance__logos { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
