:root {
  --font-sans: "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --bg-main: #f3f5f7;
  --surface: #ffffff;
  --accent: #57c1df;
  --accent-dark: #43b2d3;
  --text-dark: #111111;
  --text-muted: #5f6268;
  --line-soft: #d7e9f0;
  --strip: #070a16;
  --container: 1240px;
  --radius-pill: 18px;
  --radius-card: 28px;
  --shadow-soft: 0 12px 30px rgba(8, 17, 33, 0.08);
  --header-height: 156px;
  --footer-height: max(108px, 14vh);
  --subpage-hero-pad-top: 12px;
  --subpage-hero-pad-bottom: 44px;
  --subpage-two-col-gap: 24px;
  --subpage-card-padding: 28px;
  --subpage-stack-space: 28px;
  --subpage-hero-cta-margin: 24px;
  --subpage-title-top-gap: 12px;
  --subpage-title-bottom-gap: 14px;
  --subpage-split-min-height: 520px;
  --subpage-map-min-height: 520px;
  --subpage-card-radius: 30px;
  --subpage-map-radius: 34px;
  --subpage-card-radius-sm: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  color: var(--text-dark);
  background:
    radial-gradient(circle at 0% 0%, rgba(87, 193, 223, 0.13), transparent 31%),
    linear-gradient(180deg, #f8fbfd 0%, var(--bg-main) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

main {
  flex: 1 0 auto;
  animation: pageFadeIn 0.45s ease both;
}

:focus-visible {
  outline: 3px solid rgba(87, 193, 223, 0.5);
  outline-offset: 3px;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-fill {
  fill: currentColor;
  stroke: none;
}

.container {
  width: min(var(--container), calc(100% - 72px));
  margin: 0 auto;
}

.site-header .container {
  width: min(1280px, calc(100% - 80px));
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  min-height: var(--header-height);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand picture {
  display: block;
}

.brand img {
  width: clamp(168px, 20vw, 250px);
  height: auto;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: rgba(87, 193, 223, 0.14);
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  margin: 0 auto;
  border-radius: 3px;
  background: #1c232f;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 38px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 42px;
}

.primary-nav a {
  color: #4f5359;
  font-size: 1.18rem;
  font-weight: 300;
  transition: color 0.2s ease;
}

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

.primary-nav a.is-active,
.primary-nav a[aria-current="page"] {
  color: var(--accent-dark);
}

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

.kids-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.kids-wordmark span:nth-child(1) {
  color: #29aeca;
}

.kids-wordmark span:nth-child(2) {
  color: #8dc63f;
}

.kids-wordmark span:nth-child(3) {
  color: #e3228a;
}

.kids-wordmark span:nth-child(4) {
  color: #f3c718;
}

.phone-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.phone-btn:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
}

.whatsapp-float {
  position: fixed;
  right: calc(env(safe-area-inset-right, 0px) + 20px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  z-index: 35;
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(18, 38, 27, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  background: #1fbe5d;
  box-shadow: 0 22px 42px rgba(18, 38, 27, 0.28);
}

.whatsapp-float .icon {
  width: 1.95rem;
  height: 1.95rem;
}

.page-main {
  position: relative;
  z-index: 1;
  padding: 54px 0 0px;
}

.contact-page,
.location-page {
  padding-bottom: 80px;
}

.services-page {
  padding-bottom: 0;
}

.page-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}

.eyebrow {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-pill:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
}

.btn-pill .icon {
  width: 1.05rem;
  height: 1.05rem;
}

.btn-pill--ghost {
  background: #ffffff;
  color: #1f3342;
  border-color: rgba(87, 193, 223, 0.35);
}

.btn-pill--ghost:hover {
  background: rgba(87, 193, 223, 0.08);
  border-color: rgba(87, 193, 223, 0.65);
}

.subpage-split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: var(--subpage-two-col-gap);
  align-items: stretch;
}

.subpage-info-card {
  min-height: var(--subpage-split-min-height);
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: var(--subpage-card-radius);
  border: 1px solid rgba(87, 193, 223, 0.2);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: var(--subpage-card-padding);
}

.subpage-info-card h2 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.2;
  font-weight: 500;
}

.subpage-info-actions {
  margin: 0;
}

.subpage-info-list {
  display: grid;
}

.subpage-info-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(215, 233, 240, 0.84);
}

.subpage-info-row:last-child {
  border-bottom: 0;
}

.subpage-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(87, 193, 223, 0.14);
  color: var(--accent-dark);
}

.subpage-info-icon .icon {
  width: 1.05rem;
  height: 1.05rem;
}

.subpage-info-row p {
  margin: 0 0 4px;
  color: #6f7e8f;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.subpage-info-row strong {
  display: block;
  color: #13202d;
  font-size: 0.95rem;
  line-height: 1.48;
  font-weight: 500;
}

.subpage-map-card {
  position: relative;
  min-height: var(--subpage-map-min-height);
  border-radius: var(--subpage-map-radius);
  overflow: hidden;
  border: 1px solid rgba(87, 193, 223, 0.18);
  background: #ffffff;
  box-shadow: 0 22px 46px rgba(8, 17, 33, 0.08);
}

.map-preview {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: var(--subpage-map-min-height);
  display: grid;
  place-items: center;
  padding: 32px;
  background: #e5eaee;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.map-preview::before {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 26px;
  border: 1px solid rgba(126, 140, 152, 0.22);
  background: rgba(255, 255, 255, 0.22);
}

.map-preview-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  max-width: 300px;
  color: #5f6871;
}

.map-preview-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  color: #7a848d;
}

.map-preview-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.map-preview-copy p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
}

.subpage-map-card iframe {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: var(--subpage-map-min-height);
  border: 0;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.subpage-map-card[data-loaded="true"] .map-preview {
  opacity: 0;
  visibility: hidden;
}

.subpage-map-card[data-loaded="true"] iframe {
  opacity: 1;
}

.site-footer {
  margin-top: auto;
  min-height: var(--footer-height);
  border-top: 1px solid rgba(87, 193, 223, 0.2);
  background: #ffffff;
  box-shadow: 0 -12px 28px rgba(8, 17, 33, 0.08);
}

.footer-inner {
  min-height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 12px 0;
}

.footer-brand picture {
  display: block;
}

.footer-brand img {
  width: clamp(80px, 7vw, 110px);
  height: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
}

.footer-links a {
  color: #4f5a68;
  font-size: 0.94rem;
  font-weight: 500;
}

.footer-links a.is-active,
.footer-links a[aria-current="page"] {
  color: var(--accent-dark);
}

.footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(87, 193, 223, 0.14);
  color: #1f3441;
  font-size: 0.92rem;
  font-weight: 600;
}

.footer-pill-whatsapp {
  background: #25d366;
  color: #ffffff;
}

.footer-pill-whatsapp .icon {
  width: 1rem;
  height: 1rem;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1199px) {
  :root {
    --header-height: 124px;
    --subpage-split-min-height: 440px;
    --subpage-map-min-height: 440px;
  }

  .site-header .container {
    width: min(1280px, calc(100% - 50px));
  }

  .container {
    width: min(var(--container), calc(100% - 50px));
  }

  .header-inner {
    gap: 22px;
  }

  .nav-wrap {
    gap: 24px;
  }

  .primary-nav {
    gap: 24px;
  }

  .primary-nav a {
    font-size: 1rem;
  }

  .phone-btn {
    min-height: 52px;
    padding: 0 20px;
    font-size: 1.2rem;
  }

  .page-main {
    padding-top: 42px;
    padding-bottom: 64px;
  }
}

@media (max-width: 960px) {
  .subpage-split-layout {
    grid-template-columns: 1fr;
  }

  .subpage-info-card {
    min-height: 0;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 84px;
    --footer-height: max(90px, 11vh);
    --subpage-hero-pad-top: 2px;
    --subpage-hero-pad-bottom: 28px;
    --subpage-two-col-gap: 18px;
    --subpage-card-padding: 18px 15px;
    --subpage-stack-space: 22px;
    --subpage-hero-cta-margin: 18px;
    --subpage-title-top-gap: 10px;
    --subpage-title-bottom-gap: 10px;
    --subpage-map-min-height: 280px;
  }

  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    min-height: var(--header-height);
    gap: 14px;
    padding: 14px 0;
  }

  .brand {
    display: inline-flex;
    align-items: center;
    transform: translateY(5px);
  }

  .brand img {
    width: 146px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-wrap {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 15;
    display: grid;
    gap: 14px;
    padding: 16px 20px 20px;
    background: #ffffff;
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 14px 22px rgba(8, 17, 33, 0.08);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-wrap.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .primary-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .primary-nav a,
  .phone-btn {
    min-height: 44px;
  }

  .phone-btn {
    width: auto;
    min-height: auto;
    justify-content: flex-start;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #227fa2;
    font-size: 0.98rem;
    font-weight: 600;
  }

  .phone-btn:hover {
    transform: none;
    background: transparent;
  }

  .nav-wrap .phone-btn {
    display: none;
  }

  .whatsapp-float {
    right: calc(env(safe-area-inset-right, 0px) + 16px);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
    width: 58px;
    height: 58px;
  }

  .whatsapp-float .icon {
    width: 1.7rem;
    height: 1.7rem;
  }

  .subpage-info-card {
    gap: 14px;
    border-radius: var(--subpage-card-radius-sm);
  }

  .subpage-info-card h2 {
    font-size: 1.28rem;
  }

  .subpage-info-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 0;
  }

  .subpage-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .subpage-info-row strong {
    font-size: 0.9rem;
    line-height: 1.42;
  }

  .subpage-map-card,
  .map-preview {
    border-radius: var(--subpage-card-radius-sm);
  }

  .map-preview {
    padding: 24px 18px;
  }

  .map-preview::before {
    inset: 16px;
    border-radius: 18px;
  }

  .map-preview-icon {
    width: 54px;
    height: 54px;
  }

  .map-preview-copy p {
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .page-main {
    padding-top: 30px;
    padding-bottom: 44px;
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .btn-pill {
    width: 100%;
    min-height: 48px;
    font-size: 0.92rem;
  }

  .footer-inner {
    justify-content: center;
    gap: 8px 12px;
    padding: 10px 0;
  }

  .footer-brand,
  .footer-links,
  .footer-actions {
    width: 100%;
    justify-content: center;
  }

  .footer-brand img {
    width: 66px;
  }

  .footer-links {
    gap: 6px 12px;
  }

  .footer-links a,
  .footer-pill {
    font-size: 0.78rem;
  }

  .footer-pill {
    min-height: 34px;
    padding: 0 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  main {
    animation: none;
  }
}
