/* =========================================================
   APF Fundraising Event Landing Pages
   Layout modelled on BHF event pages; colours & type from actionpf.org
   ========================================================= */

:root {
  --apf-purple: #8200b9;
  --apf-purple-dark: #5e238f;
  --apf-purple-deep: #3f1563;
  --apf-purple-tint: #f4ebf9;
  --apf-yellow: #ffd700;
  --apf-yellow-soft: #fbe36b;
  --apf-grey-bg: #f1f3f6;
  --apf-text: #4b494b;
  --apf-heading: #222022;
  --apf-white: #ffffff;
  --radius-lg: 32px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(63, 21, 99, 0.08);
  --max: 1180px;
  --font: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
/*html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--apf-text);
  background: var(--apf-grey-bg);
}*/
img { max-width: 100%; display: block; }
a { color: var(--apf-purple); }
a:hover { color: var(--apf-purple-dark); }
h1, h2, h3 { font-family: var(--font); color: var(--apf-heading); line-height: 1.15; margin: 0 0 .6em; }
h1 { font-weight: 600; font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-weight: 600; font-size: 1.3rem; }
p { margin: 0 0 1em; }
strong { font-weight: 600; color: var(--apf-heading); }
/*.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--apf-yellow); padding: 8px 16px; color: var(--apf-purple-deep); }*/



/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font); font-weight: 600; font-size: 1rem;
  text-decoration: none; border-radius: 999px;
  padding: .85em 1.8em; border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--apf-yellow); outline-offset: 3px; }
.btn-yellow { background: var(--apf-yellow); color: var(--apf-purple-dark); }
.btn-yellow:hover { background: var(--apf-yellow-soft); color: var(--apf-purple-deep); }
.btn-purple { background: var(--apf-purple); color: var(--apf-white); }
.btn-purple:hover { background: var(--apf-purple-dark); color: var(--apf-white); }
.btn-white { background: var(--apf-white); color: var(--apf-purple-dark); }
.btn-white:hover { background: var(--apf-yellow); color: var(--apf-purple-deep); }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- Header ---------- */
.site-header { background: var(--apf-white); position: relative; z-index: 10; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: var(--max); margin: 0 auto; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--apf-purple); font-weight: 600; font-size: 1.15rem; line-height: 1.1; }
.logo svg { width: 46px; height: 46px; flex: none; }
.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a { color: var(--apf-heading); text-decoration: none; font-weight: 400; font-size: .98rem; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--apf-purple); }
.main-nav a[aria-current] { font-weight: 600; }
.btn-donate { background: var(--apf-yellow); color: var(--apf-purple-dark); font-weight: 700; border-radius: var(--radius-sm); padding: .5em 1em; text-decoration: none; }
.btn-donate:hover { background: var(--apf-yellow-soft); color: var(--apf-purple-deep); }
.newsletter-strip { background: var(--apf-yellow); }
.newsletter-strip a { display: block; max-width: var(--max); margin: 0 auto; padding: 9px 24px; color: var(--apf-purple-dark); text-decoration: none; font-weight: 400; font-size: .95rem; }
.newsletter-strip a:hover { text-decoration: underline; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .85rem; padding: 14px 0 0; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: rgba(255,255,255,.7); }
.breadcrumb a { color: rgba(255,255,255,.88); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: #fff; }
.breadcrumb [aria-current] { color: #fff; font-weight: 500; }

/* ---------- Hero (BHF-style rounded colour block) ---------- */
.hero {
  background: var(--apf-purple);
  color: var(--apf-white);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  position: relative; overflow: hidden;
}
.hero::before, .hero::after { /* APF geometric triangle motif */
  content: ""; position: absolute; pointer-events: none;
}
.hero::before {
  width: 340px; height: 340px; left: -120px; bottom: -170px;
  background: var(--apf-yellow); transform: rotate(45deg); opacity: .95;
}
.hero::after {
  width: 260px; height: 260px; right: -130px; top: -130px;
  background: var(--apf-purple-dark); transform: rotate(45deg);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; padding: 28px 0 64px; }
.hero h1 { color: var(--apf-white); margin: 18px 0 16px; }
.hero .lede { font-size: 1.2rem; font-weight: 400; max-width: 30ch; margin-bottom: 28px; }
.pill {
  display: inline-block; background: var(--apf-white); color: var(--apf-purple-dark);
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
}
.hero-media { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Content panels (white rounded cards on grey) ---------- */
.panel {
  background: var(--apf-white);
  border-radius: var(--radius-lg);
  margin: 28px auto 0;
  width: calc(100% - 24px);
  max-width: 1400px;
  padding: 64px 0;
  box-shadow: var(--shadow);
}
.panel--flat { background: transparent; box-shadow: none; padding: 48px 0 24px; }
.panel h2.accent, .accent { color: var(--apf-purple); }
.eyebrow { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--apf-purple); margin-bottom: 10px; }

.intro-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.intro-grid .text { max-width: 62ch; }
.tagline {
  font-size: 1.3rem; font-weight: 600; color: var(--apf-purple);
  border-left: 5px solid var(--apf-yellow); padding: 4px 0 4px 18px; margin: 28px 0 0;
}

/* Key facts card (BHF side card) */
.facts-card {
  border: 1px solid #e4e0ea; border-radius: var(--radius-md);
  padding: 26px 26px 28px; box-shadow: var(--shadow); background: #fff;
  position: sticky; top: 24px;
}
.facts-card ul { list-style: none; margin: 0 0 22px; padding: 0; }
.facts-card li { display: flex; gap: 14px; align-items: flex-start; padding: 9px 0; font-weight: 400; color: var(--apf-heading); line-height: 1.4; }
.facts-card li + li { border-top: 1px solid #f0edf3; }
.facts-card svg { width: 22px; height: 22px; flex: none; color: var(--apf-purple); margin-top: 1px; }
.facts-card .btn { width: 100%; justify-content: center; }

/* Split: text + image */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split-media { order: -1; }
.split-media { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 3.4; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media.tall { aspect-ratio: 4 / 4.6; }

/* Step / option cards (BHF "How it works") */
.cards { display: grid; gap: 22px; margin-top: 32px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--apf-purple-tint); border-radius: var(--radius-md);
  padding: 26px 24px 30px; position: relative;
}
.card h3 { color: var(--apf-purple); margin: 14px 0 8px; }
.card p { margin: 0; font-size: .98rem; }
.card .step {
  display: inline-block; background: var(--apf-purple-dark); color: #fff;
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}
.cards-steps .card:not(:last-child)::after {
  content: ""; position: absolute; right: -24px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; z-index: 2;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e238f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.card-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--apf-yellow); display: grid; place-items: center; color: var(--apf-purple-dark); }
.card-icon svg { width: 24px; height: 24px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.info-box { background: var(--apf-grey-bg); border-radius: var(--radius-md); padding: 34px 34px 22px; }
.info-box h2 { font-size: 1.75rem; color: var(--apf-purple); }
.note {
  display: flex; gap: 12px; background: #fff8cc; border-radius: var(--radius-sm);
  padding: 14px 18px; font-size: .95rem; margin-top: 8px; color: var(--apf-heading); font-weight: 400;
}
.note svg { width: 20px; height: 20px; flex: none; color: var(--apf-purple-dark); margin-top: 3px; }

/* Tabs (BHF tabbed content) */
.tabs-nav { display: flex; gap: 6px; border-bottom: 1px solid #ddd6e4; margin-bottom: 36px; overflow-x: auto; }
.tabs-nav button {
  background: none; border: 0; font: inherit; font-weight: 500; font-size: 1rem; color: var(--apf-heading);
  padding: 14px 20px; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap;
}
.tabs-nav button[aria-selected="true"] { color: var(--apf-purple); border-bottom-color: var(--apf-purple); font-weight: 600; }
.tabs-nav button:focus-visible { outline: 3px solid var(--apf-yellow); outline-offset: -3px; }
.tab-panel[hidden] { display: none; }
.no-js .tab-panel[hidden] { display: block; }
.no-js .tabs-nav { display: none; }
.tab-panel + .tab-panel { margin-top: 0; }
.no-js .tab-panel + .tab-panel { margin-top: 48px; }
.tab-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }

.tick-list { list-style: none; margin: 0 0 1.4em; padding: 0; }
.tick-list li { position: relative; padding: 12px 0 12px 44px; border-bottom: 1px solid #efeaf3; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--apf-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e238f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.quote-box {
  background: var(--apf-purple-dark); color: #fff; border-radius: var(--radius-md);
  padding: 36px 34px; position: relative; overflow: hidden;
}
.quote-box::after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 120px; height: 120px; background: var(--apf-yellow); transform: rotate(45deg); }
.quote-box p { font-size: 1.45rem; font-weight: 500; line-height: 1.35; margin: 0; position: relative; z-index: 1; color: #fff; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.gallery figure { margin: 0; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1 / 1; background: #ddd; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.04); }

/* CTA band */
.cta-band {
  background: var(--apf-purple); color: #fff; text-align: center;
  border-radius: var(--radius-lg); margin: 28px auto 0; padding: 64px 0;
  width: calc(100% - 24px); max-width: 1400px;
  position: relative; overflow: hidden;
}
.cta-band::before { content: ""; position: absolute; width: 220px; height: 220px; left: -110px; top: -110px; background: var(--apf-yellow); transform: rotate(45deg); }
.cta-band::after { content: ""; position: absolute; width: 260px; height: 260px; right: -130px; bottom: -130px; background: var(--apf-purple-dark); transform: rotate(45deg); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band .container { max-width: 760px; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 60ch; margin: 0 auto 1em; font-size: 1.08rem; }
.cta-band .btn { margin-top: 14px; font-size: 1.1rem; }

/* Share */
.share { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 34px 0 40px; font-weight: 500; color: var(--apf-heading); }
.share a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--apf-purple-dark); color: #fff; }
.share a:hover { background: var(--apf-purple); }
.share svg { width: 18px; height: 18px; }

/* Footer */
.site-footer { background: var(--apf-purple-deep); color: rgba(255,255,255,.85); border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 56px 0 36px; font-size: .95rem; }
.site-footer h2 { color: #fff; font-size: 1.6rem; margin-bottom: 28px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 1px solid rgba(255,255,255,.2); padding-top: 28px; }
.footer-cols h3 { color: var(--apf-yellow); font-size: 1rem; margin-bottom: 12px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-small { margin-top: 36px; font-size: .82rem; color: rgba(255,255,255,.65); }

/* Hub page */
.event-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.event-tile { background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .2s ease; }
.event-tile:hover { transform: translateY(-4px); color: inherit; }
.event-tile .media { aspect-ratio: 16 / 9; overflow: hidden; }
.event-tile img { width: 100%; height: 100%; object-fit: cover; }
.event-tile .body { padding: 24px 28px 30px; }
.event-tile h3 { color: var(--apf-purple); font-size: 1.5rem; }
.event-tile .more { font-weight: 600; color: var(--apf-purple-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .intro-grid, .split, .tab-grid, .two-col { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split-media { order: 0; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: 1fr; }
  .cards-steps .card::after { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .facts-card { position: static; }
  .main-nav a:not(.btn-donate) { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .panel { padding: 44px 0; border-radius: 24px; }
  .hero { border-radius: 0 0 24px 24px; }
  .hero-grid { padding: 16px 0 48px; }
  .cards-4, .event-grid { grid-template-columns: 1fr; }
  .info-box { padding: 26px 22px 14px; }
  .footer-cols { grid-template-columns: 1fr; }
  .logo span { font-size: .98rem; }
  .logo svg { width: 38px; height: 38px; }
  .cta-band { border-radius: 24px; padding: 52px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- v2 additions ---------- */
.cards-5 { grid-template-columns: repeat(5, 1fr); }
.cards-5 .card { padding: 22px 18px 26px; }
.cards-3.cards-steps { grid-template-columns: repeat(3, 1fr); }
.note--health { background: var(--apf-purple-tint); }
.note--health svg { color: var(--apf-purple); }
.notes { display: grid; gap: 10px; margin-top: 8px; }
.notes .note { margin: 0; }
.pill--soon { background: var(--apf-yellow); color: var(--apf-purple-deep); }
.event-tile .tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--apf-yellow); color: var(--apf-purple-deep); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.soon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 28px; }
.soon-tile { background: var(--apf-purple-dark); color: #fff; border-radius: var(--radius-md); padding: 28px 30px; position: relative; overflow: hidden; }
.soon-tile::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 100px; height: 100px; background: var(--apf-yellow); transform: rotate(45deg); }
.soon-tile h3 { color: #fff; font-size: 1.4rem; margin-bottom: 4px; }
.soon-tile p { margin: 0; color: rgba(255,255,255,.85); }
.footer-cols ul.two-up { columns: 2; column-gap: 24px; }
@media (max-width: 1200px) { .cards-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 980px) { .cards-5, .cards-3.cards-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-5, .cards-3.cards-steps, .soon-grid { grid-template-columns: 1fr; } .footer-cols ul.two-up { columns: 1; } }
