/* GreenHope Foundation — Public Site Styles */
:root {
  --primary: #2e7d32;
  --secondary: #f9a825;
  --dark: #1b5e20;
  --light: #e8f5e9;
  --text: #212121;
  --muted: #6b7280;
  --border: #e0e0e0;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 2px 16px rgba(0,0,0,.09);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); line-height: 1.65; background: #fff; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--dark); }
img { max-width: 100%; height: auto; display: block; }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section    { padding: 72px 0; }
.section-sm { padding: 48px 0; }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; }
.section-title    { font-size: clamp(1.5rem, 3vw, 2rem); text-align: center; margin-bottom: 12px; }
.section-subtitle { text-align: center; color: var(--muted); max-width: 560px; margin: 0 auto 48px; font-size: 1.05rem; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 8px; font-size: .95rem; font-weight: 600; cursor: pointer; border: none; transition: all .2s; text-decoration: none; white-space: nowrap; }
.btn-primary   { background: var(--primary); color: #fff; }
.btn-primary:hover  { background: var(--dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(46,125,50,.35); }
.btn-secondary { background: var(--secondary); color: #212121; }
.btn-secondary:hover { background: #f57f17; }
.btn-outline   { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white     { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--light); }
.btn-sm  { padding: 8px 18px; font-size: .85rem; }
.btn-lg  { padding: 16px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── Flash ── */
.flash { padding: 14px 20px; border-radius: 8px; margin-bottom: 20px; font-size: .95rem; display: flex; align-items: center; gap: 10px; }
.flash-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #2e7d32; }
.flash-danger  { background: #ffebee; color: #c62828; border-left: 4px solid #c62828; }
.flash-warning { background: #fff8e1; color: #e65100; border-left: 4px solid #f9a825; }
.flash-info    { background: #e3f2fd; color: #1565c0; border-left: 4px solid #1976d2; }

/* ── Navbar ── */
.navbar { position: sticky; top: 0; z-index: 1000; background: #fff; box-shadow: 0 1px 0 var(--border); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 800; color: var(--primary); flex-shrink: 0; }
.site-logo-img  { height: 44px; width: auto; }
.site-logo-text { font-size: 1.2rem; font-weight: 800; color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a { padding: 8px 12px; border-radius: 6px; font-size: .88rem; font-weight: 500; color: var(--text); transition: background .15s, color .15s; }
.nav-links a:hover, .nav-links a.active { background: var(--light); color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; border: none; background: none; flex-shrink: 0; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; display: block; transition: transform .25s, opacity .25s; }

/* ── Hero ── */
.hero { background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 60%, #4caf50 100%); color: #fff; padding: 100px 0 80px; position: relative; overflow: hidden; }
.hero::before { content:''; position:absolute; inset:0; background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-content { position: relative; max-width: 680px; }
.hero-tag { display: inline-block; background: rgba(255,255,255,.18); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.3); padding: 6px 16px; border-radius: 20px; font-size: .82rem; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 22px; color: #fff; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 20px; }
.hero p  { font-size: 1.1rem; opacity: .9; margin-bottom: 36px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 52px; flex-wrap: wrap; }
.hero-stat-num { font-size: 1.8rem; font-weight: 800; }
.hero-stat-lbl { font-size: .8rem; opacity: .75; text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }

/* ── Cards ── */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.13); }
.card-img  { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 22px; }
.card-cat  { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--primary); margin-bottom: 8px; }
.card-title { font-size: 1.05rem; margin-bottom: 10px; line-height: 1.35; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--primary); }
.card-text  { font-size: .88rem; color: var(--muted); margin-bottom: 16px; }

/* ── Progress bar ── */
.progress-wrap { margin: 14px 0 8px; }
.progress-bar-track { background: #e0e0e0; border-radius: 999px; height: 8px; overflow: hidden; }
.progress-bar-fill  { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), #66bb6a); width: 0; transition: width 1.2s cubic-bezier(.4,0,.2,1); }
.progress-meta { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-top: 6px; }
.progress-meta strong { color: var(--primary); }

/* ── Grids ── */
.campaigns-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.blog-grid      { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }

/* ── Campaign detail layout ── */
.campaign-detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 36px; align-items: start; }
.campaign-detail-sticky { position: sticky; top: 80px; }

/* ── Impact stats ── */
.stats-section { background: var(--primary); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; text-align: center; }
.stat-item { padding: 48px 20px; border-right: 1px solid rgba(255,255,255,.15); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 2.6rem; font-weight: 800; display: block; }
.stat-lbl { font-size: .82rem; opacity: .8; text-transform: uppercase; letter-spacing: .6px; margin-top: 6px; }

/* ── Testimonials ── */
.testimonials-carousel { position: relative; overflow: hidden; }
.testimonials-track    { display: flex; transition: transform .5s ease; }
.testimonial-slide     { min-width: 100%; padding: 0 8px; }
.testimonial-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; text-align: center; }
.testimonial-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 3px solid var(--light); }
.testimonial-avatar-placeholder { width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.testimonial-text { font-size: 1rem; color: #444; font-style: italic; margin-bottom: 20px; line-height: 1.7; }
.testimonial-name { font-weight: 700; color: var(--text); }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.carousel-dot  { width: 10px; height: 10px; border-radius: 50%; background: var(--border); border: none; cursor: pointer; transition: background .2s; padding: 0; }
.carousel-dot.active { background: var(--primary); }

/* ── Events ── */
.events-list { display: flex; flex-direction: column; gap: 16px; }
.event-item  { display: flex; gap: 20px; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); flex-wrap: wrap; }
.event-date-badge { min-width: 56px; text-align: center; background: var(--primary); color: #fff; border-radius: 8px; padding: 10px 8px; flex-shrink: 0; }
.event-date-day { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.event-date-mon { font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }
.event-info { flex: 1; min-width: 160px; }
.event-info h4 { font-size: 1rem; margin-bottom: 4px; }
.event-info p  { font-size: .85rem; color: var(--muted); }

/* ── Event detail layout ── */
.event-detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: start; }

/* ── Forms ── */
.form-group  { margin-bottom: 18px; }
.form-label  { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: #374151; }
.form-control { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: .95rem; font-family: var(--font); transition: border .2s, box-shadow .2s; outline: none; background: #fff; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(46,125,50,.12); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-check  { display: flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; }
.form-check input { width: 16px; height: 16px; accent-color: var(--primary); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-hint   { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.form-row-2  { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── Amount buttons ── */
.amount-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.amount-btn  { padding: 10px 20px; border: 2px solid var(--border); border-radius: 8px; background: #fff; font-size: .95rem; font-weight: 600; cursor: pointer; transition: all .15s; color: var(--text); }
.amount-btn:hover, .amount-btn.selected { border-color: var(--primary); background: var(--light); color: var(--primary); }

/* ── Auth pages ── */
.auth-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--light) 0%, #fff 100%); padding: 40px 20px; }
.auth-card    { background: #fff; border-radius: 14px; box-shadow: 0 4px 32px rgba(0,0,0,.12); padding: 40px; width: 100%; max-width: 460px; }
.auth-logo    { text-align: center; margin-bottom: 28px; }
.auth-title   { font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; text-align: center; }
.auth-sub     { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 28px; }
.auth-footer  { text-align: center; margin-top: 20px; font-size: .88rem; color: var(--muted); }

/* ── Badges ── */
.badge           { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.badge-success   { background: #e8f5e9; color: #2e7d32; }
.badge-warning   { background: #fff8e1; color: #e65100; }
.badge-danger    { background: #ffebee; color: #c62828; }
.badge-info      { background: #e3f2fd; color: #1565c0; }
.badge-secondary { background: #f5f5f5; color: #616161; }
.badge-primary   { background: var(--light); color: var(--primary); }

/* ── Page header ── */
.page-header { background: linear-gradient(135deg, var(--dark), var(--primary)); color: #fff; padding: 48px 0; }
.page-header h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.breadcrumb { display: flex; gap: 8px; font-size: .85rem; opacity: .8; margin-top: 8px; list-style: none; flex-wrap: wrap; }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; }
.breadcrumb a { color: #fff; opacity: .8; }

/* ── Donate box ── */
.donate-box { background: #fff; border-radius: 14px; box-shadow: 0 4px 28px rgba(0,0,0,.1); padding: 28px; }
.donate-box h3 { font-size: 1.15rem; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }

/* ── Donor wall ── */
.donor-wall { display: flex; flex-wrap: wrap; gap: 14px; }
.donor-item { display: flex; align-items: center; gap: 10px; background: var(--light); border-radius: 8px; padding: 10px 14px; font-size: .88rem; }
.donor-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 700; flex-shrink: 0; }

/* ── Volunteer / Contact two-col ── */
.volunteer-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.contact-grid   { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-icon   { width: 42px; height: 42px; background: var(--light); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }

/* ── Blog post content ── */
.post-content { font-size: 1.02rem; line-height: 1.85; }
.post-content h2, .post-content h3 { margin: 28px 0 12px; }
.post-content p  { margin-bottom: 16px; }
.post-content ul, .post-content ol { margin: 0 0 16px 24px; }
.post-content li { margin-bottom: 6px; }
.post-content img { border-radius: 8px; margin: 20px 0; width: 100%; }
.post-content blockquote { border-left: 4px solid var(--primary); margin: 20px 0; padding: 12px 20px; background: var(--light); border-radius: 0 8px 8px 0; font-style: italic; color: #444; }

/* ── Comments ── */
.comment-item   { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.comment-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.comment-meta   { font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.comment-text   { font-size: .93rem; line-height: 1.6; }

/* ── Category filter ── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn { padding: 7px 16px; border: 2px solid var(--border); border-radius: 999px; background: #fff; font-size: .83rem; font-weight: 600; cursor: pointer; transition: all .15s; color: var(--muted); text-decoration: none; display: inline-block; }
.filter-btn:hover, .filter-btn.active { border-color: var(--primary); background: var(--primary); color: #fff; }

/* ── Pagination ── */
.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.page-link  { min-width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--border); border-radius: 8px; font-size: .9rem; font-weight: 600; transition: all .15s; color: var(--text); text-decoration: none; padding: 0 10px; }
.page-link:hover, .page-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-link.disabled { opacity: .4; pointer-events: none; }

/* ── Share buttons ── */
.share-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn  { padding: 8px 18px; border-radius: 8px; font-size: .85rem; font-weight: 600; color: #fff; cursor: pointer; border: none; }
.share-fb   { background: #1877f2; }
.share-tw   { background: #1da1f2; }
.share-wa   { background: #25d366; }
.share-link { background: #616161; }

/* ── Footer ── */
.footer { background: #111; color: #ccc; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { font-size: .88rem; margin-top: 14px; line-height: 1.7; max-width: 280px; }
.footer h4 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: #aaa; font-size: .88rem; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-contact p { font-size: .88rem; margin-bottom: 8px; display: flex; gap: 8px; }
.footer-bottom { border-top: 1px solid #222; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: .82rem; flex-wrap: wrap; gap: 10px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; background: #222; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #aaa; transition: background .15s, color .15s; font-size: .9rem; }
.footer-social a:hover { background: var(--primary); color: #fff; }

/* ── Maintenance ── */
.maintenance-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--dark), var(--primary)); color: #fff; padding: 40px 20px; text-align: center; }

/* ── About values grid ── */
.values-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.about-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* ══════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════ */

/* ── Tablet: 900px ── */
@media (max-width: 900px) {
  .footer-grid         { grid-template-columns: 1fr 1fr; }
  .volunteer-grid,
  .contact-grid        { grid-template-columns: 1fr; }
  .about-intro-grid    { grid-template-columns: 1fr; gap: 32px; }
  .mission-grid        { grid-template-columns: 1fr; }
  .campaign-detail-grid { grid-template-columns: 1fr; }
  .campaign-detail-sticky { position: static; }
  .event-detail-grid   { grid-template-columns: 1fr; }
  .form-row-2          { grid-template-columns: 1fr; }
  .stats-grid          { grid-template-columns: 1fr 1fr; }
  .stat-item           { border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); }
}

/* ── Mobile: 768px ── */
@media (max-width: 768px) {
  /* Navbar */
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: 1.9rem; }
  .hero p  { font-size: 1rem; }
  .hero-stats { gap: 20px; margin-top: 36px; }

  /* Sections */
  .section    { padding: 52px 0; }
  .section-sm { padding: 36px 0; }

  /* Donate box */
  .donate-box { padding: 20px; }

  /* Page header */
  .page-header { padding: 36px 0; }

  /* Auth */
  .auth-card { padding: 28px 20px; }
}

/* ── Small mobile: 580px ── */
@media (max-width: 580px) {
  /* Grids → single column */
  .campaigns-grid,
  .blog-grid           { grid-template-columns: 1fr; }
  .footer-grid         { grid-template-columns: 1fr; }
  .stats-grid          { grid-template-columns: 1fr 1fr; }
  .values-grid         { grid-template-columns: 1fr 1fr; }

  /* Hero */
  .hero-actions        { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn   { width: 100%; justify-content: center; }
  .hero-stats          { gap: 16px; }
  .hero-stat-num       { font-size: 1.5rem; }

  /* Section titles */
  .section-title { font-size: 1.5rem; }

  /* Amount buttons */
  .amount-btns         { gap: 8px; }
  .amount-btn          { flex: 1 1 calc(50% - 5px); text-align: center; padding: 10px 8px; }

  /* Events */
  .event-item          { flex-direction: row; align-items: flex-start; }

  /* Donor wall */
  .donor-wall          { gap: 10px; }
  .donor-item          { width: 100%; }

  /* Footer */
  .footer-bottom       { flex-direction: column; text-align: center; }

  /* Share buttons */
  .share-btns          { gap: 8px; }
  .share-btn           { flex: 1 1 calc(50% - 4px); text-align: center; padding: 8px; }

  /* Container padding */
  .container           { padding: 0 16px; }

  /* Tables → scrollable */
  .table-scroll        { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ── Extra small: 400px ── */
@media (max-width: 400px) {
  .stats-grid          { grid-template-columns: 1fr; }
  .values-grid         { grid-template-columns: 1fr; }
  .amount-btn          { flex: 1 1 100%; }
  .hero h1             { font-size: 1.6rem; }
  .auth-card           { padding: 20px 16px; }
}