/*
Theme Name: Patungan Kebaikan
Theme URI: https://patungan.insanmadanijambi.org
Author: LAZ Insan Madani Jambi
Author URI: https://insanmadanijambi.org
Description: Theme crowdfunding ringan & modern untuk LAZ Insan Madani Jambi. Dioptimalkan untuk konversi donasi, mobile-first, dan cepat.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: patungan-kebaikan
Tags: charity, nonprofit, crowdfunding, donation, one-column, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

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

:root {
  --primary: #E63946;
  --primary-dark: #c1121f;
  --secondary: #F4A261;
  --accent: #2A9D8F;
  --dark: #1D3557;
  --text: #333333;
  --text-light: #666666;
  --light: #F8F9FA;
  --white: #FFFFFF;
  --shadow: 0 8px 30px rgba(0,0,0,0.08);
  --radius: 16px;
  --transition: all 0.3s ease;
  --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.site-title a {
  color: inherit;
}

.site-description {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: var(--primary);
}

.btn-donasi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white) !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
  text-decoration: none !important;
}

.btn-donasi:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
  color: var(--white) !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

/* ===== HERO ===== */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(29, 53, 87, 0.75) 0%, rgba(230, 57, 70, 0.55) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 60px 0;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--white);
}

.hero-content .subtitle {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--white) !important;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  border: 2px solid var(--white);
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--dark) !important;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  display: block;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ===== SECTIONS ===== */
.section {
  padding: 70px 0;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--dark);
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 48px;
}

.section-light {
  background: var(--light);
}

/* ===== IMPACT CARDS ===== */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.impact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.impact-card:hover {
  transform: translateY(-6px);
}

.impact-card .number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.impact-card .label {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ===== PROGRAM CARDS ===== */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.program-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.program-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.program-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.program-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.program-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 16px;
  flex: 1;
}

.progress-wrap {
  margin-bottom: 16px;
}

.progress-bar {
  height: 8px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 10px;
  transition: width 0.6s ease;
}

.progress-text {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
}

.program-card .btn-donasi {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

/* ===== TRUST SECTION ===== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.trust-item .icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.trust-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.trust-item p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
}

/* ===== STEPS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
}

.step-item {
  padding: 20px;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 16px;
}

.step-item h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.step-item p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: #cbd5e1;
  padding: 50px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 8px;
}

.footer-grid a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-grid a:hover {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* ===== FLOATING WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  z-index: 9999;
  text-decoration: none;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .main-navigation {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .header-inner .btn-donasi {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 1.9rem;
  }
  .hero-stats {
    gap: 20px;
  }
  .stat-number {
    font-size: 1.5rem;
  }
  .section {
    padding: 50px 0;
  }
}

/* ===== WORDPRESS DEFAULTS ===== */
.alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.wp-block-image img {
  border-radius: 12px;
}

.entry-content > * + * {
  margin-top: 1.2em;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
