/* =========================================================
   EYF FUNDING PAGE — Premium Black & Gold
   File: css/funding.css
   Loaded after style.css. Only affects body.page-funding.
   ========================================================= */

.page-funding {
  background:
    radial-gradient(circle at 80% 2%, rgba(245, 197, 66, 0.08), transparent 24%),
    radial-gradient(circle at 10% 20%, rgba(184, 134, 11, 0.06), transparent 30%),
    var(--color-primary-black);
}

.page-funding .section-eyebrow {
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-metallic-gold);
}

/* -----------------------------
   1. Hero — text left, large £250,000 visual right (matches design).
   The supplied image is 16:9 with ~19% dark side-margins (faint ghost
   letters). We crop those off with object-fit:cover + a fixed aspect
   ratio so only the clean centred square shows, scaled up large, and
   fade its left edge into the page black for a seamless blend.
------------------------------ */
.funding-eyebrow-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--color-metallic-gold), rgba(212, 175, 55, 0.1));
}

.funding-hero-divider {
  width: 64px;
  height: 3px;
  margin: 24px 0 22px;
  border-radius: 2px;
  background: var(--gradient-gold);
}

/* We drive the hero image with a real <img>, so disable the shared
   background image + overlay that Home/Mission/About use. */
.page-funding .hero-bg::before,
.page-funding .hero-bg::after,
.is-loaded .page-funding .hero-bg::before {
  display: none;
}

.page-funding .hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(540px, 88vh, 760px);
  padding-top: clamp(36px, 7vh, 96px);
  padding-bottom: clamp(36px, 7vh, 96px);
}

.page-funding .hero .container {
  position: relative;
  z-index: 2;
}

.page-funding .hero-content {
  max-width: 540px;
}

.page-funding .hero-eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--color-bright-gold);
}

.page-funding .hero-title {
  font-size: clamp(38px, 5.4vw, 66px);
  font-weight: 800;
  line-height: 1.08;
}

.page-funding .hero-desc {
  color: var(--color-soft-white);
  max-width: 440px;
}

.page-funding .hero-desc strong {
  color: var(--color-bright-gold);
  font-weight: 700;
}

.page-funding .hero-actions .btn {
  text-transform: none;
  letter-spacing: 0.01em;
}

/* Large right-side visual (desktop) — cropped to the clean centre square,
   bled to the right edge, faded into black on its left. */
.funding-hero-img {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 54vw;
  max-width: 860px;
  height: auto;
  aspect-ratio: 1.06 / 1;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
  opacity: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 100%);
}

.is-loaded .funding-hero-img {
  animation:
    fundingImgIn 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards,
    fundingImgFloat 7s ease-in-out 1.4s infinite;
}

@keyframes fundingImgIn {
  from { opacity: 0; transform: translateY(-50%) translateX(60px); }
  to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

@keyframes fundingImgFloat {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 12px)); }
}

/* Tablet-landscape (1101–1200px): shrink the bled image and text column a
   little so the two never crowd each other. Keeps the hero side-by-side and
   cinematic (e.g. iPad Pro 11" landscape at 1194px). */
@media (min-width: 1101px) and (max-width: 1200px) {
  .funding-hero-img {
    width: 48vw;
    max-width: 600px;
  }

  .page-funding .hero-content {
    max-width: 470px;
  }
}

/* Tablet + mobile: image becomes a clean, fully-visible stacked block
   under the text (no crop, no mask) so nothing is ever hidden. */
@media (max-width: 1100px) {
  .page-funding .hero {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    padding-top: clamp(24px, 5vh, 56px);
    padding-bottom: clamp(40px, 6vh, 64px);
  }

  .funding-hero-img {
    position: static;
    transform: none;
    width: min(88%, 560px);
    max-width: 560px;
    aspect-ratio: auto;
    object-fit: contain;
    margin: 26px auto 8px;
    border-radius: var(--radius-lg);
    opacity: 1;
    -webkit-mask-image: none;
    mask-image: none;
    animation: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .funding-hero-img {
    opacity: 1;
    animation: none !important;
  }
}

/* -----------------------------
   2. Why EYF Exists banner
------------------------------ */
.funding-why-section {
  padding: clamp(8px, 2vw, 24px) 0;
}

.funding-why-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(28px, 3vw, 44px);
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)),
    rgba(8, 8, 8, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 241, 168, 0.07),
    0 24px 60px rgba(0, 0, 0, 0.45);
}

.funding-why-content {
  max-width: 460px;
}

.funding-why-title {
  margin-top: 12px;
  font-family: var(--font-main);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.14;
  color: var(--color-white);
}

.funding-why-title .gold {
  color: var(--color-bright-gold);
}

.funding-why-content p {
  margin-top: 16px;
  color: var(--color-muted);
  font-size: clamp(13.5px, 1vw, 15.5px);
  line-height: 1.7;
}

.funding-why-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: clamp(240px, 26vw, 340px);
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.4);
}

.funding-why-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.funding-why-card:hover .funding-why-media img {
  transform: scale(1.05);
}

/* -----------------------------
   3. Support cards
------------------------------ */
.funding-support-section {
  padding: clamp(40px, 5vw, 72px) 0 0;
}

.funding-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.funding-section-head .funding-eyebrow-line {
  width: 90px;
}

.funding-support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.funding-support-card {
  position: relative;
  overflow: hidden;
  padding: 30px 28px 34px;
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)),
    rgba(9, 9, 9, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 241, 168, 0.06),
    0 18px 46px rgba(0, 0, 0, 0.4);
  transition:
    transform var(--transition-smooth),
    border-color var(--transition-smooth),
    box-shadow var(--transition-smooth);
}

.funding-support-card:hover {
  transform: translateY(-10px);
  border-color: rgba(245, 197, 66, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 241, 168, 0.12),
    0 28px 70px rgba(212, 175, 55, 0.15);
}

/* Icon (left) + title (right) header row */
.funding-support-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.funding-support-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: radial-gradient(circle at 50% 40%, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.04));
  color: var(--color-metallic-gold);
  transition: transform var(--transition-smooth);
}

.funding-support-card:hover .funding-support-icon {
  transform: translateY(-4px);
}

.funding-support-icon svg {
  width: 28px;
  height: 28px;
}

.funding-support-card h3 {
  font-family: var(--font-main);
  font-size: clamp(21px, 1.7vw, 25px);
  font-weight: 700;
  line-height: 1.18;
  color: var(--color-white);
  margin: 0;
}

.funding-support-card h3 .gold {
  color: var(--color-bright-gold);
}

.funding-support-card p {
  color: var(--color-muted);
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 22px;
}

.funding-learn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-metallic-gold);
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.funding-learn-link:hover {
  gap: 12px;
  color: var(--color-bright-gold);
}

.funding-support-num {
  position: absolute;
  right: 22px;
  bottom: 14px;
  font-family: var(--font-main);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  line-height: 1;
  color: rgba(212, 175, 55, 0.16);
  letter-spacing: -0.02em;
  pointer-events: none;
}

/* -----------------------------
   4. Impact stats
------------------------------ */
.funding-impact-section {
  padding: clamp(40px, 5vw, 72px) 0;
}

.funding-impact-card {
  padding: clamp(28px, 3vw, 44px) clamp(20px, 2.5vw, 36px);
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse at 50% -10%, rgba(212, 175, 55, 0.1) 0%, transparent 55%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(8, 8, 8, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.funding-impact-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 32px;
}

.funding-impact-head .funding-eyebrow-line {
  width: 60px;
}

.funding-impact-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.funding-impact-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 8px 14px;
  position: relative;
}

.funding-impact-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  right: -9px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.funding-impact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.07);
  color: var(--color-metallic-gold);
}

.funding-impact-icon svg {
  width: 22px;
  height: 22px;
}

.funding-impact-stat strong {
  font-family: var(--font-main);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  line-height: 1.1;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.funding-impact-stat span {
  color: var(--color-muted);
  font-size: 12.5px;
  line-height: 1.45;
  max-width: 130px;
}

/* -----------------------------
   5. Bottom quote CTA
------------------------------ */
.funding-cta-section {
  padding: 0 0 clamp(56px, 7vw, 90px);
}

.funding-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: clamp(26px, 3vw, 40px) clamp(28px, 3vw, 48px);
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse at 85% 130%, rgba(212, 175, 55, 0.22) 0%, transparent 60%),
    var(--gradient-dark);
}

.funding-cta-quote {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 620px;
}

.funding-cta-quote .quote-mark {
  font-family: var(--font-heading);
  font-size: 60px;
  line-height: 0.8;
  color: var(--color-metallic-gold);
  opacity: 0.6;
  flex-shrink: 0;
}

.funding-cta-quote p {
  font-family: var(--font-main);
  font-size: clamp(16px, 1.6vw, 21px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-white);
}

.funding-cta-card .btn {
  flex-shrink: 0;
}

/* -----------------------------
   6. Responsive
------------------------------ */
@media (max-width: 1100px) {
  .funding-why-card {
    grid-template-columns: 1fr;
  }

  .funding-why-media {
    order: 2;
    min-height: clamp(220px, 50vw, 320px);
  }

  .funding-support-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Stats: 3 + 2 wrap nicely */
  .funding-impact-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 26px 18px;
  }

  .funding-impact-stat:nth-child(3)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .funding-support-grid {
    grid-template-columns: 1fr;
  }

  .funding-impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .funding-impact-stat::after {
    display: none !important;
  }

  .funding-cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .funding-cta-card .btn {
    width: 100%;
  }

  .funding-watch-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .funding-impact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .funding-impact-stat {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 16px;
  }

  .funding-impact-stat span {
    max-width: none;
  }

  .funding-cta-quote {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .funding-why-card:hover .funding-why-media img {
    transform: none;
  }
}

/* -----------------------------
   7. "Learn More" detail popup
------------------------------ */
.funding-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 3, 3, 0.74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.funding-modal-overlay[hidden] {
  display: none;
}

.funding-modal-overlay.is-open {
  opacity: 1;
}

.funding-modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse at 50% -10%, rgba(212, 175, 55, 0.14) 0%, transparent 55%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)),
    rgba(10, 10, 10, 0.98);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  text-align: center;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.funding-modal-overlay.is-open .funding-modal {
  transform: translateY(0) scale(1);
}

.funding-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--color-border-gold);
  background: rgba(212, 175, 55, 0.06);
  color: var(--color-soft-white);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.funding-modal-close svg {
  width: 18px;
  height: 18px;
}

.funding-modal-close:hover {
  background: var(--gradient-gold);
  color: var(--color-primary-black);
  transform: rotate(90deg);
}

.funding-modal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: radial-gradient(circle at 50% 40%, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
  color: var(--color-metallic-gold);
}

.funding-modal-badge svg {
  width: 26px;
  height: 26px;
}

.funding-modal-title {
  font-family: var(--font-main);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-white);
  margin-bottom: 14px;
}

.funding-modal-text {
  color: var(--color-soft-white);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 26px;
}

@media (prefers-reduced-motion: reduce) {
  .funding-modal-overlay,
  .funding-modal {
    transition: none;
  }
}
