/* ==========================================================================
   Allan Chesang Foundation — Global Styles
   Minimalist, modern, accessible
   ========================================================================== */

:root {
  /* Palette derived from the ACF logo: navy, red, sky-blue & green */
  --green-900: #14204d; /* deep navy — headings, footer, overlays */
  --green-700: #1b2a5b; /* primary navy — buttons */
  --green-600: #24397e; /* navy hover / gradients */
  --green-500: #2e9be6; /* sky blue (logo heart) — focus, gradients */
  --green-100: #e8eefb; /* light navy/blue tint */
  --amber: #b01e2e;     /* logo red — CTAs & highlights */
  --amber-dark: #8f1626;
  --blue: #2e9be6;      /* logo sky blue — accent links */
  --blue-dark: #1f7fc4;
  --leaf: #37a93b;      /* logo green finger */
  --ink: #1f2937;
  --muted: #5b6470;
  --line: #e6e8ee;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(20, 32, 77, 0.06), 0 1px 2px rgba(20, 32, 77, 0.04);
  --shadow: 0 10px 30px rgba(20, 32, 77, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 32, 77, 0.14);
  --container: 1180px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset ------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--green-900);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  color: var(--muted);
}

section {
  padding: 5.5rem 0;
}

/* Layout helpers ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 3.2rem;
  text-align: center;
}

.section-head.left {
  margin-left: 0;
  text-align: left;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600);
  background: var(--green-100);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-head p {
  margin-top: 0.9rem;
  font-size: 1.05rem;
}

.bg-soft {
  background: var(--bg-soft);
}

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--green-600);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(27, 42, 91, 0.28);
}

.btn-primary:hover {
  background: var(--green-700);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(27, 42, 91, 0.36);
}

.btn-amber {
  background: var(--amber);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(176, 30, 46, 0.3);
}

.btn-amber:hover {
  background: var(--amber-dark);
  transform: translateY(-2px);
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}

.btn-blue:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.36);
}

.btn-outline {
  background: transparent;
  color: var(--green-700);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--green-600);
  color: var(--green-700);
  background: var(--green-100);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  color: var(--green-900);
}

.brand-logo {
  height: 46px;
  width: auto;
  display: block;
}

.site-footer .brand-logo {
  height: 52px;
  background: var(--white);
  padding: 0.4rem 0.7rem;
  border-radius: 10px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-600), var(--green-900));
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.brand-text span {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green-700);
  background: var(--green-100);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--green-900);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 5rem 0 6rem;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(47, 160, 110, 0.14), transparent),
    radial-gradient(700px 400px at 0% 100%, rgba(46, 155, 230, 0.12), transparent),
    var(--bg-soft);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content .eyebrow {
  margin-bottom: 1.2rem;
}

.hero-content h1 {
  margin-bottom: 1.3rem;
}

.hero-content h1 .hl {
  color: var(--green-600);
}

.hero-content p {
  font-size: 1.12rem;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 2.6rem;
}

.hero-stats {
  display: flex;
  gap: 2.4rem;
  flex-wrap: wrap;
}

.hero-stats .stat strong {
  display: block;
  font-size: 1.9rem;
  color: var(--green-900);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-stats .stat span {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
}

.hero-visual .img-main {
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.hero-badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--white);
  padding: 1rem 1.3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.hero-badge .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-600);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}

.hero-badge strong {
  display: block;
  font-size: 1.15rem;
  color: var(--green-900);
}

.hero-badge span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Marquee / partners strip ------------------------------------------------ */
.trust {
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
}

.trust p {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  font-weight: 700;
  color: var(--green-900);
  opacity: 0.55;
}

/* Focus cards ------------------------------------------------------------- */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.focus-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  transition: var(--transition);
}

.focus-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.focus-card .icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--green-100);
  color: var(--green-600);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin-bottom: 1.1rem;
}

.focus-card h3 {
  margin-bottom: 0.5rem;
}

.focus-card p {
  font-size: 0.94rem;
}

/* About preview ----------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.split-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.split-media img {
  border-radius: var(--radius);
  object-fit: cover;
  width: 100%;
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.split-media img:first-child {
  grid-row: span 2;
  aspect-ratio: 3 / 5;
}

.split-media img:nth-child(2),
.split-media img:nth-child(3) {
  aspect-ratio: 4 / 3;
}

.split-media.single {
  grid-template-columns: 1fr;
}

.split-media.single img:first-child {
  grid-row: auto;
  aspect-ratio: 4 / 3;
}

/* Program single-image media (program.html) */
.prog-media {
  grid-template-columns: 1fr;
  align-self: start;
}

.prog-media #prog-image {
  grid-row: auto;
  aspect-ratio: auto;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.split-content h2 {
  margin-bottom: 1.2rem;
}

.split-content p {
  margin-bottom: 1rem;
  font-size: 1.02rem;
}

.check-list {
  margin: 1.5rem 0 2rem;
  display: grid;
  gap: 0.8rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 500;
}

.check-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-600);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
}

/* Impact band ------------------------------------------------------------- */
.impact {
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.impact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 90% 0%, rgba(176, 30, 46, 0.22), transparent);
}

.impact .container {
  position: relative;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.impact-grid .stat strong {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.impact-grid .stat span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

/* Programs grid ----------------------------------------------------------- */
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.program-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
}

.program-card .body h3 {
  color: var(--ink);
}

.program-card .card-more {
  margin-top: auto;
  font-weight: 700;
  color: var(--blue);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.program-card:hover .card-more {
  gap: 0.7rem;
  color: var(--blue-dark);
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.program-card .thumb {
  height: 190px;
  background: var(--green-100);
  position: relative;
  overflow: hidden;
}

.program-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.program-card:hover .thumb img {
  transform: scale(1.06);
}

.program-card .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-700);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.program-card .body {
  padding: 1.4rem 1.5rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.program-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.5rem;
}

.program-card p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
  flex: 1;
}

.card-link {
  font-weight: 600;
  color: var(--blue);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.card-link:hover {
  gap: 0.7rem;
  color: var(--blue-dark);
}

/* Events / updates -------------------------------------------------------- */
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.event-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  transition: var(--transition);
}

.event-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: transparent;
}

.event-card .thumb {
  height: 210px;
  overflow: hidden;
}

.event-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-card:hover .thumb img {
  transform: scale(1.05);
}

.event-card .body {
  padding: 1.5rem;
}

.event-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--amber-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
  display: block;
}

.event-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.event-card p {
  font-size: 0.93rem;
  margin-bottom: 1rem;
}

/* CTA band ---------------------------------------------------------------- */
.cta-band {
  position: relative;
  background: linear-gradient(135deg, var(--green-600), var(--green-900));
  border-radius: 28px;
  padding: 3.5rem;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 260px at 15% 120%, rgba(176, 30, 46, 0.26), transparent);
}

.cta-band > * {
  position: relative;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 0.9rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 1.8rem;
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page hero (inner pages) ------------------------------------------------- */
.page-hero {
  background:
    radial-gradient(800px 400px at 80% -20%, rgba(47, 160, 110, 0.14), transparent),
    var(--bg-soft);
  padding: 3.5rem 0 4rem;
  text-align: center;
}

.page-hero .breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.page-hero .breadcrumb a:hover {
  color: var(--green-600);
}

.page-hero h1 {
  margin-bottom: 0.8rem;
}

.page-hero p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.08rem;
}

/* Objectives / values ----------------------------------------------------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  transition: var(--transition);
}

.value-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: transparent;
}

.value-card .num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--amber-dark);
  letter-spacing: 0.1em;
}

.value-card h3 {
  margin: 0.6rem 0 0.5rem;
  font-size: 1.15rem;
}

.value-card p {
  font-size: 0.94rem;
}

/* Donation ---------------------------------------------------------------- */
.donate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.donate-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  background: var(--white);
  transition: var(--transition);
  position: relative;
}

.donate-card.featured {
  border-color: var(--green-500);
  box-shadow: var(--shadow);
}

.donate-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
}

.donate-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.donate-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--green-100);
  color: var(--green-600);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}

.donate-card h3 {
  margin-bottom: 0.5rem;
}

.donate-card p {
  font-size: 0.94rem;
  margin-bottom: 1.3rem;
}

.donate-detail {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 1.3rem;
  font-size: 0.9rem;
}

.donate-detail .row {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  border-bottom: 1px dashed var(--line);
}

.donate-detail .row:last-child {
  border-bottom: none;
}

.donate-detail .row span:first-child {
  color: var(--muted);
}

.donate-detail .row span:last-child {
  font-weight: 600;
  color: var(--green-900);
}

.amount-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 1.4rem 0 1.8rem;
}

.amount-chip {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  color: var(--green-900);
}

.amount-chip:hover,
.amount-chip.active {
  border-color: var(--green-600);
  background: var(--green-100);
  color: var(--green-700);
}

/* Forms ------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info .info-item {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-info .info-item:last-child {
  border-bottom: none;
}

.contact-info .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-600);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-info h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: var(--green-900);
}

.contact-info p {
  font-size: 0.94rem;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  margin-bottom: 1.2rem;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-900);
  margin-bottom: 0.4rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg-soft);
  transition: var(--transition);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--green-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(47, 160, 110, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem;
  text-align: center;
}

.form-success {
  display: none;
  background: var(--green-100);
  color: var(--green-700);
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
}

.form-success.show {
  display: block;
}

/* Map --------------------------------------------------------------------- */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 340px;
  margin-top: 3rem;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer ------------------------------------------------------------------ */
.site-footer {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 1.8rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .brand {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-brand .brand-text strong {
  color: var(--white);
}

.footer-brand .brand-text span {
  color: rgba(255, 255, 255, 0.55);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
  max-width: 280px;
}

.social-row {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: var(--white);
  transition: var(--transition);
}

.social-row a:hover {
  background: var(--green-600);
  transform: translateY(-3px);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
  letter-spacing: 0.02em;
}

.footer-col ul {
  display: grid;
  gap: 0.7rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--amber);
}

.footer-contact li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.92rem;
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.8rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Reveal animation -------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-visual {
    order: -1;
    max-width: 420px;
    margin: 0 auto;
  }

  .focus-grid,
  .program-grid,
  .event-grid,
  .value-grid,
  .donate-grid,
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 760px) {
  section {
    padding: 3.8rem 0;
  }

  .nav-links,
  .nav-cta .btn-outline {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.2rem 1.5rem 1.8rem;
    box-shadow: var(--shadow);
    gap: 0.2rem;
    align-items: stretch;
  }

  .nav-links.open a {
    padding: 0.8rem 1rem;
  }

  .impact-grid,
  .focus-grid,
  .program-grid,
  .event-grid,
  .value-grid,
  .donate-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 2.5rem 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split-media img:first-child {
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
}

/* ==========================================================================
   EXPANDED SECTIONS
   ========================================================================== */

/* Cinematic hero ---------------------------------------------------------- */
.hero-cinematic {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  padding: 6rem 0 4rem;
}

.hero-cinematic .hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-cinematic .hero-bg img,
.hero-cinematic .hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero image slider ------------------------------------------------------- */
.hero-slider {
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.2s ease, transform 6s ease;
  will-change: opacity, transform;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-dots {
  position: absolute;
  bottom: 1.6rem;
  right: 2rem;
  display: flex;
  gap: 0.55rem;
  z-index: 2;
}

.hero-dots button {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.hero-dots button.active {
  background: var(--amber);
  width: 30px;
}

.hero-cinematic::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, rgba(20, 32, 77, 0.92) 0%, rgba(20, 32, 77, 0.72) 42%, rgba(20, 32, 77, 0.35) 100%);
}

.hero-cinematic .container {
  position: relative;
  z-index: 1;
}

.hero-cinematic .eyebrow {
  background: rgba(176, 30, 46, 0.18);
  color: #ff8f9e;
  border: 1px solid rgba(176, 30, 46, 0.4);
}

.hero-cinematic h1 {
  color: var(--white);
  max-width: 900px;
  margin-bottom: 1.4rem;
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  text-shadow: 0 2px 18px rgba(10, 16, 40, 0.6);
}

.hero-cinematic h1 .hl {
  color: var(--amber);
}

.hero-cinematic .lead {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.2rem;
  max-width: 620px;
  margin-bottom: 2.2rem;
  text-shadow: 0 1px 12px rgba(10, 16, 40, 0.55);
}

.hero-cinematic .hero-actions {
  margin-bottom: 3rem;
}

.hero-cinematic .hero-stats {
  gap: 2.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 2rem;
  max-width: 760px;
}

.hero-cinematic .hero-stats .stat strong {
  color: var(--white);
  font-size: 2.1rem;
  text-shadow: 0 1px 10px rgba(10, 16, 40, 0.55);
}

.hero-cinematic .hero-stats .stat span {
  color: rgba(255, 255, 255, 0.75);
}

.scroll-cue {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.4rem;
  animation: bob 1.8s ease-in-out infinite;
  z-index: 1;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* Impact strip (dark) ----------------------------------------------------- */
.impact-strip {
  background: var(--green-900);
  color: var(--white);
  padding: 3rem 0;
}

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

.impact-strip .stat strong {
  color: var(--amber);
}

/* Football feature -------------------------------------------------------- */
.football {
  position: relative;
  background: linear-gradient(135deg, #101a3e, #14204d);
  color: var(--white);
  overflow: hidden;
}

.football::before {
  content: "\26bd";
  position: absolute;
  right: -40px;
  top: -40px;
  font-size: 16rem;
  opacity: 0.05;
}

.football .split {
  align-items: center;
}

.football h2 {
  color: var(--white);
}

.football .eyebrow {
  background: rgba(176, 30, 46, 0.16);
  color: #ff8f9e;
}

.football p {
  color: rgba(255, 255, 255, 0.82);
}

.football-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.football-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.football-media .play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.football-media .play-badge span {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(176, 30, 46, 0.95);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.football-media:hover .play-badge span {
  transform: scale(1.08);
}

.football-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1.4rem;
  margin: 1.6rem 0 2rem;
}

.football-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.96rem;
}

.football-list li i {
  color: var(--amber);
  font-size: 0.85rem;
}

/* Countdown --------------------------------------------------------------- */
.countdown {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2rem 0;
}

.countdown .unit {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 92px;
  padding: 1.2rem 0.8rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.countdown .unit strong {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--green-900);
  line-height: 1;
  letter-spacing: -0.02em;
}

.countdown .unit span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* Tables (fixtures / standings) ------------------------------------------- */
.table-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-scroll {
  overflow-x: auto;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

table.data thead th {
  background: var(--green-900);
  color: var(--white);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.9rem 1rem;
  text-align: left;
  font-weight: 600;
}

table.data td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
  color: var(--ink);
}

table.data tbody tr:last-child td {
  border-bottom: none;
}

table.data tbody tr:hover {
  background: var(--bg-soft);
}

table.data .team {
  font-weight: 600;
  color: var(--green-900);
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fdecec;
  color: #d92d20;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.badge-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d92d20;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.badge-soft {
  background: var(--green-100);
  color: var(--green-700);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.pos-medal {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.8rem;
  background: var(--bg-soft);
  color: var(--muted);
}

.pos-medal.gold { background: #fff4d6; color: #b7791f; }
.pos-medal.silver { background: #eef1f4; color: #6b7280; }
.pos-medal.bronze { background: #f7e6d9; color: #b45309; }

/* Sub-tabs ---------------------------------------------------------------- */
.tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

.tab-btn {
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--green-900);
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  border-color: var(--green-500);
}

.tab-btn.active {
  background: var(--green-600);
  color: var(--white);
  border-color: var(--green-600);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fade 0.4s ease;
}

@keyframes fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Testimonials ------------------------------------------------------------ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.testi-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.testi-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.testi-video {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.testi-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testi-video .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(to top, rgba(20, 32, 77, 0.5), rgba(20, 32, 77, 0.05));
}

.testi-video .play i {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-700);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.testi-card:hover .play i {
  transform: scale(1.1);
  background: var(--amber);
}

.testi-body {
  padding: 1.5rem;
}

.testi-body p {
  font-size: 0.96rem;
  color: var(--ink);
  font-style: italic;
  margin-bottom: 1rem;
}

.testi-person {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.testi-person .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-600);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.testi-person strong {
  display: block;
  font-size: 0.92rem;
  color: var(--green-900);
}

.testi-person span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Gallery masonry --------------------------------------------------------- */
.masonry {
  columns: 4;
  column-gap: 1rem;
}

.masonry img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  break-inside: avoid;
  transition: var(--transition);
  cursor: pointer;
}

.masonry img:hover {
  filter: brightness(1.05);
  transform: scale(1.01);
  box-shadow: var(--shadow);
}

/* Program gallery + lightbox --------------------------------------------- */
.tile-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
  gap: 0.9rem;
}

.tile {
  padding: 0;
  border: none;
  margin: 0;
  background: var(--green-100);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.tile.tile-wide {
  grid-column: span 2;
  grid-row: span 2;
}

.tile::after {
  content: "\f00e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.5rem;
  background: rgba(20, 32, 77, 0.4);
  opacity: 0;
  transition: var(--transition);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.tile:hover img {
  transform: scale(1.08);
}

.tile:hover::after,
.tile:focus-visible::after {
  opacity: 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 16, 40, 0.9);
  display: grid;
  place-items: center;
  padding: 2rem;
  animation: lb-fade 0.25s ease;
}

.lightbox[hidden] {
  display: none;
}

@keyframes lb-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox img {
  max-width: min(1000px, 92vw);
  max-height: 88vh;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.6rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: rotate(90deg);
}

/* Partners carousel ------------------------------------------------------- */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: scroll-x 32s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track .logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--green-900);
  opacity: 0.6;
  white-space: nowrap;
  transition: var(--transition);
}

.marquee-track .logo:hover {
  opacity: 1;
}

.marquee-track .logo i {
  color: var(--green-500);
}

@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Progress / fundraising -------------------------------------------------- */
.fund-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.fund-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: var(--transition);
}

.fund-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.fund-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.fund-card .raised {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.fund-card .raised strong {
  color: var(--green-700);
}

.progress {
  height: 10px;
  background: var(--green-100);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.progress .bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-500), var(--amber));
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fund-card .pct {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-900);
}

/* Volunteer cards --------------------------------------------------------- */
.volunteer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.volunteer-card {
  text-align: center;
  padding: 2rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: var(--transition);
}

.volunteer-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.volunteer-card .icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: var(--green-100);
  color: var(--green-600);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.volunteer-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.volunteer-card p {
  font-size: 0.9rem;
  margin-bottom: 1.1rem;
}

/* Event calendar / timeline ---------------------------------------------- */
.calendar-list {
  display: grid;
  gap: 1rem;
  max-width: 820px;
  margin: 0 auto;
}

.cal-item {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 1.3rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  transition: var(--transition);
}

.cal-item:hover {
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.cal-date {
  text-align: center;
  background: var(--green-100);
  border-radius: var(--radius-sm);
  padding: 0.6rem;
}

.cal-date strong {
  display: block;
  font-size: 1.5rem;
  color: var(--green-900);
  line-height: 1;
}

.cal-date span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-600);
  font-weight: 600;
}

.cal-info h4 {
  font-size: 1.05rem;
  color: var(--green-900);
  margin-bottom: 0.2rem;
}

.cal-info p {
  font-size: 0.88rem;
}

.cal-info .cal-tag {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--amber-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Newsletter -------------------------------------------------------------- */
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-family: inherit;
  font-size: 0.9rem;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--amber);
}

.newsletter-form button {
  border: none;
  background: var(--amber);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: var(--amber-dark);
}

.footer-emergency {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-emergency strong {
  color: var(--amber);
}

.footer-map {
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 150px;
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.3);
}

/* Responsive for new sections -------------------------------------------- */
@media (max-width: 960px) {
  .impact-strip .impact-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem 1rem;
  }

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

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

  .masonry {
    columns: 3;
  }

  .tile-gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 170px;
  }

  .football-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .impact-strip .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testi-grid,
  .fund-grid,
  .volunteer-grid {
    grid-template-columns: 1fr;
  }

  .masonry {
    columns: 2;
    column-gap: 0.7rem;
  }

  .tile-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
    gap: 0.6rem;
  }

  .tile.tile-wide {
    grid-column: span 2;
    grid-row: span 1;
  }

  .cal-item {
    grid-template-columns: 64px 1fr;
  }

  .cal-item .btn {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .countdown .unit {
    min-width: 70px;
    padding: 0.9rem 0.5rem;
  }

  .countdown .unit strong {
    font-size: 1.8rem;
  }
}

/* ==========================================================================
   Senator's Swing Golf Series — Registration page
   ========================================================================== */
.reg-hero {
  position: relative;
  background-color: var(--green-900);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 5rem 0;
  overflow: hidden;
}

.reg-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(20, 32, 77, 0.9) 0%,
    rgba(20, 32, 77, 0.72) 45%,
    rgba(20, 32, 77, 0.4) 100%
  );
}

.reg-hero .container {
  position: relative;
  z-index: 1;
}

.reg-hero h1,
.reg-hero .breadcrumb,
.reg-hero > .container > p {
  color: var(--white);
}

.reg-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}

.reg-hero .breadcrumb a:hover {
  color: var(--white);
}

.reg-hero > .container > p {
  max-width: 620px;
  opacity: 0.92;
}

.reg-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.4rem 0 0.9rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.reg-hero .hero-actions {
  margin-top: 1.6rem;
}

.reg-edition {
  display: inline-block;
  margin: 0.4rem auto 0.9rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: var(--amber);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

/* Reusable photo fallback ------------------------------------------------- */
.photo-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 100%;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  background:
    repeating-linear-gradient(45deg, var(--bg-soft), var(--bg-soft) 12px, #eef1f7 12px, #eef1f7 24px);
}

.empty > .photo-fallback,
.champ-medal .photo-fallback {
  display: flex;
}

.photo-fallback i {
  color: var(--green-500);
}

/* About the tournament ---------------------------------------------------- */
.reg-about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.6rem;
  align-items: center;
}

.reg-about-text h2 {
  margin: 0.6rem 0 1rem;
}

.reg-about-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.reg-about-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--ink);
}

.reg-about-list i {
  color: var(--leaf);
}

.reg-about-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-soft);
}

.reg-about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Champion photo inside medallion ----------------------------------------- */
.champ-medal {
  position: relative;
  overflow: hidden;
}

.champ-medal img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Previous editions ------------------------------------------------------- */
.editions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}

.edition-card {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.edition-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.edition-card.featured {
  border-color: var(--amber);
}

.edition-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  overflow: hidden;
}

.edition-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edition-card figcaption {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.2rem;
}

.edition-card figcaption strong {
  color: var(--green-900);
  font-size: 1.02rem;
}

.edition-card figcaption span {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Event gallery ----------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-tile {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow-sm);
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-tile:hover img {
  transform: scale(1.06);
}

/* Sponsors ---------------------------------------------------------------- */
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2.4rem;
}

.sponsor-logo {
  position: relative;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  overflow: hidden;
}

.sponsor-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.sponsor-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
  padding: 1.8rem 2rem;
  border-radius: var(--radius);
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(46, 155, 230, 0.1), transparent),
    var(--green-100);
}

.sponsor-cta h3 {
  margin-bottom: 0.2rem;
}

.sponsor-cta p {
  margin: 0;
  font-size: 0.94rem;
}

@media (max-width: 760px) {
  .reg-about-grid {
    grid-template-columns: 1fr;
  }

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

.reg-section {
  padding-top: 3rem;
}

.reg-container {
  max-width: 860px;
}

.reg-card {
  padding: 2.6rem;
}

/* Wizard (multi-step) ----------------------------------------------------- */
.wizard-progress {
  margin-bottom: 1.8rem;
}

.wizard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.wizard-step-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green-600);
}

.wizard-save-note {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--leaf);
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.wizard-save-note.show {
  opacity: 1;
  transform: translateY(0);
}

.wizard-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--green-100);
  overflow: hidden;
}

.wizard-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-500), var(--green-600));
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-step-title {
  margin-top: 0.9rem;
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 600;
}

.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.6rem;
}

.wizard-nav .btn {
  min-width: 130px;
  justify-content: center;
}

/* When the wizard is active, a single step shows at a time */
#registration-form .reg-block {
  border-bottom: none;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Fieldset blocks --------------------------------------------------------- */
.reg-block {
  border: none;
  padding: 0 0 1.8rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--line);
}

.reg-block:last-of-type {
  border-bottom: none;
  margin-bottom: 0.5rem;
}

.reg-block legend {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-900);
  letter-spacing: -0.01em;
  margin-bottom: 1.1rem;
  width: 100%;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--green-600);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(27, 42, 91, 0.25);
}

.block-hint {
  font-size: 0.9rem;
  color: var(--muted);
  margin: -0.4rem 0 1.1rem;
}

.req {
  color: var(--amber);
  font-weight: 700;
}

.opt {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.85em;
}

.form-row.three {
  grid-template-columns: 1fr 1fr 1fr;
}

.field input[type="file"] {
  padding: 0.6rem 0.8rem;
  background: var(--bg-soft);
  cursor: pointer;
}

.field input[type="file"]::file-selector-button {
  margin-right: 0.9rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-700);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.field input[type="file"]::file-selector-button:hover {
  background: var(--green-600);
  color: var(--white);
}

/* Category pills (checkboxes) --------------------------------------------- */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.8rem;
}

.choice-pill,
.radio-pill {
  position: relative;
  display: block;
  cursor: pointer;
}

.choice-pill input,
.radio-pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.choice-pill span,
.radio-pill span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
  transition: var(--transition);
}

.choice-pill span i {
  color: var(--green-500);
  transition: var(--transition);
}

.choice-pill:hover span,
.radio-pill:hover span {
  border-color: var(--green-500);
}

.choice-pill input:checked + span,
.radio-pill input:checked + span {
  border-color: var(--green-600);
  background: var(--green-100);
  color: var(--green-900);
  box-shadow: 0 0 0 3px rgba(46, 155, 230, 0.12);
}

.choice-pill input:checked + span i {
  color: var(--green-600);
}

.choice-pill input:focus-visible + span,
.radio-pill input:focus-visible + span {
  outline: 2px solid var(--green-500);
  outline-offset: 2px;
}

.radio-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.radio-pill span {
  min-width: 96px;
  justify-content: center;
}

/* Venue / series leg pills ------------------------------------------------ */
.venue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.8rem;
}

.venue-pill {
  position: relative;
  display: block;
  cursor: pointer;
}

.venue-pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.venue-pill span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
  transition: var(--transition);
}

.venue-pill span i {
  color: var(--green-500);
  transition: var(--transition);
}

.venue-pill:hover span {
  border-color: var(--green-500);
}

.venue-pill input:checked + span {
  border-color: var(--green-600);
  background: var(--green-100);
  color: var(--green-900);
  box-shadow: 0 0 0 3px rgba(46, 155, 230, 0.12);
}

.venue-pill input:checked + span i {
  color: var(--green-600);
}

.venue-pill input:focus-visible + span {
  outline: 2px solid var(--green-500);
  outline-offset: 2px;
}

/* Conditional blocks ------------------------------------------------------ */
.reg-block.conditional[hidden] {
  display: none;
}

.reg-block.conditional {
  animation: regFade 0.35s ease;
}

@keyframes regFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Consent ----------------------------------------------------------------- */
.consent-list {
  display: grid;
  gap: 0.75rem;
}

.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-size: 0.93rem;
  color: var(--ink);
  cursor: pointer;
  transition: var(--transition);
}

.consent-item:hover {
  border-color: var(--green-500);
}

.consent-item input {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--green-600);
  cursor: pointer;
}

.consent-item:has(input:checked) {
  border-color: var(--green-600);
  background: var(--green-100);
}

.reg-submit {
  width: 100%;
  justify-content: center;
  font-size: 1.02rem;
  padding: 1rem 1.6rem;
  margin-top: 1.6rem;
}

@media (max-width: 640px) {
  .reg-card {
    padding: 1.6rem;
  }

  .form-row.three {
    grid-template-columns: 1fr;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }
}

/* Confirmation ticket ----------------------------------------------------- */
.reg-confirm {
  text-align: center;
  animation: regFade 0.4s ease;
}

.reg-confirm[hidden] {
  display: none;
}

.confirm-check {
  font-size: 3.4rem;
  color: var(--leaf);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.reg-confirm h2 {
  margin-bottom: 0.4rem;
}

.confirm-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 1.8rem;
}

.ticket {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.ticket-body {
  flex: 1;
  padding: 1.6rem 1.8rem;
  background:
    radial-gradient(500px 260px at 0% 0%, rgba(46, 155, 230, 0.08), transparent),
    var(--white);
}

.ticket-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.ticket-id {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--green-900);
  margin-bottom: 1rem;
}

.ticket-meta {
  display: grid;
  gap: 0.45rem;
}

.ticket-meta li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.ticket-meta i {
  color: var(--green-500);
  width: 18px;
  text-align: center;
}

.ticket-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.4rem 1.6rem;
  background: var(--bg-soft);
  border-left: 2px dashed var(--line);
}

.qr-box {
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 8px;
  box-shadow: var(--shadow-sm);
}

.qr-box img,
.qr-box canvas {
  display: block;
}

.qr-caption {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.confirm-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  max-width: 560px;
  margin: 1.6rem auto 0;
  padding: 0.9rem 1.1rem;
  background: var(--green-100);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--green-700);
  text-align: left;
}

.confirm-note i {
  margin-top: 0.15rem;
}

.confirm-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

@media (max-width: 520px) {
  .ticket {
    flex-direction: column;
  }

  .ticket-qr {
    border-left: none;
    border-top: 2px dashed var(--line);
  }
}

@media print {
  .site-header,
  .site-footer,
  .reg-hero,
  .confirm-actions,
  .confirm-note {
    display: none !important;
  }

  .reg-card {
    border: none;
    box-shadow: none;
  }
}

/* Hall of Champions ------------------------------------------------------- */
.champions {
  background:
    radial-gradient(700px 380px at 90% -10%, rgba(176, 30, 46, 0.06), transparent),
    var(--bg-soft);
}

.champ-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  margin-bottom: 3.2rem;
}

.champ-card {
  position: relative;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem 1.6rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.champ-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.champ-card.featured {
  border-color: var(--amber);
  box-shadow: 0 18px 40px rgba(176, 30, 46, 0.16);
}

.champ-ribbon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--amber);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.champ-medal {
  width: 74px;
  height: 74px;
  margin: 0 auto 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.9rem;
  color: #7a5a12;
  background: linear-gradient(145deg, #ffe082, #f6b93b);
  box-shadow: inset 0 -4px 10px rgba(0, 0, 0, 0.12), 0 8px 18px rgba(246, 185, 59, 0.35);
}

.champ-medal.silver {
  color: #5b6470;
  background: linear-gradient(145deg, #f4f6f9, #c9d0da);
  box-shadow: inset 0 -4px 10px rgba(0, 0, 0, 0.1), 0 8px 18px rgba(150, 160, 175, 0.3);
}

.champ-medal.bronze {
  color: #6b3f1d;
  background: linear-gradient(145deg, #f0c088, #cd7f32);
  box-shadow: inset 0 -4px 10px rgba(0, 0, 0, 0.12), 0 8px 18px rgba(205, 127, 50, 0.32);
}

.champ-series {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.champ-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
}

.champ-club {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.9rem;
}

.champ-club i {
  color: var(--green-500);
}

.champ-score {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 0.85rem;
  font-weight: 600;
}

.champ-score strong {
  color: var(--green-900);
  font-size: 1rem;
}

/* Tournament history ------------------------------------------------------ */
.champ-history,
.champ-awards {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  box-shadow: var(--shadow-sm);
}

.champ-history {
  margin-bottom: 1.6rem;
}

.champ-history h3,
.champ-awards h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
}

.champ-history h3 i,
.champ-awards h3 i {
  color: var(--amber);
}

.table-scroll {
  overflow-x: auto;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.history-table th,
.history-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--line);
}

.history-table th {
  font-weight: 700;
  color: var(--green-900);
  background: var(--bg-soft);
  white-space: nowrap;
}

.history-table td {
  color: var(--ink);
}

.history-table tbody tr:hover {
  background: var(--green-100);
}

.history-table tr.is-current {
  font-weight: 600;
}

.pending {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--amber);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Award categories -------------------------------------------------------- */
.award-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.award-chips li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  transition: var(--transition);
}

.award-chips li:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.award-chips li i {
  color: var(--amber);
}
