/**
 * ICIF Foundation — design system.
 *
 * Ported verbatim from the original single-widget build, then extended with the
 * mobile navigation, skip link, and footer styles the original was missing.
 * Fonts are enqueued from inc/enqueue.php, not imported here.
 */


/* =========================================================
   ICIF — PREMIUM FULL WIDTH LANDING PAGE
   Elementor Free / Single HTML Widget
   ========================================================= */

:root {
  --icif-deep: #020712;
  --icif-ink: #050b18;
  --icif-navy: #07162b;
  --icif-midnight: #0c2340;
  --icif-blue: #123b67;
  --icif-blue-soft: #1a4e83;
  --icif-teal: #42f2e8;
  --icif-teal-soft: #b8fff8;
  --icif-violet: #766cff;
  --icif-violet-soft: #b7b0ff;
  --icif-gold: #e3c36a;
  --icif-gold-soft: #ffe8a8;
  --icif-ivory: #f8f1df;
  --icif-cream: #fffaf0;
  --icif-white: #ffffff;
  --icif-charcoal: #101828;
  --icif-muted: #677083;
  --icif-muted-dark: rgba(248, 241, 223, 0.72);
  --icif-border-dark: rgba(126, 249, 242, 0.16);
  --icif-border-light: rgba(7, 22, 43, 0.1);
  --icif-shadow-dark: 0 34px 110px rgba(0, 0, 0, 0.34);
  --icif-shadow-light: 0 26px 80px rgba(7, 22, 43, 0.1);
  --icif-radius-xl: 38px;
  --icif-radius-lg: 30px;
  --icif-radius-md: 22px;
}

/* Full width force inside Elementor/theme wrappers */
.icif-page {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  overflow-x: clip !important;
}

/* Remove Elementor HTML widget padding when browser supports :has */
.elementor-widget-html:has(.icif-page),
.elementor-widget-html:has(.icif-page) .elementor-widget-container {
  margin: 0 !important;
  padding: 0 !important;
}

html {
  scroll-behavior: smooth;
}

.icif-page,
.icif-page * {
  box-sizing: border-box;
}

.icif-page {
  position: relative;
  isolation: isolate;
  font-family: "Inter", Arial, sans-serif;
  color: var(--icif-charcoal);
  background: var(--icif-deep);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.icif-page a {
  text-decoration: none !important;
}

.icif-page img {
  max-width: 100%;
  display: block;
}

.icif-page ::selection {
  background: rgba(66, 242, 232, 0.28);
  color: var(--icif-white);
}

/* Page-level atmosphere */
.icif-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 10%, rgba(66, 242, 232, 0.11), transparent 34%),
    radial-gradient(circle at 85% 20%, rgba(118, 108, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #020712, #07162b);
}

.icif-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.32;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 10%, black, transparent 76%);
  -webkit-mask-image: radial-gradient(circle at 50% 10%, black, transparent 76%);
}

/* Layout */
.icif-section {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 132px 28px;
}

.icif-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.icif-container-wide {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.icif-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  gap: 76px;
  align-items: center;
}

.icif-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.icif-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

/* Background sections */
.icif-dark {
  color: var(--icif-ivory);
  background:
    radial-gradient(circle at 50% -15%, rgba(66, 242, 232, 0.22), transparent 32%),
    radial-gradient(circle at 90% 20%, rgba(118, 108, 255, 0.18), transparent 30%),
    radial-gradient(circle at 8% 85%, rgba(227, 195, 106, 0.12), transparent 28%),
    linear-gradient(135deg, #020712 0%, #07162b 48%, #0c2340 100%);
}

.icif-dark-soft {
  color: var(--icif-ivory);
  background:
    radial-gradient(circle at 8% 12%, rgba(66, 242, 232, 0.12), transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(227, 195, 106, 0.1), transparent 34%),
    linear-gradient(180deg, #07162b 0%, #020712 100%);
}

.icif-light {
  color: var(--icif-charcoal);
  background:
    radial-gradient(circle at top right, rgba(66, 242, 232, 0.13), transparent 30%),
    radial-gradient(circle at bottom left, rgba(118, 108, 255, 0.08), transparent 30%),
    linear-gradient(180deg, #f8f1df 0%, #ffffff 100%);
}

.icif-white {
  color: var(--icif-charcoal);
  background:
    radial-gradient(circle at top left, rgba(118, 108, 255, 0.075), transparent 28%),
    radial-gradient(circle at bottom right, rgba(66, 242, 232, 0.08), transparent 28%),
    #ffffff;
}

.icif-dark::before,
.icif-dark-soft::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.86;
  background-image:
    linear-gradient(rgba(66, 242, 232, 0.034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 242, 232, 0.034) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(circle at 50% 18%, black 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 18%, black 0%, transparent 72%);
}

.icif-section-glow {
  position: absolute;
  width: 46vw;
  height: 46vw;
  border-radius: 999px;
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.22;
  z-index: 0;
}

.icif-glow-teal {
  background: radial-gradient(circle, var(--icif-teal), transparent 68%);
}

.icif-glow-gold {
  background: radial-gradient(circle, var(--icif-gold), transparent 70%);
}

.icif-glow-violet {
  background: radial-gradient(circle, var(--icif-violet), transparent 70%);
}

/* Typography */
.icif-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
  color: var(--icif-teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.icif-eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--icif-teal), transparent);
}

.icif-center .icif-eyebrow::before {
  background: linear-gradient(90deg, transparent, var(--icif-teal));
}

.icif-center .icif-eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--icif-teal), transparent);
}

.icif-heading,
.icif-heading-medium,
.icif-heading-small,
.icif-card h3,
.icif-quote blockquote,
.icif-proof strong,
.icif-impact-number {
  font-family: "Marcellus", Georgia, serif;
  font-weight: 400;
}

.icif-heading {
  margin: 0 0 28px;
  font-size: clamp(50px, 7.3vw, 108px);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.icif-heading-medium {
  margin: 0 0 24px;
  font-size: clamp(38px, 5.2vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.icif-heading-small {
  margin: 0 0 16px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.03;
  letter-spacing: -0.026em;
}

.icif-heading strong,
.icif-heading-medium strong,
.icif-heading-small strong {
  color: var(--icif-gold);
  font-weight: 400;
}

.icif-subtitle {
  max-width: 820px;
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.58;
  color: rgba(248, 241, 223, 0.86);
}

.icif-light .icif-subtitle,
.icif-white .icif-subtitle {
  color: var(--icif-muted);
}

.icif-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.82;
  color: inherit;
}

.icif-muted {
  color: var(--icif-muted);
}

.icif-dark .icif-muted,
.icif-dark-soft .icif-muted {
  color: var(--icif-muted-dark);
}

.icif-center {
  text-align: center;
}

.icif-center .icif-subtitle,
.icif-center .icif-text {
  margin-left: auto;
  margin-right: auto;
}

.icif-divider {
  width: 82px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--icif-gold), transparent);
  margin: 0 auto 30px;
}

/* Navigation */
.icif-topbar {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  padding: 14px 28px;
  background: rgba(2, 7, 18, 0.78);
  border-bottom: 1px solid rgba(66, 242, 232, 0.14);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.icif-nav {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.icif-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--icif-ivory);
}

.icif-nav-brand img {
  width: 49px;
  height: 49px;
  object-fit: contain;
  border-radius: 14px;
  filter: drop-shadow(0 0 16px rgba(66, 242, 232, 0.34));
}

.icif-nav-brand span {
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1;
}

.icif-nav-brand small {
  display: block;
  margin-top: 5px;
  color: var(--icif-gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}

.icif-nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.icif-nav-links a {
  color: rgba(248, 241, 223, 0.78);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: color 0.22s ease, transform 0.22s ease;
}

.icif-nav-links a:hover {
  color: var(--icif-teal);
  transform: translateY(-1px);
}

/* Buttons */
.icif-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.icif-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  transform: translateZ(0);
  transition:
    transform 0.26s ease,
    box-shadow 0.26s ease,
    background 0.26s ease,
    border-color 0.26s ease;
}

.icif-btn::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -20%;
  width: 42%;
  height: 320%;
  transform: rotate(24deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.36), transparent);
  opacity: 0;
  transition: left 0.7s ease, opacity 0.25s ease;
}

.icif-btn:hover::after {
  left: 118%;
  opacity: 1;
}

.icif-btn-primary {
  color: var(--icif-deep) !important;
  background: linear-gradient(135deg, var(--icif-gold-soft) 0%, var(--icif-gold) 48%, #cfa94a 100%);
  box-shadow:
    0 18px 46px rgba(227, 195, 106, 0.3),
    inset 0 0 0 1px rgba(255,255,255,0.18);
}

.icif-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 26px 62px rgba(227, 195, 106, 0.42),
    inset 0 0 0 1px rgba(255,255,255,0.22);
}

.icif-btn-secondary {
  color: var(--icif-ivory) !important;
  border: 1px solid rgba(66, 242, 232, 0.42);
  background: rgba(66, 242, 232, 0.065);
  box-shadow: inset 0 0 28px rgba(66, 242, 232, 0.04);
}

.icif-btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(66, 242, 232, 0.13);
  border-color: rgba(66, 242, 232, 0.58);
}

.icif-light .icif-btn-secondary,
.icif-white .icif-btn-secondary {
  color: var(--icif-navy) !important;
  border-color: rgba(7, 22, 43, 0.16);
  background: rgba(7, 22, 43, 0.04);
}

.icif-nav-cta {
  min-height: 42px;
  padding: 12px 20px;
  font-size: 13px;
}

a[href="STRIPE_DONATION_LINK_HERE"] {
  cursor: pointer;
}

/* Hero */
.icif-hero {
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  padding-top: 122px;
  padding-bottom: 122px;
}

.icif-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  margin-bottom: 25px;
  border: 1px solid rgba(66, 242, 232, 0.24);
  border-radius: 999px;
  background: rgba(66, 242, 232, 0.07);
  color: rgba(248, 241, 223, 0.86);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  box-shadow: inset 0 0 24px rgba(66, 242, 232, 0.035);
}

.icif-hero-kicker span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--icif-teal);
  box-shadow: 0 0 20px rgba(66, 242, 232, 0.95);
}

.icif-hero-visual {
  position: relative;
  min-height: 600px;
  border-radius: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, rgba(66, 242, 232, 0.24), transparent 35%),
    radial-gradient(circle at 70% 24%, rgba(118, 108, 255, 0.25), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,0.095), rgba(255,255,255,0.026));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow:
    0 54px 150px rgba(0, 0, 0, 0.42),
    inset 0 0 110px rgba(66, 242, 232, 0.065);
  overflow: hidden;
}

.icif-hero-visual::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid rgba(227, 195, 106, 0.28);
  box-shadow:
    0 0 74px rgba(66, 242, 232, 0.22),
    inset 0 0 70px rgba(118, 108, 255, 0.14);
  animation: icifPulse 5.4s ease-in-out infinite;
}

.icif-hero-visual::after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  background: radial-gradient(circle, rgba(66,242,232,0.28), transparent 68%);
  filter: blur(16px);
  animation: icifFloat 7.2s ease-in-out infinite;
}

.icif-orbit {
  position: absolute;
  inset: 21%;
  border-radius: 50%;
  border: 1px solid rgba(66, 242, 232, 0.2);
  animation: icifRotate 25s linear infinite;
}

.icif-orbit::before,
.icif-orbit::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--icif-gold);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(227, 195, 106, 0.9);
}

.icif-orbit::before {
  top: 7%;
  left: 20%;
}

.icif-orbit::after {
  bottom: 9%;
  right: 17%;
}

.icif-hero-logo {
  position: relative;
  z-index: 3;
  width: min(440px, 82%);
  height: auto;
  object-fit: contain;
  border-radius: 24px;
  filter:
    drop-shadow(0 0 30px rgba(66, 242, 232, 0.4))
    drop-shadow(0 0 44px rgba(227, 195, 106, 0.2));
}

/* Proof cards */
.icif-proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.icif-proof {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(66, 242, 232, 0.15);
  box-shadow: inset 0 0 34px rgba(66, 242, 232, 0.025);
}

.icif-proof strong {
  display: block;
  margin-bottom: 7px;
  color: var(--icif-gold);
  font-size: 28px;
  line-height: 1;
}

.icif-proof span {
  color: rgba(248, 241, 223, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

/* Cards */
.icif-card {
  position: relative;
  padding: 36px;
  border-radius: var(--icif-radius-lg);
  background: rgba(255,255,255,0.075);
  border: 1px solid var(--icif-border-dark);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 30px 92px rgba(0,0,0,0.25),
    inset 0 0 64px rgba(66, 242, 232, 0.025);
  overflow: hidden;
  transform: translateZ(0);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.icif-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(66, 242, 232, 0.08), transparent 34%),
    radial-gradient(circle at top right, rgba(227, 195, 106, 0.08), transparent 36%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.icif-card:hover {
  transform: translateY(-7px);
  border-color: rgba(66, 242, 232, 0.36);
  box-shadow:
    0 38px 118px rgba(0,0,0,0.32),
    0 0 42px rgba(66, 242, 232, 0.08),
    inset 0 0 70px rgba(66, 242, 232, 0.04);
}

.icif-card:hover::before {
  opacity: 1;
}

.icif-card > * {
  position: relative;
  z-index: 2;
}

.icif-light .icif-card,
.icif-white .icif-card {
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--icif-border-light);
  box-shadow: var(--icif-shadow-light);
}

.icif-card h3 {
  margin: 0 0 13px;
  font-size: 31px;
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: inherit;
}

.icif-card p {
  margin: 0;
  font-size: 15.8px;
  line-height: 1.75;
  color: rgba(248, 241, 223, 0.76);
}

.icif-light .icif-card p,
.icif-white .icif-card p {
  color: var(--icif-muted);
}

.icif-card strong {
  color: var(--icif-gold);
}

.icif-card-featured {
  background:
    radial-gradient(circle at top right, rgba(227,195,106,0.16), transparent 34%),
    rgba(255,255,255,0.09);
  border-color: rgba(227, 195, 106, 0.28);
}

/* Icons */
.icif-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 19px;
  color: var(--icif-deep);
  background: linear-gradient(135deg, var(--icif-teal-soft), var(--icif-teal));
  box-shadow: 0 18px 40px rgba(66, 242, 232, 0.22);
  font-weight: 950;
  letter-spacing: -0.04em;
}

/* Split / editorial cards */
.icif-split-card {
  padding: 46px;
  border-radius: var(--icif-radius-xl);
  background:
    radial-gradient(circle at top right, rgba(66, 242, 232, 0.09), transparent 34%),
    rgba(255,255,255,0.76);
  border: 1px solid rgba(7,22,43,0.08);
  box-shadow: var(--icif-shadow-light);
}

.icif-editorial-panel {
  position: relative;
  padding: 46px;
  border-radius: var(--icif-radius-xl);
  background:
    radial-gradient(circle at 20% 0%, rgba(66, 242, 232, 0.1), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(227, 195, 106, 0.08), transparent 34%),
    rgba(255,255,255,0.066);
  border: 1px solid rgba(66, 242, 232, 0.16);
  box-shadow: var(--icif-shadow-dark);
}

/* Timeline */
.icif-timeline {
  display: grid;
  gap: 22px;
}

.icif-timeline-item {
  position: relative;
  padding: 28px 28px 28px 84px;
  border-radius: 28px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(66,242,232,0.16);
  box-shadow: inset 0 0 44px rgba(66,242,232,0.025);
}

.icif-timeline-number {
  position: absolute;
  left: 26px;
  top: 28px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--icif-deep);
  background: linear-gradient(135deg, var(--icif-gold-soft), var(--icif-gold));
  font-weight: 950;
  box-shadow: 0 14px 32px rgba(227,195,106,0.24);
}

.icif-timeline-item h3 {
  margin: 0 0 8px;
  font-family: "Marcellus", Georgia, serif;
  font-size: 27px;
  font-weight: 400;
  letter-spacing: -0.018em;
}

.icif-timeline-item p {
  margin: 0;
  color: var(--icif-muted-dark);
  line-height: 1.68;
}

/* Light section timeline fix */
.icif-white .icif-timeline-item,
.icif-light .icif-timeline-item {
  background:
    radial-gradient(circle at top right, rgba(66, 242, 232, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(248,241,223,0.84));
  border: 1px solid rgba(7, 22, 43, 0.1);
  box-shadow:
    0 22px 60px rgba(7,22,43,0.08),
    inset 0 0 34px rgba(66,242,232,0.035);
}

.icif-white .icif-timeline-item h3,
.icif-light .icif-timeline-item h3 {
  color: var(--icif-navy) !important;
}

.icif-white .icif-timeline-item p,
.icif-light .icif-timeline-item p {
  color: #4b5563 !important;
}

/* Impact table */
.icif-impact-table-wrap {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 28px 86px rgba(7,22,43,0.09);
}

.icif-impact-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.icif-impact-table th,
.icif-impact-table td {
  padding: 25px 28px;
  text-align: left;
  border-bottom: 1px solid rgba(7,22,43,0.08);
  font-size: 16px;
}

.icif-impact-table th {
  color: var(--icif-ivory);
  font-weight: 950;
  background:
    radial-gradient(circle at top right, rgba(66,242,232,0.16), transparent 32%),
    var(--icif-navy);
}

.icif-impact-table td:first-child {
  width: 28%;
  font-weight: 950;
  color: var(--icif-navy);
}

.icif-note {
  margin-top: 30px;
  padding: 20px 24px;
  border-radius: 21px;
  background: rgba(227,195,106,0.13);
  border: 1px solid rgba(227,195,106,0.28);
  color: var(--icif-charcoal);
  font-size: 14px;
  line-height: 1.65;
}

/* Quote */
.icif-quote {
  max-width: 1060px;
  margin: 0 auto;
  text-align: center;
}

.icif-quote blockquote {
  margin: 0;
  padding: 0;
  border: none;
  font-size: clamp(38px, 4.9vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.icif-quote cite {
  display: block;
  margin-top: 32px;
  color: var(--icif-gold);
  font-style: normal;
  font-weight: 850;
}

/* FAQ */
.icif-faq-wrap {
  max-width: 980px;
  margin: 0 auto;
}

.icif-faq-item {
  padding: 30px 0;
  border-bottom: 1px solid rgba(7,22,43,0.12);
}

.icif-faq-item h3 {
  margin: 0 0 10px;
  color: var(--icif-navy);
  font-size: 21px;
}

.icif-faq-item p {
  margin: 0;
  color: var(--icif-muted);
  line-height: 1.78;
}

/* Footer */
.icif-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 26px;
}

.icif-footer-links a {
  color: var(--icif-navy);
  font-size: 14px;
  font-weight: 850;
}

.icif-footer-links a:hover {
  color: var(--icif-blue);
}

/* Reveal fallback */
[data-icif-reveal] {
  opacity: 1;
}

/* Animations */
@keyframes icifFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-17px) scale(1.045); }
}

@keyframes icifPulse {
  0%, 100% { transform: scale(1); opacity: 0.72; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes icifRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Responsive */
@media (max-width: 1080px) {
  .icif-nav-links {
    display: none;
  }

  .icif-grid-2,
  .icif-grid-3,
  .icif-grid-4,
  .icif-proof-row {
    grid-template-columns: 1fr;
  }

  .icif-grid-2 {
    gap: 42px;
  }

  .icif-section {
    padding: 94px 22px;
  }

  .icif-hero {
    min-height: auto;
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .icif-hero-visual {
    min-height: 420px;
    border-radius: 34px;
  }

  .icif-hero-logo {
    width: min(330px, 80%);
  }

  .icif-card,
  .icif-split-card,
  .icif-editorial-panel {
    padding: 30px;
    border-radius: 28px;
  }

  .icif-button-row {
    flex-direction: column;
  }

  .icif-btn {
    width: 100%;
  }

  .icif-impact-table-wrap {
    overflow-x: auto;
  }

  .icif-impact-table {
    min-width: 660px;
  }

  .icif-impact-table th,
  .icif-impact-table td {
    padding: 18px 16px;
    font-size: 14px;
  }

  .icif-nav-brand img {
    width: 42px;
    height: 42px;
  }

  .icif-nav-brand span,
  .icif-nav-brand small {
    font-size: 10px;
  }
}

@media (max-width: 560px) {
  .icif-topbar {
    padding: 12px 16px;
  }

  .icif-nav-cta {
    display: none;
  }

  .icif-section {
    padding: 78px 18px;
  }

  .icif-heading {
    font-size: clamp(44px, 13vw, 64px);
    letter-spacing: -0.05em;
  }

  .icif-heading-medium {
    font-size: clamp(34px, 10vw, 50px);
    letter-spacing: -0.04em;
  }

  .icif-subtitle {
    font-size: 17px;
  }

  .icif-text {
    font-size: 16px;
  }

  .icif-hero-visual {
    min-height: 340px;
    border-radius: 28px;
  }

  .icif-proof {
    padding: 20px;
  }

  .icif-timeline-item {
    padding: 26px;
  }

  .icif-timeline-number {
    position: static;
    margin-bottom: 16px;
  }

  .icif-nav-brand div {
    max-width: 190px;
  }

  .icif-nav-brand span,
  .icif-nav-brand small {
    white-space: nowrap;
  }
}

/* =========================================================
   SCROLL FIX — NATIVE, FAST, ELEMENTOR-FRIENDLY
   ========================================================= */

html,
body {
  overflow-x: hidden;
  overscroll-behavior-y: auto;
  touch-action: pan-y;
}

.icif-page {
  overflow-x: hidden !important;
  overflow-y: visible !important;
  touch-action: pan-y;
}

.icif-section {
  scroll-margin-top: 92px;
}


/* =========================================================
   ADDITIONS — accessibility, mobile navigation, footer
   ========================================================= */

/* Skip link: keyboard users reach the content without tabbing the whole nav. */
.icif-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--icif-gold);
  color: var(--icif-deep);
  font-weight: 800;
  border-radius: 0 0 12px 0;
}

.icif-skip-link:focus {
  left: 0;
}

/* Visible focus ring — the original build removed outlines everywhere. */
.icif-page a:focus-visible,
.icif-page button:focus-visible {
  outline: 2px solid var(--icif-teal);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --- Hamburger toggle ------------------------------------------------ */
.icif-nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--icif-border-dark);
  border-radius: 14px;
  background: rgba(8, 20, 38, 0.6);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.icif-nav-toggle-bars {
  display: block;
  width: 20px;
  height: 14px;
  position: relative;
}

.icif-nav-toggle-bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--icif-ivory);
  transition: transform 0.24s ease, opacity 0.18s ease;
}

.icif-nav-toggle-bars i:nth-child(1) { top: 0; }
.icif-nav-toggle-bars i:nth-child(2) { top: 6px; }
.icif-nav-toggle-bars i:nth-child(3) { top: 12px; }

.icif-nav-toggle.is-open .icif-nav-toggle-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.icif-nav-toggle.is-open .icif-nav-toggle-bars i:nth-child(2) { opacity: 0; }
.icif-nav-toggle.is-open .icif-nav-toggle-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- Mobile drawer ---------------------------------------------------- */
.icif-mobile-drawer {
  display: none;
  padding: 8px 20px 24px;
  background: rgba(2, 7, 18, 0.97);
  border-bottom: 1px solid var(--icif-border-dark);
  backdrop-filter: blur(14px);
}

.icif-mobile-drawer nav {
  display: flex;
  flex-direction: column;
}

.icif-mobile-drawer nav a {
  display: block;
  padding: 15px 4px;
  color: var(--icif-ivory);
  font-size: 16px;
  font-weight: 700;
  border-bottom: 1px solid rgba(126, 249, 242, 0.1);
}

.icif-mobile-drawer .icif-mobile-cta {
  display: block;
  margin-top: 20px;
  text-align: center;
}

body.icif-drawer-open {
  overflow: hidden;
}

/* --- Footer ----------------------------------------------------------- */
.icif-footer-brand {
  color: var(--icif-navy);
  margin-bottom: 26px;
}

.icif-footer-brand span {
  color: var(--icif-violet);
}

.icif-colophon {
  margin-top: 28px;
  font-size: 13px;
}

/* --- Prose (interior pages) ------------------------------------------- */
.icif-prose {
  max-width: 72ch;
}

.icif-prose p,
.icif-prose li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--icif-charcoal);
}

.icif-prose h2,
.icif-prose h3 {
  margin-top: 1.6em;
}

/* --- Responsive overrides --------------------------------------------- */
@media (max-width: 1080px) {
  /* The nav is hidden at this width, so the toggle must appear with it. */
  .icif-nav-toggle {
    display: inline-flex;
  }

  .icif-mobile-drawer {
    display: block;
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    transition: max-height 0.26s ease, padding 0.26s ease;
  }

  .icif-mobile-drawer.is-open {
    max-height: 80vh;
    overflow-y: auto;
    padding-top: 8px;
    padding-bottom: 24px;
  }

  .icif-mobile-drawer[hidden] {
    display: none;
  }
}

@media (max-width: 560px) {
  /* The header donate button is hidden at this width; the drawer carries it. */
  .icif-nav-toggle {
    display: inline-flex;
  }
}

/* Tap targets: the audit found footer and drawer links at 21px tall. */
@media (pointer: coarse) {
  .icif-footer-links a,
  .icif-mobile-drawer nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Inline email and phone links sit inside a paragraph, so they get vertical
     padding rather than a min-height that would break the line box. */
  .icif-footer .icif-muted a {
    display: inline-block;
    padding: 11px 0;
  }

  .icif-nav-brand {
    min-height: 44px;
  }
}

.icif-skip-link {
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* WCAG 2.2 AA (2.5.8 Target Size Minimum) asks for 24x24 CSS px. The desktop
   nav and footer links render as 16px-tall text, so they get vertical padding
   rather than a height that would break the flex row's alignment. */
.icif-nav-links a,
.icif-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding-block: 4px;
}


/* =========================================================
   HERO SCENE — WebGL emblem
   ========================================================= */

.icif-hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

/* The handover only happens once the scene has actually drawn a frame, so a
   failed context or a thrown error never leaves an empty panel. */
.icif-hero-scene-live .icif-hero-canvas {
  opacity: 1;
}

/* Quick handover. A slow crossfade showed the finished emblem, then dissolved
   it into dust before rebuilding it — the effect read backwards. Handing over
   fast makes the particles an arrival instead of a disintegration. */
.icif-hero-scene-live .icif-hero-logo {
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* The panel takes pointer events so the scene can read the cursor; the canvas
   itself stays transparent to clicks. */
[data-icif-hero-scene] {
  touch-action: pan-y;
}

@media (prefers-reduced-motion: reduce) {
  .icif-hero-canvas {
    display: none;
  }

  .icif-hero-scene-live .icif-hero-logo {
    opacity: 1;
  }
}
