/*
Theme Name: GeneratePress Child - AAMPLIFY
Theme URI: https://www.aamplify.org
Description: Custom child theme for AAMPLIFY website redesign
Author: AAMPLIFY
Template: generatepress
Version: 1.0
*/

/*
 * AAMPLIFY Design System
 * Version: 1.0
 *
 * Font Pairing: Outfit (headings) + DM Sans (body)
 *
 * WHY THESE FONTS:
 * Outfit — A geometric sans-serif with rounded, confident character. At display
 * sizes (64-80px), it commands attention without shouting. Its subtle warmth
 * reads as youthful and community-oriented, not corporate. The tight metrics
 * make it ideal for bold stat numbers and section headings.
 *
 * DM Sans — A low-contrast geometric sans that excels at body sizes. Highly
 * readable at 16px, with weights from regular through bold. Shares geometric
 * DNA with Outfit for visual harmony, but its restrained personality creates
 * clear hierarchy. Excellent x-height for screen reading.
 *
 * Together they feel: confident, modern, warm, community-driven.
 */

/* ============================================
   GOOGLE FONTS IMPORT
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400;1,9..40,500&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ============================================
   DESIGN TOKENS (Custom Properties)
   ============================================ */
:root {
  /* --- Colors: Primary --- */
  --color-gold: #EEC63A;
  --color-charcoal: #272727;
  --color-off-white: #F9F9F9;
  --color-white: #FFFFFF;

  /* --- Colors: Program Pillars --- */
  --color-teal: #3ECCB4;       /* Leadership Training */
  --color-pillar-gold: #EEC63A; /* Social Justice Education */
  --color-coral: #FF7F50;       /* Mentorship & Networking */

  /* --- Colors: Supporting --- */
  --color-gray: #888888;
  --color-border: #CCCCCC;
  --color-alt-bg: #F5F5F5;
  --color-link: #1573DD;

  /* --- Colors: Functional --- */
  --color-text-primary: var(--color-charcoal);
  --color-text-secondary: var(--color-gray);
  --color-text-inverse: var(--color-white);
  --color-bg-primary: var(--color-off-white);
  --color-bg-dark: var(--color-charcoal);
  --color-bg-card: var(--color-white);
  --color-bg-accent: var(--color-gold);

  /* --- Typography --- */
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

  /* --- Type Scale --- */
  --text-h1: clamp(2.5rem, 5vw, 4rem);         /* 40-64px */
  --text-h2: clamp(2rem, 4vw, 3rem);            /* 32-48px */
  --text-h3: clamp(1.375rem, 2.5vw, 1.75rem);   /* 22-28px */
  --text-body: 1rem;                              /* 16px */
  --text-small: 0.875rem;                         /* 14px */
  --text-stat: clamp(3.5rem, 7vw, 5rem);         /* 56-80px */
  --text-button: 1rem;                            /* 16px */
  --text-quote: clamp(1.5rem, 3vw, 2.25rem);     /* 24-36px */

  /* --- Leading --- */
  --leading-tight: 1.1;
  --leading-snug: 1.2;
  --leading-normal: 1.3;
  --leading-relaxed: 1.6;
  --leading-body-small: 1.5;
  --leading-quote: 1.4;

  /* --- Tracking --- */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;

  /* --- Spacing --- */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 1rem;       /* 16px */
  --space-md: 1.5rem;     /* 24px */
  --space-lg: 2rem;       /* 32px */
  --space-xl: 3rem;       /* 48px */
  --space-2xl: 4rem;      /* 64px */
  --space-3xl: 6rem;      /* 96px */
  --space-section: clamp(4rem, 8vw, 7rem);

  /* --- Borders & Radius --- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --border-thin: 1px solid var(--color-border);
  --border-medium: 2px solid var(--color-charcoal);

  /* --- Shadows --- */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.15);

  /* --- Transitions --- */
  --transition-fast: 200ms ease-out;
  --transition-base: 300ms ease-out;

  /* --- Layout --- */
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-wide: 1400px;
}

/* ============================================
   BASE / 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-body);
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-charcoal);
}

a:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  background: var(--color-gold);
  color: var(--color-charcoal);
  padding: var(--space-xs) var(--space-sm);
  font-weight: 600;
  z-index: 1000;
  border-radius: var(--radius-md);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-sm);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-primary);
  font-weight: 700;
}

h1, .h1 {
  font-size: var(--text-h1);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

h2, .h2 {
  font-size: var(--text-h2);
  line-height: var(--leading-snug);
}

h3, .h3 {
  font-size: var(--text-h3);
  line-height: var(--leading-normal);
  font-weight: 600;
}

p {
  margin-bottom: var(--space-sm);
}

p:last-child {
  margin-bottom: 0;
}

.text-small {
  font-size: var(--text-small);
  line-height: var(--leading-body-small);
}

.text-secondary {
  color: var(--color-text-secondary);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: var(--text-button);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast),
              background-color var(--transition-fast),
              border-color var(--transition-fast);
  line-height: 1;
  white-space: nowrap;
}

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

/* Primary button: Gold bg, charcoal text */
.btn-primary {
  background-color: var(--color-gold);
  color: var(--color-charcoal);
  border-color: var(--color-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: var(--color-charcoal);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Secondary button: White bg, charcoal border */
.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-charcoal);
  border-color: var(--color-charcoal);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  background-color: var(--color-charcoal);
  color: var(--color-white);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* Button on dark background */
.btn-on-dark {
  background-color: var(--color-gold);
  color: var(--color-charcoal);
  border-color: var(--color-gold);
}

.btn-on-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  color: var(--color-charcoal);
}

/* Button sizing */
.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.625rem 1.5rem;
  font-size: var(--text-small);
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition-base),
              transform var(--transition-base);
  position: relative;
}

.card::before {
  content: '';
  display: block;
  height: 4px;
  background: var(--color-border);
  transition: background-color var(--transition-base);
}

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

/* Pillar accent colors for card top stripe */
.card--teal::before { background-color: var(--color-teal); }
.card--teal:hover::before { background-color: var(--color-teal); }

.card--gold::before { background-color: var(--color-gold); }
.card--gold:hover::before { background-color: var(--color-gold); }

.card--coral::before { background-color: var(--color-coral); }
.card--coral:hover::before { background-color: var(--color-coral); }

.card__body {
  padding: var(--space-lg);
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.card--teal .card__icon { background-color: rgba(62, 204, 180, 0.12); color: #2ba58e; }
.card--gold .card__icon { background-color: rgba(238, 198, 58, 0.15); color: #b8940d; }
.card--coral .card__icon { background-color: rgba(255, 127, 80, 0.12); color: #e05a2b; }

.card__title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-text-primary);
}

.card__text {
  color: var(--color-text-secondary);
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
}

/* ============================================
   STATS BAND
   ============================================ */
.stats-band {
  background-color: var(--color-bg-accent);
  padding: var(--space-2xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-charcoal);
  white-space: nowrap;
}

.stat-label {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--color-charcoal);
  margin-top: var(--space-xs);
  opacity: 0.8;
}

/* ============================================
   TESTIMONIAL
   ============================================ */
.testimonial {
  background-color: var(--color-alt-bg);
  padding: var(--space-section) 0;
}

.testimonial__content {
  max-width: var(--container-narrow);
  margin: 0 auto;
  text-align: center;
}

.testimonial__quote {
  font-family: var(--font-heading);
  font-size: var(--text-quote);
  line-height: var(--leading-quote);
  color: var(--color-text-primary);
  font-weight: 400;
  font-style: italic;
  position: relative;
  margin-bottom: var(--space-lg);
}

.testimonial__quote::before {
  content: '\201C';
  font-size: 4rem;
  font-style: normal;
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1;
  display: block;
  margin-bottom: var(--space-xs);
}

.testimonial__attribution {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-text-secondary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

/* Decorative geometric shapes */
.hero__decoration {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
}

.hero__shape--teal {
  background: var(--color-teal);
  width: clamp(300px, 40vw, 600px);
  height: clamp(300px, 40vw, 600px);
  top: -15%;
  right: -10%;
}

.hero__shape--coral {
  background: var(--color-coral);
  width: clamp(200px, 25vw, 400px);
  height: clamp(200px, 25vw, 400px);
  bottom: -10%;
  left: -5%;
}

.hero__shape--gold {
  background: var(--color-gold);
  width: clamp(150px, 20vw, 300px);
  height: clamp(150px, 20vw, 300px);
  top: 20%;
  right: 15%;
  border-radius: 0;
  transform: rotate(15deg);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

.hero h1 {
  color: var(--color-text-inverse);
  margin-bottom: var(--space-md);
}

.hero__subtitle {
  font-size: 1.25rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-xl);
  max-width: 580px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

/* ============================================
   SECTION PATTERNS
   ============================================ */
/* Light section (default) */
.section--light {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
}

/* Dark section */
.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
}

.section--dark h2,
.section--dark h3 {
  color: var(--color-text-inverse);
}

.section--dark p {
  color: rgba(255, 255, 255, 0.85);
}

/* Accent (gold) section */
.section--accent {
  background-color: var(--color-bg-accent);
  color: var(--color-charcoal);
}

/* Alt background */
.section--alt {
  background-color: var(--color-alt-bg);
}

/* Section header */
.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-xl);
}

.section__header p {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin-top: var(--space-sm);
}

.section--dark .section__header p {
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   PILLAR CARDS GRID
   ============================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* ============================================
   PROGRAM DETAILS
   ============================================ */
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  align-items: start;
}

.details-list {
  list-style: none;
  padding: 0;
}

.details-list li {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: var(--border-thin);
  align-items: flex-start;
}

.details-list li:last-child {
  border-bottom: none;
}

.details-label {
  font-weight: 600;
  min-width: 100px;
  color: var(--color-text-primary);
}

.details-value {
  color: var(--color-text-secondary);
}

/* ============================================
   CTA BAND
   ============================================ */
.cta-band {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
  padding: var(--space-2xl) 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--color-text-inverse);
  margin-bottom: var(--space-sm);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-lg);
}

.cta-band__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.cta-band__link {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-small);
}

.cta-band__link:hover {
  color: var(--color-white);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
  padding: var(--space-2xl) 0 var(--space-lg);
  border-top: 4px solid var(--color-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer__brand {
  max-width: 320px;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--space-xs);
  text-decoration: none;
}

.footer__tagline {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-small);
  line-height: var(--leading-body-small);
}

.footer__heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.footer__nav {
  list-style: none;
  padding: 0;
}

.footer__nav li {
  margin-bottom: var(--space-xs);
}

.footer__nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: var(--text-small);
  transition: color var(--transition-fast);
}

.footer__nav a:hover {
  color: var(--color-white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.4);
}

.footer__social a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  margin-left: var(--space-sm);
  transition: color var(--transition-fast);
}

.footer__social a:hover {
  color: var(--color-gold);
}

/* ============================================
   APPLY PAGE SPECIFIC
   ============================================ */
.apply-hero {
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
  padding: var(--space-3xl) 0 var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.apply-hero h1 {
  color: var(--color-text-inverse);
}

.apply-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  max-width: 600px;
  margin: var(--space-sm) auto 0;
}

.details-box {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg) var(--space-xl);
  max-width: 640px;
  margin: 0 auto;
}

.details-box__title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
  text-align: center;
}

.deadline-callout {
  background: var(--color-gold);
  color: var(--color-charcoal);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  max-width: 640px;
  margin: var(--space-lg) auto;
}

.deadline-callout__label {
  font-size: var(--text-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-xs);
}

.deadline-callout__date {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 700;
}

.apply-encouragement {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.apply-cta {
  text-align: center;
  margin: var(--space-xl) 0;
}

.apply-help {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: var(--text-small);
}

.apply-help a {
  color: var(--color-link);
}

/* ============================================
   ANIMATIONS
   ============================================ */
/* Scroll reveal: fade-up */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Stagger children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 300ms; }

/* Stat counter animation (handled by JS, this is the visual style) */
@keyframes countUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.stat-item.is-visible .stat-number {
  animation: countUp 0.5s ease-out forwards;
}

/* ============================================
   CUSTOM FOOTER
   ============================================ */

.site-info {
  background: var(--color-charcoal) !important;
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-2xl) 0 var(--space-lg) !important;
}

.aamplify-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  text-align: center;
}

.aamplify-footer__top {
  margin-bottom: var(--space-lg);
}

.aamplify-footer__logo {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 800;
  color: var(--color-white) !important;
  text-decoration: none;
  letter-spacing: var(--tracking-tight);
  display: inline-block;
  margin-bottom: var(--space-2xs);
}

.aamplify-footer__logo-img {
  width: 270px;
  height: auto;
  display: block;
  margin: 0 auto;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.aamplify-footer__logo:hover .aamplify-footer__logo-img {
  opacity: 1;
}

.aamplify-footer__tagline {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.aamplify-footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.aamplify-footer__nav a {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none;
  font-size: var(--text-small);
  font-weight: 500;
  transition: color 0.2s ease;
}

.aamplify-footer__nav a:hover {
  color: var(--color-gold) !important;
}

.aamplify-footer__copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet: 768px */
@media (max-width: 768px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding: var(--space-2xl) 0;
  }

  .hero__subtitle {
    font-size: 1.125rem;
  }
}

/* Mobile: 375px */
@media (max-width: 480px) {
  :root {
    --space-section: 3rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .stat-number {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
    justify-content: center;
  }

  .btn-lg {
    padding: 1rem 2rem;
    width: 100%;
  }

  .details-box {
    padding: var(--space-md);
  }

  .testimonial__quote {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
  }

  .container {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mx-auto { margin-left: auto; margin-right: auto; }

.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); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Gold accent bar (used for visual separation) */
.accent-bar {
  width: 60px;
  height: 4px;
  background: var(--color-gold);
  border-radius: 2px;
}

.accent-bar--center {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   PAGE HERO (reusable across About, Donate, Contact, etc.)
   ============================================ */
.page-hero {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
  padding: var(--space-2xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  color: var(--color-text-inverse);
  margin-bottom: var(--space-sm);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   TWO-COLUMN CONTENT LAYOUT
   ============================================ */
.content-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

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

/* ============================================
   FEATURE GRID (3-col for about/donate)
   ============================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

.feature-item {
  text-align: center;
  padding: var(--space-lg);
}

.feature-item__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(238, 198, 58, 0.12);
  border-radius: var(--radius-md);
  color: var(--color-charcoal);
}

.feature-item h3 {
  margin-bottom: var(--space-xs);
}

.feature-item p {
  color: var(--color-text-secondary);
  font-size: var(--text-small);
}

/* ============================================
   TIMELINE / STEPS
   ============================================ */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  counter-reset: step;
}

.timeline-step {
  position: relative;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.timeline-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-gold);
  color: var(--color-charcoal);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 50%;
  margin: 0 auto var(--space-sm);
}

.timeline-step h3 {
  margin-bottom: var(--space-xs);
}

.timeline-step p {
  color: var(--color-text-secondary);
  font-size: var(--text-small);
}

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

/* ============================================
   DONATE PAGE: IMPACT CARDS
   ============================================ */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 768px) {
  .impact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

.impact-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.impact-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(238, 198, 58, 0.12);
  border-radius: var(--radius-md);
  color: var(--color-charcoal);
}

.impact-card h3 {
  margin-bottom: var(--space-xs);
}

.impact-card p {
  color: var(--color-text-secondary);
  font-size: var(--text-small);
}

/* Contact page single-column layout */
.contact-page .container {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* Jetpack injects the form block as a sibling — keep it in the flow */
.contact-page .wp-block-jetpack-contact-form-container {
  width: 100%;
  margin-bottom: var(--space-md);
}

/* Hide the empty .contact-section placeholder div */
.contact-page .contact-section:empty {
  display: none;
}

.contact-page h2 {
  margin-bottom: var(--space-md);
}

/* ============================================
   CONTACT FORM STYLING (Jetpack)
   ============================================ */
.contact-section .wp-block-jetpack-contact-form-container,
.contact-section form,
.contact-page .wp-block-jetpack-contact-form-container,
.contact-page form.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-section input[type="text"],
.contact-section input[type="email"],
.contact-section textarea,
.contact-page input[type="text"],
.contact-page input[type="email"],
.contact-page textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-body);
  transition: border-color var(--transition-fast);
  background: var(--color-white);
}

.contact-section input:focus,
.contact-section textarea:focus,
.contact-page input:focus,
.contact-page textarea:focus {
  border-color: var(--color-gold);
  outline: none;
}

.contact-section label,
.contact-page label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-small);
  color: var(--color-text-primary);
  display: block;
  margin-bottom: var(--space-xs);
}

.contact-section button[type="submit"],
.contact-section input[type="submit"],
.contact-page button[type="submit"],
.contact-page input[type="submit"] {
  background: var(--color-gold);
  color: var(--color-charcoal);
  border: 2px solid var(--color-gold);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-button);
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-section button[type="submit"]:hover,
.contact-section input[type="submit"]:hover,
.contact-page button[type="submit"]:hover,
.contact-page input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ============================================
   PHOTOGRAPHY / IMAGE BLOCKS
   ============================================ */

.photo-block {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

/* 16:9 landscape — hero-adjacent and full-width images */
.photo-block--16x9 {
  aspect-ratio: 16 / 9;
}

/* 4:3 — secondary / sidebar images */
.photo-block--4x3 {
  aspect-ratio: 4 / 3;
}

/* 3:2 — compact landscape */
.photo-block--3x2 {
  aspect-ratio: 3 / 2;
}

/* 1:1 — square */
.photo-block--square {
  aspect-ratio: 1 / 1;
}

/* Placeholder state (before image is inserted) */
.photo-block--placeholder {
  background: var(--color-alt-bg);
  border: 2px dashed rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: var(--text-small);
  font-family: var(--font-body);
  text-align: center;
  padding: var(--space-md);
}

/* Photo row — full-bleed image band between sections */
.photo-band {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  max-height: 480px;
  overflow: hidden;
}

.photo-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-band--placeholder {
  height: 320px;
  background: var(--color-alt-bg);
  border-top: 2px dashed rgba(0, 0, 0, 0.12);
  border-bottom: 2px dashed rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: var(--text-small);
  font-family: var(--font-body);
}

/* ============================================
   FAQ ACCORDION
   ============================================ */

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-2xl);
  align-items: start;
}

.faq-sidebar {
  /* sticky image follows scroll */
}

@media (max-width: 900px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }
  .faq-sidebar {
    display: none;
  }
}

.faq-list {
  max-width: 100%;
  margin: 0;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  font-weight: 600;
  color: var(--color-charcoal);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  flex-shrink: 0;
  margin-left: var(--space-md);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-teal);
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-question:hover {
  color: var(--color-teal);
}

.faq-answer {
  padding: 0 0 var(--space-md) 0;
}

.faq-answer p {
  color: var(--color-text-secondary);
  font-size: var(--text-body);
  line-height: 1.7;
  margin: 0;
}

.faq-answer p + p {
  margin-top: var(--space-sm);
}

.faq-answer a {
  color: var(--color-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-answer a:hover {
  color: var(--color-charcoal);
}

/* ============================================
   BLOG INDEX STYLING
   ============================================ */
/* Style the blog post list generated by WordPress */
.blog .site-main article,
.archive .site-main article {
  background: var(--color-white) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm) !important;
  padding: var(--space-lg) !important;
  margin-bottom: var(--space-lg) !important;
  max-width: var(--container-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.blog .site-main .entry-title,
.archive .site-main .entry-title {
  font-family: var(--font-heading) !important;
  font-size: var(--text-h3) !important;
  display: block !important;
}

.blog .site-main .entry-title a,
.archive .site-main .entry-title a {
  color: var(--color-text-primary) !important;
  text-decoration: none !important;
}

.blog .site-main .entry-title a:hover,
.archive .site-main .entry-title a:hover {
  color: var(--color-link) !important;
}

.blog .site-main .entry-meta,
.archive .site-main .entry-meta {
  font-size: var(--text-small) !important;
  color: var(--color-text-secondary) !important;
}

.blog .site-main .entry-summary p,
.archive .site-main .entry-summary p {
  color: var(--color-text-secondary) !important;
  font-size: var(--text-body) !important;
}

.blog .site-main .cat-links,
.archive .site-main .cat-links {
  font-size: var(--text-small) !important;
  color: var(--color-text-secondary) !important;
}

.blog .site-main .cat-links a,
.archive .site-main .cat-links a {
  color: var(--color-link) !important;
}

/* Blog page header */
.blog .page-header,
.archive .page-header {
  display: block !important;
  text-align: center;
  padding: var(--space-2xl) var(--space-md) var(--space-lg);
  background: var(--color-bg-dark) !important;
  margin-bottom: var(--space-lg);
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
}

.blog .page-header .page-title,
.archive .page-header .page-title {
  font-family: var(--font-heading) !important;
  color: var(--color-white) !important;
  display: block !important;
}

/* ============================================
   WORDPRESS / GENERATEPRESS OVERRIDES
   ============================================ */

/*
 * GeneratePress wraps content in nested containers:
 *   .site > .site-content > .grid-container > article > .inside-article > .entry-content
 *
 * Our sections live inside .entry-content as Custom HTML blocks.
 * These overrides strip all container constraints so sections go full-bleed.
 */

/* --- 1. NUKE ALL CONTAINER CONSTRAINTS --- */
/*
 * THE KEY FIX: GeneratePress "One Container" mode wraps everything in
 * #page.site.grid-container with a white background and max-width.
 * This is the white box visible in the screenshots.
 * We must make it full-width and transparent.
 */
#page,
#page.site,
#page.grid-container,
#page.site.grid-container,
.site.grid-container,
.site.grid-container.container {
  max-width: 100% !important;
  width: 100% !important;
  background: transparent !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow-x: hidden !important;
}

/* Every inner wrapper must also be transparent and full-width */
.site-content,
.site-content > *,
.content-area,
.main-content,
.site-main,
.site-main > *,
.inside-article,
.entry-content,
#content,
#primary,
.one-container .site-content,
.one-container .inside-article,
.separate-containers .inside-article,
.separate-containers .site-main > * {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Kill the 40px padding GeneratePress adds to .site-content */
.site-content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* WordPress inserts empty <p> tags from HTML comments between sections.
   Hide them so they don't create gaps. */
.entry-content > p:empty,
.entry-content > p:not([class]) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
}

/* Also hide <p> tags WordPress inserts inside .pillars-grid,
   which break the 3-column card layout */
.pillars-grid > p,
.pillars-grid > br,
.stats-grid > p,
.stats-grid > br,
.details-grid > p,
.details-grid > br,
.hero__actions > p,
.hero__actions > br,
.footer-grid > p,
.footer-grid > br,
.impact-grid > p,
.impact-grid > br,
.feature-grid > p,
.feature-grid > br,
.timeline > p,
.timeline > br,
.content-2col > p,
.content-2col > br,
.cta-band__actions > p,
.cta-band__actions > br,
.faq-list > p,
.faq-list > br,
.faq-layout > p,
.faq-layout > br {
  display: none !important;
}

.grid-container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/*
 * CRITICAL: GeneratePress puts class "container" on #page.
 * Our design system ALSO uses ".container" for inner content wrappers.
 * GP styles .container with white background, which bleeds into our sections.
 * Fix: force all .container elements inside our sections to be transparent.
 */
.hero .container,
.page-hero .container,
.section .container,
.section--light .container,
.section--dark .container,
.section--accent .container,
.stats-band .container,
.testimonial .container,
.cta-band .container,
.apply-hero .container,
.site-footer .container,
.entry-content .container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

article.page,
article.post {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

.inside-article {
  padding: 0 !important;
  margin: 0 !important;
}

/* --- 2. Remove sidebar --- */
#right-sidebar,
#left-sidebar,
.sidebar,
.widget-area {
  display: none !important;
}

.site-content .content-area {
  width: 100% !important;
  float: none !important;
  flex: 1 !important;
}

/* --- 3. Hide WordPress page title --- */
.page .entry-header,
.page .page-header,
.entry-header,
article.page .entry-title,
body.home .entry-header,
body.page .entry-header {
  display: none !important;
}

/* --- 4. Full-bleed sections --- */
/* Every custom section should span full viewport width.
   The calc trick handles cases where the section is inside
   a narrower parent. */
.hero,
.section,
.section--light,
.section--dark,
.section--accent,
.section--alt,
.stats-band,
.testimonial,
.cta-band,
.apply-hero {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  box-sizing: border-box !important;
  position: relative;
}

/* Also handle when WP wraps our HTML in an extra div */
.entry-content > section,
.entry-content > div > section,
.entry-content > .wp-block-html > section,
.entry-content > .wp-block-html {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  box-sizing: border-box !important;
  display: block !important;
}

/* WP Custom HTML block wrapper - make it transparent */
.wp-block-html {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
}

/* --- 5. SITE HEADER --- */
/* Hide the old site logo image */
.site-header .site-logo img,
.site-header .custom-logo,
.site-header .custom-logo-link img {
  max-height: 40px !important;
  width: auto !important;
}

.site-header,
.site-header .inside-header {
  background: var(--color-bg-dark) !important;
  padding: 12px 24px !important;
  max-width: 100% !important;
  width: 100% !important;
}

.inside-header .grid-container,
.inside-header.grid-container,
.site-header .grid-container {
  padding-left: 24px !important;
  padding-right: 24px !important;
  max-width: 100% !important;
}

/* Site title text */
.site-title,
.site-title a,
.site-branding a {
  color: var(--color-white) !important;
  font-family: var(--font-heading) !important;
  font-weight: 800 !important;
  font-size: 1.5rem !important;
  text-decoration: none !important;
}

/* Navigation */
.main-navigation,
.main-navigation .inside-navigation,
.main-navigation ul {
  background: var(--color-bg-dark) !important;
}

.main-navigation a,
.main-navigation .menu > li > a {
  color: rgba(255, 255, 255, 0.8) !important;
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  text-transform: none !important;
}

.main-navigation a:hover,
.main-navigation .menu > li > a:hover {
  color: var(--color-white) !important;
}

/* Mobile menu button */
.menu-toggle,
.menu-toggle .mobile-menu {
  color: var(--color-white) !important;
  font-family: var(--font-body) !important;
}

/* --- 6. Typography inside WordPress content --- */
.entry-content h1,
.entry-content h2,
.entry-content h3 {
  font-family: var(--font-heading) !important;
}

.entry-content p,
.entry-content li {
  font-family: var(--font-body) !important;
}

/* --- 7. Footer --- */
.site-info,
.inside-site-info {
  background: var(--color-bg-dark) !important;
}

/* Hide default GP footer if we use our own */
.site-info {
  color: rgba(255,255,255,0.4) !important;
  font-family: var(--font-body) !important;
  font-size: var(--text-small) !important;
}

.site-info a {
  color: rgba(255,255,255,0.6) !important;
}

/* --- 8. Body background --- */
body {
  background-color: var(--color-bg-primary) !important;
}

/* --- 9. Remove GeneratePress default bottom margin on content --- */
.site-main > *:last-child,
.inside-article > *:last-child {
  margin-bottom: 0 !important;
}
