/* ========================================
   YSDAK — Shared Design System
   ======================================== */

:root {
  --bg:      oklch(98% 0.004 240);
  --surface: oklch(100% 0 0);
  --fg:      oklch(20% 0.02 240);
  --muted:   oklch(50% 0.018 240);
  --border:  oklch(90% 0.006 240);
  --accent:  oklch(56% 0.12 170);
  --accent-deep: oklch(42% 0.14 170);
  --accent-warm: oklch(68% 0.12 60);
  --font-display: 'Söhne', 'Avenir Next', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --radius: 14px;
  --space: 1rem;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  font-size: clamp(15px, 1.1vw, 18px);
}

img { max-width: 100%; display: block; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- NAV ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: oklch(100% 0 0 / 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(1rem, 4vw, 3rem);
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em;
  color: var(--fg); text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 1.8rem; list-style: none; }
.nav-links a {
  color: var(--muted); font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s; text-decoration: none;
}
.nav-links a:hover { color: var(--fg); text-decoration: none; }
.nav-links a.active { color: var(--accent-deep); font-weight: 600; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--fg); }

/* ---- HERO (page-level) ---- */
.page-hero {
  padding: clamp(4rem, 10vw, 7rem) clamp(1rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem);
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.page-hero-text { }
.page-hero-badge {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent-deep);
  background: oklch(56% 0.12 170 / 0.1);
  padding: 0.35em 1em; border-radius: 100px;
  margin-bottom: 1.5rem;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.page-hero h1 em { font-style: normal; color: var(--accent-deep); }
.page-hero p {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--muted);
  max-width: 520px; line-height: 1.7;
  margin-bottom: 2rem;
}
.page-hero-illustration {
  display: flex; justify-content: center; align-items: center;
}
.page-hero-illustration svg {
  width: 100%; max-width: 420px; height: auto;
}

/* ---- HOMEPAGE HERO (centered) ---- */
.hero {
  padding: clamp(5rem, 12vw, 9rem) clamp(1rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
  text-align: center;
  max-width: var(--max-width); margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent-deep);
  background: oklch(56% 0.12 170 / 0.1);
  padding: 0.35em 1em; border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 800px; margin: 0 auto 1.5rem;
}
.hero h1 em { font-style: normal; color: var(--accent-deep); }
.hero p {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--muted);
  max-width: 580px; margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-illustration {
  margin: 0 auto 2.5rem;
  max-width: 600px;
}
.hero-illustration svg { width: 100%; height: auto; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent);
  color: #fff; font-weight: 600; font-size: 1rem;
  padding: 0.85em 2em; border-radius: 100px;
  transition: background 0.2s, transform 0.15s;
}
.hero-cta:hover { background: var(--accent-deep); text-decoration: none; transform: translateY(-1px); }
.hero-cta svg { width: 18px; height: 18px; stroke: currentColor; }

/* ---- SECTION SHARED ---- */
.section {
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1rem, 4vw, 3rem);
  max-width: var(--max-width); margin: 0 auto;
}
.section-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent); margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.15; margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--muted); font-size: 1.05rem;
  max-width: 560px; line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* ---- ABOUT GRID ---- */
.about-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr 1fr;
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 0.75rem;
}
.about-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }

.values-grid {
  display: flex; flex-wrap: wrap;
  gap: 0.75rem; margin-top: 1.5rem;
  justify-content: center;
}
.value-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: oklch(56% 0.12 170 / 0.06);
  border: 1px solid oklch(56% 0.12 170 / 0.12);
  border-radius: 100px;
  padding: 0.55em 1.25em;
  font-size: 0.85rem; font-weight: 600;
  color: var(--accent-deep);
  transition: background 0.2s, transform 0.15s;
}
.value-chip:hover {
  background: oklch(56% 0.12 170 / 0.12);
  transform: translateY(-1px);
}
.value-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---- PROGRAMMES ---- */
.programmes-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.programme-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.programme-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px oklch(20% 0.02 240 / 0.06);
}
.programme-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}
.programme-icon.education { background: oklch(70% 0.10 250 / 0.12); color: oklch(45% 0.14 250); }
.programme-icon.sports { background: oklch(75% 0.14 145 / 0.12); color: oklch(45% 0.16 145); }
.programme-icon.health { background: oklch(72% 0.12 25 / 0.12); color: oklch(50% 0.16 25); }
.programme-icon.sponsorship { background: oklch(70% 0.12 60 / 0.12); color: oklch(50% 0.14 60); }

.programme-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 0.6rem;
}
.programme-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; }

/* Programme detail (full page) */
.programme-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.programme-detail:last-child { border-bottom: none; }
.programme-detail:nth-child(even) { direction: rtl; }
.programme-detail:nth-child(even) > * { direction: ltr; }
.programme-detail-illustration svg {
  width: 100%; max-width: 360px; height: auto;
}
.programme-detail h3 {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  margin-bottom: 0.75rem;
}
.programme-detail p {
  color: var(--muted); font-size: 0.95rem; line-height: 1.7;
  margin-bottom: 1rem;
}
.programme-detail .tag {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
  background: oklch(56% 0.12 170 / 0.08);
  padding: 0.3em 0.9em; border-radius: 100px;
  margin-bottom: 0.75rem;
}

/* ---- TIMELINE ---- */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute; left: -2.5rem; top: 6px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.timeline-dot-inner { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.timeline-year {
  font-family: var(--font-display);
  font-weight: 800; font-size: 0.85rem;
  color: var(--accent-deep);
  margin-bottom: 0.25rem;
}
.timeline-text { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* ---- PARTNERS ---- */
.partners-section {
  background: oklch(96% 0.003 240); border-radius: var(--radius); padding: 3rem; margin-top: 0.5rem;
}
.partners-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.partners-col h4 {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent-deep);
  margin-bottom: 1rem;
}
.partners-list { list-style: none; }
.partners-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem; color: var(--fg);
}
.partners-list li:last-child { border-bottom: none; }

/* Partner card variant */
.partner-cards {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.partner-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
}
.partner-card h4 {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  margin-bottom: 0.3rem;
}
.partner-card .partner-tag {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent);
  margin-bottom: 0.5rem;
}

/* ---- CTA ---- */
.cta-section {

  text-align: center;
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 3rem);
}
.cta-box {
  background: linear-gradient(135deg, oklch(30% 0.06 170), oklch(38% 0.10 170));
  border-radius: 20px;
  padding: clamp(2.5rem, 5vw, 4rem);
  max-width: 700px; margin: 0 auto;
  color: #fff;
}
.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.cta-box p { opacity: 0.85; margin-bottom: 2rem; font-size: 1.05rem; line-height: 1.7; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: #fff; color: oklch(38% 0.10 170);
  padding: 0.8em 2em; border-radius: 100px;
  font-weight: 700; font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.2s;
  display: inline-block;
}
.btn-primary:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 16px oklch(0% 0 0 / 0.2); }
.btn-secondary {
  border: 2px solid oklch(100% 0 0 / 0.3);
  color: #fff; padding: 0.75em 2em; border-radius: 100px;
  font-weight: 600; font-size: 0.95rem;
  transition: border-color 0.2s;
  display: inline-block;
}
.btn-secondary:hover { text-decoration: none; border-color: oklch(100% 0 0 / 0.7); }
.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent-deep);
  padding: 0.75em 2em; border-radius: 100px;
  font-weight: 600; font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}
.btn-outline:hover {
  background: var(--accent); color: #fff; text-decoration: none;
}

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem clamp(1rem, 4vw, 3rem);
  text-align: center;
  color: var(--muted); font-size: 0.85rem;
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer strong { color: var(--fg); }
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { color: var(--muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--fg); text-decoration: none; }

/* ---- CONTACT FORM ---- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.85rem; font-weight: 600; color: var(--fg);
}
.form-group input, .form-group textarea, .form-group select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7em 1em;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--fg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px oklch(56% 0.12 170 / 0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-info {
  display: flex; flex-direction: column; gap: 1.5rem;
}
.contact-info-item {
  display: flex; gap: 1rem; align-items: flex-start;
}
.contact-info-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: oklch(56% 0.12 170 / 0.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg { width: 20px; height: 20px; stroke: var(--accent-deep); }
.contact-info-text h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.2rem; }
.contact-info-text p { color: var(--muted); font-size: 0.9rem; }

/* ---- STAT CARDS ---- */
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem; margin-bottom: 3rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800;
  color: var(--accent-deep);
  line-height: 1.1;
}
.stat-label {
  font-size: 0.82rem; color: var(--muted);
  margin-top: 0.3rem;
}

/* ---- HOMEPAGE PREVIEW CARDS ---- */
.preview-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
}
.preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.preview-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px oklch(20% 0.02 240 / 0.06);
}
.preview-card-illustration {
  background: oklch(96% 0.003 240);
  padding: 2rem;
  display: flex; justify-content: center; align-items: center;
  height: 220px;
  flex-shrink: 0;
}
.preview-card-illustration svg {
  width: auto; max-width: 180px; height: auto; max-height: 180px;
}
.preview-card-body {
  padding: 1.5rem 2rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.preview-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 0.4rem;
}
.preview-card-body p {
  flex: 1;
  color: var(--muted); font-size: 0.88rem; line-height: 1.6;
  margin-bottom: 1rem;
}
.preview-card-body .btn-outline { font-size: 0.85rem; padding: 0.55em 1.5em; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem; gap: 1rem;
  }
  .nav-toggle { display: block; }

  .page-hero { grid-template-columns: 1fr; text-align: center; }
  .page-hero p { margin-left: auto; margin-right: auto; }
  .page-hero-illustration svg { max-width: 300px; }

  .about-grid { grid-template-columns: 1fr; }
  .partners-cols { grid-template-columns: 1fr; }
  .partners-section { padding: 2rem 1.5rem; }
  .programme-detail { grid-template-columns: 1fr; }
  .programme-detail:nth-child(even) { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .page-hero h1 { font-size: 1.8rem; }
  .programmes-grid { grid-template-columns: 1fr; }

  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .partner-cards { grid-template-columns: 1fr; }
}
