/* EFT PAY — styles aligned with the EFT Corporation brand (eftcorp.com). */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin.woff2') format('woff2');
}

:root {
  --navy: #050c43;
  --navy-2: #1b2160;
  --navy-3: #50557b;
  --navy-4: #9b9eb4;
  --cobalt: #124fec;
  --cobalt-dark: #0d3cb8;
  --cobalt-4: #a0b9f7;
  --azure: #4f50b8;
  --grape: #7c00bf;
  --mauve: #530080;
  --lime: #c6fb50;
  --duck-egg: #f4f8ff;
  --white: #ffffff;
  --text: #1d2140;
  --muted: #50557b;
  --border: #e3e7f2;
  --danger: #b4232f;
  --danger-bg: #fdecee;
  --success: #116b3a;
  --success-bg: #e8f7ee;
  --warning-bg: #fff7e0;

  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius-sm: .5rem;
  --radius: 1rem;
  --radius-round: 100vw;
  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 1.75rem);
  --shadow: 0 .5rem 1.5rem rgba(5, 12, 67, .08);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: .01em;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, .h3, .h4, .h5 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .75rem;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 500; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); font-weight: 500; }
h3, .h3 { font-size: 1.375rem; }
h4, .h4 { font-size: 1.125rem; }
h5, .h5 { font-size: .9rem; letter-spacing: .06em; color: var(--cobalt); }
p { margin: 0 0 1rem; }
.lead { font-size: 1.125rem; color: var(--muted); }
.muted { color: var(--muted); font-size: .9rem; margin-top: 2rem; }

a { color: var(--cobalt); text-underline-offset: .2em; }
a:hover { color: var(--cobalt-dark); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 44rem; }

.visually-hidden, .skip-link:not(:focus) {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: .5rem; left: .5rem; z-index: 100;
  background: var(--white); padding: .5rem 1rem; border-radius: var(--radius-sm);
}

.icon { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.6rem; border-radius: var(--radius-round);
  font: inherit; font-weight: 600; font-size: .9rem; letter-spacing: .04em;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--cobalt); color: var(--white); }
.btn-primary:hover { background: var(--cobalt-dark); color: var(--white); }
.btn-outline { border-color: var(--cobalt); color: var(--cobalt); background: transparent; }
.btn-outline:hover { background: var(--cobalt); color: var(--white); }
.btn-outline-light { border-color: var(--white); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); }
.btn-accent { background: var(--lime); color: var(--navy); }
.btn-accent:hover { background: var(--white); color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--lime); color: var(--navy); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.text-link { font-weight: 600; text-decoration: none; }

/* Top bar & header ---------------------------------------------------------- */
.topbar { background: var(--navy); color: var(--navy-4); font-size: .8rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.5rem; }
.topbar-contact { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.topbar-contact span, .topbar-contact a { display: inline-flex; align-items: center; gap: .4rem; color: inherit; text-decoration: none; }
.topbar-contact a:hover { color: var(--white); }

.social { display: flex; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.social a {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem;
  border-radius: 50%; color: var(--white); background: rgba(255,255,255,.08);
}
.social a:hover { background: var(--cobalt); color: var(--white); }
.social .icon { width: 1rem; height: 1rem; }

.site-header { background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--white); }
.brand-name { font-weight: 700; font-size: 1.35rem; letter-spacing: .04em; }
.brand-name span { color: var(--lime); }

.site-nav ul { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .5rem .75rem; border-radius: var(--radius-round);
  color: var(--white); text-decoration: none; font-size: .875rem; font-weight: 500;
}
.site-nav a:hover { background: rgba(255,255,255,.1); color: var(--white); }
.site-nav a[aria-current="page"] { background: var(--cobalt); }
.site-nav a.nav-donate { border: 1.5px solid var(--lime); color: var(--lime); }
.site-nav a.nav-donate:hover, .site-nav a.nav-donate[aria-current="page"] { background: var(--lime); color: var(--navy); }

.nav-toggle {
  display: none; background: transparent; border: 1.5px solid rgba(255,255,255,.4);
  color: var(--white); border-radius: var(--radius-sm); padding: .4rem .5rem; cursor: pointer;
}
.nav-toggle .icon { width: 1.5rem; height: 1.5rem; }

@media (max-width: 68rem) {
  .js .nav-toggle { display: inline-flex; }
  .header-inner { flex-wrap: wrap; }
  .site-nav { width: 100%; padding-bottom: 1rem; }
  .site-nav ul { flex-direction: column; }
  .js .site-nav:not(.is-open) { display: none; }
}
@media (max-width: 40rem) {
  .topbar .social { display: none; }
}

/* Page title band ---------------------------------------------------------- */
.page-title {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 55%, var(--mauve) 100%);
  color: var(--white); padding: clamp(2.5rem, 7vw, 4.5rem) 0;
}
.page-title h1 { color: var(--white); margin-bottom: .5rem; }
.breadcrumb { display: flex; gap: .5rem; font-size: .875rem; color: var(--cobalt-4); }
.breadcrumb a { color: var(--white); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Hero ---------------------------------------------------------------------- */
.hero {
  background: radial-gradient(ellipse at 85% 20%, rgba(124,0,191,.45), transparent 55%),
              linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white); padding: clamp(3rem, 8vw, 6rem) 0;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { color: var(--white); }
.hero .lead { color: var(--cobalt-4); }
.eyebrow { font-size: .85rem; font-weight: 600; letter-spacing: .2em; color: var(--lime); margin-bottom: .75rem; }
.hero-media img { border-radius: var(--radius); box-shadow: 0 1.5rem 3rem rgba(0,0,0,.35); }
@media (max-width: 52rem) { .hero-inner { grid-template-columns: 1fr; } }

/* Sections & layout -------------------------------------------------------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section--compact { padding: clamp(2rem, 4vw, 3rem) 0; }
.section--tint { background: var(--duck-egg); }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto 2.5rem; }
.section-head p { color: var(--muted); }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 60rem) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--top { align-items: start; }
.split--reverse > .split-media { order: 2; }
.split-media { border-radius: var(--radius); width: 100%; object-fit: cover; box-shadow: var(--shadow); }
.split-media--plain { box-shadow: none; }
@media (max-width: 52rem) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > .split-media { order: 0; }
}

.stack { display: grid; gap: 1.5rem; }

/* Cards, panels, features ------------------------------------------------- */
.card, .panel {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.panel { padding: clamp(1.5rem, 3vw, 2rem); }
.card { overflow: hidden; display: flex; flex-direction: column; }
.card--media img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card-body { padding: 1.5rem; }
.card--centre { padding: 1.5rem; text-align: center; align-items: center; }
.card--centre img { width: 8rem; margin-bottom: 1rem; }
.card--centre p { flex: 1; }

.feature {
  display: block; padding: 1.75rem 1.5rem; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow);
  color: var(--text); text-decoration: none; transition: transform .15s, border-color .15s;
}
.feature:hover { transform: translateY(-3px); border-color: var(--cobalt); color: var(--text); }
.feature-icon {
  display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem; margin-bottom: 1rem;
  border-radius: 50%; background: var(--duck-egg); color: var(--cobalt);
}
.feature-icon .icon { width: 1.5rem; height: 1.5rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (prefers-reduced-motion: reduce) { .feature { transition: none; } .feature:hover { transform: none; } }

.media-row {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.5rem; align-items: start;
  background: var(--white); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--border);
}
.media-row p:last-child, .media-row .checklist:last-child { margin-bottom: 0; }
@media (max-width: 40rem) { .media-row { grid-template-columns: 1fr; } .media-row img { width: 5rem; } }

.checklist { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; }
.checklist .icon { color: var(--cobalt); width: 1.25rem; height: 1.25rem; margin-top: .15rem; }

.steps { list-style: none; counter-reset: step; margin: 1.5rem 0; padding: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3.25rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--cobalt); color: var(--white); font-weight: 700;
}
.steps p { margin: 0; color: var(--muted); }

.logo-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; align-items: center; }
.logo-strip img {
  background: var(--white); border-radius: var(--radius-sm); padding: .5rem;
  width: 100%; aspect-ratio: 12 / 5; object-fit: contain; border: 1px solid var(--border);
}
.logo-strip--nine { grid-template-columns: repeat(9, 1fr); }
.logo-strip--four { grid-template-columns: repeat(4, 1fr); max-width: 48rem; margin: 0 auto; }
@media (max-width: 60rem) { .logo-strip, .logo-strip--nine { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 30rem) { .logo-strip, .logo-strip--nine, .logo-strip--four { grid-template-columns: repeat(2, 1fr); } }

.qr { width: 12rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--white); }

/* Call to action band ------------------------------------------------------ */
.cta { background: var(--cobalt); color: var(--white); padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.cta--intro { background: linear-gradient(90deg, var(--cobalt) 0%, var(--azure) 100%); }
.cta--plain { background: var(--navy); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-text { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 500; line-height: 1.4; margin: 0; max-width: 52rem; }
.cta--plain .cta-inner { justify-content: center; text-align: center; }
@media (max-width: 52rem) { .cta-inner { flex-direction: column; align-items: flex-start; } }

/* Forms & notices ---------------------------------------------------------- */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .8rem; font-weight: 600; letter-spacing: .06em; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); width: 100%;
  padding: .75rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cobalt); outline: none; box-shadow: 0 0 0 3px rgba(18,79,236,.2); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.notice p:last-child { margin: 0; }
.notice--success { background: var(--success-bg); color: var(--success); }
.notice--error { background: var(--danger-bg); color: var(--danger); }
.notice--warning { background: var(--warning-bg); border-left: 4px solid #e0a800; }

.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info h3 { margin-top: 1.25rem; }
@media (max-width: 52rem) { .contact-grid { grid-template-columns: 1fr; } }

.map iframe { display: block; width: 100%; height: 22rem; border: 0; }

.summary { display: grid; gap: .5rem; margin: 1.5rem 0; padding: 1.25rem; background: var(--duck-egg); border-radius: var(--radius-sm); }
.summary div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; }
.summary dt { font-weight: 600; color: var(--navy); }
.summary dd { margin: 0; word-break: break-word; }
.result h2 { margin-bottom: 1rem; }

/* ACI COPY&PAY widget (style: plain) */
.wpwl-form { max-width: none; margin: 0 0 1rem; font-family: var(--font); }
.wpwl-label { font-weight: 600; color: var(--navy); }
.wpwl-control { border-radius: var(--radius-sm); border: 1.5px solid var(--border); }
.wpwl-button-pay { background: var(--cobalt); border-color: var(--cobalt); border-radius: var(--radius-round); font-weight: 600; padding: .75rem 1.75rem; }
.wpwl-button-pay:hover, .wpwl-button-pay:focus { background: var(--cobalt-dark); border-color: var(--cobalt-dark); }
.wpwl-custom-logo { max-width: 10rem; margin-bottom: 1rem; }

/* Footer ------------------------------------------------------------------- */
.site-footer { background: var(--navy); color: var(--navy-4); font-size: .925rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding-top: 3.5rem; padding-bottom: 3rem; }
.site-footer h2 { color: var(--white); font-size: 1rem; font-weight: 600; letter-spacing: .06em; margin-bottom: 1rem; }
.footer-subhead { margin-top: 1.5rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-links a { color: var(--navy-4); text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0; font-size: .825rem; }
@media (max-width: 60rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 36rem) { .footer-grid { grid-template-columns: 1fr; } }
