/* ===== Youth for Change — shared stylesheet =====
   Configurable brand palette — change the variables below to re-theme
   the whole site in one place. */

:root {
  --teal: #0F4C4C;
  --teal-dark: #0A3838;
  --teal-light: #1B6B6B;
  --amber: #C99A3B;
  --amber-light: #E6C275;
  --cream: #FBF8F2;
  --ink: #1E2A2A;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: "Cairo", "Tajawal", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
}

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

a { color: inherit; }

.ltr-inline { direction: ltr; unicode-bidi: isolate; display: inline-block; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  right: 8px;
  top: -60px;
  background: var(--amber);
  color: var(--teal-dark);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  z-index: 200;
  transition: top .2s;
}
.skip-link:focus { top: 8px; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

section.section { padding: 60px 0; }
@media (min-width: 768px) { section.section { padding: 90px 0; } }

.section-heading { max-width: 640px; margin-bottom: 40px; }
.section-heading.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { color: var(--amber); font-weight: 800; font-size: .9rem; margin: 0 0 8px; }
.section-heading h2 { font-size: 1.8rem; color: var(--teal-dark); margin: 0; font-weight: 800; }
.section-heading p { color: rgba(30,42,42,.7); margin-top: 12px; }

/* ---------- Header ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,248,242,.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(15,76,76,.1);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px; background: var(--teal);
  color: var(--cream); font-weight: 800; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { color: var(--teal); font-size: 1.05rem; }
.brand-text span { color: rgba(15,76,76,.7); font-size: .75rem; }

nav.main-nav { display: none; gap: 4px; }
nav.main-nav a {
  padding: 10px 16px; border-radius: 10px; text-decoration: none;
  font-weight: 600; font-size: .92rem; color: var(--ink);
}
nav.main-nav a:hover { background: rgba(15,76,76,.08); }
nav.main-nav a.active { background: var(--teal); color: var(--cream); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; font-weight: 800; font-size: .92rem; padding: 12px 26px;
  text-decoration: none; cursor: pointer; border: none; min-height: 44px;
  transition: background-color .15s, color .15s;
}
.btn-primary { background: var(--amber); color: var(--teal-dark); }
.btn-primary:hover { background: var(--amber-light); }
.btn-outline { background: transparent; border: 2px solid var(--teal); color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: var(--cream); }
.btn-outline.on-dark { border-color: var(--cream); color: var(--cream); }
.btn-outline.on-dark:hover { background: var(--cream); color: var(--teal-dark); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

.nav-cta { display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px; border: none; background: transparent;
  color: var(--teal); cursor: pointer;
}
.menu-toggle:hover { background: rgba(15,76,76,.08); }

#mobile-menu { display: none; border-top: 1px solid rgba(15,76,76,.1); background: var(--cream); }
#mobile-menu.open { display: block; }
#mobile-menu .container { padding-top: 12px; padding-bottom: 16px; display: flex; flex-direction: column; gap: 4px; }
#mobile-menu a {
  padding: 12px 16px; border-radius: 10px; text-decoration: none; font-weight: 600;
  color: var(--ink); min-height: 44px; display: flex; align-items: center;
}
#mobile-menu a.active { background: var(--teal); color: var(--cream); }
#mobile-menu .btn { margin-top: 8px; }

@media (min-width: 1024px) {
  nav.main-nav { display: flex; }
  .nav-cta { display: block; }
  .menu-toggle { display: none; }
  #mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--teal); color: var(--cream); }
.hero .container { position: relative; padding: 90px 20px; max-width: 760px; }
.hero-badge {
  width: 64px; height: 64px; border-radius: 18px; background: var(--amber);
  color: var(--teal-dark); font-weight: 800; font-size: 1.4rem; display: flex;
  align-items: center; justify-content: center; margin-bottom: 24px;
}
.hero .kicker { color: var(--amber-light); font-weight: 800; margin-bottom: 10px; }
.hero h1 { font-size: 2rem; line-height: 1.3; margin: 0 0 22px; font-weight: 800; }
@media (min-width: 640px) { .hero h1 { font-size: 3rem; } }
.hero p.lead { color: rgba(251,248,242,.85); font-size: 1.1rem; max-width: 560px; margin-bottom: 30px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Stats ---------- */
.stats-card {
  background: #fff; border-radius: 18px; border: 1px solid rgba(15,76,76,.1);
  box-shadow: 0 10px 30px rgba(15,76,76,.08);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  padding: 28px 18px; margin-top: -70px; position: relative; z-index: 5;
}
@media (min-width: 640px) { .stats-card { padding: 40px; margin-top: -90px; } }
.stat { text-align: center; }
.stat .num { font-size: 1.8rem; font-weight: 800; color: var(--teal); }
@media (min-width: 640px) { .stat .num { font-size: 2.4rem; } }
.stat .label { color: rgba(30,42,42,.6); font-size: .85rem; margin-top: 4px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: #fff; border: 1px solid rgba(15,76,76,.1); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column;
}
.card h3 { color: var(--teal-dark); margin: 0 0 10px; font-size: 1.05rem; }
.card p { color: rgba(30,42,42,.7); font-size: .92rem; flex: 1; }
.card-link { margin-top: 14px; font-weight: 800; color: var(--teal); text-decoration: none; font-size: .9rem; }
.card-link:hover { color: var(--amber); }

.card.dark { background: var(--teal); color: var(--cream); justify-content: center; align-items: flex-start; }
.card.dark p { color: var(--cream); }

.media-card { overflow: hidden; padding: 0; text-decoration: none; color: inherit; transition: box-shadow .15s; }
.media-card:hover { box-shadow: 0 12px 30px rgba(15,76,76,.12); }
.media-card .thumb {
  height: 160px; background: rgba(15,76,76,.08); display: flex; align-items: center;
  justify-content: center; color: rgba(15,76,76,.4); font-size: .85rem; overflow: hidden;
}
.media-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-card .body { padding: 20px; }

.badge {
  display: inline-flex; align-items: center; border-radius: 999px;
  background: rgba(15,76,76,.1); color: var(--teal); padding: 4px 12px;
  font-size: .72rem; font-weight: 800;
}
.badge.amber { background: rgba(201,154,59,.15); color: var(--amber); }

.empty-state {
  border: 2px dashed rgba(15,76,76,.2); border-radius: var(--radius);
  padding: 40px 20px; text-align: center;
}
.empty-state strong { color: var(--teal-dark); display: block; margin-bottom: 6px; }
.empty-state span { color: rgba(30,42,42,.6); font-size: .9rem; }

.notice {
  border-radius: 10px; padding: 14px 18px; font-size: .9rem; margin-bottom: 26px;
  background: rgba(201,154,59,.12); border: 1px solid rgba(201,154,59,.4); color: var(--teal-dark);
}

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 20px; padding: 50px 30px; text-align: center; color: var(--cream);
  background: linear-gradient(to left, var(--teal), var(--teal-dark));
}
.cta-band h2 { font-size: 1.6rem; margin: 0 0 14px; }
.cta-band p { max-width: 520px; margin: 0 auto 26px; color: rgba(251,248,242,.85); }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--teal-dark); color: rgba(251,248,242,.9); margin-top: 60px; }
.footer-grid { display: grid; gap: 34px; padding: 50px 0; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-grid h3 { color: var(--amber-light); font-size: .95rem; margin: 0 0 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; }
.footer-grid ul a { text-decoration: none; }
.footer-grid ul a:hover { color: var(--amber-light); }
.footer-bottom {
  border-top: 1px solid rgba(251,248,242,.1); text-align: center; font-size: .78rem;
  color: rgba(251,248,242,.6); padding: 18px 0;
}
.footer-bottom span { display: block; margin-top: 4px; }
.footer-bottom #year { display: inline; margin-top: 0; }
.footer-developer {
  margin-top: 6px;
  font-size: .78rem;
  color: rgba(251,248,242,.65);
}
.footer-developer .developer-link {
  color: var(--amber-light);
  text-decoration: none;
  font-weight: 700;
  transition: color .2s ease, text-decoration .2s ease;
}
.footer-developer .developer-link:hover,
.footer-developer .developer-link:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid rgba(15,76,76,.1); border-radius: 18px; padding: 24px; }
@media (min-width: 640px) { .form-card { padding: 40px; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 800; font-size: .9rem; margin-bottom: 6px; }
.field .hint { font-size: .78rem; color: rgba(30,42,42,.55); margin-bottom: 6px; }
.field .req { color: #c0392b; }
.field .opt { color: rgba(30,42,42,.4); font-weight: 400; }
.field input[type=text], .field input[type=email], .field input[type=tel],
.field input[type=date], .field input[type=number], .field textarea, .field select {
  width: 100%; border: 1px solid rgba(15,76,76,.2); border-radius: 10px;
  padding: 12px 14px; font-family: inherit; font-size: .95rem; min-height: 44px;
  background: #fff; color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; }
.field.error input, .field.error textarea, .field.error select { border-color: #c0392b; background: #fdf2f0; }
.field .error-msg { color: #c0392b; font-size: .85rem; margin-top: 6px; }
.radio-row { display: flex; gap: 14px; flex-wrap: wrap; }
.radio-pill, .check-pill {
  display: flex; align-items: center; gap: 10px; border: 1px solid rgba(15,76,76,.2);
  border-radius: 10px; padding: 10px 16px; cursor: pointer; min-height: 44px; font-size: .92rem;
}
.check-grid { display: grid; gap: 10px; }
@media (min-width: 640px) { .check-grid { grid-template-columns: 1fr 1fr; } }
.honeypot { position: absolute; left: -9999px; opacity: 0; }

.stepper { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; list-style: none; padding: 0; }
.stepper li { flex: 1; text-align: center; position: relative; }
.stepper .dot {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(15,76,76,.1);
  color: rgba(30,42,42,.4); font-weight: 800; display: flex; align-items: center;
  justify-content: center; margin: 0 auto; position: relative; z-index: 2;
}
.stepper li.done .dot { background: var(--teal); color: var(--cream); }
.stepper li.active .dot { background: var(--amber); color: var(--teal-dark); }
.stepper .step-label { font-size: .7rem; margin-top: 8px; color: rgba(30,42,42,.5); }
.stepper li.active .step-label { color: var(--teal-dark); font-weight: 800; }
.stepper li::after {
  content: ""; position: absolute; top: 17px; right: 50%; width: 100%; height: 2px;
  background: rgba(15,76,76,.1); z-index: 1;
}
.stepper li:last-child::after { display: none; }
.stepper li.done::after { background: var(--teal); }

.form-step { display: none; }
.form-step.active { display: block; }
.form-actions { display: flex; justify-content: space-between; margin-top: 30px; }

.success-box {
  background: #fff; border: 2px solid rgba(15,76,76,.2); border-radius: 18px;
  padding: 40px; text-align: center;
}
.success-box .icon {
  width: 60px; height: 60px; border-radius: 50%; background: rgba(15,76,76,.1);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}

.gallery-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4,1fr); } }
.gallery-item {
  aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: none; padding: 0;
  cursor: pointer; position: relative; background: rgba(15,76,76,.08);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.3);
}

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter-chip {
  border-radius: 999px; padding: 9px 18px; font-size: .85rem; font-weight: 600;
  border: 1px solid rgba(15,76,76,.2); background: #fff; color: rgba(30,42,42,.7); cursor: pointer;
}
.filter-chip.active { background: var(--teal); color: var(--cream); border-color: var(--teal); }

.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.8); display: none;
  align-items: center; justify-content: center; padding: 20px; z-index: 300;
}
.lightbox.open { display: flex; }
.lightbox-inner { max-width: 720px; width: 100%; }
.lightbox-inner img, .lightbox-inner video { width: 100%; border-radius: 10px; }
.lightbox-caption { color: var(--cream); margin-top: 10px; font-size: .9rem; }
.lightbox-close { margin-top: 16px; }

.contact-info-card { background: #fff; border: 1px solid rgba(15,76,76,.1); border-radius: 18px; padding: 26px; margin-bottom: 20px; }
.contact-info-card h2 { color: var(--teal-dark); font-size: 1.05rem; margin: 0 0 14px; }
.muted { color: rgba(30,42,42,.4); font-style: italic; font-size: .88rem; }
.map-placeholder {
  aspect-ratio: 16/9; border-radius: 10px; border: 2px dashed rgba(15,76,76,.2);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: rgba(30,42,42,.4); font-size: .85rem; padding: 20px;
}

.numbered-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.numbered-list li { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid rgba(15,76,76,.1); border-radius: 10px; padding: 14px; }
.numbered-list .n {
  width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: var(--cream);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; flex-shrink: 0;
}

.dotted-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .dotted-list { grid-template-columns: 1fr 1fr; } }
.dotted-list li { display: flex; gap: 10px; background: #fff; border: 1px solid rgba(15,76,76,.1); border-radius: 10px; padding: 14px; }
.dotted-list .dot-bullet { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); margin-top: 8px; flex-shrink: 0; }

.spinner {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(15,76,76,.3);
  border-top-color: var(--teal-dark); display: inline-block; margin-left: 8px;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.bg-tint { background: rgba(15,76,76,.05); }
