/* ════════════════════════════════════════════════════════════════════════
   impact.css — iDive Ocean Impact module. Scoped under .ff-impact*.
   ISOLATED: loaded ONLY on pages that use impact components (the /impact/
   page, homepage band, and trip/course per-trip badge) — NOT site-wide.
   The site-wide footer badge is self-contained (inline styles in footer.html)
   so it needs neither this file nor impact.js. NEVER edit styles.css for this.
   Uses brand tokens from styles.css :root (--primary, --secondary, --accent…).
   ════════════════════════════════════════════════════════════════════════ */

:root {
  --ffi-ocean-1: #06b6d4;   /* cyan  */
  --ffi-ocean-2: #0d9488;   /* teal  */
  --ffi-deep:    #0f3a4d;   /* deep sea */
  --ffi-foam:    #ecfeff;
  --ffi-sand:    #f59e0b;
}

/* generic helpers */
.ff-impact-kg-unit { font-size: .42em; font-weight: 700; opacity: .85; letter-spacing: .04em; }

/* ── Per-trip badge (buy-box) — white morphic glass, matches .nav-drawer ── */
.ff-impact-trip-badge {
  display: flex; align-items: flex-start; gap: .6rem;
  margin-top: .9rem; padding: .8rem .9rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.6) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
          backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(6,95,120,0.14), inset 0 1px 0 rgba(255,255,255,0.6);
  font-size: .8rem; line-height: 1.35; color: #0f3a4d;
}
/* fallback where backdrop-filter is unsupported */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ff-impact-trip-badge { background: rgba(255,255,255,0.92); }
}
.ff-impact-trip-badge i { color: var(--ffi-ocean-2); margin-top: .12rem; font-size: .95rem; }
.ff-impact-trip-badge strong { color: var(--ffi-ocean-2); }
.ff-impact-trip-badge .ffi-free { color: var(--ffi-ocean-2); font-weight: 700; }

/* ── Homepage impact band ──────────────────────────────────────────────── */
.ff-impact-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 140% at 80% -10%, rgba(6,182,212,.18), transparent 60%),
    linear-gradient(165deg, #0a2f3d 0%, #0f3a4d 55%, #0b2b38 100%);
  color: #eafdff; padding: clamp(3rem, 7vw, 5.5rem) 1.25rem;
}
.ff-impact-band::before {           /* faint caustic wave line */
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.25), transparent),
                    radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,.18), transparent),
                    radial-gradient(1px 1px at 45% 80%, rgba(255,255,255,.15), transparent);
  pointer-events: none;
}
.ff-impact-band-inner {
  position: relative; max-width: 980px; margin: 0 auto; text-align: center;
}
.ff-impact-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #ffffff; margin-bottom: 1rem;
}
.ff-impact-eyebrow::before {
  content: "\f1b8";                       /* Font Awesome fa-recycle */
  font-family: "Font Awesome 6 Free"; font-weight: 900;
  font-size: 1.05em; line-height: 1; flex-shrink: 0;
}
.ff-impact-counter-wrap { line-height: 1; margin: .4rem 0 .6rem; }
.ff-impact-counter {
  font-family: 'Josefin Sans', sans-serif; font-weight: 700;
  font-size: clamp(3.4rem, 12vw, 7rem);
  background: linear-gradient(180deg, #ffffff 0%, #8fe9f7 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ff-impact-counter-unit { font-size: clamp(1.1rem, 3vw, 1.6rem); font-weight: 800; color: #67e8f9; letter-spacing: .03em; }
.ff-impact-band h2 {
  font-family: 'Josefin Sans', sans-serif; font-size: clamp(1.3rem, 3.4vw, 2rem);
  margin: .2rem 0 .6rem; color: #fff; font-weight: 700;
}
.ff-impact-band p.ff-impact-lead { font-size: clamp(1rem, 2.2vw, 1.15rem); color: #bfe9f2; max-width: 620px; margin: 0 auto 1.6rem; }
.ff-impact-pills { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-bottom: 1.8rem; }
.ff-impact-pill {
  background: rgba(255,255,255,.07); border: 1px solid rgba(103,232,249,.3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: 999px; padding: .5rem 1rem; font-size: .85rem; color: #d6f6fb;
  transition: transform .25s cubic-bezier(.4,0,.2,1), border-color .25s cubic-bezier(.4,0,.2,1), background .25s cubic-bezier(.4,0,.2,1);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ff-impact-pill { background: rgba(255,255,255,.12); }
}
@media (prefers-reduced-motion: no-preference) {
  .ff-impact-pill:hover { transform: translateY(-1px); border-color: rgba(103,232,249,.55); background: rgba(255,255,255,.12); }
}
@media (prefers-reduced-motion: reduce) {
  .ff-impact-pill:hover { border-color: rgba(103,232,249,.55); background: rgba(255,255,255,.12); }
}
.ff-impact-pill strong { color: #fff; font-weight: 800; }
.ff-impact-cta {
  display: inline-flex; align-items: center; gap: .55rem;
  background: linear-gradient(135deg, rgba(16,185,129,.96) 0%, rgba(6,182,212,.96) 50%, rgba(29,78,216,.96) 100%);
  color: #fff; font-weight: 800; text-decoration: none;
  padding: .85rem 1.6rem; border-radius: 100px; font-size: .95rem;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow:
    0 6px 18px rgba(29,78,216,.30),
    0 3px 10px rgba(16,185,129,.18),
    inset 0 1px 0 rgba(255,255,255,.26);
  transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s cubic-bezier(.4,0,.2,1), background .25s cubic-bezier(.4,0,.2,1);
}
@media (prefers-reduced-motion: no-preference) {
  .ff-impact-cta:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg,#0ea371 0%,#0891b2 50%,#1e40af 100%);
    box-shadow:
      0 12px 26px rgba(29,78,216,.42),
      0 5px 14px rgba(16,185,129,.22),
      inset 0 1px 0 rgba(255,255,255,.32);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ff-impact-cta:hover {
    background: linear-gradient(135deg,#0ea371 0%,#0891b2 50%,#1e40af 100%);
    box-shadow:
      0 12px 26px rgba(29,78,216,.42),
      0 5px 14px rgba(16,185,129,.22),
      inset 0 1px 0 rgba(255,255,255,.32);
  }
}

/* ════ /impact/ page ═══════════════════════════════════════════════════ */
.ff-impact-page { background: #f7fdfe; color: #0f3a4d; }

.ff-impact-hero {
  position: relative; overflow: hidden; text-align: center;
  /* top padding clears the fixed header (72px desktop / 60px mobile) */
  padding: clamp(6rem, 16vw, 8rem) 1.25rem clamp(3rem, 7vw, 5rem);
  background-color: #0b2b38;          /* fallback while the image loads */
  background-image:
    linear-gradient(165deg, rgba(8,42,55,.86) 0%, rgba(11,43,56,.66) 50%, rgba(8,42,55,.9) 100%),
    url('/wp-content/uploads/ff/impact-hero.webp');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  color: #eafdff;
}
.ff-impact-hero-inner { position: relative; max-width: 920px; margin: 0 auto; }
.ff-impact-hero h1 {
  font-family: 'Josefin Sans', sans-serif; font-weight: 700; color: #fff;
  font-size: clamp(1.8rem, 5vw, 3rem); margin: .6rem 0 1rem; line-height: 1.1;
}
.ff-impact-hero .ff-impact-subhead { font-size: clamp(1rem, 2.4vw, 1.2rem); color: #c2eaf2; max-width: 640px; margin: 0 auto; }
.ff-impact-updated { margin-top: 1.4rem; font-size: .78rem; color: #8fc3cf; }
.ff-impact-updated::before { content: '● '; color: #34d399; }

/* section shell */
.ff-impact-section { max-width: 1080px; margin: 0 auto; padding: clamp(2.6rem, 6vw, 4.5rem) 1.25rem; }
.ff-impact-section h2 {
  font-family: 'Josefin Sans', sans-serif; font-size: clamp(1.4rem, 3.4vw, 2rem);
  text-align: center; color: #0f3a4d; margin: 0 0 .5rem;
}
.ff-impact-section .ff-impact-sub { text-align: center; color: #4a6b75; max-width: 640px; margin: 0 auto 2.2rem; }

/* commitment callout */
.ff-impact-commit {
  background: linear-gradient(135deg, rgba(6,182,212,.1), rgba(13,148,136,.1));
  border: 1px solid rgba(6,182,212,.3); border-radius: 20px;
  padding: clamp(1.6rem, 4vw, 2.6rem); text-align: center;
}
.ff-impact-commit-big { font-family: 'Josefin Sans', sans-serif; font-weight: 700; font-size: clamp(1.6rem, 4.5vw, 2.6rem); color: var(--ffi-ocean-2); }
.ff-impact-commit-big strong { color: var(--ffi-deep); }
.ff-impact-commit .ffi-free-tag {
  display: inline-block; margin-top: .8rem; color: #fff;
  background: linear-gradient(135deg, rgba(16,185,129,.96) 0%, rgba(6,182,212,.96) 50%, rgba(29,78,216,.96) 100%);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow:
    0 4px 12px rgba(29,78,216,.20),
    0 2px 6px rgba(16,185,129,.10),
    inset 0 1px 0 rgba(255,255,255,.28);
  font-weight: 800; font-size: .8rem; letter-spacing: .05em; padding: .35rem .9rem; border-radius: 100px;
}

/* steps */
.ff-impact-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.ff-impact-step {
  background: linear-gradient(180deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.58) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
          backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255,255,255,.5); border-radius: 16px; padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(6,95,120,.08), inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s cubic-bezier(.4,0,.2,1), border-color .25s cubic-bezier(.4,0,.2,1);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ff-impact-step { background: rgba(255,255,255,.96); }
}
@media (prefers-reduced-motion: no-preference) {
  .ff-impact-step:hover {
    transform: translateY(-3px); border-color: rgba(6,182,212,.40);
    box-shadow: 0 14px 28px rgba(6,182,212,.14), 0 6px 14px rgba(15,23,42,.06), inset 0 1px 0 rgba(255,255,255,.6);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ff-impact-step:hover {
    border-color: rgba(6,182,212,.40);
    box-shadow: 0 14px 28px rgba(6,182,212,.14), 0 6px 14px rgba(15,23,42,.06), inset 0 1px 0 rgba(255,255,255,.6);
  }
}
.ff-impact-step-num {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; color: #fff; font-size: 1.05rem; margin-bottom: .9rem;
  background: linear-gradient(135deg, rgba(16,185,129,.96) 0%, rgba(6,182,212,.96) 50%, rgba(29,78,216,.96) 100%);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow:
    0 4px 12px rgba(29,78,216,.20),
    inset 0 1px 0 rgba(255,255,255,.28);
}
.ff-impact-step h3 { font-size: 1.05rem; margin: 0 0 .4rem; color: #0f3a4d; }
.ff-impact-step p { font-size: .9rem; color: #4a6b75; line-height: 1.5; margin: 0; }

/* stats strip */
.ff-impact-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.ff-impact-stat {
  text-align: center; border-radius: 16px; padding: 1.4rem 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.58) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
          backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 8px 32px rgba(6,95,120,.08), inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s cubic-bezier(.4,0,.2,1), border-color .25s cubic-bezier(.4,0,.2,1);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ff-impact-stat { background: rgba(255,255,255,.96); }
}
@media (prefers-reduced-motion: no-preference) {
  .ff-impact-stat:hover {
    transform: translateY(-3px); border-color: rgba(6,182,212,.40);
    box-shadow: 0 14px 28px rgba(6,182,212,.14), 0 6px 14px rgba(15,23,42,.06), inset 0 1px 0 rgba(255,255,255,.6);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ff-impact-stat:hover {
    border-color: rgba(6,182,212,.40);
    box-shadow: 0 14px 28px rgba(6,182,212,.14), 0 6px 14px rgba(15,23,42,.06), inset 0 1px 0 rgba(255,255,255,.6);
  }
}
.ff-impact-stat-num { font-family: 'Josefin Sans', sans-serif; font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.3rem); color: var(--ffi-ocean-2); line-height: 1; }
.ff-impact-stat-label { font-size: .8rem; color: #4a6b75; margin-top: .4rem; }

/* region bars */
.ff-impact-regions { max-width: 720px; margin: 0 auto; }
.ff-impact-region { margin-bottom: 1.1rem; }
.ff-impact-region-head { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: .4rem; }
.ff-impact-region-name { color: #0f3a4d; font-weight: 600; }
.ff-impact-region-kg { color: var(--ffi-ocean-2); font-weight: 800; }
.ff-impact-bar { height: 12px; background: #e2eef2; border-radius: 999px; overflow: hidden; }
.ff-impact-bar > span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--ffi-ocean-1), var(--ffi-ocean-2));
}

/* why-it-matters */
.ff-impact-why { background: #eef9fb; }
.ff-impact-why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; max-width: 880px; margin: 0 auto; }
.ff-impact-why-card {
  border-radius: 16px; padding: 1.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,.80) 0%, rgba(255,255,255,.60) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
          backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 8px 32px rgba(6,95,120,.08), inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s cubic-bezier(.4,0,.2,1), border-color .25s cubic-bezier(.4,0,.2,1);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ff-impact-why-card { background: rgba(255,255,255,.96); }
}
@media (prefers-reduced-motion: no-preference) {
  .ff-impact-why-card:hover {
    transform: translateY(-3px); border-color: rgba(6,182,212,.40);
    box-shadow: 0 14px 28px rgba(6,182,212,.14), 0 6px 14px rgba(15,23,42,.06), inset 0 1px 0 rgba(255,255,255,.6);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ff-impact-why-card:hover {
    border-color: rgba(6,182,212,.40);
    box-shadow: 0 14px 28px rgba(6,182,212,.14), 0 6px 14px rgba(15,23,42,.06), inset 0 1px 0 rgba(255,255,255,.6);
  }
}
.ff-impact-why-card i { color: var(--ffi-ocean-2); font-size: 1.5rem; margin-bottom: .7rem; }
.ff-impact-why-card h3 { font-size: 1.02rem; margin: 0 0 .4rem; color: #0f3a4d; }
.ff-impact-why-card p { font-size: .9rem; color: #4a6b75; line-height: 1.55; margin: 0; }
.ff-impact-why-card a { color: var(--ffi-ocean-2); font-weight: 700; text-decoration: none; }
.ff-impact-why-card a:hover { text-decoration: underline; }

/* honesty note */
.ff-impact-note {
  max-width: 720px; margin: 0 auto; text-align: center; font-size: .82rem;
  color: #6a8893; line-height: 1.6; padding: 0 1.25rem 1rem;
}

/* final CTA */
.ff-impact-final { text-align: center; padding-bottom: clamp(3rem, 7vw, 5rem); }
.ff-impact-final .ff-impact-cta { color: #fff; }

@media (max-width: 820px) {
  .ff-impact-steps { grid-template-columns: 1fr; }
  .ff-impact-stats { grid-template-columns: 1fr; }
  .ff-impact-why-grid { grid-template-columns: 1fr; }
}
