:root {
  --bg: #f7fbff;
  --surface: #ffffff;
  --surface-2: #eef6ff;
  --text: #12304d;
  --muted: #4f6880;
  --line: #dce9f5;
  --brand: #1974d1;
  --brand-2: #13c0a3;
  --brand-dark: #0f2a58;
  --staffing: #1974d1;
  --fostering: #9521ce;
  --residential: #57846a;
  --radius: 16px;
  --shadow: 0 18px 45px rgba(25, 64, 115, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 5%, rgba(86, 165, 235, 0.34) 0, transparent 38%),
    radial-gradient(circle at 92% 18%, rgba(149, 33, 206, 0.24) 0, transparent 34%),
    radial-gradient(circle at 80% 82%, rgba(87, 132, 106, 0.22) 0, transparent 30%),
    url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22180%22 height=%22180%22 viewBox=%220 0 180 180%22%3E%3Cg fill=%22none%22 stroke=%22%23b9cfe3%22 stroke-width=%221%22 opacity=%220.42%22%3E%3Cpath d=%22M0 30h180M0 90h180M0 150h180M30 0v180M90 0v180M150 0v180%22/%3E%3C/g%3E%3C/svg%3E"),
    var(--bg);
  background-attachment: scroll, scroll, scroll, fixed, scroll;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
  line-height: 1.2;
  margin: 0 0 0.6rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--brand);
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
  background: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  z-index: 100;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(9px);
  background: rgba(247, 251, 255, 0.9);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 86px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-decoration: none;
}

.brand img {
  width: clamp(160px, 22vw, 280px);
  height: auto;
}

.brand-tagline {
  font-size: clamp(0.62rem, 1vw, 0.84rem);
  line-height: 1.2;
  color: var(--brand-dark);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-fallback {
  display: none;
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
  color: var(--brand-dark);
  font-weight: 700;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  flex-wrap: nowrap;
}

.primary-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.96rem;
}

.primary-nav a:hover {
  color: var(--brand);
}

.primary-nav .menu-item {
  display: grid;
  grid-template-rows: auto auto;
  text-align: center;
  line-height: 1.1;
  min-width: 74px;
}

.primary-nav .nav-top,
.primary-nav .nav-bottom {
  display: block;
}

.primary-nav .nav-top {
  min-height: 1.05em;
}

.primary-nav .contact-item .nav-top {
  visibility: hidden;
}

.primary-nav .menu-pill {
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  min-width: 108px;
}

.primary-nav .menu-pill-ghost {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 0 rgba(15, 42, 88, 0.03);
}

.primary-nav .menu-pill-solid {
  background: linear-gradient(135deg, var(--brand), #2f8fff);
  color: #fff;
  box-shadow: 0 10px 24px rgba(30, 114, 255, 0.28);
}

.primary-nav .menu-pill-solid:hover {
  color: #fff;
  filter: brightness(1.03);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.18rem;
  background: linear-gradient(135deg, var(--brand), #2f8fff);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(30, 114, 255, 0.26);
}

.btn:hover {
  filter: brightness(1.05);
}

.btn.ghost {
  background: #fff;
  color: var(--brand-dark);
  border: 1px solid var(--line);
  box-shadow: none;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 700;
  padding: 0.55rem 0.9rem;
}

.section {
  padding: clamp(3rem, 7vw, 5.25rem) 0;
}

.hero {
  padding-top: clamp(3rem, 8vw, 6rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.3rem;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.card,
.steps,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(1.4rem, 3vw, 2.25rem);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.7rem;
  padding: 0.22rem 0.66rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #0d4f8a;
  background: #e7f2ff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.1rem;
}

.trust-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.hero-card {
  padding: clamp(1.2rem, 2.5vw, 1.65rem);
  background:
    linear-gradient(160deg, #ffffff 10%, #f5fbff 60%, #ecfff9 100%);
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.72rem;
}

.audience-grid article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.84rem;
  background: rgba(255, 255, 255, 0.9);
}

.audience-grid p,
.card p,
.stats span {
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 0.9rem;
}

.cards.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 1rem;
}

.band {
  background: linear-gradient(160deg, #f1f8ff, #e9fcf6);
}

.service-pillars {
  background: linear-gradient(180deg, #f8fcff 0%, #f6fcfa 100%);
}

.theme-staffing {
  border-top: 6px solid var(--staffing);
}

.theme-fostering {
  border-top: 6px solid var(--fostering);
}

.theme-residential {
  border-top: 6px solid var(--residential);
}

.theme-fostering h3 {
  color: var(--fostering);
}

.theme-residential h3 {
  color: var(--residential);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: start;
}

.stats {
  display: grid;
  gap: 0.8rem;
}

.stats > div {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.stats strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.steps {
  padding: 1.1rem;
}

.steps ol {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
}

.highlight {
  background: linear-gradient(130deg, #123f86, #1c6ab7);
  color: #fff;
}

.highlight .eyebrow {
  color: #0d3a6b;
  background: #d8ebff;
}

.highlight p,
.highlight a,
.highlight h2 {
  color: #fff;
}

.contact-card {
  padding: 1.2rem;
  color: var(--text);
}

.contact-card p,
.contact-card a,
.contact-card h3 {
  color: var(--text);
}

.site-footer {
  background: #0d2344;
  color: #d2e5ff;
  border-top: 1px solid #183662;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem 0;
}

.footer-wrap a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

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

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

@media (max-width: 1080px) {
  .nav-wrap {
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand toggle"
      "nav nav"
      "cta cta";
    gap: 0.6rem 1rem;
    padding: 0.7rem 0;
  }

  .brand {
    grid-area: brand;
  }

  .brand-tagline {
    font-size: 0.62rem;
  }

  .menu-toggle {
    grid-area: toggle;
    justify-self: end;
    display: inline-flex;
  }

  .primary-nav {
    grid-area: nav;
    display: none;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.6rem;
  }

  .primary-nav.open {
    display: flex;
  }

  .header-ctas {
    display: none;
  }

  .hero-grid,
  .split,
  .cards.four,
  .cards.three,
  .audience-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
