@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root{
  --blue:#1e63d7;
  --blue-dark:#174ea6;
  --red:#e53935;
  --ink:#101828;
  --ink-2:#475467;
  --bg:#ffffff;
  --muted:#f3f6fb;
  --accent:#0ea5e9;
  --brand:#1e63d7;
  --radius:16px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
}

/* Layout helpers */
.container{max-width:1160px;margin:0 auto;padding:0 20px}
.link{color:var(--brand);text-decoration:none;font-weight:600}
.link:hover{text-decoration:underline}

/* Topbar */
.topbar{
  background:var(--muted);
  color:var(--ink-2);
  font-size:14px;
}
.topbar .container{display:flex;align-items:center;justify-content:space-between;padding:8px 20px}

/* Header */
.site-header{
  position:sticky;top:0;z-index:100;
  background:#fff;border-bottom:1px solid #eef2f7;
}
.header-inner{
  display:flex;align-items:center;gap:16px;justify-content:space-between;padding:14px 0;
}
.sticky-holder {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Optional: ensure a solid backdrop when overlapping content */
  background: #fff;
  border-bottom: 1px solid #eef2f7; /* matches your .site-header edge */
}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit;font-weight:800}
.brand img{height:70px;width:auto}
.brand span{font-size:18px}
.main-nav{display:flex;gap:18px;align-items:center}
.main-nav a{color:#111827;text-decoration:none;font-weight:600;font-size:15px}
.main-nav a:hover{color:var(--brand)}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 18px;border-radius:999px;border:2px solid transparent;
  font-weight:700;text-decoration:none;cursor:pointer;transition:.2s ease-in-out;
}
.btn-primary{background:var(--blue);color:#fff}
.btn-primary:hover{background:var(--blue-dark)}
.btn-outline{background:#fff;border-color:var(--blue);color:#1e63d7}
.btn-outline:hover{background:var(--muted)}
/* === Animated hover for red buttons (.btn-secondary) === */
.btn-secondary {
  background: var(--red);
  color: #fff;
  border: 2px solid var(--red);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-secondary:hover {
  background-color: #b91c1c; /* deeper red shade */
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.25); /* subtle lift effect */
}
.btn-lg{padding:14px 22px;font-size:18px}

/* === Add underline animation for outline buttons on hover === */
.btn-outline {
  position: relative;
  overflow: hidden;
  text-decoration: none; /* remove underline by default */
  transition: color 0.2s ease;
}

.btn-outline::after {
  content: "";
  position: absolute;
  left: 16px;                 /* same horizontal padding as button text */
  right: 16px;
  bottom: 8px;                /* sits just above bottom curve */
  height: 2px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease-in-out;
}

.btn-outline:hover::after {
  transform: scaleX(1);       /* reveal underline smoothly */
}

.btn-outline:hover {
  background: #eef5ff;        /* keep your existing hover bg */
  text-decoration: none;      /* ensure no full text underline */
}

/* Hero */
.hero{
  background:linear-gradient(135deg,#eaf2ff 0%,#ffffff 60%);
  border-bottom:1px solid #eef2f7;
}
.hero-inner{display:grid;grid-template-columns:1.1fr .9fr;gap:36px;padding:56px 0}
.hero-copy h1{font-size:44px;line-height:1.1;margin:0 0 12px}
.hero-copy p{font-size:18px;color:var(--ink-2)}
.hero .accent{color:var(--red)}
.hero-actions{margin-top:22px;display:flex;gap:12px;flex-wrap:wrap}

/* Hero image & placeholders */
.hero-media .img-placeholder,
.hero-media img.hero-img {
  border-radius: var(--radius);
  background: linear-gradient(135deg,#dbeafe,#f1f5f9);
  height: 300px;
  width: 100%;
  object-fit: cover;
  border: 1px dashed #cbd5e1;
  display: block;
}
.card-media .img-placeholder,
.card-media img {
  border-radius: var(--radius);
  height: 300px;
  width: 100%;
  object-fit: cover;
  display: block;
}
.split-media .img-placeholder{
  border-radius:var(--radius);
  background:linear-gradient(135deg,#dbeafe,#f1f5f9);
  height:300px;display:flex;align-items:center;justify-content:center;
  color:#334155;font-weight:700;border:1px dashed #cbd5e1;
}
.split-media{
  overflow: hidden;
  border-radius: var(--radius)
}
.split-media img {
  border-radius: var(--radius);
  height: 300px;
  width: 90%;
  object-fit: cover;   /* ✅ shows full image */
  object-position: center;
  display: block;
  border: 1px solid #cbd5e1;
}

/* .split-media img {
  border-radius: var(--radius);
  height: 300px;          
  width: 100%;
  object-fit: contain;    
  background: linear-gradient(135deg, #dbeafe, #f1f5f9); 
  display: block;
  border: 1px solid #cbd5e1;
  object-position: center center; 
} */

/* Donation */
.section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:16px}
.section-head h2{margin:0}
.donation{padding:56px 0;background:#fff}
.donation .donation-widget{
  background:var(--muted);padding:20px;border-radius:var(--radius);
  display:grid;gap:18px;border:1px solid #e5eaf1;
}
.donation fieldset{border:0;margin:0;padding:0}
.donation legend{font-weight:800;margin-bottom:8px}
.amounts{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.amount{
  background:#fff;border:1px solid #d0d8e4;border-radius:10px;
  padding:12px 16px;font-weight:800;cursor:pointer;min-width:72px;text-align:center;
}
.amount.active{background:var(--blue);color:#fff;border-color:var(--blue)}
.custom-amount{
  display:flex;align-items:center;background:#fff;border:1px solid #d0d8e4;border-radius:10px;padding:0 10px;
}
.custom-amount span{font-weight:800;color:#64748b}
.custom-amount input{border:0;outline:0;padding:12px 8px;width:120px;font-weight:700}
.frequency label{margin-right:16px}
.gift-aid{display:grid;grid-template-columns:auto 60px 1fr;gap:12px;align-items:center}
.gift-aid-note{margin:0;color:#475467}
.switch{position:relative;display:inline-block;width:54px;height:30px}
.switch input{display:none}
.slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background:#d1d5db;transition:.2s;border-radius:999px}
.slider:before{position:absolute;content:"";height:22px;width:22px;left:4px;top:4px;background:white;transition:.2s;border-radius:999px}
.switch input:checked + .slider{background:var(--blue)}
.switch input:checked + .slider:before{transform:translateX(24px)}
.donation-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.donation-selected{margin:0;color:var(--ink-2);font-weight:700}
.donation-footnote{color:#94a3b8;font-size:14px;margin-top:8px}

/* Cards */
.cards{padding:56px 0}
.card-grid{display:grid;gap:18px;grid-template-columns:repeat(3,1fr)}
.card{border:1px solid #eef2f7;border-radius:var(--radius);overflow:hidden;background:#fff}
.card-body{padding:16px}
.card h3{margin:0 0 6px}

/* Split CTA */
.cta-split{padding:56px 0;background:#fff}
.split{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:center}

/* Stats */
.stats{background:linear-gradient(180deg,#0b3b91, #1e63d7);color:#fff;padding:28px 0}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.stat{text-align:center;padding:14px}
.stat-value{font-weight:900;font-size:28px}
.stat-label{opacity:.9}

/* Banner */
.banner{padding:56px 0;background:linear-gradient(135deg,#fff3f3,#fff)}
.banner-inner{text-align:center}
.banner p{max-width:820px;margin:10px auto 16px}

/* Newsletter */
.newsletter{padding:56px 0;background:#fff}
.newsletter-inner{text-align:center}
.newsletter-form{margin-top:10px;display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.newsletter-form input{
  border:1px solid #cbd5e1;border-radius:999px;padding:12px 16px;min-width:260px;outline:0;
}

/* Footer (desktop) */
.site-footer{background:#0f172a;color:#e2e8f0;margin-top:32px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1.2fr 0.5fr;gap:28px;padding:28px 0}
.footer-grid h4{margin:0 0 8px}
.footer-grid .list{list-style:none;margin:0;padding:0}
.footer-grid .list li{margin:6px 0}
.footer-grid a{color:#a5b4fc;text-decoration:none}
.brand-footer img{height:32px}
.footer-bottom{border-top:1px solid #1f2a44;padding:12px 0;color:#93c5fd}
.footer-hosting { margin-top: 10px; }
.footer-hosting-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color: inherit; opacity:.9;
}
.footer-hosting-link:hover{ opacity:1; }
.footer-hosting-logo{ height:22px; width:auto; display:block; filter: brightness(0) invert(1);
  opacity: 0.95;}
.footer-hosting-text{ font-size:14px; color: #cbd5e1;}
.footer-hosting--mobile{display: flex;}
.footer-hosting-link{ justify-content:center; }

/* === Cookie Banner === */
.cookie-banner{
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  background: #0f172a; color: #e2e8f0; border-top: 1px solid #1f2a44;
  padding: 12px 0;
}
.cookie-banner__inner{ max-width:1160px; margin:0 auto; padding: 0 20px;
  display:flex; gap:16px; align-items:center; justify-content:space-between; flex-wrap:wrap;
}
.cookie-banner__text{ margin:0; font-size:14px; }
.cookie-banner__link{ color:#a5b4fc; text-decoration:none; }
.cookie-banner__link:hover{ text-decoration:underline; }
.cookie-banner__actions{ display:flex; gap:10px; }
@media (max-width:640px){
  .cookie-banner__inner{ align-items:stretch; }
  .cookie-banner__actions{ width:100%; justify-content:flex-end; }
}

/* Utilities */
.section-head p{color:var(--ink-2)}
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0
}

/* =========================
   MOBILE NAV: 3D HAMBURGER
   + OFF-CANVAS DRAWER
   ========================= */
.menu-toggle-wrap{
  display:none; /* hidden on desktop; shown in mobile mq */
  position: relative;
  align-items: center;
  justify-content: center;
}

/* 3D hamburger button (no backdrop) */
.menu-toggle{
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f3f4f6);
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 8px 18px rgba(2,6,23,.12),
    0 2px 6px rgba(2,6,23,.08);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.menu-toggle:hover{
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.95) inset,
    0 14px 28px rgba(2,6,23,.16),
    0 4px 10px rgba(2,6,23,.10);
}
.menu-toggle:active{
  transform: translateY(0);
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 8px 18px rgba(2,6,23,.14),
    0 2px 6px rgba(2,6,23,.10);
}

/* Drawer + backdrop */
.mobile-drawer{
  position:fixed;
  top:0;
  right:0;
  bottom:0;                 /* ensure it touches the bottom */
  height:100dvh;            /* fill mobile viewport including dynamic bars */
  min-height:100dvh;
  width:84vw;max-width:360px;
  background:
    radial-gradient(160px 90px at 12% 8%, rgba(30, 99, 215, 0.18), transparent 60%),
    radial-gradient(220px 140px at 88% 92%, rgba(30, 99, 215, 0.22), transparent 70%),
    linear-gradient(to bottom, #e6eeff 0%, #d4e1ff 65%, #bfd1ff 100%);
  transform: translateX(100%); /* fully off-screen when closed */
  transition:transform .25s ease;
  z-index:1000;outline:0;
  display:flex;
  flex-direction:column;
  padding:18px;
  padding-bottom: 0; /* iOS safe area */
  border-top-left-radius:16px;border-bottom-left-radius:16px;
  box-shadow:
    -18px 0 40px rgba(2,6,23,.16),
    -6px 0 18px rgba(2,6,23,.12);
  overflow-y:hidden;          /* scroll contents if taller than viewport */
  overscroll-behavior:contain;
}
.mobile-drawer[aria-hidden="false"]{ transform:translateX(0); }

.mobile-drawer nav {
  flex: 1 1 auto;           /* let nav fill available vertical space */
  overflow-y: auto;         /* only the nav area scrolls */
  padding-bottom: 20px;     /* ensures smooth scroll space above footer */
}

.drawer-close{
  align-self:flex-end;border:0;background:transparent;font-size:24px;cursor:pointer;padding:6px 8px;
}

/* ── Drawer brand header ───────────────────────────── */
.drawer-brand{
  display:flex;align-items:center;gap:12px;
  padding:4px 4px 12px 4px;margin:0 0 8px 0;
  text-decoration:none;color:#111827;border-bottom:none;
}
.drawer-brand img{height:36px;width:auto;display:block}
.drawer-brand strong{display:block;font-weight:900;font-size:16px;line-height:1.1}
.drawer-tagline{display:block;font-size:12px;color:#64748b;margin-top:2px}

/* ── Primary nav list ──────────────────────────────── */
.drawer-nav{margin-top:6px}
.drawer-list{list-style:none;margin:0;padding:0}
.drawer-list li{margin:0}
.drawer-list a{
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 12px;border-radius:12px;
  text-decoration:none;color:#111827;font-weight:700;
  background:transparent;transition:background .15s ease,color .15s ease,transform .05s ease;
}

.drawer-list a:hover{background: rgba(255, 255, 255, 0.15);color:var(--brand)}
.drawer-list a::after{
  content:"›";font-size:18px;line-height:1;opacity:.35;transition:opacity .15s ease
}
.drawer-list a:hover::after{opacity:.6}
.drawer-list a[aria-current="page"],
.drawer-list a.active{
  background: rgba(255, 255, 255, 0.25);color:var(--brand)
}

.drawer-nav ul, .drawer-extra ul{list-style:none;margin:0;padding:0}
.drawer-nav li{ border: 0 !important; }
.drawer-nav a{display:block;padding:14px 4px;text-decoration:none;color:#111827;font-weight:700}
.drawer-nav a:hover{color:var(--brand)}
.drawer-title{margin:14px 0 6px;font-weight:800;color:#475467;font-size:14px}

.drawer-backdrop{
  position:fixed;inset:0;background:rgba(2,6,23,.45);backdrop-filter:saturate(120%) blur(2px);
  z-index:999;
}

/* Footer-style key links pinned to bottom of the drawer */
.drawer-footer{
  /* push this section to the bottom */
  margin-top: auto;

  /* full-bleed panel to match site footer */
  background: #0f172a;           /* same as .site-footer */
  color: #e2e8f0;
  border-top: 1px solid rgba(30, 99, 215, 0.2);

  /* stretch to the drawer edges (your drawer has 18px padding) */
  margin-left: -18px;
  margin-right: -18px;

  /* keep the drawer’s rounded bottom-left corner */
  border-bottom-left-radius: 16px;

  /* comfortable padding + safe area on iOS */
  padding: 14px 18px;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}

/* Title styling (small caps vibe like a section label) */
.drawer-footer .drawer-title{
  margin: 0 0 8px;
  font-weight: 800;
  color: #a5b4fc;                /* subtle brand tint */
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Links look like the main footer (no underlines, tint color) */
.drawer-footer .drawer-keylinks{
  list-style: none; margin: 0; padding: 0;
}
.drawer-footer .drawer-keylinks li{ margin: 6px 0; }
.drawer-footer .drawer-keylinks a{
  color: #a5b4fc;                /* same as .footer-grid a */
  text-decoration: none;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 0;
  transition: color .15s ease;
}
.drawer-footer .drawer-keylinks a:hover{ color: #c7d2fe; }
.drawer-footer .drawer-charityno{ color: #e2e8f0; font-size: 14px; }


body.no-scroll{overflow:hidden}

/* =========================
   MOBILE FOOTER (compact)
   ========================= */
.footer-mobile-essentials{
  display:none;
  padding:18px 0; border-top:1px solid #1f2a44;
}
.footer-mobile-essentials .brand-footer img{height:28px}
.footer-mobile-essentials .brand-footer span{font-weight:800}
.footer-mobile-essentials .footer-tagline{margin:8px 0 4px;color:#cbd5e1;font-size:14px}
.footer-mobile-essentials .footer-charity{margin:4px 0;color:#93c5fd;font-size:14px}
.footer-mobile-essentials .footer-policy a{color:#a5b4fc;text-decoration:none;font-size:14px}

/* Donate as a CTA row */
.drawer-cta{
  background:var(--blue);color:#fff !important;justify-content:center;
  box-shadow:0 6px 14px rgba(30,99,215,.18),0 2px 6px rgba(30,99,215,.12);
}
.drawer-cta:hover{background:var(--blue-dark);color:#fff}

/* ── Key links section (footer-style) ─────────────── */
.drawer-section{margin-top:8px;padding-top:8px;border-top:1px solid #edf2f7}
.drawer-title{
  margin:12px 0 8px;font-weight:800;color:#475467;font-size:12px;
  letter-spacing:.04em;text-transform:uppercase
}
.drawer-keylinks{list-style:none;margin:0;padding:0}
.drawer-keylinks li{margin:6px 0}
.drawer-keylinks a{
  color:#a5b4fc;text-decoration:none;font-weight:700;
  display:inline-flex;align-items:center;gap:8px;
  padding:4px 0;transition:color .15s ease
}
.drawer-keylinks a:hover{color:#c7d2fe}
.drawer-charityno{color:#64748b;font-size:14px}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width:980px){
  .hero-inner{grid-template-columns:1fr}
  .split{grid-template-columns:1fr}
  .stats-grid{grid-template-columns:repeat(2,1fr)}
  .card-grid{grid-template-columns:repeat(2,1fr)}

  /* Hide desktop nav, show hamburger */
  .main-nav{display:none}
  .menu-toggle-wrap{display:inline-flex}

  /* Footer: collapse heavy grid, show compact footer */
  .footer-grid{display:none}
  .footer-mobile-essentials{display:block}

  /* Footer bottom sizing */
  .footer-bottom p{font-size:14px}
}

@media (max-width:640px){
  .card-grid{grid-template-columns:1fr}
  .stats-grid{grid-template-columns:1fr 1fr}
  
  .split-media img { height: 220px; }

  .footer-mobile-essentials .footer-tagline,
  .footer-mobile-essentials .footer-charity,
  .footer-mobile-essentials .footer-policy a{font-size:13px}
}