:root {
  --ink: #172123;
  --muted: #61706f;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --soft: #edf5f4;
  --teal: #1f766d;
  --teal-dark: #10504a;
  --coral: #d8643c;
  --gold: #d8a441;
  --line: #d9e1df;
  --shadow: 0 18px 50px rgba(23, 33, 35, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 86px;
  padding: 14px 7vw;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: min(150px, 42vw);
  max-height: 110px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--teal);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::after {
  content: "v";
  display: inline-block;
  margin-left: 6px;
  color: var(--teal);
  font-size: 11px;
  transform: translateY(-1px);
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  display: none;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.submenu a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--muted);
}

.submenu a:hover {
  background: var(--soft);
}

.nav-dropdown:hover .submenu,
.nav-dropdown:focus-within .submenu {
  display: block;
}

.nav-toggle {
  display: none;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.hero {
  min-height: 620px;
  display: grid;
  align-items: center;
  padding: 92px 7vw;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(16, 80, 74, 0.88), rgba(16, 80, 74, 0.58), rgba(16, 80, 74, 0.24)),
    url("assets/images/child-writing.jpg") center/cover;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.callout .eyebrow {
  color: #ffd27b;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

.hero h1 {
  max-width: 860px;
  font-size: clamp(42px, 7vw, 76px);
}

.hero p:not(.eyebrow) {
  max-width: 640px;
  margin: 24px 0 0;
  font-size: 20px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  background: var(--coral);
  color: #fff;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
}

.button.secondary.on-dark {
  border-color: rgba(255, 255, 255, 0.72);
}

.button-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.notice {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 24px 7vw;
  background: var(--gold);
  color: #241807;
}

.notice strong {
  font-size: 18px;
}

.notice p {
  margin: 0;
}

.section {
  padding: 82px 7vw;
}

.section.soft {
  background: var(--soft);
}

.compact-band {
  padding-top: 60px;
  padding-bottom: 64px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: start;
}

.split h2,
.section-heading h2,
.callout h2,
.page-hero h1,
.credentials h2,
.signpost h2 {
  font-size: clamp(32px, 4vw, 52px);
}

.prose {
  color: var(--muted);
  font-size: 18px;
}

.prose p {
  margin: 0 0 18px;
}

.prose h2 {
  margin: 34px 0 14px;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.2;
}

.prose a {
  color: var(--teal);
  font-weight: 700;
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.narrow {
  max-width: 760px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.service-grid,
.people-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--teal-dark);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.service-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  opacity: 0.74;
  transition: transform 180ms ease, opacity 180ms ease;
}

.service-card span {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.14;
}

.service-card:hover img {
  transform: scale(1.04);
  opacity: 0.62;
}

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--teal-dark);
  color: #fff;
}

.callout p {
  max-width: 660px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.page-hero {
  padding: 92px 7vw 70px;
  background: #fff;
}

.page-hero.compact {
  padding-bottom: 82px;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 20px;
}

.image-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
  gap: 50px;
  align-items: center;
}

.image-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.person-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.person-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
}

.person-card h3,
.person-card p {
  margin-left: 24px;
  margin-right: 24px;
}

.person-card h3 {
  margin-top: 24px;
  font-size: 24px;
}

.person-card p {
  margin-bottom: 26px;
  color: var(--muted);
}

.credentials {
  background: #fff;
}

.credentials ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  max-width: 980px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.credentials li {
  padding: 16px 18px;
  border-left: 4px solid var(--teal);
  background: var(--soft);
}

.service-list {
  display: grid;
  gap: 18px;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.service-row h2 {
  font-size: 30px;
}

.service-row p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.article-list {
  display: grid;
  gap: 18px;
  max-width: 980px;
}

.article-list article,
.contact-card,
.signpost {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.content-columns {
  display: grid;
  gap: 22px;
}

.content-block {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.content-block h2 {
  font-size: 32px;
}

.content-block p,
.content-block li {
  color: var(--muted);
  font-size: 18px;
}

.content-block ul,
.compact-list ul {
  margin: 18px 0 0;
  padding-left: 22px;
}

.content-block li,
.compact-list li {
  margin-bottom: 8px;
}

.profile-row {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.profile-row img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.quote-grid blockquote {
  margin: 0;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quote-grid p {
  color: var(--muted);
}

.quote-grid cite {
  display: block;
  margin-top: 20px;
  color: var(--teal);
  font-style: normal;
  font-weight: 900;
}

.link-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.link-panel {
  display: block;
  padding: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
}

.link-panel h3 {
  font-size: 24px;
}

.link-panel p {
  color: var(--muted);
}

.article-list h2,
.contact-card h2 {
  font-size: 30px;
}

.article-list p,
.contact-card p,
.signpost p {
  color: var(--muted);
}

.text-link {
  color: var(--teal);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px;
}

.contact-card .button {
  margin-top: 12px;
}

.muted-card {
  background: var(--soft);
}

.signpost {
  max-width: none;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr) auto;
  gap: 24px;
  align-items: start;
  padding: 28px 7vw;
  background: #fff;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 8px 18px;
  font-weight: 800;
}

.site-footer a {
  color: var(--teal);
  text-decoration: none;
}

@media (max-width: 980px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .people-grid,
  .profile-row,
  .quote-grid,
  .link-panel-grid,
  .contact-grid,
  .image-panel,
  .split,
  .service-row {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 8px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-dropdown {
    width: 100%;
  }

  .submenu {
    position: static;
    display: grid;
    box-shadow: none;
    margin-top: 8px;
    min-width: 0;
  }

  .hero {
    min-height: 560px;
    padding-top: 66px;
    padding-bottom: 66px;
    background:
      linear-gradient(rgba(16, 80, 74, 0.82), rgba(16, 80, 74, 0.7)),
      url("assets/images/child-writing.jpg") center/cover;
  }

  .notice,
  .service-grid,
  .credentials ul {
    grid-template-columns: 1fr;
  }

  .section,
  .page-hero {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .callout {
    align-items: flex-start;
    flex-direction: column;
  }

  .button-pair {
    justify-content: flex-start;
  }
}
