
/* ============================================================
   EcoCitizens — styles.css
   Mobile-first. Editorial motion in the spirit of arzatouna.org.
   ============================================================ */

:root {
  --color-primary:       #1f3b2c;
  --color-primary-light: #2d5a41;
  --color-accent:        #f0b451;
  --color-accent-2:      #7ec66a;
  --color-bg:            #fffaf4;
  --color-bg-alt:        #f3f0ea;
  --color-text:          #1e2b25;
  --color-text-muted:    #6b6f6a;

  --font-display: 'DM Serif Display', 'Noto Sans Arabic', 'Segoe UI', serif;
  --font-body: 'Space Grotesk', 'Noto Sans Arabic', 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h: 72px;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.js body { opacity: 0; transition: opacity 0.5s var(--ease); }
.js body.page-visible { opacity: 1; }

html[lang="ar"] body { font-family: 'Noto Sans Arabic', 'Segoe UI', sans-serif; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] .flyout-statement, html[lang="ar"] .stat-num {
  font-family: 'Noto Sans Arabic', 'Segoe UI', sans-serif;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; }
h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--color-primary); margin-bottom: 0.5em; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }
.section { padding-block: clamp(80px, 11vw, 140px); }
.section-alt { background: var(--color-bg-alt); }

.label {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 700;
  color: #b98a2e;
  margin-bottom: 18px;
}
html[dir="rtl"] .label { letter-spacing: 0.12em; }

.section-sub {
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-bottom: 52px;
  font-size: 1.05rem;
}

.skip-link {
  position: absolute; top: -48px; left: 8px; z-index: 300;
  background: var(--color-primary); color: #fff; padding: 10px 18px;
  border-radius: 6px; text-decoration: none; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 8px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
  letter-spacing: 0.02em;
}
.btn:hover { transform: translateY(-3px); }

.btn-primary { background: var(--color-primary-light); color: #fff; }
.btn-primary:hover { background: var(--color-primary); box-shadow: 0 8px 28px rgba(31,59,44,0.28); }

.btn-outline { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.14); }

.btn-accent { background: var(--color-accent); color: var(--color-primary); }
.btn-accent:hover { background: #e8a83a; }

/* Donate button — catchy pulsing gold */
@keyframes donate-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240, 180, 81, 0.55); }
  50%       { box-shadow: 0 0 0 10px rgba(240, 180, 81, 0); }
}
.btn-donate {
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 800;
  padding: 10px 22px;
  font-size: 14px;
  animation: donate-pulse 2.2s ease-in-out infinite;
  letter-spacing: 0.04em;
}
.btn-donate:hover {
  background: #e8a83a;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 24px rgba(240, 180, 81, 0.45);
}
.btn-donate .donate-icon { font-style: normal; font-size: 13px; }
.btn-donate-cta {
  padding: 15px 36px;
  font-size: 17px;
  letter-spacing: 0.05em;
}

/* ============================================================
   Loading screen
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--color-primary);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 28px;
  transform: translateY(0);
}
.loader.lift { transition: transform 0.85s cubic-bezier(0.7, 0, 0.3, 1); transform: translateY(-100%); }
.loader.done { display: none; }
html:not(.js) .loader { display: none; }

.loader-badge {
  width: 134px; height: 134px; border-radius: 50%;
  background: #fff; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.88);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.loader.show-logo .loader-badge { opacity: 1; transform: scale(1); }
.loader-badge img { width: 100%; height: 100%; object-fit: cover; }
.loader-monogram {
  display: none; font-family: var(--font-display);
  font-size: 48px; color: var(--color-primary);
}
.loader-badge.no-img img { display: none; }
.loader-badge.no-img .loader-monogram { display: block; }

.loader-bar-track {
  width: clamp(160px, 35vw, 240px);
  height: 3px;
  background: rgba(255,255,255,0.14);
  border-radius: 3px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.4s var(--ease) 0.3s;
}
.loader.show-logo .loader-bar-track { opacity: 1; }

.loader-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-accent-2), var(--color-accent));
  border-radius: 3px;
}
@keyframes loader-bar {
  0%   { width: 0; }
  30%  { width: 45%; }
  65%  { width: 72%; }
  88%  { width: 90%; }
  100% { width: 100%; }
}
.loader.show-logo .loader-bar-fill {
  animation: loader-bar 1.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ============================================================
   Media Bar (fixed left sidebar)
   ============================================================ */
.media-bar {
  display: none;
  position: fixed;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
@media (min-width: 1300px) { .media-bar { display: flex; } }

.media-bar-link {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(31,59,44,0.08);
  border: 1.5px solid rgba(31,59,44,0.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  text-decoration: none;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.media-bar-link:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: scale(1.12);
}
.media-bar-link svg { width: 16px; height: 16px; }

.media-bar-line {
  width: 1.5px; height: 52px;
  background: linear-gradient(to bottom, rgba(31,59,44,0.22), transparent);
  border-radius: 2px;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--color-primary);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 1320px; margin-inline: auto; padding-inline: 24px;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-logo {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  background: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-logo > span {
  display: none; font-family: var(--font-display);
  color: var(--color-primary); font-size: 18px;
}
.brand-logo.no-img img { display: none; }
.brand-logo.no-img > span { display: block; }
.brand-word { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.01em; }

.nav-links {
  display: none;
  flex: 1; justify-content: center; gap: clamp(20px, 3vw, 48px);
}
.nav-links a {
  position: relative;
  color: rgba(255,255,255,0.88); text-decoration: none;
  font-size: 15px; font-weight: 600; padding-block: 26px;
  display: flex; align-items: center; gap: 5px;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover, .nav-links a.flyout-open { color: var(--color-accent); }

/* Down chevron on flyout nav items */
.nav-chevron {
  display: inline-flex; align-items: center;
  width: 14px; height: 14px; flex-shrink: 0;
  position: relative; top: 1px;
}
.nav-chevron::after {
  content: '';
  display: block;
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s var(--ease);
}
.nav-links a.flyout-open .nav-chevron::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.nav-right { display: flex; align-items: center; gap: 16px; margin-inline-start: auto; }

.lang-toggle {
  display: flex; border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px; padding: 3px;
}
.lang-toggle button {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.75);
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-toggle button[aria-pressed="true"] { background: #fff; color: var(--color-primary); }
.lang-toggle button:hover:not([aria-pressed="true"]) { color: #fff; }

.nav .lang-toggle { display: none; }
.nav .btn-donate { display: none; }

.nav-burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 9px;
  background: none; border: none; cursor: pointer;
}
.nav-burger span {
  display: block; height: 2px; width: 100%; background: #fff;
  border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav .lang-toggle { display: flex; }
  .nav .btn-donate { display: inline-flex; margin-inline-start: 10px; }
  .nav-burger { display: none; }
}

/* ---- Flyouts ---- */
.flyout {
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: var(--color-primary-light);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  box-shadow: 0 28px 56px rgba(20,35,27,0.38);
}
.flyout.open { opacity: 1; visibility: visible; transform: translateY(0); }

.flyout-inner {
  max-width: 1320px; margin-inline: auto; padding: 44px 24px;
  display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 48px;
  align-items: center;
}
.flyout-intro .label { color: var(--color-accent); margin-bottom: 12px; }
.flyout-statement {
  font-family: var(--font-display); color: #fff;
  font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.25;
}

.flyout-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.flyout-cards--2 { grid-template-columns: repeat(2, 1fr); }

.flyout-card {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px; padding: 14px;
  text-decoration: none; color: #fff;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.flyout-card:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}
.flyout-thumb {
  width: 58px; height: 58px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-2));
  display: flex; align-items: center; justify-content: center;
}
.flyout-thumb img { width: 100%; height: 100%; object-fit: cover; }

.flyout-card-text { display: flex; flex-direction: column; gap: 3px; }
.flyout-card-text strong { font-family: var(--font-display); font-weight: 400; font-size: 1.08rem; }
.flyout-card-text small { color: rgba(255,255,255,0.65); font-size: 12.5px; line-height: 1.4; }

/* ---- Mobile menu ---- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--color-primary);
  padding: calc(var(--nav-h) + 36px) 28px 36px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a {
  color: #fff; text-decoration: none;
  font-family: var(--font-display); font-size: 1.9rem; padding-block: 7px;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.mobile-menu nav a:hover { color: var(--color-accent); transform: translateX(6px); }
html[dir="rtl"] .mobile-menu nav a:hover { transform: translateX(-6px); }
.mobile-menu-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  color: #fff;
}

@keyframes hero-bg-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}
@keyframes hero-ken-burns {
  0%   { transform: scale(1)    translateX(0);      }
  50%  { transform: scale(1.06) translateX(-1%);    }
  100% { transform: scale(1.04) translateX(0.5%);   }
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2; overflow: hidden;
  animation: hero-ken-burns 22s ease-in-out infinite alternate;
  transform-origin: center center;
}
.hero-bg img {
  width: 100%; height: 115%; object-fit: cover; object-position: center;
  will-change: transform;
  animation: hero-bg-zoom 18s ease-out forwards;
}
.js .hero-bg img { animation: none; } /* parallax JS takes over; Ken Burns lives on the container */

.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(
    40deg,
    rgba(15,32,22,0.92) 0%,
    rgba(15,32,22,0.72) 45%,
    rgba(15,32,22,0.45) 100%
  );
}
html[dir="rtl"] .hero-shade {
  background: linear-gradient(
    -40deg,
    rgba(20,40,30,0.88) 0%,
    rgba(20,40,30,0.60) 40%,
    rgba(20,40,30,0.22) 100%
  );
}

.hero-content { padding-block: 60px; }

.hero-eyebrow { margin-bottom: 22px; }
.hero-badge {
  display: inline-block;
  border: 1.5px solid rgba(240,180,81,0.6);
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  background: rgba(240,180,81,0.07);
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  max-width: 16em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55), 0 4px 40px rgba(0,0,0,0.4);
  line-height: 1.06;
}
.hero-sub {
  margin-top: 24px; max-width: 54ch;
  color: rgba(255,255,255,0.84);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}
.hero-ctas {
  margin-top: 38px;
  display: flex; flex-wrap: wrap; gap: 14px;
}
.btn-hero-join { padding: 15px 34px; font-size: 16px; }
.btn-hero-donate {
  padding: 15px 34px; font-size: 16px;
  animation: donate-pulse 2.2s ease-in-out infinite;
}

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  padding-bottom: 52px;
}
.hero-stat { border-inline-start: 2.5px solid var(--color-accent); padding-inline-start: 16px; }
.hero-stat .stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  display: block; line-height: 1.05;
  color: #fff;
}
.hero-stat .stat-label {
  font-size: 12.5px;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.04em;
  margin-top: 3px;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; opacity: 0.6;
  transition: opacity 0.2s;
}
.hero-scroll-hint:hover { opacity: 1; }
.hero-scroll-arrow {
  width: 22px; height: 22px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  animation: scroll-bounce 2s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(5px); }
}

/* Hero entrance stagger */
.js [data-stagger-item] {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  filter: blur(5px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease), filter 0.75s var(--ease);
}
.js body.hero-ready [data-stagger-item] {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.js .reveal, .js .reveal-left, .js .reveal-right {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.js .reveal-left  { transform: translateX(-52px); }
.js .reveal-right { transform: translateX(52px); }
html[dir="rtl"].js .reveal-left  { transform: translateX(52px); }
html[dir="rtl"].js .reveal-right { transform: translateX(-52px); }
.js .in-view.reveal, .js .in-view.reveal-left, .js .in-view.reveal-right {
  opacity: 1; transform: translate(0, 0);
}

/* Line-by-line reveal */
.js .lr-line { display: block; overflow: hidden; }
.js .lr-line .lr-inner {
  display: block;
  clip-path: inset(0 0 100% 0);
  transform: translateY(60%);
  transition: transform 0.75s var(--ease), clip-path 0.75s var(--ease);
}
.js .in-view .lr-line .lr-inner { clip-path: inset(0 0 0% 0); transform: translateY(0); }

/* ============================================================
   Our Story
   ============================================================ */
.story-grid {
  display: grid; grid-template-columns: 1fr; gap: 48px;
  align-items: stretch;
}
.story-media { border-radius: 20px; overflow: hidden; min-height: 380px; }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-text { display: flex; flex-direction: column; justify-content: center; gap: 0; }
.story-text h2 { margin-bottom: 28px; }
.story-p {
  color: var(--color-text-muted);
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 54ch;
}
.story-p + .story-p { margin-top: 18px; }
.story-cta { margin-top: 32px; align-self: flex-start; }

@media (min-width: 768px) {
  .story-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(44px, 6vw, 90px); }
  .story-media { min-height: 0; }
}

/* ============================================================
   Vision — 2x2 cards
   ============================================================ */
.vision-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 52px;
}
@media (min-width: 640px) { .vision-grid { grid-template-columns: 1fr 1fr; } }

.vision-card {
  position: relative; display: block; overflow: hidden;
  border-radius: 20px; aspect-ratio: 4 / 3;
  text-decoration: none; color: #fff;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  cursor: pointer;
}
.vision-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.vision-card:hover img { transform: scale(1.07); }
.vision-card.img-missing img { display: none; }
.vision-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18,33,24,0.88) 0%, rgba(18,33,24,0.35) 55%, rgba(18,33,24,0.1) 100%);
  transition: opacity 0.25s var(--ease);
}
.vision-card:hover .vision-overlay { opacity: 0.82; }
.vision-text {
  position: absolute; inset-inline-start: 0; bottom: 0; padding: 28px;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateY(8px);
  transition: transform 0.4s var(--ease);
}
.vision-card:hover .vision-text { transform: translateY(0); }
.vision-text strong {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
}
.vision-text span { font-size: 14.5px; color: rgba(255,255,255,0.87); max-width: 34ch; }
.vision-caption {
  font-size: 13px !important;
  color: rgba(255,255,255,0.65) !important;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease) 0.05s, transform 0.3s var(--ease) 0.05s;
}
.vision-card:hover .vision-caption { opacity: 1; transform: translateY(0); }

/* ============================================================
   Eco-Actions timeline
   ============================================================ */
.timeline { position: relative; margin-top: 60px; }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0;
  inset-inline-start: 7px; width: 2px;
  background: linear-gradient(to bottom, var(--color-accent-2), var(--color-primary-light));
}
.t-entry { position: relative; padding-inline-start: 40px; margin-bottom: 60px; }
.t-entry:last-child { margin-bottom: 0; }
.t-dot {
  position: absolute; top: 6px; inset-inline-start: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--color-accent); border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 3px var(--color-accent);
}
.t-media {
  border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--color-bg-alt), #e2ddd2);
  margin-bottom: 22px;
}
.t-media img { width: 100%; height: 100%; object-fit: cover; }
.t-media.img-missing img { display: none; }
.t-year {
  display: inline-block; font-weight: 800; font-size: 13px;
  letter-spacing: 0.2em; color: #b98a2e; margin-bottom: 10px;
}
.t-text h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--color-primary); margin-bottom: 10px; }
.t-text p { color: var(--color-text-muted); max-width: 44ch; font-size: 1.02rem; line-height: 1.7; }

@media (min-width: 900px) {
  .timeline::before { inset-inline-start: 50%; margin-inline-start: -1px; }
  .t-entry {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(56px, 8vw, 110px);
    padding-inline-start: 0; margin-bottom: 96px;
    align-items: center;
  }
  .t-dot { inset-inline-start: 50%; top: 50%; transform: translate(-50%, -50%); }
  html[dir="rtl"] .t-dot { transform: translate(50%, -50%); }
  .t-media { margin-bottom: 0; }
  .t-right .t-media { order: 2; }
  .t-right .t-text { order: 1; display: flex; flex-direction: column; align-items: flex-end; text-align: end; }
}

/* ============================================================
   Impact
   ============================================================ */
.impact { background: var(--color-primary); color: #fff; }
.impact h2 { color: #fff; }
.impact .label { color: var(--color-accent); }
.impact .section-sub { color: rgba(255,255,255,0.65); }

.impact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (min-width: 700px)  { .impact-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .impact-grid { grid-template-columns: repeat(6, 1fr); } }

.impact-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px; padding: 30px 18px;
  text-align: center;
  display: flex; flex-direction: column; gap: 10px; justify-content: center;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.impact-card:hover { background: rgba(255,255,255,0.09); transform: translateY(-3px); }
.impact-card .stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4.8vw, 3.8rem);
  color: var(--color-accent); line-height: 1;
}
.impact-card .stat-label { font-size: 13.5px; color: rgba(255,255,255,0.8); line-height: 1.4; }

/* ============================================================
   Team
   ============================================================ */
.team-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; margin-top: 52px;
}
@media (min-width: 640px)  { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }

.member { display: flex; flex-direction: column; gap: 14px; }
.member-photo {
  position: relative; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden;
  background: var(--color-primary-light);
}
.member-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: filter 0.25s var(--ease), transform 0.25s var(--ease);
}
.member:hover .member-photo img { filter: saturate(0.4); transform: scale(1.04); }

.member-initials {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: clamp(2.2rem, 4.5vw, 3rem);
  color: rgba(255,255,255,0.92);
  background: radial-gradient(circle at 30% 25%, var(--color-primary-light), var(--color-primary));
  visibility: hidden;
}
.member-photo.img-missing img { display: none; }
.member-photo.img-missing .member-initials { visibility: visible; }
.member-photo.img-missing::after { content: none; }

.member-veil {
  position: absolute; inset: 0; padding: 18px;
  display: flex; align-items: flex-end;
  background: rgba(31,59,44,0.76);
  opacity: 0; transition: opacity 0.25s var(--ease);
}
.member:hover .member-veil { opacity: 1; }
.member-veil span {
  color: #fff; font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.25;
}

.member figcaption { display: flex; flex-direction: column; gap: 3px; }
.member figcaption strong { font-size: 16px; font-weight: 700; color: var(--color-primary); }
.member figcaption span { font-size: 13px; color: var(--color-text-muted); }

/* ============================================================
   Get involved + partners
   ============================================================ */
.involved-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 52px;
}
@media (min-width: 768px) { .involved-grid { grid-template-columns: 1fr 1fr; } }

.involved-card {
  background: #fff; border: 1px solid #e7e2d8; border-radius: 20px;
  padding: clamp(30px, 4vw, 48px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.involved-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(31,59,44,0.1); }
.involved-card--donate { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.involved-card--donate h3 { color: var(--color-accent); }
.involved-card--donate p { color: rgba(255,255,255,0.75); }

.involved-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: rgba(126,198,106,0.18); color: var(--color-primary-light);
  display: flex; align-items: center; justify-content: center;
}
.involved-icon--accent { background: rgba(240,180,81,0.18); color: var(--color-accent); }
.involved-icon svg { width: 28px; height: 28px; }
.involved-card h3 { font-size: 1.75rem; color: var(--color-primary); }
.involved-card p { font-size: 1.02rem; color: var(--color-text-muted); line-height: 1.65; }
.involved-card .btn { margin-top: 8px; }

.partners { margin-top: clamp(60px, 8vw, 96px); border-top: 1px solid #e7e2d8; padding-top: 48px; }
.partners-list { list-style: none; display: flex; flex-wrap: wrap; gap: clamp(28px, 6vw, 72px); }
.partners-list li { display: flex; flex-direction: column; gap: 4px; }
.partners-list strong {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.45rem; color: var(--color-primary);
}
.partners-list span { font-size: 13.5px; color: var(--color-text-muted); }

/* ============================================================
   Contact section
   ============================================================ */
.contact { background: var(--color-primary); color: #fff; }
.contact .label { color: var(--color-accent); }
.contact-inner {
  display: grid; grid-template-columns: 1fr; gap: 52px;
  align-items: center;
}
@media (min-width: 768px) { .contact-inner { grid-template-columns: 1fr 1fr; } }

.contact h2 { color: #fff; }
.contact-sub {
  color: rgba(255,255,255,0.72);
  font-size: 1.08rem; line-height: 1.7; max-width: 50ch;
  margin-bottom: 28px;
}
.contact-btn { margin-bottom: 16px; }
.contact-email a {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.contact-email a:hover { color: var(--color-accent); }

.contact-visual {
  position: relative; height: 280px;
  display: flex; align-items: center; justify-content: center;
}
.contact-monogram {
  font-family: var(--font-display);
  font-size: clamp(5rem, 10vw, 9rem);
  color: rgba(255,255,255,0.06);
  user-select: none;
  position: relative; z-index: 1;
}

@keyframes leaf-float-1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33%       { transform: translate(8px, -12px) rotate(6deg); }
  66%       { transform: translate(-6px, 5px) rotate(-4deg); }
}
@keyframes leaf-float-2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%       { transform: translate(-10px, -8px) rotate(-8deg); }
}
@keyframes leaf-float-3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  40%       { transform: translate(12px, 6px) rotate(5deg); }
  80%       { transform: translate(-5px, -10px) rotate(-3deg); }
}

.contact-leaf {
  position: absolute; border-radius: 50% 0 50% 0; opacity: 0.35;
}
.contact-leaf--1 {
  width: 80px; height: 80px;
  background: var(--color-accent-2);
  top: 20px; left: 20%;
  animation: leaf-float-1 7s ease-in-out infinite;
}
.contact-leaf--2 {
  width: 55px; height: 55px;
  background: var(--color-accent);
  bottom: 30px; right: 22%;
  animation: leaf-float-2 9s ease-in-out infinite;
}
.contact-leaf--3 {
  width: 40px; height: 40px;
  background: var(--color-primary-light);
  top: 50%; left: 60%;
  animation: leaf-float-3 11s ease-in-out infinite;
  opacity: 0.5;
}

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--color-primary); color: rgba(255,255,255,0.85); }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 36px;
  padding-block: clamp(52px, 6vw, 76px);
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .footer-nav { justify-content: center; }
  .footer-social { justify-content: flex-end; }
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand p { font-size: 14.5px; color: rgba(255,255,255,0.65); max-width: 26ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-nav a {
  color: rgba(255,255,255,0.8); text-decoration: none; font-size: 14.5px;
  transition: color 0.2s var(--ease);
}
.footer-nav a:hover { color: var(--color-accent); }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85);
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.footer-social a:hover {
  background: var(--color-accent); color: var(--color-primary);
  border-color: var(--color-accent); transform: translateY(-3px);
}
.footer-social svg { width: 19px; height: 19px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); }
.footer-bottom-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; padding-block: 24px;
}
.footer-bottom p { font-size: 13.5px; color: rgba(255,255,255,0.55); }

/* ============================================================
   Image placeholder fallback
   ============================================================ */
.img-missing { position: relative; }
.img-missing::after {
  content: attr(data-ph);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 16px;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background:
    linear-gradient(135deg, rgba(45,90,65,0.92), rgba(31,59,44,0.92)),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255,255,255,0.05) 14px 28px);
}
.flyout-thumb.img-missing::after { content: ""; }
.vision-card.img-missing::after { z-index: 0; }
.vision-card.img-missing .vision-overlay,
.vision-card.img-missing .vision-text { z-index: 1; }

/* ============================================================
   Scroll progress bar
   ============================================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 150;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--color-accent-2), var(--color-accent));
  border-radius: 0 3px 3px 0;
}
html[dir="rtl"] .scroll-progress { left: auto; right: 0; border-radius: 3px 0 0 3px; }

/* ============================================================
   Media bar — official brand colors
   ============================================================ */
.media-bar-link { background: #fff; border-color: rgba(31,59,44,0.14); }
.mb-wa { color: #25D366; }
.mb-tt { color: #010101; }
.mb-fb { color: #1877F2; }
.media-bar-link:hover {
  background: #fff; border-color: currentColor;
  transform: scale(1.16) translateX(3px);
  box-shadow: 0 6px 18px rgba(31,59,44,0.18);
}
.mb-wa:hover { color: #25D366; }
.mb-tt:hover { color: #010101; }
.mb-fb:hover { color: #1877F2; }
.mb-ig:hover { border-color: #d62976; }

/* ============================================================
   Coast-to-summit route
   ============================================================ */
.route {
  display: grid;
  grid-template-columns: repeat(6, minmax(132px, 1fr));
  margin-bottom: clamp(48px, 6vw, 76px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 10px;
}
.route-step {
  position: relative;
  text-align: center;
  padding: 22px 10px 0;
  display: flex; flex-direction: column; gap: 2px;
}
.route-step::before {
  content: ""; position: absolute; top: 29px; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--color-accent-2), var(--color-accent));
}
html[dir="rtl"] .route-step::before {
  background: linear-gradient(-90deg, var(--color-accent-2), var(--color-accent));
}
.route-step:first-child::before { inset-inline-start: 50%; }
.route-step:last-child::before { inset-inline-end: 50%; }
.route-dot {
  position: relative; z-index: 1;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-primary);
  margin: 0 auto 12px;
}
.js .route-dot { transform: scale(0); }
.js .route.in-view .route-dot { animation: dot-pop 0.45s var(--ease) forwards; }
.route-step:nth-child(1) .route-dot { animation-delay: 0.10s; }
.route-step:nth-child(2) .route-dot { animation-delay: 0.25s; }
.route-step:nth-child(3) .route-dot { animation-delay: 0.40s; }
.route-step:nth-child(4) .route-dot { animation-delay: 0.55s; }
.route-step:nth-child(5) .route-dot { animation-delay: 0.70s; }
.route-step:nth-child(6) .route-dot { animation-delay: 0.85s; }
@keyframes dot-pop {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.route-alt {
  font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #b98a2e;
}
html[dir="rtl"] .route-alt { letter-spacing: 0.06em; }
.route-place { font-weight: 700; color: var(--color-primary); font-size: 15.5px; line-height: 1.35; }
.route-region { font-size: 12.5px; color: var(--color-text-muted); }

@media (prefers-reduced-motion: reduce) {
  .route-dot { transform: scale(1) !important; animation: none !important; }
}

/* co-founder cards: no decoration */
.member--lead .member-photo { outline: none; }

/* ============================================================
   Partners — cards
   ============================================================ */
.partners-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--color-primary);
  margin-bottom: 30px;
}
.partners-list {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 640px)  { .partners-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .partners-list { grid-template-columns: repeat(4, 1fr); } }
.partner-card {
  background: #fff; border: 1px solid #e7e2d8; border-radius: 18px;
  padding: 26px 22px;
  display: flex; flex-direction: column; gap: 4px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.partner-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 14px 32px rgba(31,59,44,0.1);
}
.partner-icon {
  width: 46px; height: 46px; border-radius: 13px;
  background: rgba(126,198,106,0.16); color: var(--color-primary-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.partner-icon svg { width: 24px; height: 24px; }

/* ============================================================
   Reduced motion — all animation off
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js body { opacity: 1; transition: none; }
  .loader { display: none !important; }
  .js [data-stagger-item],
  .js .reveal, .js .reveal-left, .js .reveal-right {
    opacity: 1 !important; transform: none !important;
    transition: none !important; filter: none !important;
  }
  .js .lr-line .lr-inner {
    clip-path: none !important; transform: none !important; transition: none !important;
  }
  .hero-bg, .hero-bg img { transform: none !important; height: 100%; animation: none !important; }
  .loader-bar-fill { animation: none !important; width: 100% !important; }
  .hero-scroll-arrow { animation: none !important; }
  .btn-donate, .btn-hero-donate { animation: none !important; }
  .contact-leaf { animation: none !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
