/* ============================================================
   HEY KIDS — Preschool Website
   Design system: colors, type, spacing, components, sections
   ============================================================ */

:root {
  --primary: #1599D6;
  --primary-deep: #1264A3;
  --yellow: #FFD52E;
  --orange: #FF9F1C;
  --pink: #F58AB7;
  --pink-light: #FFE5EF;
  --mint: #BFE9C7;
  --blue-light: #E1F5FF;
  --cream: #FFF9E8;
  --white: #FFFFFF;

  --ink: #12334F;
  --ink-soft: #4A6783;
  --ink-faint: #7B93A8;

  --radius-sm: 16px;
  --radius: 24px;
  --radius-lg: 32px;

  --shadow-sm: 0 6px 18px rgba(18, 100, 163, 0.08);
  --shadow: 0 14px 34px rgba(18, 100, 163, 0.12);
  --shadow-lg: 0 26px 60px rgba(18, 100, 163, 0.18);

  --font-display: "Baloo 2", "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;

  --container: 1240px;
  --container-wide: 1280px;
  --section-y: clamp(4rem, 8vw, 7rem);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--white);
  overflow-x: hidden;
}

img, svg { max-width: 100%; vertical-align: middle; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); }

p { margin: 0 0 1.1em; }

a { color: var(--primary-deep); text-decoration: none; }

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

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.container-wide {
  width: min(100% - 2.5rem, var(--container-wide));
  margin-inline: auto;
}

section { position: relative; scroll-margin-top: 84px; }

section > .container { position: relative; z-index: 2; }

/* High-contrast skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 2000;
  background: var(--primary-deep);
  color: #fff;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  font-weight: 800;
  transition: top 0.25s ease;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--yellow); color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  padding: 1.05rem 1.8rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
  will-change: transform;
}
.btn svg { width: 20px; height: 20px; flex: none; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 26px rgba(21, 153, 214, 0.34);
}
.btn-primary:hover { background: var(--primary-deep); transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 34px rgba(21, 153, 214, 0.4); }

.btn-warm {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 12px 26px rgba(255, 159, 28, 0.36);
}
.btn-warm:hover { background: #f08c00; transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 34px rgba(255, 159, 28, 0.45); }

.btn-ghost {
  background: #fff;
  color: var(--primary-deep);
  border-color: rgba(21, 153, 214, 0.35);
}
.btn-ghost:hover { border-color: var(--primary); background: var(--blue-light); transform: translateY(-3px); box-shadow: 0 14px 28px rgba(18, 100, 163, 0.15); }

.btn-sun {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 12px 26px rgba(255, 213, 46, 0.45);
}
.btn-sun:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 34px rgba(255, 213, 46, 0.55); }

.btn-on-blue {
  background: #fff;
  color: var(--primary-deep);
  box-shadow: 0 14px 30px rgba(6, 47, 82, 0.28);
}
.btn-on-blue:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 40px rgba(6, 47, 82, 0.36); }

.btn-block { width: 100%; }

.btn:active { transform: translateY(0) scale(0.98); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 18px rgba(18, 100, 163, 0.07);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 10px 34px rgba(18, 100, 163, 0.16); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  flex: none;
}
.brand-mark {
  width: 52px;
  height: 52px;
  transform: rotate(-4deg);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--primary-deep);
}
.brand-text span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-links a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink-soft);
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover { color: var(--primary-deep); background: var(--blue-light); }

.nav-cta { display: flex; align-items: center; gap: 0.6rem; flex: none; }
.nav-cta .btn { padding-block: 0.8rem; padding-inline: 1.4rem; font-size: 0.98rem; }
.btn-link {
  background: none;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-deep);
  cursor: pointer;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-link:hover { background: var(--blue-light); }

.nav-toggle {
  display: none;
  background: var(--blue-light);
  border: none;
  border-radius: 14px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  position: relative;
  z-index: 110;
}
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--primary-deep); stroke-width: 2.4; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(70% 55% at 12% 8%, rgba(255, 213, 46, 0.22), transparent 60%),
    radial-gradient(55% 45% at 88% 4%, rgba(245, 138, 183, 0.18), transparent 60%),
    linear-gradient(180deg, #EAF7FF 0%, #F6FBFF 55%, #fff 100%);
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #fff;
  border: 2px solid var(--mint);
  color: var(--primary-deep);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.35rem;
}
.eyebrow svg { width: 20px; height: 20px; }

.hero h1 { margin-bottom: 0.25em; }
.hero h1 .c-blue { color: var(--primary); }
.hero h1 .c-deep { color: var(--primary-deep); }
.hero h1 .c-yellow { color: #EABE00; }
.hero h1 .c-orange { color: var(--orange); }
.hero h1 .c-pink { color: var(--pink); }

.hero-lead {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  color: var(--primary-deep);
  margin: 0 0 0.7em;
}

.hero p.hero-desc { max-width: 52ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.9rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.2rem;
  margin-top: 2.4rem;
}
.hero-stats .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  color: var(--ink);
  line-height: 1;
}
.hero-stats .stat span { font-size: 0.92rem; font-weight: 700; color: var(--ink-faint); }
.hero-stats .stat { position: relative; display: flex; flex-direction: column; gap: 0.35rem; }
.hero-stats .stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -1.15rem;
  top: 6%;
  height: 78%;
  width: 2px;
  background: rgba(21, 153, 214, 0.18);
  border-radius: 2px;
}

.hero-art { position: relative; }
.hero-art svg.hero-scene {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(18, 100, 163, 0.16));
}

.hero-badge {
  position: absolute;
  left: -12px;
  bottom: 26px;
  background: #fff;
  border-radius: 20px;
  padding: 0.7rem 1.15rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: bob 5s ease-in-out infinite;
}
.hero-badge svg { width: 34px; height: 34px; }
.hero-badge strong { font-family: var(--font-display); color: var(--ink); font-size: 0.95rem; display: block; line-height: 1.2;}
.hero-badge small { color: var(--ink-faint); font-size: 0.78rem; font-weight: 700; }

.deco { position: absolute; z-index: 1; pointer-events: none; }
.deco svg { width: 100%; height: 100%; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(4deg); }
}
@keyframes floaty2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-5deg); }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-floaty { animation: floaty 7s ease-in-out infinite; }
.animate-floaty2 { animation: floaty2 9s ease-in-out infinite; }
.animate-spin { animation: spinSlow 30s linear infinite; }

/* ---------- Section shells ---------- */
.section { padding-block: var(--section-y); }
.section-tight { padding-block: 3rem; }

.section-head {
  max-width: 680px;
  margin: 0 auto clamp(2.4rem, 4.5vw, 4rem);
  text-align: center;
}
.section-head.left { text-align: left; margin-inline: 0; max-width: 620px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.9rem;
}
.kicker::before, .kicker::after {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--yellow);
}
.kicker.dotless::before, .kicker.dotless::after { display: none; }
.kicker .k-span { color: var(--orange); }

.section-head p.lede { font-size: 1.12rem; color: var(--ink-soft); }

/* ---------- Waves / dividers ---------- */
.wave {
  display: block;
  width: 100%;
  height: clamp(48px, 6vw, 96px);
  line-height: 0;
}
.wave svg { width: 100%; height: 100%; display: block; }

/* ---------- Trust bar ---------- */
.trust-wrap {
  margin-top: -54px;
  position: relative;
  z-index: 5;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.trust-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid rgba(21, 153, 214, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.trust-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.trust-ico {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--blue-light);
}
.trust-card:nth-child(2) .trust-ico { background: var(--pink-light); }
.trust-card:nth-child(3) .trust-ico { background: #FFF4D6; }
.trust-card:nth-child(4) .trust-ico { background: #E6F7E8; }
.trust-ico svg { width: 34px; height: 34px; }
.trust-card h3 { font-size: 1.12rem; margin-bottom: 0.18em; color: var(--ink); }
.trust-card p { font-size: 0.95rem; margin: 0; }

/* ---------- About ---------- */
.about { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-art { position: relative; }
.about-art .about-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, #fff, var(--blue-light));
}
.about-frame svg { width: 100%; height: auto; display: block; }
.about-blob {
  position: absolute;
  width: 150px;
  height: 150px;
  z-index: -1;
}
.about-blob.tl { top: -42px; left: -42px; transform: rotate(-12deg); }
.about-blob.br { bottom: -46px; right: -30px; transform: rotate(10deg); }
.about-badge {
  position: absolute;
  right: -18px;
  top: -24px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  padding: 0.9rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  transform: rotate(4deg);
}
.about-badge svg { width: 34px; height: 34px; flex: none; }
.about-badge span { font-size: 0.95rem; line-height: 1.2; }
.about-list { margin: 1.4rem 0 1.9rem; display: grid; gap: 0.8rem; }
.about-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--ink);
}
.about-list svg { width: 26px; height: 26px; flex: none; }

/* ---------- Programs ---------- */
.programs { background: #fff; }
.prog-scroll {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.prog-card {
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.prog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.prog-card.y { background: #FFF7DC; }
.prog-card.b { background: var(--blue-light); }
.prog-card.p { background: var(--pink-light); }
.prog-card.g { background: #E8F7EA; }
.prog-art { border-radius: 20px; overflow: hidden; background: #fff; }
.prog-art svg { width: 100%; height: auto; }
.prog-age {
  align-self: flex-start;
  background: #fff;
  color: var(--primary-deep);
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.prog-card h3 { margin-bottom: 0.1em; }
.prog-card p { flex: 1; font-size: 0.98rem; }
.prog-link {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--primary-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.prog-link svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
.prog-link:hover svg { transform: translateX(4px); }

/* ---------- Activities ---------- */
.activities {
  background: linear-gradient(180deg, var(--primary-deep) 0%, var(--primary) 100%);
  color: #fff;
  overflow: hidden;
}
.activities .section-head h2,
.activities .section-head p.lede { color: #fff; }
.activities .kicker { color: #DFF4FF; }
.activities .kicker::before, .activities .kicker::after { background: var(--yellow); }
.act-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
  text-align: center;
}
.act-item { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.act-circle {
  width: clamp(150px, 14vw, 210px);
  height: clamp(150px, 14vw, 210px);
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 6px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 20px 40px rgba(5, 45, 80, 0.3);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.act-circle:hover { transform: scale(1.06) rotate(-2deg); border-color: var(--yellow); }
.act-circle svg { width: 100%; height: 100%; object-fit: cover; }
.act-item h3 { color: #fff; font-size: 1.3rem; margin-bottom: 0.15em; }
.act-item p { color: rgba(255, 255, 255, 0.85); font-size: 0.96rem; margin: 0; max-width: 24ch; }
.act-cta { margin-top: 2.8rem; text-align: center; }

/* ---------- Learning approach ---------- */
.approach { background: var(--blue-light); }
.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.app-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.9rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.app-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.app-num {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--pink);
}
.app-ico {
  width: 92px;
  height: 92px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.app-card:nth-child(1) .app-ico { background: var(--mint); }
.app-card:nth-child(2) .app-ico { background: var(--yellow); }
.app-card:nth-child(3) .app-ico { background: var(--pink-light); }
.app-card:nth-child(4) .app-ico { background: var(--blue-light); }
.app-ico svg { width: 54px; height: 54px; }
.app-card h3 { font-size: 1.18rem; margin-bottom: 0.45em; }
.app-card p { font-size: 0.97rem; margin: 0; }

/* ---------- Facilities ---------- */
.facilities { background: var(--cream); }
.fac-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.fac-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.fac-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.fac-photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--blue-light); }
.fac-photo svg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.fac-card:hover .fac-photo svg { transform: scale(1.07); }
.fac-body { padding: 1.15rem 1.25rem 1.3rem; }
.fac-body h3 { font-size: 1.08rem; margin-bottom: 0.3em; }
.fac-body p { font-size: 0.93rem; margin: 0; }

/* ---------- Gallery ---------- */
.gallery { background: #fff; }
.gal-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.3rem;
}
.gal-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
  background: var(--blue-light);
  border: none;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.gal-btn:hover { transform: translateY(-2px); }
.gal-btn.active { background: var(--primary); color: #fff; box-shadow: 0 10px 20px rgba(21, 153, 214, 0.3); }

.gal-masonry {
  columns: 3;
  column-gap: 1.2rem;
}
.gal-item {
  break-inside: avoid;
  margin-bottom: 1.2rem;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--blue-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.gal-item:hover { box-shadow: var(--shadow-lg); }
.gal-item svg {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}
.gal-item:hover svg { transform: scale(1.06); }
.gal-item.tall svg { min-height: 110%; }
.gal-cap {
  position: absolute;
  inset: auto 0 0;
  background: linear-gradient(transparent, rgba(10, 40, 70, 0.72));
  color: #fff;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 0.95rem;
  padding: 2.2rem 1.1rem 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gal-item:hover .gal-cap,
.gal-item:focus-visible .gal-cap { opacity: 1; }

.gal-demo-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: 1.4rem;
  font-weight: 700;
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: linear-gradient(180deg, #fff 0%, var(--pink-light) 100%);
}
.tst-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.tst-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  border-top: 6px solid var(--yellow);
}
.tst-card:nth-child(2) { border-top-color: var(--mint); }
.tst-card:nth-child(3) { border-top-color: var(--pink); }
.tst-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.tst-quote { font-size: 1.05rem; color: var(--ink-soft); margin: 0; flex: 1; }
.tst-stars { display: flex; gap: 0.2rem; }
.tst-stars svg { width: 22px; height: 22px; }
.tst-who { display: flex; align-items: center; gap: 0.85rem; }
.tst-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
}
.avatar-a { background: var(--primary); }
.avatar-b { background: var(--pink); }
.avatar-c { background: var(--orange); }
.tst-who strong { display: block; color: var(--ink); line-height: 1.2; }
.tst-who small { color: var(--ink-faint); font-weight: 700; }

/* ---------- Tour CTA ---------- */
.tour {
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(255, 213, 46, 0.18), transparent 55%),
    radial-gradient(50% 80% at 0% 100%, rgba(245, 138, 183, 0.16), transparent 55%),
    linear-gradient(180deg, var(--primary-deep) 0%, var(--primary) 100%);
  color: #fff;
  overflow: hidden;
}
.tour .section-head h2 { color: #fff; }
.tour .section-head p { color: rgba(255, 255, 255, 0.88); }
.tour .kicker { color: #DFF4FF; }
.tour .kicker::before, .tour .kicker::after { background: var(--yellow); }

.tour-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.tour-art svg { width: 100%; height: auto; filter: drop-shadow(0 26px 34px rgba(4, 40, 72, 0.35)); }

.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  box-shadow: 0 34px 70px rgba(4, 40, 72, 0.35);
  color: var(--ink-soft);
}
.form-card h3 { color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 2px solid #E3EFF7;
  border-radius: 14px;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #FBFDFF;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(21, 153, 214, 0.16);
}
.field textarea { resize: vertical; min-height: 96px; }
.field .error-msg { display: none; color: #d63b48; font-size: 0.85rem; font-weight: 700; margin-top: 0.3rem; }
.field.invalid input, .field.invalid select, .field.invalid textarea {
  border-color: #e05a66;
  background: #FFF7F8;
}
.field.invalid .error-msg { display: block; }

.form-success {
  display: none;
  text-align: center;
  padding: 1rem 0;
}
.form-success svg.show-ico { width: 76px; height: 76px; margin: 0 auto 0.8rem; }
.form-success h4 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.form-success p { margin: 0; }

/* ---------- Contact ---------- */
.contact { background: var(--blue-light); }
.c-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.c-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
}
.c-card h3 { font-size: 1.3rem; margin-bottom: 1.1rem; }
.c-info { display: grid; gap: 1rem; }
.c-info li { display: flex; gap: 0.9rem; align-items: flex-start; }
.c-ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--blue-light);
}
.c-info li:nth-child(2) .c-ico { background: var(--pink-light); }
.c-info li:nth-child(3) .c-ico { background: #FFF4D6; }
.c-info li:nth-child(4) .c-ico { background: #E6F7E8; }
.c-ico svg { width: 24px; height: 24px; }
.c-info strong { display: block; color: var(--ink); font-size: 1rem; line-height: 1.3; }
.c-info span { color: var(--ink-soft); font-size: 0.95rem; }

.c-map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #EAF3E3;
  aspect-ratio: 16 / 10;
  margin-top: 1.2rem;
}
.c-map svg.map-svg { width: 100%; height: 100%; object-fit: cover; }
.c-map .map-pin {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -100%);
  width: 56px;
  height: 56px;
  animation: bob 3.4s ease-in-out infinite;
}
.c-map .map-pin svg { width: 100%; height: 100%; }
.map-badge {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translateX(-50%);
  background: var(--primary-deep);
  color: #fff;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 0.9rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  margin-top: 34px;
  white-space: nowrap;
}

.socials { display: flex; gap: 0.7rem; }
.social {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--blue-light);
  color: var(--primary-deep);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.social:hover { transform: translateY(-4px); background: var(--primary); color: #fff; }
.social svg { width: 22px; height: 22px; }

.contact-form-actions { margin-top: 0.4rem; }

/* ---------- Footer ---------- */
.footer {
  background: linear-gradient(180deg, var(--primary-deep) 0%, #0B4E83 100%);
  color: #EAF3FA;
  padding-top: clamp(5rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.2fr;
  gap: 2.4rem;
  padding-bottom: 2.6rem;
}
.footer-top h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 1.05rem;
}
.footer-brand p { color: rgba(255, 255, 255, 0.82); max-width: 30ch; }
.footer .brand-text strong { color: #fff; }
.footer .brand-text span { color: var(--yellow); }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a, .footer-contact li { color: rgba(255, 255, 255, 0.85); font-weight: 700; }
.footer-links a { transition: color 0.2s ease, padding-left 0.2s ease; }
.footer-links a:hover { color: var(--yellow); padding-left: 5px; }
.footer-contact { display: grid; gap: 0.7rem; }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-contact svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--yellow); }
.footer .socials .social { background: rgba(255, 255, 255, 0.12); color: #fff; }
.footer .socials .social:hover { background: var(--yellow); color: var(--ink); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
}
.footer-demo-note { color: rgba(255, 255, 255, 0.6); font-weight: 700; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: none;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.2s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--primary-deep); }
.to-top svg { width: 24px; height: 24px; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal.d-1 { transition-delay: 0.08s; }
.reveal.d-2 { transition-delay: 0.16s; }
.reveal.d-3 { transition-delay: 0.24s; }
.reveal.d-4 { transition-delay: 0.32s; }

/* ---------- Mobile drawer (hidden on desktop) ---------- */
.nav-panel { display: none; }
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 40, 70, 0.4);
  z-index: 104;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.nav-overlay.show { opacity: 1; visibility: visible; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links, .nav-cta .btn-link { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .nav-panel {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(84vw, 360px);
    background: #fff;
    padding: 6rem 2rem 2.5rem;
    box-shadow: -20px 0 50px rgba(18, 100, 163, 0.18);
    transform: translateX(105%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 105;
    flex-direction: column;
    gap: 1.1rem;
    overflow-y: auto;
  }
  .nav-panel.open { transform: translateX(0); }
  .nav-panel a { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); padding: 0.6rem 0.3rem; border-bottom: 2px solid var(--blue-light); }
  .nav-panel a:hover { color: var(--primary); }
  .nav-panel .btn { margin-top: 0.5rem; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.hero-desc { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-stats .stat::after { display: none; }
  .hero-art { max-width: 620px; margin-inline: auto; margin-top: 1rem; }
  .trust-wrap { margin-top: -40px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .prog-scroll { grid-template-columns: repeat(2, 1fr); }
  .act-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2.4rem; }
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
  .fac-grid { grid-template-columns: repeat(2, 1fr); }
  .gal-masonry { columns: 2; }
  .tst-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .tour-grid { grid-template-columns: 1fr; }
  .tour-art { max-width: 560px; margin-inline: auto; }
  .c-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-art { max-width: 560px; margin-inline: auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .trust-grid { grid-template-columns: 1fr; }
  .prog-scroll {
    grid-template-columns: 1fr;
    display: grid;
  }
  .act-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .fac-grid { grid-template-columns: 1fr; }
  .gal-masonry { columns: 1; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .footer-top { grid-template-columns: 1fr; }
  .nav .brand-text span { display: none; }
  .nav-cta { display: none; }
  .brand-mark { width: 46px; height: 46px; }
  .hero-badge { left: 4px; bottom: 14px; padding: 0.6rem 0.9rem; }
  .about-badge { right: -6px; padding: 0.7rem 1rem; }
  .about-badge span { font-size: 0.85rem; }
}

/* Alternative approach: horizontal snap scroll for programs on small tablets */
@media (max-width: 767px) {
  .prog-scroll {
    display: flex;
    flex-flow: row nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
    scrollbar-width: none;
  }
  .prog-scroll::-webkit-scrollbar { display: none; }
  .prog-card { flex: 0 0 min(84%, 330px); scroll-snap-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}