/*
Theme Name: Ignite Media
Theme URI: https://ignite.org.es
Author: Ignite Media
Author URI: https://ignite.org.es
Description: A nonprofit Christian media WordPress theme — faith-driven content, community engagement, and WooCommerce shop.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ignite-media
Tags: blog, news, e-commerce, custom-menu, featured-images, theme-options
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
*/

/* ============================================
   CSS RESET & BASE
   ============================================ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root {
  --background: 40 20% 98%;
  --foreground: 220 20% 12%;
  --card: 0 0% 100%;
  --card-foreground: 220 20% 12%;
  --popover: 0 0% 100%;
  --popover-foreground: 220 20% 12%;
  --primary: 220 18% 20%;
  --primary-foreground: 40 20% 98%;
  --secondary: 35 30% 95%;
  --secondary-foreground: 220 18% 20%;
  --muted: 40 15% 94%;
  --muted-foreground: 220 10% 46%;
  --accent: 35 85% 52%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 35 15% 88%;
  --input: 35 15% 88%;
  --ring: 35 85% 52%;
  --radius: 0.5rem;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --gradient-warm: linear-gradient(135deg, hsl(35 85% 52%), hsl(25 90% 48%));
  --gradient-hero: linear-gradient(180deg, hsl(220 18% 20% / 0.85), hsl(220 18% 12% / 0.95));
  --shadow-card: 0 1px 3px hsl(220 18% 20% / 0.06), 0 1px 2px hsl(220 18% 20% / 0.04);
  --shadow-card-hover: 0 10px 25px hsl(220 18% 20% / 0.08), 0 4px 10px hsl(220 18% 20% / 0.04);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */
.container-narrow {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
.container-wide {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .container-narrow, .container-wide { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .container-wide { padding-left: 2rem; padding-right: 2rem; }
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site-main { flex: 1; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsl(var(--card) / 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header-logo img {
  height: 3rem;
  width: 3rem;
}
.header-logo span {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: hsl(var(--foreground));
}

/* Desktop Nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
}
.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}
.nav-desktop a:hover,
.nav-desktop a.active {
  color: hsl(var(--accent));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.btn-signin {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--accent-foreground));
  background: hsl(var(--accent));
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  transition: opacity 0.2s;
}
.btn-signin:hover { opacity: 0.9; }

/* Mobile toggle */
.mobile-toggle {
  display: flex;
  padding: 0.5rem;
  background: none;
  border: none;
  color: hsl(var(--foreground));
}
@media (min-width: 768px) {
  .mobile-toggle { display: none; }
}
.mobile-toggle svg { width: 1.25rem; height: 1.25rem; }

/* Mobile Nav */
.nav-mobile {
  display: none;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--card));
}
.nav-mobile.open { display: block; }
@media (min-width: 768px) {
  .nav-mobile { display: none !important; }
}
.nav-mobile-inner {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.nav-mobile-inner a {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}
.nav-mobile-inner a:hover,
.nav-mobile-inner a.active { color: hsl(var(--accent)); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1rem;
  max-width: 48rem;
  margin: 0 auto;
}
.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: hsl(var(--primary-foreground));
  margin-bottom: 1.5rem;
  line-height: 1.15;
}
@media (min-width: 768px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.75rem; } }
.hero p {
  font-size: 1.125rem;
  color: hsl(var(--primary-foreground) / 0.85);
  margin-bottom: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
@media (min-width: 768px) { .hero p { font-size: 1.25rem; } }
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}
@media (min-width: 640px) { .hero-buttons { flex-direction: row; } }

/* Page Hero (shorter, for About etc.) */
.page-hero {
  position: relative;
  height: 40vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.page-hero h1 {
  position: relative;
  z-index: 10;
  font-size: 2.25rem;
  font-weight: 700;
  color: hsl(var(--primary-foreground));
}
@media (min-width: 768px) { .page-hero h1 { font-size: 3rem; } }

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  transition: opacity 0.2s;
  font-size: 1rem;
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: 2px solid hsl(var(--primary-foreground) / 0.3);
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  border-radius: 0.5rem;
  background: transparent;
  transition: background 0.2s;
  font-size: 1rem;
}
.btn-outline:hover { background: hsl(var(--primary-foreground) / 0.1); }

.btn-outline-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: 2px solid hsl(var(--accent));
  color: hsl(var(--accent));
  font-weight: 600;
  border-radius: 0.5rem;
  background: transparent;
  transition: background 0.2s, color 0.2s;
  font-size: 1rem;
}
.btn-outline-accent:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  font-weight: 500;
  border-radius: 0.5rem;
  background: transparent;
  transition: background 0.2s;
  font-size: 1rem;
}
.btn-secondary:hover { background: hsl(var(--muted)); }

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: hsl(var(--secondary));
  padding: 3rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.stat-item svg { color: hsl(var(--accent)); width: 1.5rem; height: 1.5rem; }
.stat-value {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}
.stat-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ============================================
   SECTION HEADINGS
   ============================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}
@media (min-width: 768px) { .section-title { font-size: 1.875rem; } }
.section-divider {
  width: 4rem;
  height: 2px;
  background: hsl(var(--accent));
  margin-top: 0.5rem;
}
.section-divider.center { margin-left: auto; margin-right: auto; }
.section-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--accent));
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.section-link:hover { text-decoration: underline; }

/* ============================================
   ARTICLE CARDS
   ============================================ */
.article-card {
  background: hsl(var(--card));
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: var(--shadow-card);
}
.article-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

/* Regular card */
.article-card .card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.article-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.article-card:hover .card-image img { transform: scale(1.05); }
.article-card .card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-card .card-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--card-foreground));
  margin-bottom: 0.5rem;
  line-height: 1.3;
  transition: color 0.2s;
}
.article-card:hover .card-body h3 { color: hsl(var(--accent)); }
.article-card .card-excerpt {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.article-card .card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}
.card-meta .sep { color: hsl(var(--muted-foreground)); }

/* Featured card */
.article-card.featured {
  display: grid;
}
@media (min-width: 768px) {
  .article-card.featured { grid-template-columns: 1fr 1fr; }
}
.article-card.featured .card-image {
  aspect-ratio: 16 / 10;
}
@media (min-width: 768px) {
  .article-card.featured .card-image { aspect-ratio: auto; height: 100%; }
}
.article-card.featured .card-body {
  padding: 1.5rem 2rem;
  justify-content: center;
}
.article-card.featured .card-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--card-foreground));
  margin-bottom: 0.75rem;
  line-height: 1.2;
  transition: color 0.2s;
}
@media (min-width: 768px) { .article-card.featured .card-body h2 { font-size: 1.875rem; } }
.article-card.featured:hover .card-body h2 { color: hsl(var(--accent)); }
.article-card.featured .card-excerpt {
  -webkit-line-clamp: 3;
  margin-bottom: 1rem;
}

/* Badge */
.badge-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  margin-bottom: 0.5rem;
  align-self: flex-start;
}

/* Article grid */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .articles-grid { grid-template-columns: repeat(3, 1fr); } }
.articles-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .articles-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .articles-grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ============================================
   CATEGORY FILTERS
   ============================================ */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.category-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  transition: all 0.2s;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}
.category-btn:hover { background: hsl(var(--muted) / 0.8); }
.category-btn.active {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

/* ============================================
   SEARCH INPUT
   ============================================ */
.search-input {
  width: 100%;
  max-width: 28rem;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--input));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  outline: none;
  transition: box-shadow 0.2s;
}
.search-input:focus { box-shadow: 0 0 0 2px hsl(var(--ring)); }
.search-input::placeholder { color: hsl(var(--muted-foreground)); }

/* ============================================
   SINGLE ARTICLE
   ============================================ */
.article-single { padding: 2.5rem 0; }
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.article-back:hover { color: hsl(var(--accent)); }
.article-back svg { width: 1rem; height: 1rem; }
.article-header { margin-bottom: 2rem; }
.article-header h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  line-height: 1.15;
  margin-bottom: 1rem;
}
@media (min-width: 768px) { .article-header h1 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .article-header h1 { font-size: 3rem; } }
.article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
.article-featured-img {
  width: 100%;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.article-content p {
  margin-bottom: 1.25rem;
  color: hsl(var(--foreground) / 0.9);
  line-height: 1.8;
  font-size: 1.125rem;
}

/* ============================================
   SHOP / PRODUCT GRID
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  background: hsl(var(--card));
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}
.product-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.product-card .product-image {
  aspect-ratio: 1;
  background: hsl(var(--muted));
  overflow: hidden;
}
.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card .product-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card .product-body h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--card-foreground));
  margin-bottom: 0.25rem;
}
.product-card .product-desc {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.product-card .product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
}
.product-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}
.btn-add-cart {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  transition: opacity 0.2s;
}
.btn-add-cart:hover { opacity: 0.9; }

/* Cart badge */
.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
}
.cart-link:hover { opacity: 0.9; }
.cart-count {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   VALUES GRID (About)
   ============================================ */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }
.value-card {
  background: hsl(var(--card));
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.value-card svg {
  color: hsl(var(--accent));
  width: 2rem;
  height: 2rem;
  margin: 0 auto 0.75rem;
}
.value-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--card-foreground));
  margin-bottom: 0.5rem;
}
.value-card p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

/* Two-col section (About mission/vision) */
.two-col {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col img {
  border-radius: 0.5rem;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.two-col h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}
@media (min-width: 768px) { .two-col h2 { font-size: 1.875rem; } }
.two-col p {
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-grid {
  display: grid;
  gap: 3rem;
  max-width: 64rem;
  margin: 0 auto;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.contact-item svg {
  color: hsl(var(--accent));
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}
.contact-item .label {
  font-weight: 500;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}
.contact-item .value {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
.contact-item a { transition: color 0.2s; }
.contact-item a:hover { color: hsl(var(--accent)); }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--input));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  outline: none;
  font-family: inherit;
  transition: box-shadow 0.2s;
}
.form-input:focus { box-shadow: 0 0 0 2px hsl(var(--ring)); }
textarea.form-input { resize: none; }
.btn-submit {
  width: 100%;
  padding: 0.75rem;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  font-size: 1rem;
  transition: opacity 0.2s;
}
.btn-submit:hover { opacity: 0.9; }

/* ============================================
   DONATE PAGE
   ============================================ */
.donate-header {
  text-align: center;
  margin-bottom: 3rem;
}
.donate-header svg {
  color: hsl(var(--accent));
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
}
.donate-header h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}
@media (min-width: 768px) { .donate-header h1 { font-size: 2.25rem; } }
.donate-header p {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.7;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 640px) { .amount-grid { grid-template-columns: repeat(4, 1fr); } }
.amount-btn {
  padding: 0.75rem;
  border-radius: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  border: 2px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  transition: all 0.2s;
}
.amount-btn:hover { border-color: hsl(var(--accent) / 0.5); }
.amount-btn.active {
  border-color: hsl(var(--accent));
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.custom-amount {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  max-width: 32rem;
  margin: 0 auto 2rem;
  transition: border-color 0.2s;
}
.custom-amount:focus-within { border-color: hsl(var(--accent)); }
.custom-amount span { color: hsl(var(--muted-foreground)); font-weight: 700; }
.custom-amount input {
  background: transparent;
  border: none;
  outline: none;
  flex: 1;
  color: hsl(var(--foreground));
  font-size: 1rem;
}

.impact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) { .impact-grid { grid-template-columns: repeat(3, 1fr); } }
.impact-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}
.impact-card.popular {
  border: 2px solid hsl(var(--accent));
  position: relative;
}
.impact-card.popular .popular-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}
.impact-card h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}
.impact-card p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ============================================
   VOLUNTEER / GENERAL CARDS
   ============================================ */
.info-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 1.5rem;
}
.info-card h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}
.info-card p {
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}
.info-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) { .info-cards-grid { grid-template-columns: repeat(2, 1fr); } }

/* CTA Box */
.cta-box {
  background: hsl(var(--muted) / 0.5);
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
}
.cta-box h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}
.cta-box p {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-content { padding: 3rem 0; }
.legal-content h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .legal-content h1 { font-size: 2.25rem; } }
.legal-content .last-updated {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}
.legal-content section {
  margin-bottom: 2rem;
}
.legal-content section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}
.legal-content section p,
.legal-content section li {
  color: hsl(var(--foreground) / 0.9);
  line-height: 1.7;
}
.legal-content section ul {
  padding-left: 1.5rem;
  list-style-type: disc;
}
.legal-content section li { margin-bottom: 0.5rem; }
.legal-content a { color: hsl(var(--accent)); }
.legal-content a:hover { text-decoration: underline; }

/* ============================================
   SUCCESS PAGES
   ============================================ */
.success-page {
  padding: 5rem 0;
  text-align: center;
}
.success-page svg {
  color: #22c55e;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
}
.success-page h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}
.success-page p {
  color: hsl(var(--muted-foreground));
  max-width: 28rem;
  margin: 0 auto 2rem;
}
.success-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ============================================
   404 PAGE
   ============================================ */
.page-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 0;
  text-align: center;
}
.page-404 h1 {
  font-size: 3.75rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}
.page-404 p {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}
.page-404 a {
  color: hsl(var(--accent));
  font-weight: 600;
}
.page-404 a:hover { text-decoration: underline; }

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page { padding: 5rem 0; }
.login-box { max-width: 28rem; margin: 0 auto; }
.login-box h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
  text-align: center;
}
.login-box .subtitle {
  color: hsl(var(--muted-foreground));
  text-align: center;
  margin-bottom: 2rem;
}
.login-box .error-msg {
  background: hsl(var(--destructive) / 0.1);
  color: hsl(var(--destructive));
  font-size: 0.875rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}
.login-box .success-msg {
  background: hsl(var(--accent) / 0.1);
  color: hsl(var(--accent));
  font-size: 0.875rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}
.login-divider {
  position: relative;
  margin: 1.5rem 0;
}
.login-divider::before {
  content: '';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  border-top: 1px solid hsl(var(--border));
  top: 50%;
}
.login-divider span {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  background: hsl(var(--background));
  padding: 0 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin: 0 auto;
  width: fit-content;
}
.social-btn {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid hsl(var(--input));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  font-weight: 500;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s;
  margin-bottom: 0.75rem;
}
.social-btn:hover { background: hsl(var(--muted)); }
.social-btn svg { width: 1.25rem; height: 1.25rem; }
.login-footer {
  text-align: center;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 1.5rem;
}
.login-footer a, .login-footer button {
  color: hsl(var(--accent));
  background: none;
  border: none;
  font-size: inherit;
}
.login-footer a:hover, .login-footer button:hover { text-decoration: underline; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.footer-inner {
  padding: 3rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand p {
  font-size: 0.875rem;
  opacity: 0.8;
  line-height: 1.7;
}
.footer-brand .brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.footer-brand .brand-link img { width: 2rem; height: 2rem; }
.footer-brand .brand-link span {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
}
.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.6;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  font-size: 0.875rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.footer-col a:hover { opacity: 1; }

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: hsl(var(--primary-foreground) / 0.15);
  border-radius: 0.5rem;
  transition: background 0.2s;
}
.social-icon:hover { background: hsl(var(--primary-foreground) / 0.25); }
.social-icon svg { width: 1.25rem; height: 1.25rem; }

.footer-donate {
  text-align: center;
  margin-top: 1.5rem;
}

.footer-bottom {
  border-top: 1px solid hsl(var(--primary-foreground) / 0.2);
  margin-top: 2rem;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom p {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* ============================================
   COOKIE CONSENT
   ============================================ */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  padding: 1rem;
  box-shadow: 0 -4px 12px hsl(220 18% 20% / 0.08);
  display: none;
}
.cookie-consent.show { display: block; }
.cookie-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 640px) { .cookie-inner { flex-direction: row; } }
.cookie-inner p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
.cookie-inner a { color: hsl(var(--accent)); text-decoration: underline; }
.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cookie-buttons .btn-reject {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid hsl(var(--border));
  border-radius: 0.375rem;
  color: hsl(var(--muted-foreground));
  background: transparent;
  transition: background 0.2s;
}
.cookie-buttons .btn-reject:hover { background: hsl(var(--muted)); }
.cookie-buttons .btn-accept {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-radius: 0.375rem;
  border: none;
  transition: opacity 0.2s;
}
.cookie-buttons .btn-accept:hover { opacity: 0.9; }

/* ============================================
   UTILITY BACKGROUNDS
   ============================================ */
.bg-muted { background: hsl(var(--muted)); }
.bg-secondary { background: hsl(var(--secondary)); }

/* ============================================
   WOOCOMMERCE OVERRIDES
   ============================================ */
.woocommerce .products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}
.woocommerce ul.products li.product {
  margin: 0 !important;
  padding: 0;
  width: 100% !important;
  float: none !important;
  background: hsl(var(--card));
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s;
}
.woocommerce ul.products li.product:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.woocommerce ul.products li.product a img {
  margin: 0 !important;
  border-radius: 0;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-heading) !important;
  font-size: 1.125rem !important;
  font-weight: 700;
  padding: 0.75rem 1rem 0.25rem !important;
  color: hsl(var(--card-foreground));
}
.woocommerce ul.products li.product .price {
  padding: 0 1rem;
  font-weight: 700;
  color: hsl(var(--foreground)) !important;
}
.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background-color: hsl(var(--accent)) !important;
  color: hsl(var(--accent-foreground)) !important;
  border-radius: 0.5rem !important;
  font-weight: 600 !important;
  border: none !important;
  transition: opacity 0.2s !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background-color: hsl(var(--accent)) !important;
  opacity: 0.9;
}

/* WooCommerce cart page */
.woocommerce-cart .woocommerce table.shop_table {
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
}
.woocommerce-cart .woocommerce table.shop_table th {
  font-family: var(--font-heading);
  font-weight: 600;
}

/* ============================================
   PAGINATION (WordPress)
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 0;
}
.pagination .page-numbers {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  transition: all 0.2s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-color: hsl(var(--accent));
}

/* ============================================
   PRINT / ACCESSIBILITY
   ============================================ */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

@media print {
  .site-header, .site-footer, .cookie-consent { display: none !important; }
}
