@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600;700&family=Manrope:wght@300;400;600;700&display=swap');

:root {
  --ink: #14233a;
  --ink-soft: #2a3c55;
  --ocean: #2aa7a7;
  --ocean-deep: #0f6f7a;
  --sun: #f7b248;
  --rose: #e86aa8;
  --mint: #a8f2d1;
  --sky: #a8c7ff;
  --paper: #f7f5ef;
  --sand: #efe7da;
  --card: rgba(255, 255, 255, 0.82);
  --shadow: 0 20px 45px rgba(20, 35, 58, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: linear-gradient(120deg, #fff7eb 0%, #f3f7ff 45%, #e9fbf7 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(232, 106, 168, 0.12), transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(42, 167, 167, 0.14), transparent 50%),
    radial-gradient(circle at 85% 85%, rgba(247, 178, 72, 0.15), transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(168, 199, 255, 0.2), transparent 45%);
  pointer-events: none;
  z-index: -2;
}

img {
  max-width: 100%;
  height: auto;
}

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

a:hover {
  color: var(--ocean-deep);
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 28px);
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(247, 245, 239, 0.92);
  border-bottom: 1px solid rgba(20, 35, 58, 0.08);
}

main {
  padding: 0 clamp(16px, 4vw, 36px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 54px;
  height: 54px;
}

.brand .title {
  font-family: 'Fraunces', 'Georgia', serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background: var(--ink);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}

nav {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(247, 245, 239, 0.98);
}

nav a,
nav summary {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

nav a:hover,
nav summary:hover {
  background: rgba(42, 167, 167, 0.15);
}

nav a[data-page],
nav summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body[data-page] nav a[data-page] {
  opacity: 0.7;
}

body[data-page] nav a[data-page].active {
  background: rgba(232, 106, 168, 0.18);
  color: var(--ink);
  opacity: 1;
}

details {
  position: relative;
}

details > summary {
  list-style: none;
  cursor: pointer;
}

details > summary::-webkit-details-marker {
  display: none;
}

.programs-menu {
  position: absolute;
  top: 52px;
  right: 0;
  width: min(520px, 90vw);
  background: rgba(255, 255, 255, 0.98);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  border: 1px solid rgba(20, 35, 58, 0.08);
  z-index: 20;
}

.programs-menu a {
  background: rgba(42, 167, 167, 0.08);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.92rem;
}

.hero {
  padding: 72px 0 48px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
  align-items: center;
}

.hero-card {
  background: var(--card);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(20, 35, 58, 0.08);
}

.hero h1 {
  font-family: 'Fraunces', 'Georgia', serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin: 0 0 16px;
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.hero-visual {
  position: relative;
  min-height: 320px;
}

.hero-visual .bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
  animation: float 10s ease-in-out infinite;
}

.hero-visual .bubble.one {
  width: 180px;
  height: 180px;
  background: linear-gradient(145deg, rgba(232, 106, 168, 0.7), rgba(42, 167, 167, 0.7));
  top: 20px;
  left: 10px;
}

.hero-visual .bubble.two {
  width: 140px;
  height: 140px;
  background: linear-gradient(145deg, rgba(247, 178, 72, 0.7), rgba(168, 242, 209, 0.7));
  bottom: 20px;
  right: 10px;
  animation-delay: -2s;
}

.hero-visual .bubble.three {
  width: 90px;
  height: 90px;
  background: linear-gradient(145deg, rgba(168, 199, 255, 0.8), rgba(42, 167, 167, 0.6));
  top: 140px;
  right: 70px;
  animation-delay: -4s;
}

.hero-visual .badge {
  position: absolute;
  bottom: 40px;
  left: 40px;
  background: white;
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  font-weight: 600;
}

.section {
  padding: 56px 0;
}

.section h2 {
  font-family: 'Fraunces', 'Georgia', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.section p.lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.card {
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(20, 35, 58, 0.08);
  box-shadow: var(--shadow);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 55px rgba(20, 35, 58, 0.16);
}

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

.card h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

.image-link {
  display: grid;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.image-link img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(20, 35, 58, 0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.image-link:hover img {
  transform: scale(1.02);
  box-shadow: 0 18px 32px rgba(20, 35, 58, 0.12);
}

.image-link:focus-visible,
nav a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(42, 167, 167, 0.45);
  outline-offset: 3px;
  border-radius: 999px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(232, 106, 168, 0.16);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.stat {
  background: rgba(42, 167, 167, 0.12);
  padding: 16px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  align-items: center;
}

.cta {
  background: linear-gradient(120deg, rgba(42, 167, 167, 0.18), rgba(232, 106, 168, 0.2));
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

button.primary,
.cta a.primary {
  background: var(--ink);
  color: white;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.secondary {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-weight: 600;
}

footer {
  padding: 32px 0 48px;
  color: var(--ink-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.footer-grid a {
  display: block;
  margin-bottom: 8px;
}

.form {
  display: grid;
  gap: 12px;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(20, 35, 58, 0.2);
  font-family: inherit;
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
  }

  nav {
    position: fixed;
    inset: 0 0 0 30%;
    background: rgba(247, 245, 239, 0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    gap: 8px;
  }

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

  .programs-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 0;
    background: transparent;
  }

  details[open] > summary {
    background: rgba(42, 167, 167, 0.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
