/*
Theme Name: IDWP Theme
Theme URI: https://idwp.org
Author: IDWP
Description: Official WordPress theme for the International Development Water Project
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: idwp-theme
*/

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

:root {
  --blue:        #007FFF;
  --blue-dark:   #0066CC;
  --blue-light:  #e6f2ff;
  --teal:        #1E90FF;
  --teal-dark:   #1873CC;
  --gold:        #F4A623;
  --text:        #0a1f33;
  --muted:       #4a5f78;
  --bg:          #ffffff;
  --bg-alt:      #f0f7ff;
  --border:      #cfe4ff;
  --radius:      8px;
  --max:         1120px;
  --font:        'Inter', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; font-size: 1rem; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul   { list-style: none; }
p    { margin-bottom: 1.1rem; }
h1,h2,h3,h4 { line-height: 1.2; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section--alt { background: var(--bg-alt); }

/* =====================
   Header
   ===================== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100px;
}
.site-logo {
  display: flex; align-items: center; gap: 0.75rem;
  font-weight: 800; font-size: 1.25rem; color: var(--blue);
  letter-spacing: -0.3px;
}
.site-logo:hover { text-decoration: none; }
.logo-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem; flex-shrink: 0;
}
.logo-text span { display: block; font-size: 0.7rem; font-weight: 500; color: var(--muted); letter-spacing: 0.3px; margin-top: -2px; }
.site-logo-img { height: 80px; width: auto; max-width: 320px; object-fit: contain; display: block; }

.site-nav ul { display: flex; gap: 1.8rem; align-items: center; }
.site-nav a  { color: var(--text); font-weight: 500; font-size: 0.9rem; transition: color 0.2s; }
.site-nav a:hover { color: var(--blue); text-decoration: none; }
.nav-donate {
  background: var(--gold); color: #fff !important;
  padding: 0.5rem 1.3rem; border-radius: var(--radius);
  font-weight: 700 !important;
}
.nav-donate:hover { background: #d9911a !important; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.3s; }

/* =====================
   Hero
   ===================== */
.hero {
  padding: 6rem 0 5rem;
  background: linear-gradient(150deg, #e8f4fb 0%, #f0fbf9 50%, #ffffff 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '💧';
  position: absolute; right: -40px; top: -40px;
  font-size: 20rem; opacity: 0.04; pointer-events: none;
}
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero__eyebrow {
  display: inline-block; background: var(--blue-light); color: var(--blue);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 0.35rem 1rem; border-radius: 50px; margin-bottom: 1.5rem;
}
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 1.2rem; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero__sub  { font-size: 1.1rem; color: var(--muted); margin-bottom: 2rem; max-width: 480px; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__visual {
  border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, #a8d8f0 0%, #5bb8a0 100%);
  min-height: 380px; display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero__visual-inner { text-align: center; color: #fff; padding: 2rem; }
.hero__visual-inner .drop { font-size: 5rem; margin-bottom: 1rem; }
.hero__visual-inner p { font-size: 1.1rem; font-weight: 600; opacity: 0.95; }

/* =====================
   Buttons
   ===================== */
.btn { display: inline-block; padding: 0.8rem 2rem; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; transition: all 0.2s; cursor: pointer; border: none; }
.btn-primary  { background: var(--blue);  color: #fff; }
.btn-primary:hover  { background: var(--blue-dark); text-decoration: none; }
.btn-teal     { background: var(--teal);  color: #fff; }
.btn-teal:hover     { background: var(--teal-dark); text-decoration: none; }
.btn-gold     { background: var(--gold);  color: #fff; }
.btn-gold:hover     { background: #d9911a; text-decoration: none; }
.btn-outline  { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover  { background: var(--blue); color: #fff; text-decoration: none; }
.btn-white    { background: #fff; color: var(--blue); font-weight: 700; }
.btn-white:hover    { background: var(--blue-light); text-decoration: none; }

/* =====================
   Stats Bar
   ===================== */
.stats { background: var(--blue); color: #fff; padding: 3rem 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stats__item strong { display: block; font-size: 2.4rem; font-weight: 800; }
.stats__item span   { font-size: 0.85rem; opacity: 0.8; margin-top: 0.3rem; display: block; }

/* =====================
   Section Labels & Headings
   ===================== */
.label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--blue); margin-bottom: 0.8rem; }
.section-heading { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 1rem; }
.section-sub     { color: var(--muted); max-width: 540px; }
.text-center     { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* =====================
   Mission
   ===================== */
.mission__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.mission__content p { color: var(--muted); }
.mission__visual {
  border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, #c5e8f7 0%, #8fd1c1 100%);
  min-height: 340px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 2rem; text-align: center;
}
.mission__visual .icon { font-size: 4rem; margin-bottom: 1rem; }
.mission__visual p { font-weight: 600; color: #1a5580; font-size: 1rem; line-height: 1.5; }

/* =====================
   What We Do / Cards
   ===================== */
.cards__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover { box-shadow: 0 10px 32px rgba(26,111,163,0.1); transform: translateY(-3px); }
.card__icon { font-size: 2.2rem; margin-bottom: 1rem; }
.card h3    { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; }
.card p     { color: var(--muted); font-size: 0.95rem; }

/* =====================
   Donate CTA
   ===================== */
.donate-cta {
  background: linear-gradient(135deg, var(--teal) 0%, var(--blue) 100%);
  color: #fff; padding: 5rem 0; text-align: center;
}
.donate-cta .section-heading { color: #fff; }
.donate-cta .section-sub     { color: rgba(255,255,255,0.88); margin: 0 auto 2.5rem; }
.donate-amounts { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.donate-amount {
  background: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.4);
  color: #fff; padding: 0.6rem 1.6rem; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.donate-amount:hover, .donate-amount.active { background: #fff; color: var(--blue); border-color: #fff; }
.donate-note { font-size: 0.8rem; opacity: 0.7; margin-top: 1.5rem; }

/* =====================
   Board of Directors
   ===================== */
.board__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.board-card  {
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem; text-align: center;
}
.board-card__avatar {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--blue-light), #b8ddf5);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800; color: var(--blue);
}
.board-card h3  { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }
.board-card .role { font-size: 0.8rem; color: var(--teal); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.8rem; }
.board-card p   { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }

/* =====================
   Development Project
   ===================== */
.dev-project__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.dev-project__content p { color: var(--muted); }
.quote-block {
  background: var(--blue-light); border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem; margin: 2rem 0;
}
.quote-block blockquote { font-style: italic; color: var(--blue-dark); font-size: 0.95rem; line-height: 1.7; }
.quote-block cite { display: block; margin-top: 0.8rem; font-size: 0.8rem; color: var(--muted); font-style: normal; font-weight: 600; }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.comparison-card {
  border-radius: 10px; overflow: hidden; border: 1px solid var(--border);
}
.comparison-card__image {
  height: 140px;
  display: flex; align-items: center; justify-content: center; font-size: 2.5rem;
}
.comparison-card--before .comparison-card__image { background: linear-gradient(135deg, #f5d9b0, #e8b87a); }
.comparison-card--after  .comparison-card__image { background: linear-gradient(135deg, #a8d8f0, #5bb8a0); }
.comparison-card__label { padding: 0.75rem 1rem; font-size: 0.82rem; font-weight: 600; color: var(--muted); }

/* =====================
   Photo Gallery
   ===================== */
.gallery__intro { color: var(--muted); max-width: 640px; margin: 1rem 0 2rem; }
.gallery__grid  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-item   {
  border-radius: 10px; overflow: hidden; border: 1px solid var(--border);
  background: linear-gradient(135deg, #c5e8f7 0%, #8fd1c1 100%);
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; cursor: pointer; transition: transform 0.2s;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery__caption { margin-top: 1.5rem; background: var(--bg-alt); border-radius: var(--radius); padding: 1.2rem 1.5rem; }
.gallery__caption p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* =====================
   Contact
   ===================== */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact__info h2  { font-size: 1.8rem; font-weight: 800; margin-bottom: 1rem; }
.contact__info p   { color: var(--muted); }
.contact-method    { display: flex; gap: 1rem; align-items: flex-start; margin: 1.5rem 0; }
.contact-method__icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 0.2rem; }
.contact-method__text strong { display: block; font-weight: 600; margin-bottom: 0.2rem; }
.contact-method__text span   { color: var(--muted); font-size: 0.9rem; }
.contact-form { background: var(--bg-alt); border-radius: 14px; padding: 2rem; }
.contact-form h3   { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.5rem; }
.form-group        { margin-bottom: 1.2rem; }
.form-group label  { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text); }
.form-group input,
.form-group textarea,
.form-group select { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); font-family: inherit; font-size: 0.95rem; background: #fff; transition: border-color 0.2s; }
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--blue); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* =====================
   Footer
   ===================== */
.site-footer { background: #051f3d; color: #adc9e6; padding: 4rem 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer__brand .site-logo { color: #fff; margin-bottom: 1rem; }
.footer__brand .logo-text span { color: #7aa3bc; }
.footer__brand p { font-size: 0.88rem; color: #7aa8d6; line-height: 1.7; }
.footer__col h4  { color: #fff; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 1.2rem; }
.footer__col ul li { margin-bottom: 0.6rem; }
.footer__col ul a  { color: #7aa8d6; font-size: 0.88rem; transition: color 0.2s; }
.footer__col ul a:hover { color: #fff; text-decoration: none; }
.footer__501c3 {
  background: rgba(255,255,255,0.08); border-radius: var(--radius);
  padding: 0.6rem 1rem; display: inline-block; font-size: 0.75rem;
  color: #7aa8d6; margin-top: 1rem;
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer__bottom p { font-size: 0.82rem; color: #3a6a96; }

/* =====================
   Inner Page Hero
   ===================== */
.page-hero { background: linear-gradient(135deg, var(--blue-light) 0%, #e8f8f5 100%); padding: 4rem 0; border-bottom: 1px solid var(--border); }
.page-hero .label { margin-bottom: 0.5rem; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.page-hero p  { color: var(--muted); margin-top: 0.75rem; max-width: 560px; }

/* Content area */
.entry-content { padding: 4rem 0; }
.entry-content h2 { font-size: 1.5rem; font-weight: 700; margin: 2.5rem 0 1rem; color: var(--blue); }
.entry-content p  { color: var(--muted); margin-bottom: 1.2rem; }
.entry-content ul { list-style: disc; padding-left: 1.5rem; color: var(--muted); }
.entry-content ul li { margin-bottom: 0.5rem; }

/* Blog */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.post-card  { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: box-shadow 0.2s; }
.post-card:hover { box-shadow: 0 8px 28px rgba(26,111,163,0.1); }
.post-card__thumb { height: 180px; background: linear-gradient(135deg, #a8d8f0, #5bb8a0); }
.post-card__body  { padding: 1.5rem; }
.post-card__title { font-size: 1.05rem; font-weight: 700; margin: 0.4rem 0 0.6rem; }
.post-card__title a { color: var(--text); }
.post-card__title a:hover { color: var(--blue); text-decoration: none; }
.post-card__excerpt { color: var(--muted); font-size: 0.9rem; }

/* =====================
   Responsive
   ===================== */
@media (max-width: 900px) {
  .hero__inner    { grid-template-columns: 1fr; }
  .hero__visual   { min-height: 240px; }
  .mission__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .cards__grid    { grid-template-columns: 1fr 1fr; }
  .board__grid    { grid-template-columns: 1fr 1fr; }
  .dev-project__inner { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .footer__grid   { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats__grid    { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (max-width: 640px) {
  .site-nav       { display: none; position: absolute; top: 100px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 1.2rem 1.5rem; box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
  .site-nav.open  { display: block; }
  .site-nav ul    { flex-direction: column; gap: 1rem; }
  .menu-toggle    { display: block; }
  .cards__grid    { grid-template-columns: 1fr; }
  .board__grid    { grid-template-columns: 1fr; }
  .gallery__grid  { grid-template-columns: 1fr 1fr; }
  .comparison     { grid-template-columns: 1fr; }
  .footer__grid   { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .hero__actions  { flex-direction: column; }
  .donate-amounts { gap: 0.75rem; }
  .site-logo-img { height: 56px; max-width: 220px; }
  .site-header .container { height: 76px; }
  .site-nav { top: 76px; }
  .board-card[style*="grid-template-columns:140px"] { grid-template-columns: 1fr !important; text-align: center !important; }
  .board-card[style*="grid-template-columns:140px"] .board-card__avatar { margin: 0 auto !important; }
  .board-card[style*="grid-template-columns:140px"] > div { text-align: center; }
}
