/* ============================================================
   WE AID INITIATIVE — Premium visual layer
   Loaded AFTER style.css and polish.css so it can override safely.
   ============================================================ */

/* ---------- 1. Typography drama ---------- */
h1, .hero h1 {
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.06;
}
h1 strong, .hero h1 strong { font-weight: 700; }
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
}
h2 {
  font-weight: 600;
  letter-spacing: -0.018em;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.3vw, 2.6rem);
  background: linear-gradient(180deg, var(--navy) 0%, #2a3d59 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-navy .section-head h2,
.section-navy h2,
.hero h1 {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: inherit;
}

/* Eyebrow gets a softer, more premium feel */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

/* ---------- 2. Hero — refine for max impact ---------- */
.hero {
  min-height: 720px;
}
.hero .lead {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.7;
  max-width: 56ch;
  color: #eef1f6;
  font-weight: 400;
}
.hero-meta {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 28px;
  margin-top: 44px;
}
.hero-meta strong {
  font-size: 1.85rem;
  background: linear-gradient(135deg, #fff 0%, #ffd1c9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero buttons — animated gradient sweep on primary */
.hero-cta .btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, #d8443a 50%, var(--red) 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  transition: background-position 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.25s, box-shadow 0.3s;
  box-shadow: 0 12px 32px -8px rgba(192, 57, 43, 0.55);
}
.hero-cta .btn-primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 18px 40px -8px rgba(192, 57, 43, 0.65);
}

/* ---------- 3. Section transitions — soft curve dividers ---------- */
.hero { padding-bottom: 120px; }
.hero + section { position: relative; margin-top: -80px; padding-top: 0; z-index: 3; }
.hero + section > .container { padding-top: 0; }

/* Subtle curved bottom on dark sections */
.section-navy {
  position: relative;
}
.section-navy::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--bg);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: scaleX(1.5);
}

/* ---------- 4. Stat cards — magazine-quality treatment ---------- */
.stats { gap: 18px; margin-top: -100px; }
.stat {
  padding: 28px 26px;
  border-radius: 16px;
  border-top: 0;
  box-shadow:
    0 1px 2px rgba(13, 27, 42, 0.04),
    0 8px 24px -6px rgba(13, 27, 42, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #fdfbf8 100%);
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, #e67c6f 50%, var(--red) 100%);
  background-size: 200% 100%;
  animation: statShimmer 3s ease-in-out infinite;
}
@keyframes statShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.stat .num {
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(180deg, var(--navy) 0%, #2b3e5c 70%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .label {
  font-size: 0.88rem;
  color: var(--slate);
  margin-top: 10px;
  line-height: 1.45;
  font-weight: 500;
}

/* ---------- 5. Impact-area cards — premium icon style ---------- */
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--red-tint) 0%, #fdd6cf 100%);
  box-shadow: inset 0 0 0 1px rgba(192, 57, 43, 0.1);
}
.card:hover .icon {
  background: linear-gradient(135deg, var(--red) 0%, #962e22 100%);
  box-shadow:
    inset 0 0 0 1px rgba(192, 57, 43, 0.4),
    0 8px 20px -6px rgba(192, 57, 43, 0.5);
}

/* ---------- 6. Section heads — center variant gets a flourish ---------- */
.section-head.center .eyebrow { padding-left: 0; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center .eyebrow::after,
.section-head.center .eyebrow {
  display: inline-block;
}

/* ---------- 7. Feature initiative blocks — premium media treatment ---------- */
.feature-media {
  border-radius: 20px;
  position: relative;
}
.feature-media::before {
  content: "";
  position: absolute;
  top: -16px; right: -16px;
  width: 70%; height: 70%;
  background: linear-gradient(135deg, var(--red-tint) 0%, transparent 100%);
  border-radius: 24px;
  z-index: -1;
}
.feature.reverse .feature-media::before {
  right: auto;
  left: -16px;
  background: linear-gradient(225deg, var(--red-tint) 0%, transparent 100%);
}

/* ---------- 8. Founder block on About — magazine layered shape ---------- */
section.section .grid.grid-2 img[alt*="Founder"],
section.section .grid.grid-2 img[alt*="Wakili"] {
  border-radius: 18px;
  position: relative;
  z-index: 2;
}
section.section .grid.grid-2 > div:has(img[alt*="Wakili"]) {
  position: relative;
}
section.section .grid.grid-2 > div:has(img[alt*="Wakili"])::before {
  content: "";
  position: absolute;
  top: 24px; left: 24px;
  width: calc(100% - 24px); height: calc(100% - 24px);
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  border-radius: 18px;
  z-index: 1;
  opacity: 0.9;
}

/* ---------- 9. Newsroom feature cards — refine ---------- */
article.card[style*="padding:0"] {
  border: 0;
  box-shadow: 0 1px 2px rgba(13,27,42,.05), 0 12px 32px -10px rgba(13,27,42,.12);
  border-radius: 18px;
}
article.card[style*="padding:0"]:hover {
  box-shadow: 0 4px 10px rgba(13,27,42,.06), 0 28px 56px -14px rgba(13,27,42,.22);
  transform: translateY(-6px);
}
article.card[style*="padding:0"] img {
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s;
  filter: saturate(0.9);
}
article.card[style*="padding:0"]:hover img {
  transform: scale(1.06);
  filter: saturate(1.1);
}

/* ---------- 10. Photo gallery — masonry-feel with hover crop pop ---------- */
.section-soft figure {
  position: relative;
  cursor: zoom-in;
  box-shadow: 0 1px 2px rgba(13,27,42,.04), 0 10px 24px -10px rgba(13,27,42,.15);
}
.section-soft figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13,27,42,.5) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.section-soft figure:hover::after { opacity: 1; }
.section-soft figure img { transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s; }
.section-soft figure:hover img { transform: scale(1.08); }

/* ---------- 11. CTA strip — premium gradient + shimmer ---------- */
.cta-strip {
  background:
    linear-gradient(135deg, var(--red) 0%, #a82d1f 50%, var(--red-dark) 100%);
  border-radius: 24px;
  padding: 72px 56px;
  position: relative;
  overflow: hidden;
}
.cta-strip::after {
  content: "";
  position: absolute;
  top: -50%; left: -10%;
  width: 60%; height: 200%;
  background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.08) 50%, transparent 60%);
  transform: rotate(8deg);
  animation: ctaSheen 7s ease-in-out infinite;
}
@keyframes ctaSheen {
  0%, 100% { transform: translateX(-100%) rotate(8deg); }
  50% { transform: translateX(200%) rotate(8deg); }
}
.cta-strip h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  background: linear-gradient(180deg, #fff 0%, #ffe5e0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}

/* ---------- 12. Page-hero (interior pages) — refined ---------- */
.page-hero {
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(192, 57, 43, 0.35) 0%, transparent 55%),
    linear-gradient(135deg, var(--navy) 0%, #16263c 100%);
  padding: 100px 0 80px;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  margin-bottom: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #d8dee9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero .lead { font-size: 1.15rem; }

/* ---------- 13. Donate page — account-card glow ---------- */
.account-card {
  background:
    linear-gradient(180deg, #ffffff 0%, #fefdfb 100%);
  box-shadow:
    0 1px 2px rgba(13, 27, 42, 0.04),
    0 8px 24px -8px rgba(13, 27, 42, 0.08);
  border: 1px solid rgba(229, 231, 235, 0.6);
}
.account-card:hover {
  box-shadow:
    0 4px 12px rgba(192, 57, 43, 0.08),
    0 24px 48px -12px rgba(13, 27, 42, 0.18);
}
.account-currency {
  background: linear-gradient(135deg, var(--red) 0%, #962e22 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}
.account-number {
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--bg-warm);
  border: 1px solid rgba(192, 57, 43, 0.08);
  padding: 6px 12px;
  transition: background-color 0.25s, transform 0.2s;
}
.account-card:hover .account-number {
  background: var(--red-tint);
  transform: scale(1.03);
}

/* ---------- 14. Partners — quiet, classy ---------- */
.partner {
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf8 100%);
  border: 1px solid rgba(229, 231, 235, 0.7);
  font-size: 0.92rem;
  color: var(--slate);
  letter-spacing: 0.01em;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.partner:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--red);
  color: var(--navy);
  box-shadow: 0 14px 32px -10px rgba(192, 57, 43, 0.25);
}

/* ---------- 15. Footer — premium dark refinement ---------- */
.site-footer {
  background: linear-gradient(180deg, #0a1421 0%, #050a14 100%);
  padding-top: 80px;
}
.site-footer h4 {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}
.footer-meta {
  font-size: 0.78rem;
  border-color: rgba(255, 255, 255, 0.06);
}

/* ---------- 16. The Citizen platform hero — extra cinematic ---------- */
.citizen-hero {
  background:
    radial-gradient(700px 400px at 15% 25%, rgba(192, 57, 43, 0.45) 0%, transparent 55%),
    radial-gradient(600px 350px at 85% 75%, rgba(30, 124, 58, 0.32) 0%, transparent 55%),
    linear-gradient(135deg, #0a1421 0%, #142336 50%, #1c3050 100%);
  min-height: 540px;
}
.citizen-hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

/* ---------- 17. Hero dot pagination — refined ---------- */
.hero-dots {
  bottom: 36px;
  padding: 6px 14px;
  background: rgba(13, 27, 42, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 999px;
}
.hero-dots button {
  background: rgba(255, 255, 255, 0.35);
}
.hero-dots button.is-active {
  width: 28px;
  height: 8px;
}

/* ---------- 18. Forms — refined fields ---------- */
.form-field input,
.form-field select,
.form-field textarea {
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.98rem;
  background: #fdfdfc;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  background: #ffffff;
  box-shadow:
    0 0 0 4px rgba(192, 57, 43, 0.12),
    0 8px 20px -6px rgba(192, 57, 43, 0.15);
}

/* ---------- 19. Buttons — subtle weight bump ---------- */
.btn {
  font-weight: 600;
  padding: 13px 26px;
  letter-spacing: 0.005em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, #d8443a 100%);
}

/* ---------- 20. Scroll-bar (Mac/iOS auto-hide is fine; only style desktop) ---------- */
@media (hover: hover) and (pointer: fine) {
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  ::-webkit-scrollbar-track {
    background: var(--bg-soft);
  }
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #c8c9cb 0%, #a0a3a8 100%);
    border-radius: 8px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
  }
}

/* ---------- 21. Body & global feel ---------- */
body {
  font-feature-settings: "ss01", "cv11";  /* Inter stylistic alternates for nicer numerals */
}
body { background: var(--bg); }

/* ---------- 22. Selection — match brand ---------- */
::selection { background: var(--red); color: #fff; text-shadow: none; }

/* ---------- 23. Sticky floating "Report an Issue" CTA ---------- */
.report-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red) 0%, #962e22 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  box-shadow:
    0 10px 28px -8px rgba(192, 57, 43, 0.55),
    0 4px 12px -2px rgba(0,0,0,0.15);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}
.report-fab:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    0 18px 36px -8px rgba(192, 57, 43, 0.65),
    0 6px 14px -2px rgba(0,0,0,0.2);
  text-decoration: none;
  color: #fff;
}
.report-fab .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.8);
  animation: fabPulse 2s infinite;
}
@keyframes fabPulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.8); }
  70% { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
@media (max-width: 600px) {
  .report-fab {
    bottom: 16px;
    right: 16px;
    padding: 12px 18px;
    font-size: 0.86rem;
  }
}
/* Don't show on the report page itself */
body.is-report-page .report-fab,
body.is-citizen-page .report-fab { display: none; }

/* ---------- 24. Utility-bar Report link ---------- */
.utility-bar .util-report {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 600;
  margin-right: 6px;
  transition: background .2s;
}
.utility-bar .util-report:hover {
  background: var(--red-dark);
  text-decoration: none;
  color: #fff;
}

/* ---------- 99. Honour reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .stat::before,
  .cta-strip::after { animation: none; }
}
