/* Mobile-first base styles. Breakpoints layer on top as the viewport grows. */

:root {
  /* Colors - the Theme Lab (js/theme.js) overrides these on <html>. */
  --color-bg: #f4f7f6;
  --color-bg-card: #ffffff;
  --color-bg-alt: #fafbfb;
  --color-text: #1d2b2a;
  --color-muted: #52615f;
  --color-accent: #1f8074;
  --color-accent-dark: #17635a;
  --color-accent-light: #5cc4b7;
  --color-on-accent: #ffffff;
  /* Secondary accent (not driven by the Theme Lab): decorative dots and checks only. */
  --color-green: #5fb33a;
  /* RGB triplets so rgba() can be built from the theme colors above (see js/theme.js) */
  --color-bg-rgb: 244, 247, 246;
  --color-text-rgb: 29, 43, 42;
  --color-accent-rgb: 31, 128, 116;
  --color-border: rgba(var(--color-text-rgb), 0.1);

  /* Fonts - the Font Lab (js/fonts.js) overrides these on <html>. */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container-width: 1120px;
  --radius: 10px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px -4px rgba(var(--color-text-rgb), 0.12);
  --shadow-md: 0 18px 40px -24px rgba(var(--color-text-rgb), 0.3);
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4.5rem;
  --contact-bar-height: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Room for the fixed mobile contact bar (hidden on desktop, see breakpoints). */
  padding-bottom: var(--contact-bar-height);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-2);
}

h1 {
  font-size: clamp(2.1rem, 7vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 var(--space-2);
  color: var(--color-muted);
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-2);
}

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

/* ================= Sections ================= */

.section {
  padding: var(--space-5) 0;
}

.section-alt {
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* Inside the white alternate bands, surfaces flip to the page background so
   they still stand out. */
.section-alt .card,
.section-alt .checklist li,
.section-alt .steps li,
.section-alt .faq-item {
  background: var(--color-bg);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(var(--color-accent-rgb), 0.1);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.85rem;
  margin-bottom: var(--space-2);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-green);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-4);
}

.section-head p {
  font-size: 1.05rem;
  margin-bottom: 0;
}

.section-foot {
  text-align: center;
  margin-top: var(--space-4);
  margin-bottom: 0;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}

.link-arrow::after {
  content: "→";
  transition: transform 0.2s ease;
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* Scroll reveal - elements fade/slide in as they enter the viewport (see js/reveal.js) */

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

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ================= Buttons ================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-on-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.button:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -16px rgba(var(--color-accent-rgb), 0.6);
}

.button-outline {
  background: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.button-outline:hover {
  background: rgba(var(--color-accent-rgb), 0.1);
  box-shadow: none;
}

.button-small {
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
}

.button svg {
  width: 1.1em;
  height: 1.1em;
}

/* ================= Header / nav ================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(var(--color-bg-rgb), 0.9);
  backdrop-filter: blur(10px);
}

.site-header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-decoration: none;
}

.logo-accent {
  color: var(--color-accent);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: 1.05rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-cta {
  display: none;
}

.lang-switch {
  display: flex;
  border: 1.5px solid var(--color-accent);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 0.3rem 0.65rem;
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  font-weight: 700;
  cursor: pointer;
  color: var(--color-accent);
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn.active {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.nav-toggle {
  position: relative;
  z-index: 70;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(var(--color-text-rgb), 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 35;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.primary-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 82%);
  background: var(--color-bg-card);
  padding: calc(var(--space-4) + 1.5rem) var(--space-3) var(--space-3);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: var(--shadow-md);
  overflow-y: auto;
  z-index: 60;
}

.primary-nav.open {
  transform: translateX(0);
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav li + li {
  margin-top: var(--space-2);
}

.primary-nav a:not(.button) {
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.primary-nav a:not(.button):hover,
.primary-nav a[aria-current="page"] {
  color: var(--color-accent);
}

.nav-cta-item {
  padding-top: var(--space-2);
}

/* ================= Home hero ================= */

.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-4) 0 var(--space-5);
}

/* Soft decorative blobs, tinted from the accent so they follow the Theme Lab. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(10px);
}

.hero::before {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -140px;
  background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.22), transparent 70%);
}

.hero::after {
  width: 320px;
  height: 320px;
  bottom: -120px;
  left: -120px;
  background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.14), transparent 70%);
}

.hero-inner {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

.hero h1 {
  max-width: 14ch;
}

.hero-lede {
  font-size: 1.12rem;
  max-width: 36rem;
  margin-bottom: var(--space-3);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: var(--space-3);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.8rem;
}

.chips li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Photo of her at work, with two floating badges. Shown on phones too (below
   the text) - a real photo earns the space the old placeholder art didn't. */
.hero-photo {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 460px;
  justify-self: center;
}

.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  box-shadow: 0 30px 60px -34px rgba(var(--color-accent-rgb), 0.55);
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 6% -5% -5% 6%;
  z-index: -1;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  background: linear-gradient(145deg, rgba(var(--color-accent-rgb), 0.28), rgba(95, 179, 58, 0.22));
}

.hero-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--color-bg-card);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  padding: 0.45rem 0.95rem 0.45rem 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text);
  max-width: 80%;
}

.hero-badge .card-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin: 0;
}

.hero-badge-1 {
  top: 8%;
  left: -2%;
}

.hero-badge-2 {
  bottom: 6%;
  right: -2%;
}

.hero-badge-2 .card-icon {
  background: rgba(95, 179, 58, 0.16);
  color: var(--color-green);
}

/* ================= Highlights strip ================= */

.highlights {
  background: var(--color-accent);
  color: var(--color-on-accent);
  padding: var(--space-3) 0;
}

.highlights-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3) var(--space-2);
}

.highlight {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.highlight > svg {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  opacity: 0.9;
}

.highlight strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.25;
}

.highlight span {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ================= Sub-page hero ================= */

.page-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: var(--space-5) 0 var(--space-4);
}

.page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -40% -10% auto;
  height: 140%;
  background: radial-gradient(ellipse at top, rgba(var(--color-accent-rgb), 0.14), transparent 65%);
}

.page-hero h1 {
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}

.page-hero + .section {
  padding-top: var(--space-2);
}

.page-hero p {
  font-size: 1.1rem;
  max-width: 38rem;
  margin: 0 auto;
}

/* ================= Cards & grids ================= */

.grid {
  display: grid;
  gap: var(--space-2);
}

.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(var(--color-accent-rgb), 0.12);
  color: var(--color-accent);
  margin-bottom: var(--space-2);
  flex-shrink: 0;
}

.card-icon svg {
  width: 55%;
  height: 55%;
}

/* ================= Checklist (signs) ================= */

.checklist {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  max-width: 860px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  font-weight: 500;
}

.checklist li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(var(--color-accent-rgb), 0.14);
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 800;
}

.checklist-note {
  text-align: center;
  margin: var(--space-3) auto 0;
  font-weight: 500;
}

/* ================= Numbered steps ================= */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  padding-top: calc(var(--space-3) + 2.4rem);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-family: var(--font-heading);
  font-weight: 800;
}

.steps h3 {
  margin-bottom: 0.4rem;
}

.steps p {
  margin: 0;
}

/* ================= Split (text + media) ================= */

.split {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

.split-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 70% 30%, rgba(var(--color-accent-rgb), 0.28), transparent 60%),
    rgba(var(--color-accent-rgb), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* ================= Content components ================= */

/* Whole card is the link (home: age groups, services). */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-link p {
  margin-bottom: var(--space-2);
}

.card-link:hover h3 {
  color: var(--color-accent);
}

.split-photo {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 420px;
}

.split-photo img,
.gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  /* Anchor to the top: faces sit high in these photos, and the school graphic
     has a caption strip along the bottom that's better cropped away whole. */
  object-position: 50% 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Stand-in for sections with no photo yet: one big icon on a soft panel. */
.split-panel {
  justify-self: center;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  background:
    radial-gradient(circle at 30% 25%, rgba(95, 179, 58, 0.18), transparent 55%),
    radial-gradient(circle at 70% 75%, rgba(var(--color-accent-rgb), 0.22), transparent 60%),
    rgba(var(--color-accent-rgb), 0.06);
}

.split-panel svg {
  width: 38%;
  height: 38%;
}

.split .button {
  margin-top: var(--space-2);
}

.bullets {
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.bullets li {
  position: relative;
  padding-left: 1.9rem;
  font-weight: 500;
}

.bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: rgba(95, 179, 58, 0.16);
  color: var(--color-green);
  font-size: 0.75rem;
  font-weight: 800;
}

.credentials {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: var(--space-2);
  max-width: 900px;
}

.credentials li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.credentials .card-icon {
  margin: 0;
}

.credentials h3 {
  margin-bottom: 0.3rem;
}

.gallery {
  display: grid;
  gap: var(--space-2);
}

.gallery-item {
  margin: 0;
}

.gallery-item figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-muted);
  text-align: center;
}

.prose h2 {
  margin-top: var(--space-4);
}

.prose h2:first-child {
  margin-top: 0;
}

.muted-note {
  font-size: 0.9rem;
  margin-top: var(--space-4);
}

/* ================= Services page ================= */

.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose p {
  font-size: 1.05rem;
}

/* ================= FAQ ================= */

.faq-list,
.faq-group {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.faq-group + .faq-group {
  margin-top: var(--space-4);
}

.faq-group-title {
  font-size: 1.3rem;
  text-align: left;
  margin-bottom: 0.25rem;
}

.faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(var(--color-accent-rgb), 0.5);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  flex-shrink: 0;
  display: inline-flex;
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  transition: transform 0.25s ease;
}

.faq-chevron svg {
  width: 100%;
  height: 100%;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-item p {
  padding: 0 1.2rem 1.1rem;
  margin: 0;
}

/* ================= CTA banner ================= */

.cta-banner {
  position: relative;
  overflow: hidden;
  background: var(--color-accent);
  color: var(--color-on-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-3);
  text-align: center;
}

.cta-banner::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  top: -150px;
  right: -80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.cta-banner h2 {
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner p {
  color: inherit;
  opacity: 0.9;
  font-size: 1.05rem;
}

.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.cta-banner .button {
  background: var(--color-on-accent);
  color: var(--color-accent-dark);
}

.cta-banner .button:hover {
  background: var(--color-bg-card);
}

.cta-banner .button-outline {
  background: transparent;
  border-color: var(--color-on-accent);
  color: var(--color-on-accent);
}

.cta-banner .button-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ================= Contact ================= */

.contact-grid {
  display: grid;
  gap: var(--space-2);
}

.contact-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  text-decoration: none;
}

.contact-card .card-icon {
  margin: 0;
}

.contact-card h2 {
  font-size: 1rem;
  text-align: left;
  margin-bottom: 0.15rem;
}

.contact-card p {
  margin: 0;
  color: var(--color-text);
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* ================= 404 ================= */

.not-found {
  text-align: center;
  padding: var(--space-5) 0;
}

.not-found-code {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 22vw, 9rem);
  font-weight: 800;
  line-height: 1;
  color: rgba(var(--color-accent-rgb), 0.3);
  margin-bottom: var(--space-2);
}

.not-found-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: var(--space-3);
}

/* ================= Footer ================= */
/* Kept deliberately compact: brand + inline page links, one line of contact
   details, then the legal line - no tall link columns. */

.site-footer {
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  padding: var(--space-4) 0 var(--space-2);
  font-size: 0.9rem;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem var(--space-2);
}

.footer-brand .logo {
  font-size: 1.15rem;
}

.footer-brand .logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: 0.9rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.88rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem var(--space-3);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem var(--space-3);
  margin-top: var(--space-3);
}

.footer-contact > * {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.footer-nav a,
.footer-contact a,
.footer-contact span,
.footer-legal a {
  text-decoration: none;
  color: var(--color-muted);
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-contact a:hover,
.footer-legal a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--color-accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-1) var(--space-3);
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border);
}

.footer-bottom p {
  margin: 0;
  font-size: inherit;
}

/* ================= Mobile contact bar ================= */
/* Parents mostly browse on phones and want to call or message right away,
   so on small screens a call / WhatsApp bar stays pinned to the bottom. */

.contact-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  height: var(--contact-bar-height);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.55rem var(--space-2);
  background: rgba(var(--color-bg-rgb), 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
}

.contact-bar .button {
  padding: 0.6rem 1rem;
}

/* The lab toggles sit above the contact bar on small screens, and step out
   of the way while the mobile menu is open. */
.nav-open .theme-lab-toggle,
.nav-open .font-lab-toggle,
.nav-open .theme-lab-panel,
.nav-open .font-lab-panel {
  visibility: hidden;
}

.theme-lab-toggle,
.font-lab-toggle,
.theme-lab-panel,
.font-lab-panel {
  margin-bottom: var(--contact-bar-height);
}

/* ================= Breakpoints ================= */

@media (min-width: 600px) {
  .header-cta {
    display: inline-flex;
  }

  .nav-cta-item {
    display: none;
  }

  .grid-2,
  .checklist,
  .contact-grid,
  .credentials {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3,
  .grid-4,
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (min-width: 900px) {
  .hero {
    padding: var(--space-5) 0;
  }

  .hero-inner {
    grid-template-columns: 1.15fr 1fr;
  }

  .highlights-inner {
    grid-template-columns: repeat(4, 1fr);
  }

  .split-reverse > :first-child {
    order: 2;
  }

  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .grid-4,
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .split {
    grid-template-columns: 1fr 1.1fr;
  }

}

/* Desktop nav needs the room: 5 links + language switch + CTA. */
@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }

  .contact-bar {
    display: none;
  }

  .theme-lab-toggle,
  .font-lab-toggle,
  .theme-lab-panel,
  .font-lab-panel {
    margin-bottom: 0;
  }

  .nav-toggle,
  .nav-overlay {
    display: none;
  }

  .primary-nav {
    position: static;
    width: auto;
    background: none;
    padding: 0;
    transform: none;
    box-shadow: none;
    overflow: visible;
    margin-left: auto;
    margin-right: var(--space-3);
  }

  .primary-nav > ul {
    display: flex;
    gap: var(--space-3);
  }

  .primary-nav li + li {
    margin-top: 0;
  }

  .primary-nav a:not(.button) {
    font-size: 0.95rem;
  }

  .header-bar .logo {
    order: 1;
  }

  .primary-nav {
    order: 2;
  }

  .header-actions {
    order: 3;
  }
}

/* ================= Theme Lab / Font Lab ================= */
/* Experimental switchers (js/theme.js, js/fonts.js) - let a visitor try different
   color palettes and font pairings live, by writing new values onto the
   --color-* and --font-* variables above. Both share the same floating
   toggle/panel chrome; only position and the preset list differ. */

.theme-lab-toggle,
.font-lab-toggle {
  position: fixed;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--color-accent);
  background: var(--color-bg-card);
  color: var(--color-accent);
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, background 0.2s ease;
}

.theme-lab-toggle {
  bottom: var(--space-2);
  right: var(--space-2);
}

.font-lab-toggle {
  bottom: var(--space-2);
  left: var(--space-2);
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.theme-lab-toggle:hover,
.font-lab-toggle:hover {
  transform: translateY(-2px);
  background: var(--color-bg-alt);
}

.theme-lab-panel,
.font-lab-panel {
  position: fixed;
  z-index: 90;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) * 2);
  padding: var(--space-3);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.7);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.theme-lab-panel {
  bottom: calc(var(--space-2) + 58px);
  right: var(--space-2);
  width: min(300px, calc(100vw - 2rem));
}

.font-lab-panel {
  bottom: calc(var(--space-2) + 58px);
  left: var(--space-2);
  width: min(340px, calc(100vw - 2rem));
}

.theme-lab-panel.open,
.font-lab-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.theme-lab-panel h2,
.font-lab-panel h2 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-align: left;
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.theme-lab-close,
.font-lab-close {
  background: none;
  border: none;
  color: var(--color-muted);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem;
}

.theme-lab-close:hover,
.font-lab-close:hover {
  color: var(--color-accent);
}

.theme-lab-reset,
.font-lab-reset {
  margin-top: var(--space-3);
  width: 100%;
  font-size: 0.82rem;
  padding: 0.55rem 1rem;
}

.theme-lab-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-2);
}

.theme-lab-preset {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.theme-lab-preset:hover,
.theme-lab-preset.active {
  transform: scale(1.1);
  border-color: var(--color-accent);
}

.theme-lab-fields {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.theme-lab-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: 0.85rem;
  color: var(--color-muted);
  cursor: pointer;
}

.theme-lab-field input[type="color"] {
  width: 36px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: none;
  cursor: pointer;
}

.font-lab-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: var(--space-2);
  padding-right: 0.25rem;
}

.font-lab-option {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.font-lab-option:hover {
  border-color: var(--color-accent);
}

.font-lab-option.active {
  border-color: var(--color-accent);
  background: rgba(var(--color-accent-rgb), 0.12);
}

.font-lab-option-name {
  display: block;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--color-text);
}

.font-lab-option-fonts {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--color-muted);
}

.font-lab-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: var(--space-2);
}

.font-lab-tab {
  flex: 1;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.4rem 0.5rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--color-muted);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.font-lab-tab:hover {
  color: var(--color-text);
}

.font-lab-tab.active {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.font-lab-browse-field + .font-lab-browse-field {
  margin-top: var(--space-3);
}

.font-lab-browse-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--color-muted);
}

.font-lab-browse-hint {
  display: block;
  margin-top: 0.1rem;
  margin-bottom: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--color-muted);
  opacity: 0.75;
}

.font-lab-browse-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 130px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.font-lab-browse-option {
  display: block;
  width: 100%;
  flex-shrink: 0;
  text-align: left;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.5rem 0.7rem;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--color-text);
  cursor: pointer;
  white-space: normal;
  overflow-wrap: break-word;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.font-lab-browse-option:hover {
  border-color: var(--color-accent);
}

.font-lab-browse-option.active {
  border-color: var(--color-accent);
  background: rgba(var(--color-accent-rgb), 0.12);
}

.font-lab-list.hidden,
.font-lab-browse.hidden {
  display: none;
}
