/* ============================================================
   Hon. Daniel K. Mwangi — UDA MCA Campaign
   Brand colours: UDA Yellow #FFD500, UDA Green #00843D,
   Black #111111, White #FFFFFF
   ============================================================ */

:root {
  --yellow: #ffd500;
  --yellow-600: #e6bf00;
  --yellow-100: #fff7cc;
  --green: #00843d;
  --green-700: #006e33;
  --green-800: #005a2a;
  --green-100: #d9f2e3;
  --black: #111111;
  --ink: #1a1a1a;
  --muted: #5b6470;
  --line: #e7e9ee;
  --white: #ffffff;
  --bg-soft: #f6f7f4;

  --success: #1f9d55;
  --error: #d64545;

  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Roboto", system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.06), 0 1px 3px rgba(17, 17, 17, 0.08);
  --shadow: 0 6px 20px rgba(17, 17, 17, 0.10);
  --shadow-lg: 0 18px 50px rgba(17, 17, 17, 0.18);

  --container: 1180px;
  --space: clamp(4rem, 8vw, 7rem);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--black);
  font-weight: 800;
}

p { margin: 0 0 1em; }

img { max-width: 100%; display: block; }

a { color: var(--green); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--green-700); }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.97rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
              color 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.btn i { font-size: 0.9em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-yellow {
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 6px 18px rgba(255, 213, 0, 0.35);
}
.btn-yellow:hover { background: var(--yellow-600); color: var(--black); }

.btn-green {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(0, 132, 61, 0.3);
}
.btn-green:hover { background: var(--green-700); color: var(--white); }

.btn-ghost-dark {
  background: transparent;
  color: var(--black);
  border-color: rgba(17, 17, 17, 0.25);
}
.btn-ghost-dark:hover { background: var(--black); color: var(--white); border-color: var(--black); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); border-color: var(--white); }

.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge i { font-size: 0.85em; }
.badge-dark { background: var(--black); color: var(--yellow); }
.badge-yellow { background: var(--yellow); color: var(--black); }
.badge-green { background: var(--green-100); color: var(--green-800); }

.text-yellow { color: var(--yellow); }

/* ---------- Section scaffolding ---------- */
.section { padding: var(--space) 0; }
.section-about { background: var(--white); }
.section-vision { background: var(--bg-soft); }
.section-agenda { background: var(--white); }
.section-gallery { background: var(--bg-soft); }
.section-contact { background: var(--white); }

.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: clamp(1.9rem, 3.5vw, 2.7rem); margin: 0.6rem 0 0.5rem; }
.section-sub { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); background: rgba(255, 255, 255, 0.98); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.7rem 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--black);
}
.nav-brand:hover { color: var(--black); }
.nav-logo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--green);
  color: var(--yellow);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 132, 61, 0.3);
}
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-name { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--black); }
.nav-sub { font-size: 0.78rem; color: var(--muted); font-weight: 500; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-link {
  position: relative;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-link:hover { color: var(--green); background: var(--green-100); }
.nav-link.active { color: var(--green); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.85rem; right: 0.85rem; bottom: 0.2rem;
  height: 3px;
  background: var(--yellow);
  border-radius: 3px;
}

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--black);
  border-radius: 3px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--green);
  color: var(--white);
  overflow: hidden;
  padding: clamp(5rem, 9vw, 8rem) 0 var(--space);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 213, 0, 0.18), transparent 45%),
              radial-gradient(circle at 10% 90%, rgba(0, 0, 0, 0.22), transparent 50%);
  pointer-events: none;
}
.hero-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-shape-1 {
  width: 420px; height: 420px;
  background: rgba(255, 213, 0, 0.14);
  top: -120px; right: -80px;
}
.hero-shape-2 {
  width: 280px; height: 280px;
  background: rgba(0, 0, 0, 0.12);
  bottom: -100px; left: -60px;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.hero-copy { max-width: 560px; }
.hero-title {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin: 1.2rem 0 1rem;
  letter-spacing: -0.01em;
}
.hero-title .text-yellow { color: var(--yellow); }
.hero-lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.8rem 0 2.2rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--yellow);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 0.3rem;
}

.hero-media { position: relative; display: grid; place-items: center; }
.hero-photo-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--yellow);
}
.hero-photo-frame img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}
.hero-photo-tag {
  position: absolute;
  left: 14px; bottom: 14px;
  background: rgba(17, 17, 17, 0.85);
  color: var(--white);
  padding: 0.6rem 0.95rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(6px);
}
.hero-photo-tag strong { font-family: var(--font-head); font-size: 1rem; }
.hero-photo-tag span { font-size: 0.78rem; color: var(--yellow); }

.hero-strip {
  position: relative;
  margin-top: var(--space);
  background: var(--yellow);
  color: var(--black);
}
.hero-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}
.hero-strip-item {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.1rem 1.2rem;
  font-family: var(--font-head);
  font-weight: 700;
  border-right: 1px solid rgba(17, 17, 17, 0.15);
}
.hero-strip-item:last-child { border-right: 0; }
.hero-strip-item i { color: var(--green); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}
.about-media { position: relative; }
.about-media img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.about-media-badge {
  position: absolute;
  right: -18px; bottom: 28px;
  background: var(--green);
  color: var(--white);
  padding: 1rem 1.3rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}
.about-media-badge-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--yellow);
  line-height: 1;
}
.about-media-badge-text { font-size: 0.82rem; margin-top: 0.3rem; }

.about-copy p { color: var(--muted); }
.about-values {
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.about-value {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.about-value-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--black);
  font-size: 1.15rem;
  flex-shrink: 0;
}
.about-value h3 { font-size: 1.15rem; margin: 0 0 0.2rem; }
.about-value p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ============================================================
   VISION
   ============================================================ */
.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.vision-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.vision-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--yellow);
}
.vision-card-icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--green-100);
  color: var(--green);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.vision-card h3 { font-size: 1.2rem; margin: 0 0 0.4rem; }
.vision-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.vision-card-wide {
  grid-column: span 3;
  display: flex;
  gap: 1.4rem;
  align-items: center;
  background: var(--green);
  border-color: var(--green);
}
.vision-card-wide .vision-card-icon { background: var(--yellow); color: var(--black); flex-shrink: 0; }
.vision-card-wide h3 { color: var(--white); font-size: 1.4rem; }
.vision-card-wide p { color: rgba(255, 255, 255, 0.9); margin: 0; }
.vision-card-wide:hover { border-color: var(--yellow); }

/* ============================================================
   AGENDA
   ============================================================ */
.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.agenda-item {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}
.agenda-item-reverse .agenda-item-img { order: 2; }
.agenda-item-img {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.agenda-item-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.agenda-item:hover .agenda-item-img img { transform: scale(1.06); }
.agenda-num {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 10px;
}
.agenda-item-body h3 { font-size: 1.5rem; margin: 0 0 0.6rem; }
.agenda-item-body p { color: var(--muted); margin: 0; font-size: 1.05rem; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(17, 17, 17, 0.85));
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 1.6rem 1rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateY(100%);
  transition: transform 0.3s var(--ease);
}
.gallery-item figcaption i { color: var(--yellow); }
.gallery-item:hover figcaption { transform: translateY(0); }
.gallery-item-tall { grid-row: span 2; }
.gallery-item-wide { grid-column: span 2; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(17, 17, 17, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--yellow);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.lightbox-close:hover,
.lightbox-nav:hover { background: var(--yellow); color: var(--black); transform: scale(1.08); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.08); }

/* ============================================================
   JOIN STRIP
   ============================================================ */
.join-strip {
  background: var(--black);
  color: var(--white);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  position: relative;
  overflow: hidden;
}
.join-strip::before {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  background: var(--yellow);
  opacity: 0.08;
  border-radius: 50%;
  top: -180px; right: -80px;
}
.join-strip-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.join-strip-copy h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 0.3rem; }
.join-strip-copy p { color: rgba(255, 255, 255, 0.8); margin: 0; max-width: 480px; }
.join-strip-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info > p { color: var(--muted); }
.contact-list {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--green);
  color: var(--white);
  flex-shrink: 0;
}
.contact-list div { display: flex; flex-direction: column; }
.contact-list strong { font-family: var(--font-head); color: var(--black); }
.contact-list span { color: var(--muted); font-size: 0.95rem; }

.contact-socials { margin-top: 1.8rem; display: flex; gap: 0.6rem; }
.contact-socials a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--green-100);
  color: var(--green);
  font-size: 1rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.contact-socials a:hover { background: var(--green); color: var(--white); transform: translateY(-3px); }

/* Form */
.contact-form {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.form-field { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.form-field label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  color: var(--black);
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 132, 61, 0.15);
}
.form-field textarea { resize: vertical; }
.form-field.invalid input,
.form-field.invalid select { border-color: var(--error); }
.form-note { margin: 0.8rem 0 0; font-size: 0.92rem; min-height: 1.2em; font-weight: 500; }
.form-note.success { color: var(--success); }
.form-note.error { color: var(--error); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--green-800); color: rgba(255, 255, 255, 0.85); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding: clamp(3rem, 6vw, 4.5rem) 24px 2.5rem;
}
.nav-brand-footer .nav-name { color: var(--white); }
.nav-brand-footer .nav-sub { color: var(--yellow); }
.nav-brand-footer:hover { color: var(--white); }
.footer-tagline { margin-top: 1rem; color: rgba(255, 255, 255, 0.75); max-width: 320px; }

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: rgba(255, 255, 255, 0.78); font-size: 0.95rem; }
.footer-col a:hover { color: var(--yellow); }

.footer-socials { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.footer-socials a {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}
.footer-socials a:hover { background: var(--yellow); color: var(--black); }
.footer-address { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; margin: 0; line-height: 1.5; }

.footer-bar { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.3rem 24px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}
.footer-bar-inner p { margin: 0; }
.footer-bar-party strong { color: var(--yellow); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--green); color: var(--white); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-media { max-width: 460px; margin: 0 auto; }
  .about-media img { height: 440px; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .vision-grid { grid-template-columns: repeat(2, 1fr); }
  .vision-card-wide { grid-column: span 2; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-media { order: -1; }
  .hero-photo-frame { max-width: 320px; }
  .hero-photo-frame img { height: 380px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 5rem 1.5rem 2rem;
    gap: 0.4rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link { padding: 0.85rem 1rem; font-size: 1.05rem; border-radius: 10px; }
  .nav-link.active::after { display: none; }
  .nav-link.active { background: var(--green-100); }
  .nav-cta-mobile { display: block; margin-top: 1rem; }
  .nav-cta-desktop { display: none; }
  .nav-toggle { display: flex; z-index: 101; }
  .nav-brand-text .nav-sub { display: none; }

  .agenda-item,
  .agenda-item-reverse { grid-template-columns: 1fr; gap: 1.5rem; }
  .agenda-item-reverse .agenda-item-img { order: 0; }
  .agenda-item-img img { height: 240px; }

  .vision-grid { grid-template-columns: 1fr; }
  .vision-card-wide { grid-column: span 1; flex-direction: column; align-items: flex-start; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-item-wide { grid-column: span 2; }

  .hero-stats { gap: 1.4rem; }
  .hero-stat-num { font-size: 1.6rem; }
  .hero-strip-item { flex-basis: 50%; border-bottom: 1px solid rgba(17,17,17,0.15); }

  .join-strip-inner { flex-direction: column; align-items: flex-start; text-align: left; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: span 2; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 460px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery-item-wide, .gallery-item-tall { grid-column: span 1; grid-row: span 1; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .lightbox-nav { width: 42px; height: 42px; }
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
