/*
Theme Name:        1805 NGO Theme
Theme URI:         https://t.me/i1805loaded
Description:       Premium humanitarian NGO WordPress theme by 1805loaded. Built for NGOs, charities, and humanitarian organizations. Features high-conversion donation flows, mobile-first design, Paystack/Flutterwave integration, and a modern premium UI.
Version:           1.3.0
Requires at least: 6.0
Tested up to:      6.5
Requires PHP:      7.4
Author:            1805loaded
Author URI:        https://t.me/i1805loaded
License:           GNU General Public License v2 or later
License URI:       http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       1805-ngo-theme
Tags:              ngo, charity, donations, humanitarian, modern, responsive, custom-colors, custom-logo

== Author ==
Developer:  1805loaded
Contact:    +2347033920473
Email:      1805loaded@gmail.com
Telegram:   https://t.me/i1805loaded
*/
/* ==========================================================================
   DESIGN SYSTEM — HEARTS BEYOND BARS
   ========================================================================== */

:root {
  /* Brand Colors */
  --hbb-blue:         #0A2540;
  --hbb-blue-mid:     #0D3060;
  --hbb-blue-light:   #1A4A7A;
  --hbb-gold:         #F59E0B;
  --hbb-gold-light:   #FCD34D;
  --hbb-gold-dark:    #D97706;
  --hbb-white:        #FFFFFF;
  --hbb-off-white:    #F8FAFC;
  --hbb-gray-100:     #F1F5F9;
  --hbb-gray-200:     #E2E8F0;
  --hbb-gray-400:     #94A3B8;
  --hbb-gray-600:     #475569;
  --hbb-gray-800:     #1E293B;
  --hbb-text:         #1E293B;
  --hbb-text-light:   #64748B;

  /* Typography */
  --font-display:     'Playfair Display', Georgia, serif;
  --font-body:        'DM Sans', system-ui, sans-serif;
  --font-mono:        'JetBrains Mono', monospace;

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

  /* Border Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(10,37,64,0.08), 0 1px 2px rgba(10,37,64,0.06);
  --shadow-md:  0 4px 16px rgba(10,37,64,0.10), 0 2px 4px rgba(10,37,64,0.06);
  --shadow-lg:  0 10px 40px rgba(10,37,64,0.14), 0 4px 6px rgba(10,37,64,0.05);
  --shadow-xl:  0 25px 60px rgba(10,37,64,0.18);
  --shadow-gold: 0 4px 20px rgba(245,158,11,0.30);

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-base:   0.25s ease;
  --transition-slow:   0.40s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Layout */
  --container-max:  1280px;
  --container-md:   960px;
  --container-sm:   720px;
  --header-height:  72px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--hbb-text);
  background: var(--hbb-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ==========================================================================
   TYPOGRAPHY SCALE
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--hbb-blue);
  line-height: 1.2;
  font-weight: 700;
}

.display-1 { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -0.02em; }
.display-2 { font-size: clamp(2rem, 4.5vw, 3.75rem); letter-spacing: -0.02em; }
h1 { font-size: clamp(1.875rem, 3.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.25rem; }

.lead { font-size: 1.125rem; line-height: 1.7; color: var(--hbb-text-light); }
.body-sm { font-size: 0.875rem; }
.overline {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--hbb-gold);
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */

.container {
  width: 100%; max-width: var(--container-max);
  margin-inline: auto; padding-inline: var(--space-xl);
}
.container--sm { max-width: var(--container-sm); }
.container--md { max-width: var(--container-md); }

.section { padding-block: var(--space-4xl); }
.section--sm { padding-block: var(--space-3xl); }
.section--lg { padding-block: calc(var(--space-4xl) * 1.5); }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-sm); padding: 0.875rem 2rem;
  font-size: 0.9375rem; font-weight: 600; font-family: var(--font-body);
  border-radius: var(--radius-full); line-height: 1;
  transition: all var(--transition-base);
  white-space: nowrap; cursor: pointer;
  position: relative; overflow: hidden;
}

.btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.12);
  transform: translateX(-100%); transition: transform 0.3s ease;
}
.btn:hover::before { transform: translateX(0); }

.btn-primary {
  background: var(--hbb-gold);
  color: var(--hbb-blue);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  background: var(--hbb-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245,158,11,0.40);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--hbb-blue);
  color: var(--hbb-white);
  box-shadow: var(--shadow-md);
}
.btn-secondary:hover {
  background: var(--hbb-blue-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--hbb-white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--hbb-white);
}

.btn-ghost {
  background: transparent; color: var(--hbb-blue);
  border: 2px solid var(--hbb-gray-200);
}
.btn-ghost:hover { border-color: var(--hbb-blue); background: var(--hbb-gray-100); }

.btn-lg { padding: 1.125rem 2.5rem; font-size: 1.0625rem; }
.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.8125rem; }
.btn-icon { padding: 0.875rem; border-radius: var(--radius-full); }

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
  background: var(--hbb-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.card__body { padding: var(--space-xl); }
.card__image { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card__tag {
  display: inline-block; padding: 0.25rem 0.75rem;
  background: rgba(245,158,11,0.12); color: var(--hbb-gold-dark);
  border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-md);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-height);
  background: rgba(10,37,64,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: all var(--transition-base);
}
.site-header.scrolled {
  background: rgba(10,37,64,0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.25);
}

.site-header .container { height: 100%; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.site-logo {
  display: flex; align-items: center; gap: var(--space-sm);
  font-family: var(--font-display); font-size: 1.375rem;
  font-weight: 700; color: var(--hbb-white);
}
.site-logo span { color: var(--hbb-gold); }
.site-logo img { height: 40px; width: auto; }

.main-nav { display: flex; align-items: center; gap: var(--space-xs); }
.main-nav a {
  padding: 0.5rem 1rem; color: rgba(255,255,255,0.8);
  font-size: 0.9375rem; font-weight: 500; border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.main-nav a:hover, .main-nav a.active { color: var(--hbb-white); background: rgba(255,255,255,0.1); }

/* Header donate button — properly sized for all screens */
.header-donate-btn {
  padding: 0.625rem 1.375rem;
  font-size: 0.875rem;
  line-height: 1;
}
/* Desktop: show full text, hide short */
.header-donate-btn .btn-text-full  { display: inline; }
.header-donate-btn .btn-text-short { display: none; }

@media (max-width: 900px) {
  .header-donate-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }
}
@media (max-width: 600px) {
  /* Mobile: show short text only, keep button compact */
  .header-donate-btn {
    padding: 0.4375rem 0.875rem;
    font-size: 0.75rem;
  }
  .header-donate-btn .btn-text-full  { display: none; }
  .header-donate-btn .btn-text-short { display: inline; }
}
@media (max-width: 400px) {
  .header-donate-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.6875rem;
  }
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; cursor: pointer;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--hbb-white); border-radius: 2px;
  transition: all var(--transition-base);
}

/* Mobile Nav */
.mobile-nav {
  display: none; position: fixed;
  inset: 0; z-index: 999;
  background: var(--hbb-blue);
  padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
  flex-direction: column; gap: var(--space-sm);
  transform: translateX(100%); transition: transform var(--transition-slow);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  display: block; padding: var(--space-md) var(--space-lg);
  color: rgba(255,255,255,0.85); font-size: 1.125rem; font-weight: 500;
  border-radius: var(--radius-md); transition: all var(--transition-fast);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav a:hover { color: var(--hbb-white); background: rgba(255,255,255,0.08); }

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: var(--hbb-blue);
  overflow: hidden;
}

.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(245,158,11,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(13,48,96,0.8) 0%, transparent 60%),
    linear-gradient(135deg, #0A2540 0%, #0D3060 50%, #0A2540 100%);
}

.hero__image {
  position: absolute; inset: 0; z-index: 1;
  object-fit: cover; width: 100%; height: 100%;
  opacity: 0.25;
  mix-blend-mode: luminosity;
}

.hero__overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to right,
    rgba(10,37,64,0.90) 0%,
    rgba(10,37,64,0.60) 50%,
    rgba(10,37,64,0.20) 100%
  );
}

.hero__content {
  position: relative; z-index: 3;
  max-width: 700px;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  padding: 0.5rem 1.25rem;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.35);
  border-radius: var(--radius-full);
  color: var(--hbb-gold-light); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: var(--space-xl);
}
.hero__badge::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--hbb-gold); animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero__title {
  color: var(--hbb-white);
  margin-bottom: var(--space-lg);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  letter-spacing: -0.02em; line-height: 1.1;
}
.hero__title em { color: var(--hbb-gold); font-style: normal; }

.hero__subtitle {
  color: rgba(255,255,255,0.75); font-size: 1.125rem;
  line-height: 1.75; margin-bottom: var(--space-2xl);
  max-width: 560px;
}

.hero__actions { display: flex; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-3xl); }

.hero__stats {
  display: flex; gap: var(--space-xl); flex-wrap: wrap;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero__stat-value {
  display: block; font-family: var(--font-display);
  font-size: 1.875rem; font-weight: 700; color: var(--hbb-gold);
  line-height: 1;
}
.hero__stat-label {
  display: block; font-size: 0.8125rem;
  color: rgba(255,255,255,0.6); margin-top: 0.25rem;
}

/* Hero scroll indicator */
.hero__scroll {
  position: absolute; bottom: var(--space-xl); left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center;
  gap: var(--space-sm); color: rgba(255,255,255,0.5);
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  animation: bounce-slow 2s infinite;
}
.hero__scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
}
@keyframes bounce-slow {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ==========================================================================
   IMPACT STATS BAR
   ========================================================================== */

.impact-bar {
  background: var(--hbb-gold);
  padding: var(--space-lg) 0;
  overflow: hidden;
}
.impact-bar__inner {
  display: flex; align-items: center; gap: var(--space-2xl);
  justify-content: center; flex-wrap: wrap;
}
.impact-stat {
  display: flex; align-items: center; gap: var(--space-md);
  padding: var(--space-sm) var(--space-xl);
}
.impact-stat + .impact-stat {
  border-left: 1px solid rgba(10,37,64,0.15);
}
.impact-stat__num {
  font-family: var(--font-display);
  font-size: 2.25rem; font-weight: 800;
  color: var(--hbb-blue); line-height: 1;
}
.impact-stat__label {
  font-size: 0.875rem; font-weight: 600;
  color: rgba(10,37,64,0.7); text-transform: uppercase; letter-spacing: 0.06em;
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */

.section-header { text-align: center; max-width: 680px; margin: 0 auto var(--space-3xl); }
.section-header .overline { display: block; margin-bottom: var(--space-sm); }
.section-header h2 { margin-bottom: var(--space-md); }
.section-header p { color: var(--hbb-text-light); font-size: 1.0625rem; line-height: 1.7; }

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

/* ==========================================================================
   PROGRAMS SECTION
   ========================================================================== */

.programs-section { background: var(--hbb-off-white); }

.program-card {
  background: var(--hbb-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-slow);
  border: 1px solid var(--hbb-gray-200);
}
.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}
.program-card__image {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
}
.program-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.program-card:hover .program-card__image img { transform: scale(1.06); }
.program-card__icon {
  position: absolute; bottom: -20px; right: var(--space-xl);
  width: 48px; height: 48px; border-radius: var(--radius-full);
  background: var(--hbb-gold); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-gold); font-size: 1.25rem;
}
.program-card__body { padding: var(--space-xl); padding-top: calc(var(--space-xl) + 10px); }
.program-card__title { font-size: 1.25rem; margin-bottom: var(--space-sm); }
.program-card__desc { color: var(--hbb-text-light); font-size: 0.9375rem; line-height: 1.65; margin-bottom: var(--space-lg); }
.program-card__link {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  color: var(--hbb-gold-dark); font-weight: 600; font-size: 0.9375rem;
  transition: gap var(--transition-fast);
}
.program-card:hover .program-card__link { gap: var(--space-sm); }

/* ==========================================================================
   LIVE DONATION COUNTER
   ========================================================================== */

.donation-section {
  background: linear-gradient(135deg, var(--hbb-blue) 0%, var(--hbb-blue-mid) 100%);
  position: relative; overflow: hidden;
}
.donation-section::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.donation-counter {
  text-align: center; color: var(--hbb-white);
}
.donation-counter__amount {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 800; color: var(--hbb-gold);
  line-height: 1; letter-spacing: -0.03em;
  text-shadow: 0 4px 30px rgba(245,158,11,0.3);
}
.donation-counter__label {
  font-size: 1rem; color: rgba(255,255,255,0.65);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-top: var(--space-sm);
}

.progress-track {
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  height: 12px; overflow: hidden;
  margin-block: var(--space-xl);
}
.progress-fill {
  height: 100%; border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--hbb-gold), var(--hbb-gold-light));
  transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 0 16px rgba(245,158,11,0.5);
}

.donation-amounts { display: flex; gap: var(--space-md); flex-wrap: wrap; justify-content: center; margin-bottom: var(--space-xl); }
.donation-amount-pill {
  padding: 0.75rem 1.5rem; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: var(--hbb-white); font-weight: 600; font-size: 1rem;
  cursor: pointer; transition: all var(--transition-base);
}
.donation-amount-pill:hover,
.donation-amount-pill.active {
  background: var(--hbb-gold); border-color: var(--hbb-gold);
  color: var(--hbb-blue); transform: scale(1.05);
  box-shadow: var(--shadow-gold);
}

.donation-form { max-width: 480px; margin: 0 auto; }
.donation-input-wrap {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full); overflow: hidden;
  margin-bottom: var(--space-md);
  transition: border-color var(--transition-fast);
}
.donation-input-wrap:focus-within { border-color: var(--hbb-gold); }
.donation-input-wrap .currency {
  padding: 0 var(--space-lg); color: rgba(255,255,255,0.6);
  font-weight: 600; white-space: nowrap;
}
.donation-input-wrap input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--hbb-white); font-size: 1.25rem; font-weight: 600;
  padding: 1rem 0; caret-color: var(--hbb-gold);
}
.donation-input-wrap input::placeholder { color: rgba(255,255,255,0.3); }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.testimonials-section { background: var(--hbb-white); }
.testimonial-card {
  padding: var(--space-xl);
  background: var(--hbb-off-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hbb-gray-200);
  position: relative;
  transition: all var(--transition-slow);
}
.testimonial-card:hover {
  background: var(--hbb-white);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  transform: translateY(-4px);
}
.testimonial-card::before {
  content: '\201C';
  position: absolute; top: var(--space-lg); right: var(--space-xl);
  font-size: 5rem; color: var(--hbb-gold); opacity: 0.2;
  font-family: var(--font-display); line-height: 1;
}
.testimonial-text {
  font-size: 1rem; line-height: 1.75; color: var(--hbb-gray-600);
  margin-bottom: var(--space-lg); font-style: italic;
}
.testimonial-author {
  display: flex; align-items: center; gap: var(--space-md);
}
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--hbb-gold);
}
.testimonial-name { font-weight: 700; font-size: 0.9375rem; }
.testimonial-role { font-size: 0.8125rem; color: var(--hbb-text-light); }

/* ==========================================================================
   GALLERY
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}
.gallery-item {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  cursor: pointer; aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item__overlay {
  position: absolute; inset: 0; background: rgba(10,37,64,0.7);
  opacity: 0; transition: opacity var(--transition-base);
  display: flex; align-items: center; justify-content: center;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__icon { color: var(--hbb-white); font-size: 2rem; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity var(--transition-base);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox__img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-md); }
.lightbox__close {
  position: absolute; top: var(--space-lg); right: var(--space-lg);
  color: white; font-size: 2rem; cursor: pointer; opacity: 0.7;
  transition: opacity var(--transition-fast);
}
.lightbox__close:hover { opacity: 1; }

/* ==========================================================================
   GET INVOLVED / VOLUNTEER
   ========================================================================== */

.involve-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.involve-card {
  padding: var(--space-2xl); border-radius: var(--radius-xl);
  text-align: center; border: 2px solid var(--hbb-gray-200);
  transition: all var(--transition-slow);
}
.involve-card:hover {
  border-color: var(--hbb-gold); background: var(--hbb-blue);
  transform: translateY(-8px); box-shadow: var(--shadow-xl);
}
.involve-card:hover h3, .involve-card:hover p { color: var(--hbb-white); }
.involve-icon {
  width: 72px; height: 72px; border-radius: var(--radius-xl);
  background: rgba(245,158,11,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto var(--space-lg);
  transition: background var(--transition-base);
}
.involve-card:hover .involve-icon { background: rgba(245,158,11,0.2); }

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */

.contact-form { max-width: 640px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.form-group { margin-bottom: var(--space-lg); }
.form-group label {
  display: block; font-weight: 600; font-size: 0.875rem;
  color: var(--hbb-text); margin-bottom: var(--space-xs);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 0.875rem 1.125rem;
  border: 2px solid var(--hbb-gray-200); border-radius: var(--radius-md);
  font-size: 0.9375rem; background: var(--hbb-white); color: var(--hbb-text);
  transition: border-color var(--transition-fast);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--hbb-blue); }
.form-group textarea { resize: vertical; min-height: 130px; }

/* ==========================================================================
   BLOG
   ========================================================================== */

.blog-card {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--hbb-white); box-shadow: var(--shadow-sm);
  border: 1px solid var(--hbb-gray-200);
  transition: all var(--transition-slow);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: transparent; }
.blog-card__image { aspect-ratio: 16/9; overflow: hidden; }
.blog-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .blog-card__image img { transform: scale(1.05); }
.blog-card__body { padding: var(--space-xl); }
.blog-card__meta {
  display: flex; align-items: center; gap: var(--space-md);
  color: var(--hbb-text-light); font-size: 0.8125rem; margin-bottom: var(--space-md);
}
.blog-card__title { font-size: 1.1875rem; margin-bottom: var(--space-sm); }
.blog-card__title a { color: var(--hbb-blue); }
.blog-card__title a:hover { color: var(--hbb-gold-dark); }
.blog-card__excerpt { color: var(--hbb-text-light); font-size: 0.9375rem; line-height: 1.65; margin-bottom: var(--space-lg); }

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

.site-footer { background: var(--hbb-blue); color: rgba(255,255,255,0.8); }

.footer-main { padding: var(--space-4xl) 0 var(--space-3xl); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
}

.footer-brand__logo { margin-bottom: var(--space-lg); }
.footer-brand__tagline { font-size: 0.9375rem; line-height: 1.7; max-width: 300px; margin-bottom: var(--space-xl); }
.footer-brand__social { display: flex; gap: var(--space-sm); }
.social-link {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); font-size: 1rem;
  transition: all var(--transition-base);
}
.social-link:hover { background: var(--hbb-gold); border-color: var(--hbb-gold); color: var(--hbb-blue); }

.footer-col h4 {
  color: var(--hbb-white); font-size: 0.9375rem;
  font-family: var(--font-body); font-weight: 700;
  margin-bottom: var(--space-lg); letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-links { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-links a {
  color: rgba(255,255,255,0.65); font-size: 0.9375rem;
  transition: color var(--transition-fast);
  display: inline-flex; align-items: center; gap: var(--space-xs);
}
.footer-links a:hover { color: var(--hbb-gold); }

.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.10); margin: 0; }

.footer-bottom {
  padding: var(--space-lg) 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-md);
}
.footer-bottom__copy { font-size: 0.875rem; color: rgba(255,255,255,0.5); }
.footer-credits {
  font-size: 0.8125rem; color: rgba(255,255,255,0.45);
  display: flex; align-items: center; gap: 0.3em;
}
.footer-credits a {
  color: var(--hbb-gold-light); font-weight: 600;
  text-decoration: underline; text-decoration-style: dotted;
  text-underline-offset: 3px; transition: color var(--transition-fast);
}
.footer-credits a:hover { color: var(--hbb-gold); }

/* ==========================================================================
   FLOATING DONATE BAR
   ========================================================================== */

.donate-float {
  position: fixed; bottom: var(--space-xl); right: var(--space-xl); z-index: 999;
  display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-sm);
}
.donate-float__btn {
  background: var(--hbb-gold); color: var(--hbb-blue);
  padding: 1rem 1.75rem; border-radius: var(--radius-full);
  font-weight: 700; font-size: 0.9375rem; font-family: var(--font-body);
  box-shadow: 0 8px 32px rgba(245,158,11,0.5);
  animation: float-pulse 3s ease-in-out infinite;
  border: none; cursor: pointer; display: flex; align-items: center; gap: var(--space-sm);
  transition: transform var(--transition-base);
}
.donate-float__btn:hover { transform: scale(1.05); }
@keyframes float-pulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(245,158,11,0.5); }
  50%       { box-shadow: 0 8px 48px rgba(245,158,11,0.7); }
}

/* ==========================================================================
   PAGE TEMPLATES
   ========================================================================== */

/* About Page */
.about-hero { padding-top: calc(var(--header-height) + var(--space-4xl)); padding-bottom: var(--space-4xl); }
.about-story { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3xl); align-items: center; }
.about-image-wrap { position: relative; }
.about-image-wrap img { border-radius: var(--radius-xl); }
.about-image-accent {
  position: absolute; bottom: -20px; left: -20px;
  width: 160px; height: 160px; border-radius: var(--radius-xl);
  background: var(--hbb-gold);
  z-index: -1;
}

/* Team */
.team-card { text-align: center; }
.team-avatar {
  width: 120px; height: 120px; border-radius: 50%;
  object-fit: cover; margin: 0 auto var(--space-md);
  border: 4px solid var(--hbb-gray-200);
  transition: border-color var(--transition-base);
}
.team-card:hover .team-avatar { border-color: var(--hbb-gold); }
.team-name { font-size: 1.0625rem; font-weight: 700; }
.team-role { font-size: 0.875rem; color: var(--hbb-gold-dark); font-weight: 600; }

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* Shimmer skeleton */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--hbb-gray-200) 25%, var(--hbb-gray-100) 50%, var(--hbb-gray-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

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

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

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; }
  .container { padding-inline: var(--space-lg); }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-story { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .involve-cards { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { text-align: center; justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .impact-bar__inner { flex-direction: column; gap: 0; }
  .impact-stat + .impact-stat { border-left: none; border-top: 1px solid rgba(10,37,64,0.15); }
  .donate-float { bottom: var(--space-lg); right: var(--space-lg); }
}

@media (max-width: 480px) {
  .section { padding-block: var(--space-3xl); }
  .donation-counter__amount { font-size: 3rem; }
  .hero__stats { gap: var(--space-lg); }
}

/* ==========================================================================
   PRINT
   ========================================================================== */

@media print {
  .site-header, .donate-float, .mobile-nav { display: none; }
  body { color: #000; background: #fff; }
}

/* ==========================================================================
   MOBILE RESPONSIVE FIXES — All inline grid/display:grid overrides
   These target every inline style grid in page templates
   ========================================================================== */

/* Force ALL inline-style grids to stack on mobile */
@media (max-width: 768px) {

  /* --- Generic inline grid override --- */
  [style*="grid-template-columns"]:not(.hbb-stats-block):not(.adm-stat-row) {
    display: block !important;
  }

  /* --- About Us: story + milestone grid --- */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1.4fr"],
  [style*="grid-template-columns:1fr 1.4fr"],
  [style*="grid-template-columns: 1.4fr 1fr"],
  [style*="grid-template-columns:1.4fr 1fr"],
  [style*="grid-template-columns: 1.2fr 1fr"],
  [style*="grid-template-columns:1.2fr 1fr"],
  [style*="grid-template-columns: 2fr 1fr"],
  [style*="grid-template-columns:2fr 1fr"],
  [style*="grid-template-columns: 1fr 2fr"],
  [style*="grid-template-columns:1fr 2fr"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }

  /* --- Sponsor packages: 3-col grid --- */
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns:repeat(3"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  /* --- Partners grid: 4-col --- */
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns:repeat(4"] {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
  }

  /* --- Contact cards row: 4-col --- */
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns:repeat(4,1fr)"] {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
  }

  /* --- Donation impacts / settings grids --- */
  [style*="grid-template-columns: 1fr 1fr; gap"],
  [style*="grid-template-columns:1fr 1fr;gap"] {
    display: flex !important;
    flex-direction: column !important;
  }

  /* --- Form rows inside page templates --- */
  [style*="grid-template-columns: 1fr 1fr"]:has(input),
  [style*="grid-template-columns:1fr 1fr"]:has(input) {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  /* --- Ensure no horizontal overflow --- */
  .container { overflow-x: hidden; max-width: 100vw; }
  body { overflow-x: hidden; }

  /* --- Page section padding on mobile --- */
  .section { padding-block: 40px; }
  .section--sm { padding-block: 32px; }

  /* --- Hero mobile --- */
  .hero { min-height: auto; padding: calc(var(--header-height) + 40px) 0 48px; }
  .hero__title { font-size: clamp(1.875rem, 8vw, 2.5rem); }

  /* --- Get Involved page: form column fix --- */
  .hbb-vol-form-wrap { padding: 0 4px; }
  .hbb-type-toggle { flex-direction: column; }

  /* --- Sponsor cards: highlight card fix --- */
  [style*="grid-column:1/-1"],
  [style*="grid-column: 1 / -1"] {
    grid-column: auto !important;
  }

  /* --- Impact bar --- */
  .impact-bar__inner { flex-direction: column; gap: 0; }
  .impact-stat + .impact-stat { border-left: none; border-top: 1px solid rgba(10,37,64,.15); }
  .impact-stat { padding: 12px; width: 100%; text-align: center; }

  /* --- Footer bottom row --- */
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  /* --- Float button position fix --- */
  .donate-float { bottom: 16px; right: 16px; }
  .donate-float__btn { padding: 12px 18px; font-size: 0.875rem; }
}

@media (max-width: 480px) {
  /* --- Partners grid: full single column on very small screens --- */
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* --- Contact cards: also go single col on tiny screens --- */
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Team members grid */
  .grid-4 { grid-template-columns: 1fr 1fr !important; }

  /* Font size helpers */
  .hero__title { font-size: 1.875rem; }
  h1 { font-size: 1.625rem; }
  h2 { font-size: 1.375rem; }
}

/* ==========================================================================
   FLOATING DONATE BUTTON — ON/OFF CONTROL
   Controlled by body class set in footer.php from theme option
   ========================================================================== */

body.hide-donate-float .donate-float { display: none !important; }

/* Header CTA area */
.header-cta { display: flex; align-items: center; gap: var(--space-md); }
