:root {
  --bg: #fff9f0;
  --surface: #ffffff;
  --surface-alt: #f7f2ea;
  --ink: #1f2a37;
  --ink-soft: #475467;
  --accent: #0f766e;
  --accent-2: #f97316;
  --border: #e7dccb;
  --shadow: 0 20px 45px rgba(31, 42, 55, 0.12);
  --radius-lg: 26px;
  --radius-md: 16px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 12%, rgba(249, 115, 22, 0.14), transparent 42%),
    radial-gradient(circle at 12% 76%, rgba(15, 118, 110, 0.15), transparent 40%),
    var(--bg);
  line-height: 1.6;
}

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

a {
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0 0 0.55em;
  line-height: 1.15;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  z-index: 99;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 85%, white 15%);
  border-bottom: 1px solid rgba(231, 220, 203, 0.8);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem;
  background: rgba(255, 255, 255, 0.8);
}

.lang-btn {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-soft);
  cursor: pointer;
}

.lang-btn.is-active {
  background: var(--accent);
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-badge {
  width: 78px;
  height: 56px;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: transparent;
}

.brand-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text small {
  font-size: 0.74rem;
  color: var(--ink-soft);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-left: 0.2rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent-2);
  transition: transform 0.25s;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 44px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  margin: 6px auto;
}

.hero {
  position: relative;
  overflow: clip;
  padding: 5.2rem 0 3.6rem;
}

.hero-bg-shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.66;
}

.hero-bg-shape-a {
  width: 290px;
  height: 290px;
  background: #f5c56f;
  right: -60px;
  top: -40px;
}

.hero-bg-shape-b {
  width: 270px;
  height: 270px;
  background: #96d5ce;
  left: -70px;
  bottom: -130px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 0.95rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  margin-bottom: 0.55rem;
}

.hero p {
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  max-width: 55ch;
}

.hero-actions {
  margin-top: 1.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.22s ease, box-shadow 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(145deg, var(--accent), #0b9488);
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 148, 136, 0.3);
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.75);
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.hero-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 6px solid #fff;
}

.section {
  padding: 4rem 0;
}

.section-title {
  margin-bottom: 1.35rem;
}

.section-title h2 {
  font-size: clamp(1.7rem, 3.1vw, 2.5rem);
}

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

.about-flow {
  display: grid;
  gap: 1rem;
  max-width: none;
}

.about-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 1.35rem;
}

.about-block h2 {
  font-size: clamp(1.7rem, 3.1vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.about-block p,
.about-block li {
  color: var(--ink-soft);
}

.about-block .mission-lead {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.2rem, 2.1vw, 1.45rem);
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.65rem;
}

.about-block .mission-context {
  margin-bottom: 0.9rem;
}

.about-block .mission-bullets {
  margin: 0;
  padding-left: 1.2rem;
  list-style: disc;
  display: grid;
  gap: 0.5rem;
}

.about-block .mission-bullets li {
  margin: 0;
}

.about-block .icon-list {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
}

.about-block .icon-list li::before {
  content: none;
}
.card,
.group-card,
.contact-card,
.contact-form {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card {
  padding: 1.35rem;
}

.icon-list {
  margin: 0;
  padding-left: 1.1rem;
}

.icon-list li {
  margin-bottom: 0.6rem;
  color: var(--ink-soft);
}

.section-parents .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
}

.parents-intro {
  margin-bottom: 1rem;
  font-weight: 600;
}

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

.parents-grid .card {
  padding: 1.2rem;
}

.inline-link {
  font-weight: 700;
  text-decoration-thickness: 2px;
}

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

.group-card {
  padding: 0;
  overflow: hidden;
}

.group-card-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.group-card-body {
  padding: 1.1rem;
}

.group-card h3 {
  margin-bottom: 0.35rem;
}

.group-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-weight: 700;
  text-decoration-thickness: 2px;
}

.group-page-main {
  padding: 2.5rem 0 3.2rem;
}

.group-page-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.group-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(240px, 0.9fr);
  gap: 1.1rem;
  align-items: start;
}

.group-main-column {
  min-width: 0;
}

.group-side-column {
  position: sticky;
  top: 95px;
}

.group-side-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem;
  margin-bottom: 0.75rem;
}

.group-side-card h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.55rem;
  color: var(--ink-soft);
}

#groupSectionNav {
  display: grid;
  gap: 0.35rem;
}

#groupSectionNav a {
  text-decoration: none;
  font-weight: 600;
}

.group-breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 0.55rem;
}

.group-age {
  margin-bottom: 0.75rem;
}

.group-image {
  margin: 0.5rem 0 1.2rem;
  max-width: 420px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
}

.group-sections {
  margin-top: 1rem;
}

.parent-page-wrap {
  max-width: 860px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.parent-page-content p {
  margin-bottom: 0.9rem;
}

.parent-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 1.15rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem;
  margin-bottom: 0.7rem;
  background: #fff;
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.group-section-block {
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px dashed var(--border);
}

.group-section-block h2 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}

.group-section-block ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.group-section-block li {
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

@media (max-width: 920px) {
  .group-page-layout {
    grid-template-columns: 1fr;
  }

  .group-side-column {
    position: static;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.filter-btn:hover,
.filter-btn:focus-visible {
  transform: translateY(-1px);
}

.filter-btn.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.gallery-item {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.gallery-item.hidden {
  display: none;
}

.gallery-open {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-item img {
  border-radius: 14px;
  min-height: 220px;
  object-fit: cover;
  box-shadow: none;
}

.gallery-open:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, white);
  outline-offset: 2px;
}

.gallery-item figcaption {
  padding: 0.6rem 0.75rem 0.7rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

body.lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.gallery-lightbox.is-open {
  display: grid;
  place-items: center;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 27, 36, 0.78);
}

.gallery-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 1080px);
  max-height: 88vh;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 0.8rem 0.8rem 0.65rem;
  display: grid;
  gap: 0.55rem;
}

.gallery-lightbox-dialog img {
  width: 100%;
  max-height: calc(88vh - 110px);
  object-fit: contain;
  border-radius: 12px;
  background: #f2f2f2;
}

.gallery-lightbox-dialog p {
  margin: 0;
  font-size: 0.9rem;
}

.gallery-lightbox-close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem;
}

.contact-card,
.contact-form {
  padding: 1.25rem;
}

.small-note {
  font-size: 0.9rem;
}

.section-contact .btn {
  margin-top: 0.25rem;
}

.site-footer {
  padding: 1.4rem 0 2.2rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px dashed #d7c6af;
  padding-top: 1rem;
}

.footer-wrap p {
  margin: 0;
  font-size: 0.9rem;
}

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

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

.delay-1 {
  transition-delay: 0.14s;
}

.delay-2 {
  transition-delay: 0.24s;
}

.lang-slide {
  animation: lang-slide 0.32s ease;
}

@keyframes lang-slide {
  0% {
    opacity: 0.35;
    transform: translateX(14px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 920px) {
  .hero-grid,
  .section-grid,
  .parents-grid,
  .groups-grid,
  .gallery-grid,
  .contact-grid,
  .section-parents .split {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding-top: 4.2rem;
  }
}

@media (max-width: 700px) {
  .header-controls {
    margin-left: 0;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.9rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, white 95%, var(--bg));
    box-shadow: var(--shadow);
  }

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

  .hero-grid,
  .section-grid,
  .parents-grid,
  .groups-grid,
  .gallery-grid,
  .contact-grid,
  .section-parents .split {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}
