/* =============================================================
   MERCY HOUSE | THE JUBILEE HUB
   styles.css — Mobile-first stylesheet
   ============================================================= */

/* ─────────────────────────────────────────────
   1. CUSTOM PROPERTIES
   ───────────────────────────────────────────── */
:root {
  /* Brand palette — derived from Bayturrahma logo */
  --clr-terracotta:       #C85038;
  --clr-terracotta-dark:  #A03C28;
  --clr-terracotta-light: #E07A60;
  --clr-terracotta-pale:  #F8E8E3;

  --clr-sage:             #5A8840;
  --clr-sage-dark:        #466830;
  --clr-sage-light:       #8EC065;
  --clr-sage-pale:        #E3EFD9;

  --clr-gold:             #C08830;
  --clr-gold-light:       #E0AC58;
  --clr-gold-pale:        #F5E8CC;

  --clr-navy:             #162840;
  --clr-navy-mid:         #243E5C;
  --clr-navy-light:       #3A5A7A;

  --clr-taupe:            #857860;
  --clr-sand:             #C8A870;
  --clr-sand-light:       #E8D8BC;
  --clr-sand-pale:        #F5EFE4;

  /* UI colours */
  --clr-bg:               #FAF8F4;
  --clr-bg-warm:          #F2EDE3;
  --clr-bg-dark:          #162840;
  --clr-text:             #1A2232;
  --clr-text-muted:       #596070;
  --clr-text-light:       #8890A0;
  --clr-white:            #FFFFFF;
  --clr-border:           rgba(22, 40, 64, 0.10);
  --clr-whatsapp:         #25D366;
  --clr-whatsapp-dark:    #1DA851;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-py:   4rem;
  --container-px: 1.25rem;
  --max-w:        1140px;
  --max-w-wide:   1280px;

  /* Radius */
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    28px;

  /* Shadows */
  --shadow-sm:    0 1px 4px rgba(22, 40, 64, 0.07), 0 1px 2px rgba(22, 40, 64, 0.06);
  --shadow-md:    0 4px 16px rgba(22, 40, 64, 0.10), 0 2px 6px rgba(22, 40, 64, 0.07);
  --shadow-lg:    0 12px 40px rgba(22, 40, 64, 0.13), 0 4px 12px rgba(22, 40, 64, 0.08);

  /* Transitions */
  --t-fast:       0.15s ease;
  --t-base:       0.25s ease;
  --t-slow:       0.4s ease;

  /* Header height (used for scroll offsets) */
  --header-h:     64px;
}

/* ─────────────────────────────────────────────
   2. RESET & BASE
   ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Bottom padding for mobile sticky CTA bar */
  /* padding-bottom: 64px; */
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul {
  list-style: none;
}

/* ─────────────────────────────────────────────
   3. UTILITY CLASSES
   ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.container-wide {
  width: 100%;
  max-width: var(--max-w-wide);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section {
  padding-block: var(--section-py);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-terracotta);
  margin-bottom: 0.75rem;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--clr-navy);
  margin-bottom: 1.25rem;
}

.section-intro {
  font-size: 1.0625rem;
  color: var(--clr-text-muted);
  max-width: 640px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.icon-inline {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   4. BUTTONS
   ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  text-align: center;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--t-fast),
    color var(--t-fast),
    border-color var(--t-fast),
    box-shadow var(--t-fast),
    transform var(--t-fast);
  white-space: nowrap;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 3px solid var(--clr-gold);
  outline-offset: 3px;
}

.btn:active {
  transform: translateY(1px);
}

/* Sizes */
.btn-sm  { padding: 0.5rem 1rem;    font-size: 0.875rem; }
.btn-md  { padding: 0.75rem 1.375rem; }
.btn-lg  { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* Variants */
.btn-primary {
  background-color: var(--clr-terracotta);
  color: var(--clr-white);
  border-color: var(--clr-terracotta);
}
.btn-primary:hover {
  background-color: var(--clr-terracotta-dark);
  border-color: var(--clr-terracotta-dark);
  box-shadow: 0 4px 14px rgba(200, 80, 56, 0.35);
}

.btn-secondary {
  background-color: var(--clr-navy);
  color: var(--clr-white);
  border-color: var(--clr-navy);
}
.btn-secondary:hover {
  background-color: var(--clr-navy-mid);
  border-color: var(--clr-navy-mid);
  box-shadow: 0 4px 14px rgba(22, 40, 64, 0.30);
}

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

.btn-outline-light {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--clr-white);
  border-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(4px);
}
.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.22);
  border-color: var(--clr-white);
}

.btn-ghost-light {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.85);
  border-color: transparent;
}
.btn-ghost-light:hover {
  color: var(--clr-white);
  background-color: rgba(255, 255, 255, 0.10);
}

.btn-whatsapp {
  background-color: var(--clr-whatsapp);
  color: var(--clr-white);
  border-color: var(--clr-whatsapp);
}
.btn-whatsapp:hover {
  background-color: var(--clr-whatsapp-dark);
  border-color: var(--clr-whatsapp-dark);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-icon {
  width: 1.125em;
  height: 1.125em;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   5. URGENCY STRIP
   ───────────────────────────────────────────── */
.urgency-strip {
  background-color: var(--clr-navy);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8125rem;
  font-weight: 400;
  padding: 0.625rem var(--container-px);
  position: relative;
  z-index: 200;
}

.urgency-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  max-width: var(--max-w);
  margin-inline: auto;
}

.urgency-inner p {
  margin: 0;
  text-align: center;
}

.urgency-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--clr-terracotta-light);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

.urgency-cta {
  display: inline-block;
  background-color: var(--clr-terracotta);
  color: var(--clr-white);
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.3rem 0.875rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color var(--t-fast);
}

.urgency-cta:hover {
  background-color: var(--clr-terracotta-dark);
}

/* ─────────────────────────────────────────────
   5b. MONTHLY SUPPORT BANNER
   ───────────────────────────────────────────── */
.monthly-banner {
  background-color: var(--clr-bg-warm);
  border-top: 3px solid var(--clr-terracotta);
  border-bottom: 1px solid var(--clr-sand-light);
  padding-block: 0.9rem;
}

.monthly-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.monthly-banner-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.monthly-banner-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-navy);
  line-height: 1.3;
  margin: 0;
}

.monthly-banner-body {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.55;
  margin: 0;
  max-width: 58ch;
}

.monthly-banner-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.monthly-banner-ctas .btn {
  width: 100%;
}

@media (min-width: 640px) {
  .monthly-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .monthly-banner-ctas {
    flex-direction: row;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
  }

  .monthly-banner-ctas .btn {
    width: auto;
  }
}

/* Qard Hasan banner button — brand sage green, overrides btn-outline */
#banner-qard-link {
  background-color: var(--clr-sage);
  color: var(--clr-white);
  border-color: var(--clr-sage);
}

#banner-qard-link:hover {
  background-color: var(--clr-sage-dark);
  border-color: var(--clr-sage-dark);
  box-shadow: 0 4px 14px rgba(90, 136, 64, 0.35);
}

/* ─────────────────────────────────────────────
   6. HEADER
   ───────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow var(--t-base);
  height: var(--header-h);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img {
  height: 44px;
  max-width: 44px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--clr-navy);
  letter-spacing: -0.01em;
}

.logo-sub {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--clr-taupe);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Desktop nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  text-decoration: none;
  transition: color var(--t-fast);
  position: relative;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--clr-terracotta);
  border-radius: 2px;
  transition: width var(--t-base);
}

.nav-desktop a:hover {
  color: var(--clr-navy);
}

.nav-desktop a:hover::after {
  width: 100%;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-sm);
  transition: background-color var(--t-fast);
}

.hamburger:hover {
  background-color: var(--clr-sand-pale);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--clr-navy);
  border-radius: 2px;
  margin-inline: auto;
  transition: transform var(--t-base), opacity var(--t-base), width var(--t-base);
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─────────────────────────────────────────────
   7. MOBILE MENU
   ───────────────────────────────────────────── */
.mobile-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(22, 40, 64, 0.5);
  z-index: 148;
  opacity: 0;
  transition: opacity var(--t-base);
}

.mobile-menu-backdrop.is-visible {
  display: block;
  opacity: 1;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background-color: var(--clr-white);
  z-index: 149;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 2rem;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform var(--t-base);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu-close {
  align-self: flex-end;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--clr-text-muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background-color var(--t-fast), color var(--t-fast);
}

.mobile-menu-close:hover {
  background-color: var(--clr-sand-pale);
  color: var(--clr-navy);
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-link {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--clr-text);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--clr-border);
  display: block;
  transition: color var(--t-fast);
}

.mobile-nav-link:hover {
  color: var(--clr-terracotta);
}

.mobile-menu-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-menu-footer {
  margin-top: auto;
  font-size: 0.8125rem;
  color: var(--clr-text-light);
  padding-top: 1rem;
  border-top: 1px solid var(--clr-border);
}

/* ─────────────────────────────────────────────
   8. HERO SECTION
   ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

/* Background image */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(1.15) brightness(0.88);
}

/* Gradient overlay — mobile: bottom-heavy dark; desktop: left-heavy */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(22, 40, 64, 0.42) 0%,
      rgba(22, 40, 64, 0.62) 45%,
      rgba(18, 28, 48, 0.90) 100%
    );
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 4rem;
  padding-bottom: 1.5rem;
}

.hero-text {
  max-width: 680px;
  color: var(--clr-white);
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-gold-light);
  margin-bottom: 1rem;
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--clr-white);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-ctas .btn {
  width: 100%;
  justify-content: center;
}

/* Progress card */
.progress-wrap {
  position: relative;
  z-index: 1;
  padding-bottom: 2.5rem;
}

.progress-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.progress-stats {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  align-items: center;
}

.progress-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.progress-stat:last-child {
  text-align: right;
}

.progress-stat--center {
  text-align: center;
  padding-inline: 0.5rem;
}

.progress-stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 4vw, 1.875rem);
  font-weight: 700;
  color: var(--clr-navy);
  line-height: 1;
}

.progress-stat-pct {
  color: var(--clr-terracotta);
}

.progress-stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--clr-text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Progress bar */
.progress-track-wrap {
  margin-bottom: 1rem;
}

.progress-track {
  height: 10px;
  background-color: var(--clr-sand-light);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--clr-terracotta), var(--clr-gold-light));
  width: 0; /* animated via JS */
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-deadline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--clr-text-muted);
}

/* ─────────────────────────────────────────────
   9. ABOUT SECTION
   ───────────────────────────────────────────── */
.about-section {
  background-color: var(--clr-bg);
}

.about-block {
  padding-block: 3rem;
  border-bottom: 1px solid var(--clr-border);
}

.about-block:last-child {
  border-bottom: none;
}

/* Who We Are */
.who-leader {
  border-left: 4px solid var(--clr-terracotta);
  background: var(--clr-terracotta-pale);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.125rem 1.5rem;
  margin: 0 0 1.5rem;
}

.who-leader p {
  margin: 0;
  color: var(--clr-navy);
  line-height: 1.65;
}

.who-body {
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.who-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Need stats */
.need-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.need-stat {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--clr-terracotta);
}

.need-stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 700;
  color: var(--clr-navy);
  line-height: 1;
  margin-bottom: 0.375rem;
}

.need-stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text-muted);
}

/* Opportunity block */
.about-opportunity {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.opportunity-text p {
  color: var(--clr-text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.opportunity-address {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.125rem;
  background-color: var(--clr-sand-pale);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--clr-navy);
  margin-top: 1.5rem;
  border: 1px solid var(--clr-sand-light);
}

.opportunity-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.building-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(1.05);
  transition: transform var(--t-slow);
}

.opportunity-image:hover .building-img {
  transform: scale(1.02);
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.service-card {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  padding: 1.375rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-border);
  transition: box-shadow var(--t-base), transform var(--t-base);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  padding: 10px;
  flex-shrink: 0;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-icon--terracotta { background-color: var(--clr-terracotta-pale); color: var(--clr-terracotta); }
.service-icon--sage       { background-color: var(--clr-sage-pale);       color: var(--clr-sage); }
.service-icon--gold       { background-color: var(--clr-gold-pale);       color: var(--clr-gold); }
.service-icon--sand       { background-color: var(--clr-sand-light);      color: var(--clr-taupe); }
.service-icon--khayrukum  { background-color: #dde6f0; color: var(--clr-navy); flex-shrink: 0; }

/* Khayrukum card */
.service-card--khayrukum {
  background: linear-gradient(135deg, #e8eef6 0%, #f5f1eb 100%);
}

.service-card--khayrukum h3 {
  color: var(--clr-navy);
  font-style: italic;
}

.service-card--khayrukum p {
  color: var(--clr-text);
}

.khayrukum-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.khayrukum-card-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-navy-light);
  margin-bottom: 0.25rem;
}

.khayrukum-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0.75rem;
  padding: 8px 18px;
  border-radius: 999px;
  background-color: var(--clr-navy);
  color: var(--clr-white);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  width: fit-content;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.khayrukum-card-link:hover {
  transform: translateY(-1px);
  background-color: var(--clr-navy-mid);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--clr-navy);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* Spaces gallery — aspirational renders below services grid */
.spaces-gallery {
  margin-top: 2.5rem;
}

.spaces-gallery-note {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  font-style: italic;
  text-align: center;
  margin-bottom: 1rem;
}

.spaces-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.spaces-gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.spaces-gallery-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: saturate(1.05);
  transition: transform var(--t-slow);
}

.spaces-gallery-item:hover .spaces-gallery-img {
  transform: scale(1.03);
}

.spaces-gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(to top, rgba(18, 28, 50, 0.72) 0%, transparent 100%);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ─────────────────────────────────────────────
   10. QARD HASAN SPOTLIGHT
   ───────────────────────────────────────────── */
.qard-spotlight {
  background-color: var(--clr-sand-pale);
  border-block: 1px solid var(--clr-sand-light);
}

.qard-spotlight-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.qard-spotlight-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.125rem);
  font-weight: 700;
  color: var(--clr-navy);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.qard-spotlight-desc {
  font-size: 1rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.qard-spotlight-desc strong {
  color: var(--clr-navy);
}

.qard-spotlight-points {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.qard-point {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.qard-point-check {
  width: 26px;
  height: 26px;
  background-color: var(--clr-terracotta-pale);
  color: var(--clr-terracotta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.qard-point-check svg {
  width: 13px;
  height: 13px;
}

.qard-point p {
  font-size: 0.9375rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
  margin: 0;
}

.qard-point p strong {
  color: var(--clr-navy);
}

/* Qard Hasan card border override */
.action-card--qard {
  border-color: var(--clr-gold);
}

/* ─────────────────────────────────────────────
   11. TRUST BAND
   ───────────────────────────────────────────── */
.trust-band {
  background-color: var(--clr-bg-warm);
  border-block: 1px solid var(--clr-sand-light);
  padding-block: 3rem;
}

.trust-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-taupe);
  text-align: center;
  margin-bottom: 2rem;
}

.trust-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1rem;
}

.trust-point {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  text-align: center;
}

.trust-num {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.125rem);
  font-weight: 700;
  color: var(--clr-navy);
  line-height: 1;
}

.trust-charity {
  font-size: 1.125rem;
}

.trust-desc {
  font-size: 0.8125rem;
  color: var(--clr-text-muted);
  line-height: 1.4;
}

/* ─────────────────────────────────────────────
   11. GET INVOLVED SECTION
   ───────────────────────────────────────────── */
.get-involved-section {
  background-color: var(--clr-bg);
}

/* Primary action cards */
.action-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.action-card {
  position: relative;
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.625rem 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow var(--t-base), transform var(--t-base);
}

.action-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.action-card--featured {
  border-color: var(--clr-terracotta);
  border-width: 1.5px;
}

.action-card--featured::before {
  content: 'Most Impactful';
  position: absolute;
  top: -1px;
  right: 1.5rem;
  background-color: var(--clr-terracotta);
  color: var(--clr-white);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.action-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px;
  flex-shrink: 0;
}

.action-card-icon svg {
  width: 100%;
  height: 100%;
}

.action-icon--terracotta { background-color: var(--clr-terracotta-pale); color: var(--clr-terracotta); }
.action-icon--navy       { background-color: #E8EEF5;                    color: var(--clr-navy); }
.action-icon--sage       { background-color: var(--clr-sage-pale);       color: var(--clr-sage); }
.action-icon--gold       { background-color: var(--clr-gold-pale);       color: var(--clr-gold); }

.action-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3125rem;
  font-weight: 600;
  color: var(--clr-navy);
  margin-top: 0.25rem;
}

.action-card p {
  font-size: 0.9375rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
  flex: 1;
}

.action-note {
  font-size: 0.8rem;
  color: var(--clr-text-light);
  font-style: italic;
  margin-top: 0.25rem;
}

/* Donate card content wrapper — mirrors qard-content so buttons align */
.donate-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Qard Hasan steps */
.qard-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Prevent p from expanding inside content wrappers (overrides .action-card p flex:1) */
.donate-content p,
.qard-content p {
  flex: none;
}


.qard-steps {
  margin: 0;
  padding-left: 1.125rem;
  font-size: 0.9375rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
}

.qard-steps li + li {
  margin-top: 0.25rem;
}

/* Branded unordered list inside action cards */
.action-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.action-card-list li {
  position: relative;
  padding-left: 1.125rem;
  font-size: 0.9375rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
}

.action-card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.575em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--clr-terracotta);
}

/* Bank transfer details block */
.bank-details {
  padding-top: 1.125rem;
  border-top: 1px solid var(--clr-border, rgba(0,0,0,0.1));
}

.bank-details-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--clr-text-light);
  margin-bottom: 0.625rem;
}

.bank-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0;
}

.bank-details-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.bank-details-row dt {
  font-size: 0.825rem;
  color: var(--clr-text-light);
  flex-shrink: 0;
}

.bank-details-row dd {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-navy);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  margin: 0;
}

/* Fundraiser explainer */
.fundraiser-explainer {
  background-color: var(--clr-navy);
  border-radius: var(--radius-lg);
  padding: 2rem 1.625rem;
  margin-bottom: 3rem;
  color: var(--clr-white);
}

.fundraiser-explainer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.explainer-icon {
  width: 44px;
  height: 44px;
  color: var(--clr-gold-light);
  flex-shrink: 0;
}

.explainer-icon svg {
  width: 100%;
  height: 100%;
}

.explainer-body h3 {
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--clr-white);
  margin-bottom: 0.75rem;
}

.explainer-body p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* Secondary support */
.secondary-support-heading {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--clr-navy);
  margin-bottom: 1rem;
}

.secondary-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.secondary-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: box-shadow var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}

.secondary-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--clr-sand);
  transform: translateX(4px);
}

.secondary-card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-color: #25D366;
  color: var(--clr-white);
  padding: 7px;
}

.secondary-card-icon svg {
  width: 100%;
  height: 100%;
}

.secondary-card-icon--gold { background-color: var(--clr-gold-pale); color: var(--clr-gold); }
.secondary-card-icon--sage { background-color: var(--clr-sage-pale); color: var(--clr-sage); }
.secondary-card-icon--navy { background-color: #E8EEF5;              color: var(--clr-navy); }

.secondary-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.secondary-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--clr-navy);
}

.secondary-card-desc {
  font-size: 0.8125rem;
  color: var(--clr-text-light);
}

.secondary-card-arrow {
  width: 18px;
  height: 18px;
  color: var(--clr-text-light);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   12. CONTACT SECTION
   ───────────────────────────────────────────── */
.contact-section {
  background-color: var(--clr-bg-warm);
  border-top: 1px solid var(--clr-sand-light);
}

.contact-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  background-color: var(--clr-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-terracotta);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  padding: 8px;
}

.contact-item-icon svg {
  width: 100%;
  height: 100%;
}

.contact-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-item-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-text-light);
}

.contact-item-value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--clr-navy);
  line-height: 1.4;
}

.contact-link {
  color: var(--clr-terracotta);
  transition: color var(--t-fast);
}

.contact-link:hover {
  color: var(--clr-terracotta-dark);
  text-decoration: underline;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-btn {
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding-block: 1.125rem;
  height: auto;
}

.contact-btn-main {
  font-weight: 600;
  font-size: 1rem;
}

.contact-btn-sub {
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.8;
}

.contact-form-embed {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--clr-sand-light);
}

.contact-form-frame-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--clr-white);
  max-width: 640px;
  margin-inline: auto;
}

.contact-form-frame-wrap iframe {
  display: block;
  width: 100%;
  border: none;
}

/* ─────────────────────────────────────────────
   13. FOOTER
   ───────────────────────────────────────────── */
.footer {
  background-color: var(--clr-navy);
  color: rgba(255, 255, 255, 0.75);
  padding-block: 2.5rem 1.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  height: 42px;
  max-width: 42px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-name {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--clr-white);
}

.footer-tagline {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.875rem;
}

.footer-info p {
  margin: 0;
}

.footer-link {
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--t-fast);
}

.footer-link:hover {
  color: var(--clr-white);
}

.footer-address {
  color: rgba(255, 255, 255, 0.55);
}

.footer-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-ctas .btn-primary {
  background-color: var(--clr-terracotta);
}

.footer-ctas .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.85);
}

.footer-ctas .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.footer-policy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}

/* ─────────────────────────────────────────────
   13b. MONTHLY DONATION PAGE (donate-monthly.html)
   ───────────────────────────────────────────── */

/* Minimal sticky header + hero — shared pattern with privacy.html */
.policy-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
  height: var(--header-h);
}

.policy-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.policy-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  text-decoration: none;
  transition: color var(--t-fast);
  flex-shrink: 0;
}

.policy-back:hover {
  color: var(--clr-terracotta);
}

.policy-back svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.policy-hero {
  background-color: var(--clr-navy);
  color: var(--clr-white);
  padding: 3rem var(--container-px) 2.5rem;
}

.policy-hero-inner {
  max-width: var(--max-w);
  margin-inline: auto;
}

.policy-hero-inner > p {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-gold-light);
  margin-bottom: 0.75rem;
}

.policy-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.policy-hero-meta {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.policy-hero-lead {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
}

.policy-body {
  padding-block: 3rem;
}

@media (min-width: 640px) {
  .policy-hero {
    padding-inline: 2rem;
  }
}

@media (min-width: 1024px) {
  .policy-hero {
    padding: 4rem 2rem 3rem;
  }

  .policy-body {
    padding-block: 4rem;
  }
}

/* Shared content width for the whole monthly donation journey —
   hero text and the steps/form below must share the same left/right edges. */
.donate-monthly-page .policy-hero-inner {
  max-width: 860px;
}

.monthly-form-layout {
  max-width: 860px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.monthly-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.monthly-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--clr-bg-warm);
  border: 1px solid var(--clr-sand-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.monthly-step-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--clr-terracotta);
  color: var(--clr-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
}

.monthly-step p {
  font-size: 0.9375rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
  margin: 0;
  padding-top: 0.15rem;
}

.monthly-reassurance {
  background: var(--clr-sage-pale);
  border-left: 4px solid var(--clr-sage);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--clr-text);
  font-weight: 500;
}

.monthly-form-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.75rem;
}

.monthly-config-error {
  background: var(--clr-terracotta-pale);
  border: 1px solid var(--clr-terracotta);
  border-radius: var(--radius-sm);
  color: var(--clr-terracotta-dark);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.875rem 1rem;
  margin-bottom: 1.25rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-navy);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"] {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--clr-text);
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.form-group input:focus {
  outline: none;
  border-color: var(--clr-terracotta);
  box-shadow: 0 0 0 3px var(--clr-terracotta-pale);
}

.giftaid-section {
  border: 1px solid var(--clr-sand-light);
  border-radius: var(--radius-md);
  background: var(--clr-bg-warm);
  padding: 1.25rem;
  margin: 0 0 1.5rem;
}

.giftaid-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--clr-navy);
  margin: 0 0 1rem;
}

.giftaid-section .form-group:last-child,
.giftaid-section .form-row:last-child .form-group {
  margin-bottom: 0;
}

.giftaid-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  margin-bottom: 1rem;
}

.giftaid-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  accent-color: var(--clr-terracotta);
}

.giftaid-checkbox span {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--clr-text-muted);
}

.giftaid-note {
  font-size: 0.8125rem;
  color: var(--clr-text-light);
  font-style: italic;
  margin: 0 0 1.25rem;
}

.monthly-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.monthly-privacy-note {
  font-size: 0.8125rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
  margin-top: 1.25rem;
  text-align: center;
}

.monthly-privacy-note a {
  color: var(--clr-terracotta);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ─────────────────────────────────────────────
   14. MOBILE STICKY CTA BAR
   ───────────────────────────────────────────── */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  background: var(--clr-white);
  border-top: 1px solid var(--clr-border);
  box-shadow: 0 -4px 20px rgba(22, 40, 64, 0.12);
  padding: 0.5rem;
  gap: 0.375rem;
  /* starts hidden, appears after scrolling */
  transform: translateY(100%);
  transition: transform var(--t-base);
}

.mobile-cta-bar.is-visible {
  transform: translateY(0);
}

.mobile-cta-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.625rem 0.5rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--clr-navy);
  background: transparent;
  text-decoration: none;
  transition: background-color var(--t-fast), color var(--t-fast);
  min-height: 52px;
}

.mobile-cta-btn svg {
  width: 20px;
  height: 20px;
}

.mobile-cta-btn:hover {
  background-color: var(--clr-sand-pale);
}

.mobile-cta-btn--primary {
  background-color: var(--clr-terracotta);
  color: var(--clr-white);
}

.mobile-cta-btn--primary:hover {
  background-color: var(--clr-terracotta-dark);
}

/* ─────────────────────────────────────────────
   15. ANIMATIONS
   ───────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll-triggered fade */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-in:nth-child(1) { transition-delay: 0ms; }
.fade-in:nth-child(2) { transition-delay: 80ms; }
.fade-in:nth-child(3) { transition-delay: 160ms; }
.fade-in:nth-child(4) { transition-delay: 240ms; }
.fade-in:nth-child(5) { transition-delay: 320ms; }
.fade-in:nth-child(6) { transition-delay: 400ms; }
.fade-in:nth-child(7) { transition-delay: 480ms; }

/* ─────────────────────────────────────────────
   16. RESPONSIVE — TABLET (≥ 640px)
   ───────────────────────────────────────────── */
@media (min-width: 640px) {

  /* Hero CTAs — row on wider mobile */
  .hero-ctas {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-ctas .btn {
    width: auto;
    flex: 0 1 auto;
  }

  /* Need stats — 3 col */
  .need-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Who We Are pillars — 3 col */
  .who-pillars {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Services — 2 col */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card--wide {
    grid-column: span 2;
  }

  /* Spaces gallery — stays 2 col on tablet */
  .spaces-gallery-img {
    height: 180px;
  }

  /* Trust — all 4 in a row */
  .trust-points {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Action cards — not stacked */
  .action-cards {
    grid-template-columns: 1fr 1fr;
  }

  /* Contact layout */
  .contact-actions {
    flex-direction: row;
  }

  .contact-actions .btn {
    flex: 1;
  }

  /* Footer CTAs */
  .footer-ctas {
    flex-direction: row;
  }
}

/* ─────────────────────────────────────────────
   17. RESPONSIVE — DESKTOP (≥ 1024px)
   ───────────────────────────────────────────── */
@media (min-width: 1024px) {

  :root {
    --section-py: 6rem;
    --container-px: 2rem;
    --header-h: 70px;
  }

  /* Body — no padding for mobile bar */
  body {
    padding-bottom: 0;
  }

  /* Header — show desktop nav, hide hamburger */
  .nav-desktop   { display: flex; }
  .hamburger     { display: none; }

  /* Hero — left-heavy gradient, text on left */
  .hero-overlay {
    background:
      linear-gradient(
        to right,
        rgba(18, 28, 50, 0.90) 0%,
        rgba(18, 28, 50, 0.72) 50%,
        rgba(18, 28, 50, 0.30) 100%
      ),
      linear-gradient(
        to bottom,
        rgba(18, 28, 50, 0.20) 0%,
        rgba(18, 28, 50, 0.60) 100%
      );
  }

  .hero-content {
    display: flex;
    align-items: center;
    min-height: calc(100svh - var(--header-h) - 180px);
  }

  .hero-text {
    max-width: 620px;
  }

  .hero-heading {
    font-size: clamp(2.75rem, 4vw, 3.75rem);
  }

  /* Progress wrap — sits cleanly at the base of the hero */
  .progress-wrap {
    padding-bottom: 3rem;
  }

  .progress-card {
    padding: 2rem 2.5rem;
    max-width: 820px;
  }

  .progress-stats {
    margin-bottom: 1.5rem;
  }

  /* Qard spotlight — 2 col on desktop */
  .qard-spotlight-inner {
    flex-direction: row;
    gap: 4rem;
    align-items: flex-start;
  }

  .qard-spotlight-lead {
    flex: 1 1 45%;
  }

  .qard-spotlight-points {
    flex: 1 1 50%;
    padding-top: 0.25rem;
  }

  /* About — opportunity side by side */
  .about-opportunity {
    flex-direction: row;
    gap: 3rem;
    align-items: center;
  }

  .opportunity-text {
    flex: 1;
  }

  .opportunity-image {
    flex: 1;
  }

  .building-img {
    height: 360px;
  }

  /* Services — 3 col */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Spaces gallery — 4 col on desktop */
  .spaces-gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .spaces-gallery-img {
    height: 200px;
  }

  .service-card--wide {
    grid-column: span 3;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .service-card--wide .service-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  /* Trust — 4 col row */
  .trust-band {
    padding-block: 3.5rem;
  }

  /* Get involved — 3 col cards */
  .action-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Fundraiser explainer — horizontal */
  .fundraiser-explainer {
    padding: 2.5rem 3rem;
  }

  .fundraiser-explainer-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }

  /* Secondary cards — 3 col */
  .secondary-cards {
    flex-direction: row;
  }

  .secondary-card {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.375rem;
  }

  .secondary-card:hover {
    transform: translateY(-3px);
  }

  .secondary-card-arrow {
    display: none;
  }

  /* Contact — two column */
  .contact-layout {
    flex-direction: row;
    gap: 3rem;
    align-items: flex-start;
  }

  .contact-left {
    flex: 2;
  }

  .contact-form-embed {
    flex: 3;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }

  .contact-form-frame-wrap {
    max-width: 100%;
  }

  .contact-actions {
    flex-direction: column;
  }

  .contact-actions .btn {
    flex: unset;
  }

  /* Footer — multi column */
  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }

  .footer-brand {
    flex: 0 0 auto;
  }

  .footer-info {
    flex: 1;
  }

  .footer-ctas {
    flex-direction: column;
    flex: 0 0 200px;
    align-self: flex-start;
  }

  /* Hide mobile CTA bar on desktop */
  .mobile-cta-bar {
    display: none;
  }

  /* Logo text — larger */
  .logo-name {
    font-size: 1.125rem;
  }
}

/* ─────────────────────────────────────────────
   18. ACCESSIBILITY
   ───────────────────────────────────────────── */

/* Skip link (add to HTML if needed) */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--clr-terracotta);
  color: var(--clr-white);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
}

.skip-link:focus {
  top: 0;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .progress-fill {
    transition: none;
  }
}

/* High contrast */
@media (forced-colors: active) {
  .btn {
    border: 2px solid ButtonText;
  }
}

/* ─────────────────────────────────────────────
   19. PRINT
   ───────────────────────────────────────────── */
@media print {
  .urgency-strip,
  .monthly-banner,
  .header,
  .mobile-menu,
  .mobile-cta-bar,
  .hero-bg,
  .hero-overlay {
    display: none;
  }

  body {
    padding: 0;
    background: white;
    color: black;
  }

  .hero {
    min-height: auto;
    background: var(--clr-sand-pale);
    padding: 2rem;
  }

  .hero-text {
    color: var(--clr-text);
  }

  .hero-heading,
  .hero-sub,
  .hero-eyebrow {
    color: var(--clr-text) !important;
  }
}
