:root {
  --bg: #ffffff;
  --bg-alt: #f2f7f6;
  --text: #0e2224;
  --text-muted: #4b6163;
  --primary: #ef6461;
  --primary-dark: #d6534f;
  --deep: #0e4a4e;
  --deep-dark: #082f31;
  --mint: #7fd8ce;
  --tan: #a79a8e;
  --accent: #7fd8ce;
  --border: #e0e9e8;
  --card-bg: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.85);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #081a1c;
    --bg-alt: #0c2426;
    --text: #eaf5f4;
    --text-muted: #9fb8b6;
    --primary: #f37e7b;
    --primary-dark: #ef6461;
    --deep: #7fd8ce;
    --deep-dark: #66c2b8;
    --mint: #7fd8ce;
    --tan: #c2b8ad;
    --accent: #7fd8ce;
    --border: #163638;
    --card-bg: #0c2426;
    --header-bg: rgba(8, 26, 28, 0.85);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-mark { border-radius: 22%; flex-shrink: 0; }

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

.logo-wordmark {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--deep);
  letter-spacing: -0.01em;
}
.logo-wordmark em { color: var(--primary); font-style: normal; }

.logo-tagline {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tan);
  margin-top: 2px;
}

@media (max-width: 520px) {
  .logo-tagline { display: none; }
}

.site-nav {
  display: flex;
  gap: 28px;
}
.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--primary); }

.nav-cta { display: inline-flex; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 32px 8px 14px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) center, calc(100% - 11px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.lang-switch select:hover { border-color: var(--primary); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .site-nav { display: none; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--primary) 60%, transparent);
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* Hero */
.hero {
  padding: 96px 0 80px;
  background:
    radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--mint) 18%, transparent), transparent 45%),
    radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 45%);
}

.hero-inner { max-width: 760px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 16px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-actions.center { justify-content: center; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 10px;
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.section-sub {
  color: var(--text-muted);
  max-width: 560px;
  margin: -8px auto 40px;
}

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-copy p { color: var(--text-muted); font-size: 1.05rem; }

.about-facts {
  display: grid;
  gap: 16px;
}

.fact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
}
.fact-title {
  margin: 0 0 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
}
.fact-value { margin: 0 0 6px; font-size: 1.25rem; font-weight: 800; }
.fact-detail { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* Founder */
.section-founder { background: var(--bg); }

.founder-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
}

.founder-photo-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(155deg, #0e4a4e, #082f31);
  padding: 3px;
}

.founder-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 22px;
}

.founder-title {
  font-weight: 700;
  color: var(--primary);
  margin: -8px 0 20px;
}

.founder-copy p:not(.founder-title):not(.section-label) {
  color: var(--text-muted);
  font-size: 1.05rem;
}

@media (max-width: 760px) {
  .founder-grid { grid-template-columns: 1fr; }
  .founder-photo-wrap { max-width: 260px; margin: 0 auto; }
}

/* Programs */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.program-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
}

.program-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.program-card h3 { margin: 0 0 10px; font-size: 1.15rem; }
.program-card p { margin: 0; color: var(--text-muted); }

@media (max-width: 860px) {
  .programs-grid { grid-template-columns: 1fr; }
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.gallery-item {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}

.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 26, 28, 0.82) 100%);
}

.gallery-item span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 14px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* CTA */
.section-cta {
  background: linear-gradient(135deg, #0e4a4e, #082f31);
  color: #fff;
  border-radius: 32px;
  margin: 0 auto;
  max-width: 1120px;
}

.cta-inner {
  text-align: center;
  padding: 20px 0;
}

.section-cta h2 { color: #fff; }
.section-cta p {
  color: rgba(255,255,255,0.85);
  max-width: 480px;
  margin: 0 auto 32px;
}
.section-cta .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.section-cta .btn-ghost:hover { border-color: #fff; color: #fff; }
.section-cta .btn-primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: none;
}
.section-cta .btn-primary:hover { background: #f1f5f9; }

/* Footer */
.site-footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-lockup {
  display: block;
  margin: 0 0 10px;
  height: 48px;
  width: auto;
}

@media (prefers-color-scheme: dark) {
  .footer-lockup {
    background: #fff;
    padding: 8px 14px;
    border-radius: 10px;
  }
}

.footer-fine {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 2px 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--primary); }

.footer-copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 32px 0 0;
}
