/* =========================================================
   WAS Association — Solidarity, dignity, transmission
   Lightweight, mobile-first, accessible stylesheet
   ========================================================= */

/* ---------- 1. Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover, a:focus-visible { color: var(--brand-dark); text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.6em;
  color: var(--heading);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.5vw + 1rem, 3.25rem); }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; margin: 0 0 1em; }
li + li { margin-top: 0.35em; }

hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* ---------- 2. Design tokens ---------- */
:root {
  --brand: #1d4ed8;            /* deep blue: trust, dignity, community */
  --brand-dark: #1e3a8a;
  --brand-light: #eef4ff;
  --accent: #d97706;           /* warm amber for CTAs */
  --accent-dark: #b45309;
  --heading: #0f172a;
  --text: #2c3a4f;
  --muted: #5b6a82;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --bg-soft: #fbfcfe;
  --border: #dde6f1;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.10);
  --radius: 12px;
  --radius-lg: 18px;
  --container: 1180px;
}

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 2.5vw, 1.75rem);
}
.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section--alt { background: var(--bg-alt); }
.section--brand { background: var(--brand-light); }

.section-header { text-align: center; max-width: 760px; margin: 0 auto 2.5rem; }
.section-header .eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.5rem;
}
.lead { font-size: 1.1rem; color: var(--muted); }
.text-center { text-align: center; }

/* ---------- 4. Skip link & a11y ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--heading);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; outline: 3px solid var(--accent); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- 5. Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--heading);
  letter-spacing: 0.02em;
}
.brand:hover, .brand:focus-visible { color: var(--brand); text-decoration: none; }
.brand-logo {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.nav-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
  align-items: center;
}
.nav-list a {
  display: inline-block;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  color: var(--heading);
  font-weight: 500;
  font-size: 0.96rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-list a:hover, .nav-list a:focus-visible, .nav-list a[aria-current="page"] {
  background: var(--brand-light);
  color: var(--brand-dark);
  text-decoration: none;
}

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch button {
  appearance: none;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.lang-switch button.is-active {
  background: var(--brand);
  color: #fff;
}

.menu-toggle {
  appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--heading);
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (min-width: 1040px) {
  .nav-list { display: flex; }
  .menu-toggle { display: none; }
}

.mobile-nav { display: none; border-top: 1px solid var(--border); background: #fff; }
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; padding: 0.5rem 0; margin: 0; }
.mobile-nav li + li { margin: 0; }
.mobile-nav a {
  display: block;
  padding: 0.85rem 1.25rem;
  color: var(--heading);
  font-weight: 500;
  border-bottom: 1px solid var(--bg-alt);
}
.mobile-nav a[aria-current="page"] {
  color: var(--brand-dark);
  background: var(--brand-light);
}
@media (min-width: 1040px) {
  .mobile-nav { display: none !important; }
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease,
    border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--accent-dark); color: #fff;
}

.btn--secondary {
  background: var(--brand); color: #fff;
}
.btn--secondary:hover, .btn--secondary:focus-visible {
  background: var(--brand-dark); color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--heading);
  border-color: var(--border);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: var(--bg-alt); color: var(--brand-dark); border-color: var(--brand);
}

.btn--lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-row--center { justify-content: center; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.7)),
    url("https://images.unsplash.com/photo-1559027615-cd4628902d4a?auto=format&fit=crop&w=1200&q=60")
      center/cover no-repeat;
  color: #fff;
  padding-block: clamp(4rem, 9vw, 7.5rem);
}
.hero h1 { color: #fff; max-width: 780px; margin-bottom: 1rem; }
.hero p {
  font-size: clamp(1.05rem, 1vw + 0.85rem, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 660px;
  margin-bottom: 2rem;
}
.hero .eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero--page { padding-block: clamp(3rem, 6vw, 5rem); }

.hero--elderly {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.7)),
    url("https://images.unsplash.com/photo-1559757148-5c350d0d3c56?auto=format&fit=crop&w=1200&q=60")
      center/cover no-repeat;
}
.hero--social {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.7)),
    url("https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&w=1200&q=60")
      center/cover no-repeat;
}
.hero--communities {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.7)),
    url("https://images.unsplash.com/photo-1529390079861-591de354faf5?auto=format&fit=crop&w=1200&q=60")
      center/cover no-repeat;
}
.hero--sewing {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.7)),
    url("https://images.unsplash.com/photo-1556905055-8f358a7a47b2?auto=format&fit=crop&w=1200&q=60")
      center/cover no-repeat;
}
.hero--involved {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.7)),
    url("https://images.unsplash.com/photo-1532009324734-20a7a5813719?auto=format&fit=crop&w=1200&q=60")
      center/cover no-repeat;
}
.hero--impact {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.7)),
    url("https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=1200&q=60")
      center/cover no-repeat;
}
.hero--donate {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.7)),
    url("https://images.unsplash.com/photo-1560252829-804f1aedf1be?auto=format&fit=crop&w=1200&q=60")
      center/cover no-repeat;
}
.hero--contact {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.7)),
    url("https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=1200&q=60")
      center/cover no-repeat;
}
.hero--about {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.7)),
    url("https://images.unsplash.com/photo-1573497019940-1c28c88b4f3e?auto=format&fit=crop&w=1200&q=60")
      center/cover no-repeat;
}

/* ---------- 8. Cards & grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin-top: 0.25rem; margin-bottom: 0.5rem; }
.card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-light);
  color: var(--brand-dark);
  display: grid; place-items: center;
  margin-bottom: 0.85rem;
  font-size: 1.4rem;
}
.card-link {
  margin-top: auto;
  padding-top: 0.75rem;
  font-weight: 600;
  color: var(--brand-dark);
}
.card-link::after { content: " →"; }

.media-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.media-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.media-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.media-card .body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.media-card h3 { margin-bottom: 0.4rem; }
.media-card .body p { color: var(--muted); margin-bottom: 1rem; }
.media-card .card-link { margin-top: auto; }

.split { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1.05fr 1fr; gap: 3rem; }
  .split--reverse > :first-child { order: 2; }
}
.split img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- 9. Stats ---------- */
.stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-block: 1rem 0;
}
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  text-align: center;
}
.stat .num {
  font-size: clamp(1.8rem, 2vw + 1rem, 2.5rem);
  font-weight: 800;
  color: var(--brand-dark);
  line-height: 1;
}
.stat .label { margin-top: 0.4rem; color: var(--muted); font-size: 0.95rem; }

/* ---------- 10. CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: grid;
  gap: 1.25rem;
  align-items: center;
}
@media (min-width: 760px) {
  .cta-banner { grid-template-columns: 1.4fr 1fr; gap: 2rem; }
}
.cta-banner h2 { color: #fff; margin-bottom: 0.4rem; }
.cta-banner p { color: rgba(255, 255, 255, 0.92); margin: 0; }
.cta-banner .btn-row { justify-content: flex-start; }
@media (min-width: 760px) {
  .cta-banner .btn-row { justify-content: flex-end; }
}
.cta-banner .btn--primary { background: #fff; color: var(--brand-dark); }
.cta-banner .btn--primary:hover { background: #fff7e6; color: var(--brand-dark); }
.cta-banner .btn--ghost { border-color: rgba(255,255,255,0.6); color: #fff; }
.cta-banner .btn--ghost:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; }

/* ---------- 11. Forms ---------- */
form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 700px) {
  .form-row--2 { grid-template-columns: 1fr 1fr; }
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--heading); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.18);
  outline: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.field--inline { flex-direction: row; align-items: flex-start; gap: 0.6rem; }
.field--inline input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px; height: 18px;
  accent-color: var(--brand);
}
.form-note { font-size: 0.9rem; color: var(--muted); }

/* ---------- 12. Donation amounts ---------- */
.amounts {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}
.amounts label { position: relative; cursor: pointer; }
.amounts input[type="radio"] { position: absolute; opacity: 0; inset: 0; }
.amounts span {
  display: block;
  text-align: center;
  padding: 0.85rem 0.5rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-weight: 700;
  background: #fff;
  color: var(--heading);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.amounts input[type="radio"]:checked + span,
.amounts label:hover span {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: var(--brand-light);
}
.amounts input[type="radio"]:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- 13. Lists with icons ---------- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 0.6rem;
}
.checklist li {
  position: relative;
  padding-left: 2rem;
  margin: 0;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 1.3rem; height: 1.3rem;
  border-radius: 50%;
  background: var(--brand-light)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>")
    center / 0.85rem 0.85rem no-repeat;
}

/* ---------- 14. FAQ / details ---------- */
.faq { display: grid; gap: 0.75rem; }
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.25rem 1.1rem;
}
.faq summary {
  cursor: pointer;
  padding: 0.85rem 0;
  font-weight: 600;
  color: var(--heading);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--brand);
  font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq details > p, .faq details > ul { margin: 0 0 1rem; color: var(--muted); }

/* ---------- 15. Footer ---------- */
.site-footer {
  background: var(--heading);
  color: #cdd6e8;
  padding-block: 3rem 1.5rem;
  margin-top: 3rem;
}
.site-footer a { color: #e0e8f4; }
.site-footer a:hover, .site-footer a:focus-visible { color: #fff; }

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.footer-grid li { margin: 0; }
.footer-brand p { color: #aab5c8; font-size: 0.95rem; max-width: 360px; }
.footer-brand .brand { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #98a3b9;
}
.legal-block { color: #98a3b9; font-size: 0.88rem; line-height: 1.7; }
.legal-block strong { color: #d2dbed; }

/* ---------- 16. Misc ---------- */
.tag {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand-dark);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.callout {
  background: var(--brand-light);
  border-left: 4px solid var(--brand);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }

address { font-style: normal; line-height: 1.7; color: var(--text); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media print {
  .site-header, .site-footer, .hero, .btn, .cta-banner { display: none !important; }
  body { color: #000; background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
