/*
Theme Name: Grace and Mercy Home Indonesia
Theme URI: https://graceandmercyhome.org
Author: Grace and Mercy Home Indonesia
Description: Tema homepage yayasan kemanusiaan di Nusa Tenggara Timur. Gaya bersih, hangat, profesional dengan warna dominan biru langit. Mendukung menu navigasi, tombol donasi, dan seksi artikel dinamis.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gmh
*/

/* ============ RESET & BASE ============ */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: #1e293b;
  background: #ffffff;
  line-height: 1.5;
}
a { color: #0284c7; text-decoration: none; }
a:hover { color: #0369a1; }
img { max-width: 100%; display: block; }
.gmh-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gmh-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: #0ea5e9; margin-bottom: 16px;
}
.gmh-h2 {
  font-size: 38px; line-height: 1.18; font-weight: 800; letter-spacing: -0.02em;
  margin: 0 0 16px;
  background: linear-gradient(120deg,#0369a1,#0ea5e9);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* Image placeholder — replace .gmh-ph elements with real <img> or CSS background */
.gmh-ph {
  background-image: repeating-linear-gradient(135deg,#e0f2fe 0 28px,#f0f9ff 28px 56px);
  display: flex; align-items: center; justify-content: center;
  color: #0284c7; font-size: 13px; font-family: monospace; text-align: center;
}

/* ============ HEADER ============ */
.gmh-header { position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0; }
.gmh-topbar { background: linear-gradient(90deg,#0284c7,#0ea5e9); color: #e0f2fe; font-size: 13px; }
.gmh-topbar .gmh-container { display: flex; justify-content: space-between;
  align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.gmh-topbar span { display: flex; align-items: center; gap: 8px; }
.gmh-topbar .gmh-sep { opacity: 0.5; }
.gmh-navbar { display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 22px 24px; max-width: 1200px; margin: 0 auto; }
.gmh-brand { display: flex; align-items: center; gap: 14px; }
.gmh-logo { width: 58px; height: 58px; border-radius: 14px;
  background: linear-gradient(135deg,#0ea5e9,#0284c7);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 20px; letter-spacing: 0.02em; overflow: hidden; }
.gmh-logo img { width: 100%; height: 100%; object-fit: cover; }
.gmh-brand-name { font-weight: 800; font-size: 19px; color: #0369a1; line-height: 1.1; }
.gmh-brand-tag { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #0ea5e9; font-weight: 600; margin-top: 5px; }
.gmh-navwrap { display: flex; align-items: center; gap: 30px; }
.gmh-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0;
  font-size: 16px; font-weight: 600; }
.gmh-nav a { color: #475569; }
.gmh-nav .current-menu-item a, .gmh-nav a:hover { color: #0284c7; }
.gmh-donate { background: linear-gradient(135deg,#0ea5e9,#0284c7); color: #fff;
  font-weight: 700; font-size: 15px; padding: 12px 26px; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(2,132,199,0.32); transition: all .2s; white-space: nowrap; }
.gmh-donate:hover { color: #fff; transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(2,132,199,0.45); }
.gmh-menu-toggle { display: none; background: none; border: none; font-size: 26px;
  color: #0369a1; cursor: pointer; }

/* ============ HERO ============ */
.gmh-hero { position: relative; height: 640px; overflow: hidden;
  background: linear-gradient(135deg,#0369a1,#0ea5e9); }
.gmh-hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease;
  background-size: cover; background-position: center; }
.gmh-hero-slide.is-active { opacity: 1; }
.gmh-hero-slide::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg,rgba(3,74,110,0.92) 0%,rgba(3,74,110,0.55) 55%,rgba(3,74,110,0.25) 100%); }
.gmh-hero-inner { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto;
  height: 100%; display: flex; align-items: center; padding: 0 24px; }
.gmh-hero-content { max-width: 620px; color: #fff; }
.gmh-hero-content.is-active .gmh-hero-text { display: block; }
.gmh-hero-text { display: none; }
.gmh-hero-text.is-active { display: block; }
.gmh-badge { display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25);
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 22px; }
.gmh-hero-text h1 { font-size: 52px; line-height: 1.08; font-weight: 800;
  margin: 0 0 20px; letter-spacing: -0.02em; }
.gmh-hero-text p { font-size: 19px; line-height: 1.6; color: #e0f2fe; margin: 0 0 34px; max-width: 520px; }
.gmh-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.gmh-btn-white { background: #fff; color: #0284c7; font-weight: 700; font-size: 16px;
  padding: 15px 32px; border-radius: 999px; box-shadow: 0 10px 24px rgba(0,0,0,0.2); transition: transform .2s; }
.gmh-btn-white:hover { color: #0284c7; transform: translateY(-2px); }
.gmh-btn-outline { background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff; font-weight: 700; font-size: 16px; padding: 15px 32px; border-radius: 999px; transition: background .2s; }
.gmh-btn-outline:hover { color: #fff; background: rgba(255,255,255,0.22); }
.gmh-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 3; }
.gmh-dots button { width: 9px; height: 9px; border-radius: 999px; border: none;
  cursor: pointer; background: rgba(255,255,255,0.45); transition: all .3s; }
.gmh-dots button.is-active { width: 30px; background: #fff; }

/* ============ INTRO + VIDEO ============ */
.gmh-intro { padding: 96px 0; }
.gmh-intro .gmh-container { display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center; }
.gmh-intro p { font-size: 17px; line-height: 1.75; color: #475569; margin: 0 0 18px; }
.gmh-features { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 12px; }
.gmh-feature { display: flex; align-items: center; gap: 12px; font-weight: 600; color: #334155; }
.gmh-feature .ic { width: 40px; height: 40px; border-radius: 10px; background: #e0f2fe;
  display: flex; align-items: center; justify-content: center; font-size: 18px; }
.gmh-video { position: relative; border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(3,74,110,0.18); aspect-ratio: 4/3; }
.gmh-video .gmh-ph { position: absolute; inset: 0; }
.gmh-play { position: absolute; inset: 0; margin: auto; width: 78px; height: 78px;
  border-radius: 999px; border: none; cursor: pointer; background: rgba(14,165,233,0.95);
  color: #fff; font-size: 26px; box-shadow: 0 12px 30px rgba(14,165,233,0.5); transition: transform .2s; }
.gmh-play:hover { transform: scale(1.08); }

/* ============ STATS ============ */
.gmh-stats { background: linear-gradient(135deg,#0284c7,#0ea5e9); }
.gmh-stats .gmh-container { display: grid; grid-template-columns: repeat(4,1fr);
  gap: 32px; text-align: center; color: #fff; padding-top: 70px; padding-bottom: 70px; }
.gmh-stat-num { font-size: 52px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.gmh-stat-label { font-size: 16px; color: #bae6fd; margin-top: 10px; font-weight: 500; }

/* ============ PROGRAMS ============ */
.gmh-programs { padding: 96px 0; text-align: center; }
.gmh-programs .gmh-h2 { margin: 0 auto 16px; max-width: 640px; }
.gmh-programs .gmh-lead { font-size: 17px; color: #64748b; max-width: 600px;
  margin: 0 auto 56px; line-height: 1.6; }
.gmh-prog-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; text-align: left; }
.gmh-card { border: 1px solid #e2e8f0; border-radius: 20px; overflow: hidden; background: #fff;
  box-shadow: 0 4px 12px rgba(15,23,42,0.04); transition: all .3s; }
.gmh-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(3,74,110,0.14); }
.gmh-prog-media { position: relative; height: 150px; }
.gmh-prog-media .gmh-ph { position: absolute; inset: 0; }
.gmh-prog-icon { position: absolute; top: 14px; left: 14px; width: 46px; height: 46px;
  border-radius: 13px; background: rgba(255,255,255,0.95); display: flex; align-items: center;
  justify-content: center; font-size: 24px; box-shadow: 0 6px 16px rgba(3,74,110,0.2); }
.gmh-card-body { padding: 24px; }
.gmh-card-body h3 { font-size: 19px; font-weight: 800; color: #0369a1; margin: 0 0 10px; }
.gmh-card-body p { font-size: 14.5px; line-height: 1.6; color: #64748b; margin: 0 0 16px; }
.gmh-link { font-weight: 700; font-size: 14px; color: #0284c7; }

/* ============ DONATION BANNER ============ */
.gmh-donate-banner { padding-bottom: 96px; }
.gmh-donate-banner .inner { position: relative; border-radius: 28px; overflow: hidden;
  background: linear-gradient(120deg,#0ea5e9,#0284c7); padding: 64px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.gmh-donate-banner .blob { position: absolute; border-radius: 999px; background: rgba(255,255,255,0.08); }
.gmh-donate-banner .blob1 { right: -40px; top: -40px; width: 280px; height: 280px; }
.gmh-donate-banner .blob2 { right: 120px; bottom: -80px; width: 220px; height: 220px; background: rgba(255,255,255,0.06); }
.gmh-donate-banner .txt { position: relative; color: #fff; max-width: 640px; }
.gmh-donate-banner h2 { font-size: 34px; font-weight: 800; margin: 0 0 14px;
  letter-spacing: -0.02em; line-height: 1.2; }
.gmh-donate-banner p { font-size: 17px; color: #e0f2fe; margin: 0; line-height: 1.6; }
.gmh-donate-banner .gmh-btn-white { position: relative; font-size: 17px; padding: 18px 40px;
  font-weight: 800; box-shadow: 0 14px 30px rgba(0,0,0,0.2); white-space: nowrap; }

/* ============ ARTICLES ============ */
.gmh-articles { padding-bottom: 96px; }
.gmh-articles .head { display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 44px; gap: 24px; flex-wrap: wrap; }
.gmh-articles .gmh-h2 { margin: 0; }
.gmh-btn-ghost { font-weight: 700; font-size: 15px; color: #0284c7;
  border: 1.5px solid #bae6fd; padding: 12px 24px; border-radius: 999px; transition: background .2s; }
.gmh-btn-ghost:hover { background: #f0f9ff; }
.gmh-art-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.gmh-art-media { position: relative; height: 200px; }
.gmh-art-media .gmh-ph, .gmh-art-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gmh-art-cat { position: absolute; top: 16px; left: 16px; background: #0ea5e9; color: #fff;
  font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 999px; z-index: 2; }
.gmh-art-date { font-size: 13px; color: #94a3b8; font-weight: 500; margin-bottom: 10px; }
.gmh-art-grid h3 { font-size: 19px; font-weight: 700; color: #1e293b; margin: 0 0 12px; line-height: 1.35; }
.gmh-art-grid .exc { font-size: 14.5px; color: #64748b; line-height: 1.6; margin: 0 0 16px; }

/* ============ GALLERY ============ */
.gmh-gallery { background: #f8fafc; border-top: 1px solid #e2e8f0; }
.gmh-gallery .gmh-container { padding-top: 80px; padding-bottom: 80px; }
.gmh-gallery .head { text-align: center; margin-bottom: 44px; }
.gmh-gallery .head .gmh-h2 { margin: 0 auto; }
.gmh-gal-grid { display: grid; grid-template-columns: repeat(4,1fr);
  grid-template-rows: 200px 200px; gap: 16px; }
.gmh-gal-grid > div { border-radius: 16px; overflow: hidden; }
.gmh-gal-grid .gmh-ph { width: 100%; height: 100%; }
.gmh-gal-tall { grid-row: span 2; }

/* ============ LAPORAN ============ */
.gmh-reports { padding: 96px 0; }
.gmh-reports .head { display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.gmh-reports .head .gmh-h2 { margin: 0; }
.gmh-reports-lead { font-size: 16px; color: #64748b; max-width: 420px; margin: 0; line-height: 1.6; }
.gmh-rep-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.gmh-rep-item { display: flex; align-items: center; gap: 16px; padding: 22px 24px;
  border: 1px solid #e2e8f0; border-radius: 16px; background: #fff;
  box-shadow: 0 4px 12px rgba(15,23,42,0.04); transition: all .3s; }
.gmh-rep-item:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(3,74,110,0.12);
  border-color: #bae6fd; }
.gmh-rep-item.is-empty { opacity: .7; cursor: default; }
.gmh-rep-item.is-empty:hover { transform: none; box-shadow: 0 4px 12px rgba(15,23,42,0.04); border-color: #e2e8f0; }
.gmh-rep-ic { width: 46px; height: 46px; flex: none; border-radius: 12px; background: #e0f2fe;
  display: flex; align-items: center; justify-content: center; font-size: 22px; }
.gmh-rep-txt { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.gmh-rep-title { font-weight: 700; font-size: 16px; color: #1e293b; }
.gmh-rep-desc { font-size: 13px; color: #94a3b8; line-height: 1.45; }
.gmh-rep-dl { font-size: 13px; font-weight: 700; color: #0284c7; white-space: nowrap; }
.gmh-rep-item.is-empty .gmh-rep-dl { color: #cbd5e1; }
@media (max-width: 900px) { .gmh-rep-list { grid-template-columns: 1fr; } }

/* ============ SECOND CTA ============ */
.gmh-cta2 { position: relative; overflow: hidden; background: linear-gradient(135deg,#0369a1,#0ea5e9); }
.gmh-cta2::before { content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg,#38bdf8 0 44px,#7dd3fc 44px 88px); opacity: .5; }
.gmh-cta2::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,rgba(12,74,110,0.85),rgba(12,74,110,0.92)); }
.gmh-cta2 .inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto;
  padding: 100px 24px; text-align: center; color: #fff; }
.gmh-cta2 h2 { font-size: 42px; font-weight: 800; margin: 0 0 18px; letter-spacing: -0.02em; line-height: 1.15; }
.gmh-cta2 p { font-size: 19px; color: #e0f2fe; margin: 0 auto 36px; max-width: 560px; line-height: 1.6; }
.gmh-cta2 .gmh-cta-row { justify-content: center; }
.gmh-btn-grad { background: linear-gradient(135deg,#0ea5e9,#0284c7); color: #fff; font-weight: 700;
  font-size: 17px; padding: 16px 38px; border-radius: 999px; box-shadow: 0 12px 30px rgba(14,165,233,0.5); transition: transform .2s; }
.gmh-btn-grad:hover { color: #fff; transform: translateY(-2px); }
.gmh-btn-outline-lg { background: transparent; border: 1.5px solid rgba(255,255,255,0.55);
  color: #fff; font-weight: 700; font-size: 17px; padding: 16px 38px; border-radius: 999px; transition: background .2s; }
.gmh-btn-outline-lg:hover { color: #fff; background: rgba(255,255,255,0.12); }

/* ============ FOOTER ============ */
.gmh-footer { background: #0f172a; color: #cbd5e1; }
.gmh-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 48px; padding: 72px 24px 40px; max-width: 1200px; margin: 0 auto; }
.gmh-footer .fbrand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.gmh-footer .flogo { width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg,#0ea5e9,#0284c7); display: flex; align-items: center;
  justify-content: center; color: #fff; font-weight: 800; font-size: 16px; overflow: hidden; }
.gmh-footer .flogo img { width: 100%; height: 100%; object-fit: cover; }
.gmh-footer .fname { font-weight: 800; font-size: 18px; color: #fff; }
.gmh-footer .fdesc { font-size: 14px; line-height: 1.7; color: #94a3b8; margin: 0 0 20px; max-width: 300px; }
.gmh-socials { display: flex; gap: 10px; }
.gmh-socials a { width: 38px; height: 38px; border-radius: 10px; background: #1e293b;
  display: flex; align-items: center; justify-content: center; font-size: 16px; color: #cbd5e1; transition: background .2s; }
.gmh-socials a:hover { background: #0284c7; }
.gmh-footer h4 { font-weight: 700; color: #fff; font-size: 15px; margin: 0 0 18px; }
.gmh-footer .flinks { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.gmh-footer .flinks a { color: #94a3b8; }
.gmh-footer .flinks a:hover { color: #fff; }
.gmh-footer .fcontact { display: flex; flex-direction: column; gap: 14px;
  font-size: 14px; color: #94a3b8; line-height: 1.5; }
.gmh-footer .fnews p { font-size: 14px; color: #94a3b8; margin: 0 0 16px; line-height: 1.6; }
.gmh-news-form { display: flex; flex-direction: column; gap: 10px; }
.gmh-news-form input { background: #1e293b; border: 1px solid #334155; border-radius: 10px;
  padding: 13px 16px; color: #fff; font-size: 14px; font-family: inherit; outline: none; }
.gmh-news-form button { background: linear-gradient(135deg,#0ea5e9,#0284c7); color: #fff;
  border: none; font-weight: 700; font-size: 14px; padding: 13px; border-radius: 10px; cursor: pointer; }
.gmh-news-form button:hover { opacity: .92; }
.gmh-copyright { border-top: 1px solid #1e293b; }
.gmh-copyright .gmh-container { display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; font-size: 13px; color: #64748b; padding-top: 22px; padding-bottom: 22px; }
.gmh-copyright a { color: #64748b; }
.gmh-copyright .links { display: flex; gap: 20px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .gmh-nav, .gmh-topbar { display: none; }
  .gmh-nav.is-open { display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid #e2e8f0; padding: 16px 24px; }
  .gmh-nav.is-open ul { flex-direction: column; gap: 14px; }
  .gmh-menu-toggle { display: block; }
  .gmh-hero-text h1 { font-size: 36px; }
  .gmh-intro .gmh-container { grid-template-columns: 1fr; gap: 40px; }
  .gmh-stats .gmh-container { grid-template-columns: repeat(2,1fr); gap: 40px 24px; }
  .gmh-prog-grid { grid-template-columns: repeat(2,1fr); }
  .gmh-art-grid { grid-template-columns: 1fr; }
  .gmh-gal-grid { grid-template-columns: repeat(2,1fr); grid-template-rows: repeat(3,180px); }
  .gmh-gal-tall { grid-row: auto; }
  .gmh-footer .cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .gmh-donate-banner .inner, .gmh-cta2 h2 { text-align: left; }
}
@media (max-width: 560px) {
  .gmh-prog-grid, .gmh-footer .cols { grid-template-columns: 1fr; }
  .gmh-hero { height: 560px; }
}
