/* ===== NEJAD Foundation — site styles ===== */

:root {
  --green: #0f7a3d;          /* NEJAD logo dark green */
  --green-bright: #2aa843;   /* NEJAD logo light green */
  --green-header: #1f9d6c;   /* header gradient start */
  --green-header-2: #178a5f;
  --green-deep: #0c5c2f;     /* display headline */
  --navy: #2f2c52;           /* footer / headings */
  --ink: #3d3d55;
  --muted: #6e6e85;
  --cream: #f4f8f4;
  --white: #ffffff;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(20, 60, 40, .10);
  --font-body: "Montserrat", system-ui, sans-serif;
  --font-display: "Oswald", "Montserrat", sans-serif;
  --font-script: "Caveat", cursive;

  /* motion tokens: see MOTION PRINCIPLES at the end of this file */
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 600ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --lift: -4px;
  --rise: 24px;
  --stagger: 80ms;
  interpolate-size: allow-keywords; /* lets FAQ answers animate to their natural height */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--green-bright); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 92%); margin-inline: auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 15px;
  border: 2px solid transparent;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast),
              box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 24px rgba(12, 92, 47, .18); }
.btn:active { transform: scale(.97); transition-duration: var(--dur-fast); }
.btn svg { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover svg { transform: scale(1.15); }
.btn-white { background: var(--white); color: var(--green-header-2); padding: 12px 22px; }
.btn-white:hover { background: #eaf6ef; }
.btn-green { background: var(--green-header-2); color: var(--white); }
.btn-green:hover { background: var(--green-deep); }
.btn-outline { background: var(--white); color: var(--ink); border-color: #cfd6d2; }
.btn-outline:hover { border-color: var(--green-header-2); color: var(--green-header-2); }

/* ===== Header ===== */
.site-header {
  background: linear-gradient(180deg, var(--green-header) 0%, var(--green-header-2) 100%);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
  position: relative; z-index: 10;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; min-height: 120px; padding-block: 14px;
}
.brand img { height: 52px; width: auto; }

.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex: 1; max-width: 800px; }

.topbar {
  display: flex; align-items: center; gap: 18px;
  width: 100%; justify-content: flex-end;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  font-size: 14px; font-weight: 600;
}
.topbar-sep { width: 1px; height: 20px; background: rgba(255, 255, 255, .5); }
.icon-btn { background: none; border: 0; color: var(--white); cursor: pointer; display: grid; place-items: center; }

.main-nav { display: flex; align-items: center; gap: 30px; font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .01em; }
.main-nav a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
/* underline draws in from the left on hover and stays under the current page */
.main-nav a:not(.btn) { position: relative; }
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: currentColor; border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-base) var(--ease-out);
}
.main-nav a:not(.btn):hover::after, .main-nav a.active:not(.btn)::after { transform: scaleX(1); }
.main-nav .btn { text-transform: none; letter-spacing: 0; font-size: 15px; }
.chev {
  width: 7px; height: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(100deg, #e9f3ec 0%, #cfe6d6 50%, #b7d9c2 100%);
  min-height: 600px;
  display: flex; align-items: center;
}
.hero-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 12% 30%, rgba(255,255,255,.55) 0, rgba(255,255,255,0) 22%),
    radial-gradient(circle at 88% 70%, rgba(255,255,255,.45) 0, rgba(255,255,255,0) 24%),
    repeating-radial-gradient(circle at 12% 30%, rgba(15,122,61,.06) 0 2px, transparent 2px 26px),
    repeating-radial-gradient(circle at 88% 70%, rgba(15,122,61,.06) 0 2px, transparent 2px 26px);
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 40px;
  padding-block: 80px;
}
.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--green-deep);
  font-size: clamp(56px, 8vw, 112px);
  line-height: .92;
  letter-spacing: .01em;
  display: flex; flex-direction: column;
}
.display .script {
  font-family: var(--font-script);
  text-transform: none;
  font-weight: 700;
  font-size: clamp(60px, 7.6vw, 110px);
  line-height: 1;
  margin-top: 6px;
  color: var(--green);
}
.hero-lead {
  margin-top: 26px;
  display: inline-block;
  background: rgba(255, 255, 255, .78);
  padding: 14px 22px;
  border-radius: 6px;
  color: #b4461a;  /* burnt orange; 5:1 contrast on the lead box */
  font-weight: 600;
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.45;
}
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.hero-badge {
  justify-self: center;
  text-align: center;
  color: var(--green-deep);
  font-weight: 700; font-size: 18px;
}
.badge-ring {
  width: 190px; height: 190px; margin: 0 auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white);
  color: var(--green-header-2);
  box-shadow: var(--shadow), inset 0 0 0 10px #e3f1e8;
  animation: pulse 3.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: var(--shadow), inset 0 0 0 10px #e3f1e8, 0 0 0 0 rgba(31,157,108,.35); }
  50%      { box-shadow: var(--shadow), inset 0 0 0 10px #e3f1e8, 0 0 0 22px rgba(31,157,108,0); }
}
@media (prefers-reduced-motion: reduce) { .badge-ring { animation: none; } }

/* ===== Cards section ===== */
.section { padding-block: 90px 100px; background: var(--white); }
.section-title {
  text-align: center;
  color: var(--navy);
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 40px);
  text-transform: uppercase;
  letter-spacing: .01em;
}
.section-sub { text-align: center; color: var(--muted); margin-top: 10px; font-size: 16px; }

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 56px;
}
.card {
  background: var(--white);
  border-radius: 14px;
  padding: 40px 32px 32px;
  text-align: center;
  box-shadow: 0 14px 40px rgba(47, 44, 82, .10);
  display: flex; flex-direction: column; align-items: center;
}
.card-icon {
  width: 68px; height: 68px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 22px;
}
.icon-rose   { background: #fde2e7; color: #e14b6c; }
.icon-amber  { background: #fdefd6; color: #e59d2f; }
.icon-violet { background: #f3e2f9; color: #a04ad6; }
.card h3 { color: var(--navy); font-weight: 800; font-size: 20px; text-transform: uppercase; }
.card p { color: var(--muted); margin-top: 12px; font-size: 15px; flex: 1; }
.card-link { margin-top: 18px; color: var(--green-header-2); font-weight: 700; font-size: 15px; }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #d8d6ea; padding-top: 80px; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}
.footer-brand img { height: 64px; width: auto; }
.footer-brand p { margin-top: 26px; max-width: 32ch; font-size: 15px; }
.footer-col h2 { color: var(--white); font-size: 20px; font-weight: 800; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .15); font-size: 15px; }
.footer-col li:last-child { border-bottom: 0; }
.footer-col li a:hover { color: var(--white); }
.footer-col ul:not(.contact-list) li::before {
  content: ""; display: inline-block;
  width: 7px; height: 7px; margin-right: 12px;
  border-right: 2px solid currentColor; border-top: 2px solid currentColor;
  transform: rotate(45deg) translateY(1px);
}
.socials { display: flex; gap: 12px; margin-top: 26px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .6);
  display: grid; place-items: center; color: var(--white);
  transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-base) var(--ease-out);
}
.socials a:hover { background: var(--green-header-2); border-color: var(--green-header-2); transform: translateY(-3px); }
.footer-bottom { padding-block: 26px; font-size: 14px; font-weight: 600; color: var(--white); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .header-inner { flex-direction: column; align-items: center; min-height: auto; padding-block: 18px; gap: 16px; }
  .header-right { align-items: center; max-width: none; }
  .topbar { justify-content: center; }
  .main-nav { flex-wrap: wrap; justify-content: center; gap: 16px 22px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-block: 60px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-actions { justify-content: center; }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 520px) {
  .main-nav { font-size: 13px; }
  .badge-ring { width: 150px; height: 150px; }
}

/* =====================================================
   FULL SITE ADDITIONS
   ===================================================== */

/* --- header extras --- */
.topbar-item { color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--white); margin: 5px 0; border-radius: 2px; }

/* --- hero slider --- */
.hero-home { min-height: 640px; }
/* all slides share one grid cell, so the slider always has the height of its tallest slide */
.hero-slides { position: relative; width: 100%; display: grid; }
.hero-slide {
  grid-area: 1 / 1; opacity: 0; visibility: hidden;
  transition: opacity var(--dur-slow) var(--ease-in-out), visibility 0s linear var(--dur-slow);
}
.hero-slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.hero-home .hero-inner { grid-template-columns: 1.1fr 1fr; gap: 48px; padding-block: 80px 100px; }
.hero-home .hero-copy { max-width: 720px; }
.hero-home .display { font-size: clamp(48px, 6.4vw, 96px); }
.hero-media {
  aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden;
  background: #cfe6d6; box-shadow: 0 24px 60px rgba(12, 92, 47, .22);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  display: grid; place-items: center; padding: 0 0 4px;
  background: rgba(12, 92, 47, .75); color: var(--white); font-size: 32px; line-height: 1;
  cursor: pointer; z-index: 2;
  transition: background var(--dur-fast), transform var(--dur-base) var(--ease-out);
}
.hero-arrow:hover { background: var(--green-deep); transform: translateY(-50%) scale(1.08); }
.hero-arrow:active { transform: translateY(-50%) scale(.95); }
.hero-arrow.prev { left: 16px; } .hero-arrow.next { right: 16px; }
.hero-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 2; }
.hero-dots button {
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--green-deep); background: transparent; padding: 0; cursor: pointer;
  transition: background var(--dur-fast), transform var(--dur-base) var(--ease-out);
}
.hero-dots button:hover { transform: scale(1.2); }
.hero-dots button[aria-selected="true"] { background: var(--green-deep); transform: scale(1.25); }

/* --- sections --- */
.section-grey { background: var(--cream); }
.center { text-align: center; margin-top: 44px; }
.h2 { color: var(--navy); font-weight: 800; font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 18px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.two-col p { margin-bottom: 14px; color: var(--ink); }
.two-col .lead { font-weight: 600; color: var(--green-deep); }

/* --- photo placeholders (replace with <img> when photos are ready) --- */
.photo {
  position: relative; border-radius: 12px; overflow: hidden;
  min-height: 230px; display: grid; place-items: center;
  background: linear-gradient(135deg, #1f9d6c, #0c5c2f);
  color: rgba(255,255,255,.9);
}
.photo::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-radial-gradient(circle at 80% 20%, rgba(255,255,255,.08) 0 2px, transparent 2px 22px);
}
.photo-icon { position: relative; z-index: 1; width: 64px; height: 64px; }
.photo-icon svg { width: 100%; height: 100%; }
.photo-hot-meals  { background: linear-gradient(135deg, #e1873c, #9a4b12); }
.photo-development{ background: linear-gradient(135deg, #2aa843, #0f5f25); }
.photo-water      { background: linear-gradient(135deg, #2f9bd6, #124f7a); }
.photo-orphans    { background: linear-gradient(135deg, #d95c7a, #7a2340); }
.photo-education  { background: linear-gradient(135deg, #4f5bd5, #262c78); }
.photo-qurbani    { background: linear-gradient(135deg, #8d6e4c, #4a3521); }
.photo-zakat      { background: linear-gradient(135deg, #c9a227, #7a5f10); }
.photo-emergency  { background: linear-gradient(135deg, #e04b4b, #7c1c1c); }
.photo-health     { background: linear-gradient(135deg, #2bb3a3, #135c54); }
.photo-ramadan    { background: linear-gradient(135deg, #5b4b9e, #2a2255); }
.photo-about, .photo-news-1 { background: linear-gradient(135deg, #1f9d6c, #0c5c2f); min-height: 320px; }
.photo-news-2 { background: linear-gradient(135deg, #2aa843, #1f6f38); }
.photo-news-3 { background: linear-gradient(135deg, #3aa87c, #135c44); }
/* real photos: <div class="photo has-img"><img ...></div> */
.photo.has-img { background: #dfe9e2; }
.photo.has-img::after { display: none; }
.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }

/* --- project cards (home) --- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 56px; }
.project-card { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: 0 14px 40px rgba(47,44,82,.10); display: flex; flex-direction: column; }
.project-card .photo { border-radius: 0; }
.project-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.project-body h2, .project-body h3 { color: var(--navy); font-weight: 800; font-size: 20px; text-transform: uppercase; }
.project-body h2 a, .project-body h3 a { color: inherit; }
.project-body p { color: var(--muted); margin: 12px 0 20px; font-size: 15px; flex: 1; }
.project-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid #e6e8ec; }
.btn-sm { padding: 11px 22px; font-size: 14px; }

/* --- steps --- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; margin-top: 50px; }
.step { background: var(--white); border-radius: 16px; padding: 32px 28px; box-shadow: 0 10px 30px rgba(47,44,82,.08); }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--green-header-2); color: var(--white); font-weight: 800; display: grid; place-items: center; font-size: 20px; margin-bottom: 18px; }
.step h3 { color: var(--navy); font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* --- timeline / news --- */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 56px; }
.news-card { position: relative; padding-top: 0; }
.news-card .photo { min-height: 220px; }
.news-date { margin-top: 22px; padding-top: 14px; border-top: 2px solid var(--navy); position: relative; font-size: 12px; font-weight: 800; color: var(--ink); letter-spacing: .04em; text-transform: uppercase; }
.news-date::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--navy); }
.news-card h3 { color: var(--green-header-2); font-weight: 800; font-size: 19px; text-transform: uppercase; margin-top: 10px; line-height: 1.3; }
.news-card p { color: var(--muted); font-size: 14px; margin: 10px 0 12px; }
.news-card > a { color: var(--green-header-2); font-weight: 700; font-size: 14px; }


/* --- FAQ --- */
.section-faq { position: relative; padding-block: 90px; overflow: hidden; }
.faq-bg { position: absolute; inset: 0; background: linear-gradient(160deg, #7a5230, #3b2716); }
.faq-bg::after { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 20% 80%, rgba(255,255,255,.05) 0 2px, transparent 2px 30px); }
.section-faq .container { position: relative; }
.section-title.on-dark { color: var(--white); }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 370px)); justify-content: center; gap: 24px; margin-top: 50px; align-items: start; }
.faq { border-radius: 14px; padding: 26px 28px; color: var(--white); }
.faq-green { background: var(--green-header); }
.faq-teal  { background: #178a5f; }
.faq-navy  { background: var(--navy); }
.faq summary { font-weight: 800; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; flex-shrink: 0; transition: transform var(--dur-base) var(--ease-out); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 12px; font-size: 15px; color: rgba(255,255,255,.9); }

/* --- SEO structure: hero eyebrow (the home H1), breadcrumbs, intro text --- */
.eyebrow { display: block; font-family: var(--font-body); font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 16px; line-height: 1.4; }
.breadcrumb { margin-bottom: 18px; font-size: 13px; font-weight: 600; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.breadcrumb a { color: var(--green-deep); }
.breadcrumb [aria-current] { color: var(--muted); }
.intro { max-width: 760px; margin: 0 auto; text-align: center; color: var(--ink); font-size: 17px; }
.project-grid:first-child { margin-top: 0; }
.project-intro .photo { min-height: 380px; }
.text-link { color: var(--green-header-2); font-weight: 700; }

/* --- page head --- */
.page-head {
  background: linear-gradient(100deg, #e9f3ec 0%, #cfe6d6 50%, #b7d9c2 100%);
  padding-block: 64px;
  text-align: center;
}
.page-head h1 { font-family: var(--font-display); text-transform: uppercase; color: var(--green-deep); font-size: clamp(40px, 6vw, 72px); line-height: 1; font-weight: 700; }
.page-head p { margin-top: 12px; color: var(--ink); font-weight: 600; }

/* --- project detail page --- */
.pill-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 60px; }
.pill-nav a {
  padding: 9px 18px; border-radius: var(--radius-pill); border: 1.5px solid #cfd6d2; font-size: 14px; font-weight: 600; color: var(--ink);
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast), transform var(--dur-base) var(--ease-out);
}
.pill-nav a:hover { border-color: var(--green-header-2); color: var(--green-header-2); background: #eef7f1; transform: translateY(-2px); }
.project-details { display: grid; gap: 70px; }
.project-detail { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; scroll-margin-top: 140px; }
.project-detail.flip .photo { order: 2; }
.project-detail .photo { min-height: 320px; }
.project-detail h2 { color: var(--navy); font-weight: 800; font-size: clamp(24px, 2.6vw, 32px); text-transform: uppercase; }
.project-detail .lead { color: var(--green-deep); font-weight: 600; margin: 12px 0; font-size: 17px; }
.project-detail p { color: var(--ink); margin-bottom: 12px; }
.project-detail .project-actions { border: 0; padding-top: 8px; }

/* --- team --- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 280px)); justify-content: center; gap: 26px; margin-top: 50px; }
.team-card { text-align: center; background: var(--white); border-radius: 16px; padding: 34px 20px; box-shadow: 0 10px 30px rgba(47,44,82,.08); }
.avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px; background: #e3f1e8; color: var(--green-header-2); display: grid; place-items: center; font-weight: 800; font-size: 30px; }
.team-card h3 { color: var(--navy); font-weight: 800; }
.team-card p { color: var(--muted); font-size: 14px; }

/* --- CTA band --- */
.cta-band { background: linear-gradient(100deg, var(--green-header), var(--green-header-2)); color: var(--white); padding-block: 60px; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.cta-inner .hero-actions { margin-top: 0; }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); }

/* --- forms --- */
.form { background: var(--white); border-radius: 16px; padding: 36px; box-shadow: 0 14px 40px rgba(47,44,82,.10); display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; color: var(--navy); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 15px; padding: 12px 14px; border: 1.5px solid #d5dbd7; border-radius: 10px; color: var(--ink); background: #fbfcfb;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green-header-2); box-shadow: 0 0 0 3px rgba(31,157,108,.18); background: var(--white); }
.form .btn { align-self: flex-start; }
.form-note { font-size: 13px; color: var(--muted); }
.form-note a { color: var(--green-header-2); font-weight: 700; }
.amount-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.amount { flex: 1; min-width: 70px; padding: 10px; border-radius: 10px; border: 1.5px solid #d5dbd7; background: #fbfcfb; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); }
.amount.is-selected, .amount:hover { border-color: var(--green-header-2); background: #e3f1e8; color: var(--green-deep); }

/* --- accounts --- */
.account-card { background: var(--cream); border-radius: 14px; padding: 22px 24px; margin-top: 16px; border-left: 4px solid var(--green-header-2); }
.account-card h3 { color: var(--navy); font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.account-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 14px; }
.account-card dt { color: var(--muted); font-weight: 600; }
.account-card dd { color: var(--ink); font-weight: 600; }
#accounts { scroll-margin-top: 140px; }

/* --- lists --- */
.check-list { list-style: none; margin: 14px 0 20px; }
.check-list li { padding: 8px 0 8px 32px; position: relative; color: var(--ink); }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 10px; height: 6px; border-left: 3px solid var(--green-header-2); border-bottom: 3px solid var(--green-header-2); transform: rotate(-45deg); }
.contact-big { list-style: none; margin-top: 10px; }
.contact-big li { padding: 14px 0; border-bottom: 1px solid #e6e8ec; font-weight: 600; color: var(--ink); }
.contact-big li span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.contact-big a:hover { color: var(--green-header-2); }
.map { margin-top: 26px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--cream); box-shadow: 0 10px 30px rgba(47,44,82,.08); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.doc-list { list-style: none; margin-top: 30px; max-width: 640px; margin-inline: auto; }
.doc-list li { padding: 16px 20px; border-radius: 12px; background: var(--cream); margin-bottom: 10px; font-weight: 600; }
.doc-list a { color: var(--green-header-2); }

/* --- gallery / video --- */
.gallery { columns: 3 260px; column-gap: 18px; margin-top: 44px; }
.gallery figure { break-inside: avoid; margin: 0 0 18px; border-radius: 12px; overflow: hidden; background: #dfe9e2; }
.gallery img { width: 100%; height: auto; transition: transform var(--dur-slow) var(--ease-out); }
/* each .video sets --ar (width / height); flex-grow = ratio keeps a row at one height */
.video-rows { display: grid; gap: 28px; margin-top: 44px; }
.video-row { display: flex; gap: 24px; align-items: flex-start; }
.video { flex: var(--ar) 1 0; min-width: 0; }
.video video { display: block; width: 100%; height: auto; aspect-ratio: var(--ar); border-radius: 14px; background: #111; object-fit: cover; }
.video figcaption { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--ink); }

/* --- footer extras --- */
.newsletter { margin-top: 28px; }
.newsletter label { display: block; color: var(--white); font-weight: 800; font-size: 16px; margin-bottom: 10px; }
.newsletter-row { display: flex; border: 1.5px solid rgba(255,255,255,.5); border-radius: var(--radius-pill); padding: 4px 4px 4px 18px; max-width: 320px; }
.newsletter-row input { flex: 1; background: none; border: 0; color: var(--white); font: inherit; font-size: 14px; }
.newsletter-row input::placeholder { color: rgba(255,255,255,.55); }
.newsletter-row input:focus { outline: none; }
.newsletter-row button {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--green-header-2); color: var(--white); font-size: 22px; cursor: pointer;
  transition: background var(--dur-fast), transform var(--dur-base) var(--ease-out);
}
.newsletter-row button:hover { background: var(--green-deep); transform: rotate(90deg); }
.footer-legal { padding-block: 24px 0; font-size: 12px; color: #9a98b8; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }

/* --- floating buttons (WhatsApp bottom-left, back-to-top bottom-right) --- */
.float-btn {
  position: fixed; bottom: 20px; z-index: 50;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out), visibility var(--dur-base), background var(--dur-fast);
}
.float-wa { left: 20px; background: #25d366; }
.float-wa:hover { transform: scale(1.08); }
.float-top { right: 20px; background: var(--green-header-2); font-size: 22px; font-weight: 700; opacity: 0; visibility: hidden; transform: translateY(12px); }
.float-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.float-top:hover { background: var(--green-deep); }
.float-top.is-visible:hover { transform: translateY(-3px); }
.float-btn:active { transform: scale(.95); }
@media (prefers-reduced-motion: reduce) { .float-btn { transition: none; } }

/* --- form feedback + spam honeypot --- */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 14px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--green-deep); }
.form-status.is-error { color: #b42318; }
.newsletter .form-status { margin-top: 10px; max-width: 320px; }
.newsletter .form-status.is-ok { color: #9be3b5; }
.newsletter .form-status.is-error { color: #ffb4a8; }
form button[disabled] { opacity: .6; cursor: progress; }

/* --- responsive --- */
@media (max-width: 960px) {
  .nav-toggle { display: block; position: absolute; right: 4%; top: 22px; }
  .header-inner { align-items: flex-start; position: relative; }
  .header-right { display: none; width: 100%; }
  .header-right.is-open { display: flex; }
  .project-grid, .timeline, .faq-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .project-detail, .project-detail.flip { grid-template-columns: 1fr; }
  .project-detail.flip .photo { order: 0; }
  .hero-arrow { display: none; }
  .hero-home .hero-inner { grid-template-columns: 1fr; gap: 36px; padding-block: 56px 80px; }
  .hero-media { width: 100%; max-width: 560px; justify-self: center; aspect-ratio: 16 / 10; }
  .footer-bottom { padding-bottom: 96px; } /* keep the copyright clear of the floating buttons */
}
@media (max-width: 720px) {
  .video-row { flex-direction: column; }
  .video { flex: none; width: 100%; }
  .video-portrait { max-width: 340px; margin-inline: auto; }
}
@media (max-width: 520px) {
  .float-btn { width: 50px; height: 50px; bottom: 16px; }
  .float-wa { left: 16px; } .float-top { right: 16px; }
}

/* --- donate page (bank transfer only) --- */
.donate-wrap .section-sub { max-width: 720px; margin-inline: auto; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.account-card-wide { grid-column: 1 / -1; }
.account-card dd { font-family: "Montserrat", monospace; letter-spacing: .02em; user-select: all; }
.donate-note { margin-top: 36px; background: var(--white); border-radius: 14px; padding: 26px 28px; box-shadow: 0 10px 30px rgba(47,44,82,.08); }
.donate-note h3 { color: var(--navy); font-weight: 800; margin-bottom: 8px; }
.donate-note p { color: var(--ink); margin-bottom: 8px; }
.donate-note a:not(.btn) { color: var(--green-header-2); font-weight: 700; }
@media (max-width: 720px) { .account-grid { grid-template-columns: 1fr; } }

/* =====================================================
   MOTION PRINCIPLES: calm and purposeful
   1. Motion answers the visitor (hover, press, open) or reveals content (page load, scrolling,
      slide change). Nothing loops on its own; the home slider's autoplay pauses while the
      pointer or keyboard focus is on it.
   2. Three durations: fast 150ms (colour, press), base 250ms (hover lift, open/close),
      slow 600ms (entrances, slide changes, page load, photo zoom). The hero photo settles over 2x slow.
   3. Two curves: ease-out for things arriving or responding, ease-in-out for one slide replacing another.
   4. Small distances: cards lift 4px; buttons lift 2px and grow to 1.03; photos zoom to 1.05 inside
      their frame; entrances rise 24px. Pressed things shrink to .97.
   5. Only properties that never shift the layout: transform, opacity, colours, shadows.
   6. Things that appear together stagger by 80ms, at most 4 steps.
   7. prefers-reduced-motion: nothing moves, everything appears at once.
   ===================================================== */
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translate3d(0, var(--rise), 0); } }
@keyframes rise-sm { from { opacity: 0; transform: translate3d(0, 8px, 0); } }
@keyframes drop { from { opacity: 0; transform: translate3d(0, -8px, 0); } }

/* page load */
body { animation: fade var(--dur-slow) var(--ease-out) both; }
.page-head h1, .page-head p, .page-head .breadcrumb { animation: rise var(--dur-slow) var(--ease-out) both; }
.page-head p { animation-delay: var(--stagger); }

/* hero slider: slides cross-fade, the new text rises in line by line, the photo settles */
.hero-slide.is-active .hero-copy > * { animation: rise var(--dur-slow) var(--ease-out) both; }
.hero-slide.is-active .hero-copy > :nth-child(2) { animation-delay: var(--stagger); }
.hero-slide.is-active .hero-copy > :nth-child(3) { animation-delay: calc(var(--stagger) * 2); }
.hero-slide.is-active .hero-copy > :nth-child(4) { animation-delay: calc(var(--stagger) * 3); }
.hero-media img { transform: scale(1.06); transition: transform calc(var(--dur-slow) * 2) var(--ease-out); }
.hero-slide.is-active .hero-media img { transform: none; }

/* cards lift; their photos zoom inside the frame */
.project-card, .step, .card, .team-card, .faq {
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.project-card:hover, .step:hover, .card:hover, .team-card:hover { transform: translateY(var(--lift)); box-shadow: 0 22px 50px rgba(47, 44, 82, .16); }
.faq:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .25); }
.project-card:hover .photo > img, .news-card:hover .photo > img, .project-detail:hover .photo > img,
.photo-about:hover > img, .gallery figure:hover img { transform: scale(1.05); }
.card-icon, .avatar, .step-num { transition: transform var(--dur-base) var(--ease-out), background var(--dur-fast); }
.card:hover .card-icon, .team-card:hover .avatar { transform: scale(1.08); }
.step:hover .step-num { background: var(--green-deep); transform: scale(1.08); }

/* text links: an underline draws in from the left */
.card-link, .news-card > a, .topbar-item, .contact-big a, .form-note a, .donate-note a:not(.btn), .doc-list a, .footer-col li a, .breadcrumb a, .text-link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size var(--dur-base) var(--ease-out), color var(--dur-fast);
}
.card-link-block:hover .card-link, .news-card > a:hover, .topbar-item:hover, .contact-big a:hover,
.form-note a:hover, .donate-note a:not(.btn):hover, .doc-list a:hover, .footer-col li a:hover, .breadcrumb a:hover, .text-link:hover { background-size: 100% 2px; }
.footer-col ul:not(.contact-list) li::before { transition: transform var(--dur-base) var(--ease-out); }
.footer-col ul:not(.contact-list) li:hover::before { transform: translateX(4px) rotate(45deg) translateY(1px); }

/* FAQ: answers slide open (Chromium; elsewhere they open instantly) and fade in */
.faq::details-content {
  block-size: 0; overflow: clip;
  transition: block-size var(--dur-base) var(--ease-out), content-visibility var(--dur-base) allow-discrete;
}
.faq[open]::details-content { block-size: auto; }
.faq[open] p { animation: rise-sm var(--dur-base) var(--ease-out) both; }

/* mobile menu drops in; the burger turns into a close icon */
.header-right.is-open { animation: drop var(--dur-base) var(--ease-out); }
.nav-toggle span { transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* form messages */
.form-status:not(:empty) { animation: rise-sm var(--dur-base) var(--ease-out); }

/* scroll reveal: main.js adds .is-in as each block enters the screen (keep in sync with REVEAL there) */
@media (prefers-reduced-motion: no-preference) {
  .js :is(.section-title, .section-sub, .project-card, .step, .news-card, .card, .faq, .project-detail,
          .team-card, .gallery figure, .video, .account-card, .donate-note, .two-col > *, .cta-inner,
          .pill-nav, .center, .doc-list li):not(.is-in) {
    opacity: 0; transform: translate3d(0, var(--rise), 0);
  }
}
.js .is-revealing { transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: 1ms !important; transition-delay: 0s !important;
  }
}
@media print { .js * { opacity: 1 !important; transform: none !important; } }
