: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: #9e0fd2;
  --residential: #48a052;
  --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-color: var(--bg);
  background-image: url("assets/aegis-care-shield-web-bacground.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  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: 50;
  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;
  height: 150px;
}

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

.brand img {
  height: 100px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-tagline {
  font-size: 0.75rem;
  line-height: 1.2;
  color: #000;
  font-weight: 700;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

.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: wrap;
  row-gap: 0.35rem;
}


.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;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.card {
  display: block;
  text-decoration: none !important;
  color: inherit;
}

a.card * {
  text-decoration: none !important;
}

a.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg, 0 12px 24px rgba(0,0,0,0.1));
}

.stack label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.stack input,
.stack select,
.stack textarea {
  width: 100%;
  border: 1px solid #bfd7ee;
  border-radius: 12px;
  padding: 0.72rem 0.85rem;
  background: #fff;
  color: var(--text);
  font: inherit;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.stack input:focus,
.stack select:focus,
.stack textarea:focus {
  border-color: #8bb8ff;
  box-shadow: 0 0 0 3px rgba(31, 117, 255, 0.16);
  outline: none;
}

.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;
  flex-wrap: wrap;
}

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

.footer-links,
.social-links {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.social-links a {
  color: #d8ecff;
  font-weight: 600;
}

.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::before {
    text-align: left;
  }

  .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;
  }
}
