/* ═══════════════════════════════════════════════════════════════════
   AURA.CHARITY — Global Design System
   Palette: White, Charcoal, Off-white, Light-grey
   ═══════════════════════════════════════════════════════════════════ */

/* ── Custom Properties ─────────────────────────────────────────── */
:root {
  /* Colours */
  --clr-white:       #FFFFFF;
  --clr-black:       #111111;
  --clr-charcoal:    #444444;
  --clr-mid-grey:    #666666;
  --clr-light-grey:  #EEEEEE;
  --clr-off-white:   #F7F7F7;
  --clr-border:      #E5E5E5;
  --clr-accent:      #3A3A3A;
  --clr-focus:       #0066CC;
  --clr-success:     #1A7A4A;
  --clr-success-bg:  #EBF5F0;
  --clr-error:       #C0392B;
  --clr-error-bg:    #FDEDEC;
  --clr-warning:     #B7791F;
  --clr-warning-bg:  #FEFCE8;

  /* Project accent colours */
  --clr-haven:        #4A7C59;
  --clr-wardens:      #2C5282;
  --clr-forest:       #276749;
  --clr-education:    #744210;
  --clr-employ:       #553C9A;
  --clr-food:         #C05621;
  --clr-blood:        #9B2335;
  --clr-ambulance:    #B7222E;

  /* Typography */
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Poppins', 'Inter', system-ui, sans-serif;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Borders */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  20px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:   0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg:   0 8px 24px rgba(0,0,0,.1),  0 4px 8px rgba(0,0,0,.06);
  --shadow-xl:   0 20px 60px rgba(0,0,0,.12);

  /* Transitions */
  --transition: 200ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --nav-height: 72px;
  --container-max: 1200px;
  --container-wide: 1400px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--clr-black);
  background: var(--clr-white);
  overflow-x: hidden;
}

img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
ul, ol { list-style: none; }
table { border-collapse: collapse; }

/* ── Reduced Motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ── Focus States ───────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--clr-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Typography ─────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-black);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p { margin-bottom: var(--space-md); color: var(--clr-charcoal); }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--clr-black); }

.lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--clr-charcoal);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-mid-grey);
  margin-bottom: var(--space-md);
}

/* ── Layout ─────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}
.container--wide {
  max-width: var(--container-wide);
}

section { padding-block: var(--space-4xl); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-3xl);
}
.section-header h2 { margin-bottom: var(--space-md); }
.section-header p { color: var(--clr-charcoal); font-size: 1.05rem; }

/* ── Grid helpers ───────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-xl); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding-inline: var(--space-md); }
  section { padding-block: var(--space-3xl); }
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--clr-black);
  color: var(--clr-white);
  border-color: var(--clr-black);
}
.btn--primary:hover {
  background: #333;
  border-color: #333;
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--clr-black);
  border-color: var(--clr-black);
}
.btn--outline:hover {
  background: var(--clr-black);
  color: var(--clr-white);
}

.btn--white {
  background: var(--clr-white);
  color: var(--clr-black);
  border-color: var(--clr-white);
}
.btn--white:hover {
  background: var(--clr-off-white);
  box-shadow: var(--shadow-md);
}

.btn--white-outline {
  background: transparent;
  color: var(--clr-white);
  border-color: rgba(255,255,255,.6);
}
.btn--white-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--clr-white);
}

.btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1.05rem; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

/* ── Cards ───────────────────────────────────────────────────────── */
.card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.card__body { padding: var(--space-xl); }
.card__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--clr-light-grey);
}

/* ── Badges ──────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3em;
  padding: .25em .75em;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .03em;
  background: var(--clr-light-grey);
  color: var(--clr-charcoal);
}

/* ── Alerts ───────────────────────────────────────────────────────── */
.alert {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border-left: 4px solid currentColor;
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
}
.alert--success { background: var(--clr-success-bg); color: var(--clr-success); }
.alert--error   { background: var(--clr-error-bg);   color: var(--clr-error); }
.alert--warning { background: var(--clr-warning-bg); color: var(--clr-warning); }

/* ── Forms ───────────────────────────────────────────────────────── */
.form-group { margin-bottom: var(--space-lg); }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-black);
  margin-bottom: var(--space-xs);
}
.form-label .required { color: var(--clr-error); margin-left: 2px; }

.form-control {
  display: block;
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  background: var(--clr-white);
  color: var(--clr-black);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--clr-black);
  box-shadow: 0 0 0 3px rgba(17,17,17,.08);
}
.form-control.is-invalid { border-color: var(--clr-error); }
.form-control::placeholder { color: #AAA; }

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

.field-error {
  display: block;
  font-size: 0.8rem;
  color: var(--clr-error);
  margin-top: var(--space-xs);
}

.form-check {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--clr-charcoal);
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--clr-black);
  cursor: pointer;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ── Navigation ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  height: 84px;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  padding: 4px 0;
}
.nav-logo img {
  height: 56px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

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

.nav-links a {
  padding: 0.45rem 1.05rem;
  border-radius: var(--radius-pill);
  font-size: 0.935rem;
  font-weight: 500;
  color: #2c323c;
  transition: all var(--transition);
  position: relative;
  white-space: nowrap;
  text-decoration: none;
}
.nav-links a:hover {
  color: #111111;
  background: #f4f5f7;
}
.nav-links a.active {
  color: #111111;
  background: #f1f2f4;
  font-weight: 600;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.btn--donate {
  background: #111111;
  color: #ffffff;
  border-radius: 8px;
  padding: 0.55rem 1.35rem;
  font-size: 0.925rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1.5px solid #111111;
  transition: all var(--transition);
  text-decoration: none;
}
.btn--donate svg {
  display: block;
  stroke: currentColor;
}
.btn--donate:hover {
  background: #2b2b2b;
  border-color: #2b2b2b;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-md);
  transition: background var(--transition);
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--clr-off-white); }
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--clr-black);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--clr-white);
  z-index: 999;
  overflow-y: auto;
  padding: var(--space-xl);
  flex-direction: column;
  gap: var(--space-xs);
  border-top: 1px solid var(--clr-border);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  padding: 0.9rem var(--space-md);
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--clr-charcoal);
  border-bottom: 1px solid var(--clr-light-grey);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--clr-black); background: var(--clr-off-white); }
.mobile-menu .mobile-donate {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

@media (max-width: 1023px) {
  .site-header { height: 76px; }
  .nav-logo img { height: 50px; }
  .nav-toggle { display: flex; }
  .nav-links { display: none; }
}
@media (max-width: 480px) {
  .site-header { height: 72px; }
  .nav-logo img { height: 46px; }
  .nav-right .btn { display: none; }
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  background-color: #ffffff;
  background-image: url('/assets/images/hero-home.jpg');
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
  padding-block: var(--space-3xl);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.95) 28%,
    rgba(255, 255, 255, 0.82) 42%,
    rgba(255, 255, 255, 0.25) 55%,
    rgba(255, 255, 255, 0) 68%
  );
  pointer-events: none;
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.hero__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-family: var(--font-body);
  font-size: clamp(2.75rem, 5.2vw, 4.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #111111;
  margin-bottom: 1.5rem;
}
.hero__desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #4b5563;
  margin-bottom: 2.25rem;
  max-width: 490px;
}
.btn--hero {
  padding: 0.9rem 2.1rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  text-decoration: none;
  cursor: pointer;
}
.btn--hero-primary {
  background: #111111;
  color: #ffffff;
  border: 1.5px solid #111111;
}
.btn--hero-primary:hover {
  background: #2b2b2b;
  border-color: #2b2b2b;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}
.btn--hero-outline {
  background: #ffffff;
  color: #111111;
  border: 1.5px solid #111111;
}
.btn--hero-outline:hover {
  background: #f7f7f7;
  color: #111111;
  border-color: #111111;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.btn--hero-video {
  background: rgba(17, 17, 17, 0.05);
  color: #111111;
  border: 1.5px solid rgba(17, 17, 17, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.btn--hero-video:hover {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

@media (max-width: 1024px) {
  .hero {
    min-height: calc(85vh - 80px);
    background-position: 75% center;
  }
  .hero::before {
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.95) 45%,
      rgba(255, 255, 255, 0.7) 65%,
      rgba(255, 255, 255, 0.2) 100%
    );
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-block: var(--space-4xl) var(--space-3xl);
    background-position: 70% center;
  }
  .hero::before {
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.94) 60%,
      rgba(255, 255, 255, 0.65) 100%
    );
  }
  .hero__content { max-width: 100%; text-align: left; }
  .hero h1 { font-size: clamp(2.3rem, 7vw, 3.2rem); }
}

@media (max-width: 480px) {
  .hero {
    padding-block: var(--space-3xl) var(--space-2xl);
  }
  .hero h1 { font-size: 2.15rem; }
  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }
  .btn--hero {
    width: 100%;
    text-align: center;
  }
}

/* ── Mission Pillars ──────────────────────────────────────────────── */
.pillars {
  background: var(--clr-white);
}
.pillar-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-2xl);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition), transform var(--transition);
}
.pillar-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--clr-off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pillar-icon svg { width: 24px; height: 24px; stroke: var(--clr-black); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.pillar-card h3 { font-size: 1.15rem; }
.pillar-card p { font-size: 0.95rem; color: var(--clr-charcoal); margin: 0; }

/* ── Project Cards ────────────────────────────────────────────────── */
.projects-section { background: var(--clr-off-white); }
.project-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.project-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--clr-light-grey);
}
.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.project-card:hover .project-card__image img { transform: scale(1.04); }

.project-card__icon {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--clr-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.project-card__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-card__body { padding: var(--space-xl); flex: 1; display: flex; flex-direction: column; }
.project-card__subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-mid-grey);
  margin-bottom: var(--space-xs);
}
.project-card__body h3 { font-size: 1.1rem; margin-bottom: var(--space-sm); }
.project-card__body p { font-size: 0.9rem; color: var(--clr-charcoal); flex: 1; margin-bottom: var(--space-lg); }
.project-card__footer {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  flex-wrap: wrap;
}

/* ── Involvement Cards ────────────────────────────────────────────── */
.involvement-section { background: var(--clr-white); }
.involvement-card {
  padding: var(--space-2xl);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  transition: box-shadow var(--transition), transform var(--transition);
}
.involvement-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.involvement-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--clr-off-white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.involvement-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--clr-black);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.involvement-card h3 { font-size: 1.05rem; }
.involvement-card p { font-size: 0.9rem; color: var(--clr-charcoal); margin: 0; }

/* ── Dark Section ─────────────────────────────────────────────────── */
.section-dark {
  background: var(--clr-black);
  color: var(--clr-white);
}
.section-dark h2,
.section-dark h3,
.section-dark p,
.section-dark .section-label { color: var(--clr-white); }
.section-dark p { color: rgba(255,255,255,.75); }
.section-dark .section-header p { color: rgba(255,255,255,.7); }

/* ── Events ──────────────────────────────────────────────────────── */
.events-section { background: var(--clr-off-white); }
.event-card {
  display: flex;
  gap: var(--space-lg);
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: box-shadow var(--transition);
  align-items: flex-start;
}
.event-card:hover { box-shadow: var(--shadow-md); }
.event-date-badge {
  flex-shrink: 0;
  width: 60px;
  text-align: center;
  border-radius: var(--radius-md);
  background: var(--clr-black);
  color: var(--clr-white);
  padding: var(--space-sm) var(--space-xs);
}
.event-date-badge .month {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: block;
  opacity: .8;
}
.event-date-badge .day {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  display: block;
}
.event-card__body h4 { margin-bottom: var(--space-xs); font-size: 1rem; }
.event-card__body p { font-size: 0.875rem; color: var(--clr-charcoal); margin: 0; }
.event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.event-card__meta span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--clr-mid-grey);
}
.event-card__meta svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
  color: var(--clr-mid-grey);
}
.empty-state svg {
  width: 56px;
  height: 56px;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
  stroke: var(--clr-light-grey);
  fill: none;
  stroke-width: 1.5;
}
.empty-state h3 { color: var(--clr-charcoal); font-size: 1.1rem; margin-bottom: var(--space-sm); }
.empty-state p { font-size: 0.9rem; }

/* ── CTA Section ──────────────────────────────────────────────────── */
.cta-section {
  background: var(--clr-black);
  text-align: center;
  padding-block: var(--space-4xl);
}
.cta-section h2 { color: var(--clr-white); margin-bottom: var(--space-md); }
.cta-section p { color: rgba(255,255,255,.7); font-size: 1.05rem; margin-bottom: var(--space-2xl); }
.cta-section .btn-group { justify-content: center; }

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  background: var(--clr-black);
  color: rgba(255,255,255,.8);
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand img { height: 40px; filter: brightness(0) invert(1); margin-bottom: var(--space-lg); }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,.6); line-height: 1.7; margin-bottom: var(--space-lg); }

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: var(--space-lg);
}
.footer-col ul li { margin-bottom: var(--space-sm); }
.footer-col ul a {
  font-size: 0.9rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--clr-white); }

.footer-contact a {
  font-size: 0.9rem;
  color: rgba(255,255,255,.65);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  transition: color var(--transition);
}
.footer-contact a:hover { color: var(--clr-white); }
.footer-contact svg { width: 16px; height: 16px; flex-shrink: 0; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding-top: var(--space-xl);
  font-size: 0.85rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }
.footer-bottom-links { display: flex; gap: var(--space-lg); flex-wrap: wrap; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
}

/* ── Page Hero (inner pages) ──────────────────────────────────────── */
.page-hero {
  background: var(--clr-off-white);
  padding-block: var(--space-4xl);
  border-bottom: 1px solid var(--clr-border);
}
.page-hero .section-label { display: block; margin-bottom: var(--space-md); }
.page-hero h1 { margin-bottom: var(--space-md); }
.page-hero .lead { max-width: 600px; }

/* ── Project Detail ───────────────────────────────────────────────── */
.project-detail-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: var(--clr-light-grey);
}
.project-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
}
.project-detail-hero__text {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--container-max));
  padding-inline: var(--space-xl);
  color: var(--clr-white);
  z-index: 1;
}
.project-detail-hero__text .section-label { color: rgba(255,255,255,.7); }
.project-detail-hero__text h1 { color: var(--clr-white); margin-bottom: var(--space-sm); }
.project-detail-hero__text p { color: rgba(255,255,255,.85); font-size: 1.05rem; }

.project-detail-content { padding-block: var(--space-4xl); }
.project-detail-main { max-width: 760px; }
.project-detail-sidebar { display: flex; flex-direction: column; gap: var(--space-xl); }

.sidebar-card {
  background: var(--clr-off-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}
.sidebar-card h4 { font-size: 0.875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--clr-mid-grey); margin-bottom: var(--space-lg); }
.sidebar-card p { font-size: 0.9rem; }
.sidebar-card .btn { width: 100%; justify-content: center; margin-bottom: var(--space-sm); }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-3xl);
  align-items: start;
}
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .project-detail-sidebar { order: -1; }
  .project-detail-hero { height: 280px; }
}

/* Rich content */
.prose h2 { font-size: 1.4rem; margin: var(--space-2xl) 0 var(--space-md); }
.prose h3 { font-size: 1.15rem; margin: var(--space-xl) 0 var(--space-sm); }
.prose p { color: var(--clr-charcoal); line-height: 1.8; margin-bottom: var(--space-md); }
.prose ul, .prose ol { padding-left: var(--space-lg); margin-bottom: var(--space-md); }
.prose li { color: var(--clr-charcoal); margin-bottom: var(--space-xs); line-height: 1.7; }
.prose ul li { list-style-type: disc; }
.prose ol li { list-style-type: decimal; }
.prose strong { color: var(--clr-black); }

/* ── About page ───────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}
.about-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--clr-light-grey);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }

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

/* ── Volunteer Form page ──────────────────────────────────────────── */
.form-section { background: var(--clr-off-white); }
.form-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  max-width: 760px;
  margin-inline: auto;
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: var(--space-xl); }
}

/* ── Donate page ──────────────────────────────────────────────────── */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.amount-btn {
  padding: var(--space-md);
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-md);
  background: var(--clr-white);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  text-align: center;
}
.amount-btn:hover,
.amount-btn.selected {
  border-color: var(--clr-black);
  background: var(--clr-black);
  color: var(--clr-white);
}
@media (max-width: 480px) {
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Events page ──────────────────────────────────────────────────── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}
@media (max-width: 640px) {
  .events-grid { grid-template-columns: 1fr; }
}

/* ── 404 page ─────────────────────────────────────────────────────── */
.error-page {
  min-height: calc(100svh - var(--nav-height) - 300px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
}
.error-page__code {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 18vw, 12rem);
  font-weight: 800;
  color: var(--clr-light-grey);
  line-height: 1;
  margin-bottom: var(--space-md);
}
.error-page h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: var(--space-md); }
.error-page p { color: var(--clr-charcoal); margin-bottom: var(--space-2xl); }

/* ── Back-to-top ──────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clr-black);
  color: var(--clr-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 800;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover { transform: translateY(-2px); }
.back-to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; }

/* ── Related projects ─────────────────────────────────────────────── */
.related-projects { background: var(--clr-off-white); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}
@media (max-width: 768px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* ── Utilities ────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-xl { margin-bottom: var(--space-xl); }
.d-flex { display: flex; align-items: center; gap: var(--space-md); }
.flex-wrap { flex-wrap: wrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.divider {
  border: none;
  border-top: 1px solid var(--clr-border);
  margin-block: var(--space-2xl);
}
.note-box {
  background: var(--clr-warning-bg);
  border: 1px solid #F6D860;
  border-left: 4px solid var(--clr-warning);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  font-size: 0.9rem;
  color: var(--clr-warning);
  margin-bottom: var(--space-xl);
}
.note-box p { color: var(--clr-warning); margin: 0; }

/* ── Loading spinner ─────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: var(--clr-white);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Image placeholder ────────────────────────────────────────────── */
.img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--clr-light-grey), var(--clr-off-white));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-md);
  color: var(--clr-mid-grey);
  font-size: 0.875rem;
}
.img-placeholder svg { width: 40px; height: 40px; opacity: .4; }

/* ── Table ────────────────────────────────────────────────────────── */
.table-responsive { overflow-x: auto; }
table { width: 100%; }
thead th {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clr-mid-grey);
  border-bottom: 2px solid var(--clr-border);
}
tbody td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--clr-border);
  font-size: 0.9rem;
  color: var(--clr-charcoal);
}
tbody tr:hover { background: var(--clr-off-white); }

/* ── Print ────────────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .back-to-top, .nav-toggle, .btn { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   BRAND REVEAL INTRO OVERLAY (High-Performance GPU-Optimized)
   ═══════════════════════════════════════════════════════════════════ */
.intro-overlay {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  min-height: 100vh;
  background-color: #000000;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.intro-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: #000000;
  z-index: 1;
}

.intro-video-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Video element: Keep free of CSS filters/transforms to keep native mobile hardware overlay active */
.intro-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #000000;
  display: block;
  pointer-events: none;
}

/* Mobile tap prompt if low-power mode pauses video */
.intro-play-prompt {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  z-index: 15;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  touch-action: manipulation;
}

.intro-play-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.intro-play-icon svg {
  margin-left: 3px;
}

/* Top bar with watermark & skip button */
.intro-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.25) 70%, transparent 100%);
  pointer-events: none;
}

.intro-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: auto;
}

.intro-brand__logo {
  height: 34px;
  width: auto;
}

.intro-brand__name {
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  pointer-events: auto;
}

.intro-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  touch-action: manipulation;
  pointer-events: auto;
}

/* Skip button styling: zero backdrop-filter to prevent mobile GPU pipeline stall */
.intro-skip-btn {
  background: rgba(22, 22, 22, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.intro-skip-btn:hover {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
}

.intro-skip-btn:active {
  background: #e5e5e5;
  color: #111111;
}

/* Bottom Progress Bar: scaleX transform for 60fps GPU compositor animation */
.intro-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.16);
  z-index: 20;
}

.intro-progress-bar {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
  background: linear-gradient(90deg, #4A7C59 0%, #276749 50%, #ffffff 100%);
}

/* Mobile responsive styles */
@media (max-width: 640px) {
  .intro-topbar {
    padding: 1rem 1.25rem;
  }
  .intro-brand__name {
    display: none;
  }
  .intro-action-btn {
    padding: 0.5rem 0.95rem;
    font-size: 0.825rem;
    gap: 0.35rem;
  }
  .intro-video {
    object-fit: cover;
  }
}
