/*
Theme Name:   Endatoe Child
Theme URI:    https://endatoe.elkifah.com
Description:  Child theme GeneratePress — rebuild bersih ENDATOE FOUNDATION (tanpa Elementor). Desain rekonstruksi dari endatoefoundation.org.
Author:       ELKIFAH Production
Template:     generatepress
Version:      1.0.0
Text Domain:  endatoe-child
*/

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */
:root {
  --end-green:      #11998e;
  --end-green-2:    #38ef7d;
  --end-gradient:   linear-gradient(120deg, #11998e 0%, #38ef7d 100%);
  --end-btn:        #10b981;
  --end-btn-hover:  #059669;
  --end-dark:       #032f31;
  --end-dark-2:     #05383a;
  --end-body:       #555;
  --end-heading:    #1a2b2c;
  --end-soft:       #eef9f4;
  --end-soft-2:     #f6fbf8;
  --end-font-head:  "Montserrat", "Segoe UI", Arial, sans-serif;
  --end-font-script:"Fasthand", cursive;
}

/* =========================================================
   2. HEADER — transparan di atas hero gelap (semua halaman)
   ========================================================= */
body {
  --header-background-color: transparent;
  --navigation-background-color: transparent;
  --navigation-text-color: #fff;
  --navigation-text-color-hover: #7ef0b8;
  --navigation-text-color-active: #7ef0b8;
}

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  transition: background .3s, box-shadow .3s;
}
.site-header.is-stuck {
  position: fixed;
  background: rgba(3, 47, 49, .97);
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
}
body.admin-bar .site-header.is-stuck { top: 32px; }
.inside-header {
  padding: 14px 0;
}
.main-navigation .main-nav ul li a {
  font-family: var(--end-font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .5px;
  color: #fff;
  padding: 12px 14px;
}
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
  color: #9bf0c4;
}
/* CTA tombol di menu (Jadi Relawan / Gabung Mitra) */
.main-navigation .main-nav ul li.menu-cta > a {
  background: linear-gradient(120deg, #11998e, #38ef7d);
  color: #fff !important;
  border-radius: 40px;
  padding: 10px 22px !important;
  margin-left: 8px;
  font-weight: 800;
}
.main-navigation .main-nav ul li.menu-cta:hover > a {
  background: #059669;
  color: #fff !important;
}
/* dropdown */
.main-navigation ul ul.sub-menu {
  background: #043235;
}
.main-navigation .main-nav ul ul li a {
  color: #fff;
}
/* burger mobile */
.menu-toggle, .menu-toggle:hover {
  color: #fff;
  background: transparent;
}
body.nav-float-right .site-header .header-image { display:block; }
.custom-logo { max-height: 52px; width: auto; }

/* mobile menu panel */
.main-navigation.toggled .main-nav > ul,
.main-navigation .menu-toggle ~ .main-nav {
  background: #043235;
}

/* =========================================================
   3. UTIL
   ========================================================= */
.endatoe-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.gtitle {
  font-family: var(--end-font-head);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.5px;
  background: var(--end-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}
.gtitle-xl { font-size: clamp(40px, 6vw, 64px); }
.gtitle-lg { font-size: clamp(28px, 4vw, 42px); }
.gtitle-md { font-size: clamp(22px, 3vw, 30px); }

.btn {
  display: inline-block;
  background: var(--end-btn);
  color: #fff !important;
  font-family: var(--end-font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 6px;
  transition: background .25s, transform .25s;
}
.btn:hover { background: var(--end-btn-hover); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--end-dark) !important; }
.btn-light:hover { background: #e8fbf2; }

/* konten halaman: hilangkan sidebar & styling entry */
#content.site-content { padding-top: 0; }
.site-content .content-area, .site-main { width: 100% !important; }
.sidebar { display: none; }
.entry-content { color: var(--end-body); font-size: 16px; line-height: 1.85; }

/* =========================================================
   4. HOMEPAGE
   ========================================================= */

/* ---- HERO ---- */
.endatoe-home .end-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #26313a url("/wp-content/uploads/2026/02/hero-bg-2-Large.jpeg") no-repeat center / cover;
  padding: 150px 20px 90px;
}
.end-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,16,18,.78) 0%, rgba(6,16,18,.42) 55%, rgba(6,16,18,.7) 100%);
}
.end-hero .end-hero-inner { position: relative; z-index: 2; max-width: 900px; }
.end-hero .hero-kicker {
  font-family: var(--end-font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #9bf0c4;
  margin-bottom: 10px;
}
.end-hero h1 {
  font-family: var(--end-font-head);
  font-weight: 800;
  font-size: clamp(38px, 6.4vw, 72px);
  line-height: 1.08;
  margin: 0 0 16px;
  background: linear-gradient(120deg, #11998e 0%, #38ef7d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.end-hero .hero-tagline {
  font-family: var(--end-font-script);
  font-size: clamp(22px, 3vw, 30px);
  color: #fff;
  margin: 0;
}
.end-hero .hero-wave {
  position: absolute; bottom: -1px; left: 0; width: 100%; z-index: 3;
}
.end-hero .hero-wave svg { display:block; width:100%; height:70px; }

/* ---- section base ---- */
.sec { padding: 88px 0; }
.sec-head { text-align: center; max-width: 780px; margin: 0 auto 52px; }
.sec-head .sec-sub {
  color: var(--end-body);
  font-size: 17px;
  margin: 14px auto 0;
}

/* ---- STATS ---- */
.end-stats {
  background: #d9f2e6 url("/wp-content/uploads/2026/02/soffbg-scaled.jpg") no-repeat center / cover;
  padding: 84px 0 96px;
  position: relative;
}
.end-stats .sec-head h2 { font-size: clamp(30px, 4.4vw, 48px); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 34px 16px 30px;
  text-align: center;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(6, 90, 66, .12);
  transition: transform .3s;
}
.stat-card:hover { transform: translateY(-6px); }
.stat-card .stat-icon { font-size: 26px; color: #0f9d58; margin-bottom: 8px; }
.stat-card .stat-num {
  font-family: var(--end-font-head);
  font-weight: 800;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.1;
  background: linear-gradient(180deg, #0f9d58, #00bfa5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}
.stat-card .stat-label {
  font-family: var(--end-font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #333;
  margin-top: 4px;
}
.stat-card .stat-sub { font-size: 12.5px; color: #888; margin-top: 2px; }

/* ---- PROGRAM ---- */
.end-program { background: #fff; }
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.program-card {
  border: 1px solid #e6f0ec;
  border-radius: 16px;
  padding: 30px 26px;
  text-align: center;
  background: #fff;
  transition: box-shadow .3s, transform .3s;
}
.program-card:hover { box-shadow: 0 18px 40px rgba(6,90,66,.13); transform: translateY(-6px); }
.program-card .pc-logo { height: 62px; margin: 0 auto 16px; display:flex; align-items:center; justify-content:center; }
.program-card .pc-logo img { max-height: 62px; max-width: 190px; }
.program-card .pc-title {
  font-family: var(--end-font-head);
  font-weight: 800;
  font-size: 18px;
  color: var(--end-heading);
  margin-bottom: 8px;
}
.program-card .pc-desc { font-size: 14.5px; color: #667; line-height: 1.75; }
.program-card .pc-link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--end-font-head);
  font-weight: 700;
  font-size: 13px;
  color: var(--end-green);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.program-card .pc-link:hover { color: #059669; }

/* ---- PUBLIKASI ---- */
.end-news { background: var(--end-soft-2); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.elkifahcharity-post-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(6,60,55,.08);
  transition: transform .3s, box-shadow .3s;
}
.elkifahcharity-post-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(6,60,55,.14); }
.elkifahcharity-post-card .epc-thumb { aspect-ratio: 4/3; overflow: hidden; }
.elkifahcharity-post-card .epc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.elkifahcharity-post-card:hover .epc-thumb img { transform: scale(1.06); }
.elkifahcharity-post-card .epc-body { padding: 20px 22px 24px; }
.elkifahcharity-post-card .epc-cat {
  font-family: var(--end-font-head);
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--end-green);
}
.elkifahcharity-post-card h3 { margin: 6px 0 10px; }
.elkifahcharity-post-card h3 a {
  font-family: var(--end-font-head);
  font-size: 18px; font-weight: 700; line-height: 1.4;
  color: var(--end-heading);
  text-decoration: none;
}
.elkifahcharity-post-card h3 a:hover { color: var(--end-green); }

/* ---- MITRA ---- */
.end-mitra { background: #fff; }
.end-mitra .elkifah-tab-grid { margin-top: 10px; }
.end-mitra .elkifah-tab-item {
  border: 1px solid #edf3f0;
  background: #fafdfb;
  border-radius: 12px;
}
.end-mitra .elkifah-tab-img { object-fit: contain; max-height: 64px; filter: grayscale(1); opacity:.75; transition:.3s; }
.end-mitra .elkifah-tab-item:hover .elkifah-tab-img { filter: grayscale(0); opacity: 1; }

/* ---- CTA ---- */
.end-cta {
  background:
    linear-gradient(180deg, rgba(4,44,46,.92) 0%, rgba(4,44,46,.88) 100%),
    url("/wp-content/uploads/2026/02/footer-bg-scaled.webp") no-repeat center / cover;
  padding: 96px 0;
  text-align: center;
}
.end-cta .sec-head h2 { color: #fff; -webkit-text-fill-color: #fff; }
.end-cta .sec-head .sec-sub { color: #c9e8df; }
.cta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; text-align: left; }
.elkifahcharity-cta-card {
  position: relative;
  border-radius: 16px;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  padding: 26px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.elkifahcharity-cta-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,20,21,0) 20%, rgba(4,20,21,.92) 100%);
}
.elkifahcharity-cta-card .ecta-inner { position: relative; z-index: 2; }
.elkifahcharity-cta-card h3 {
  font-family: var(--end-font-head);
  font-weight: 800;
  color: #fff;
  font-size: 22px;
  margin-bottom: 6px;
}
.elkifahcharity-cta-card p { color: #d9eee7; font-size: 14px; line-height: 1.7; margin-bottom: 14px; }
.elkifahcharity-cta-card .btn { padding: 11px 24px; font-size: 12px; }

/* =========================================================
   5. HALAMAN DALAM (page template + single)
   ========================================================= */
.endatoe-page-hero {
  position: relative;
  background: #26313a url("/wp-content/uploads/2026/02/hero-bg-2-Large.jpeg") no-repeat center / cover;
  background-size: cover;
  padding: 168px 20px 74px;
  text-align: center;
}
.endatoe-page-hero::before {
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(8,20,22,.7), rgba(8,20,22,.45));
}
.endatoe-page-hero .endatoe-container { position: relative; z-index: 2; }
.endatoe-page-hero h1 {
  font-family: var(--end-font-head);
  font-weight: 800;
  color: #fff;
  font-size: clamp(28px, 4.2vw, 46px);
  margin: 0;
  text-shadow: 0 3px 18px rgba(0,0,0,.35);
}
.endatoe-page-body { padding: 64px 0 80px; background:#fff; }
.endatoe-page-body .entry-content { max-width: 860px; margin: 0 auto; }
.entry-content h2, .entry-content h3 {
  font-family: var(--end-font-head);
  color: var(--end-heading);
}
.entry-content h2 { margin-top: 1.6em; }
.entry-content h2.gtitle { margin-top: 0; }
.endatoe-page-body img { height: auto; }

/* galeri konten halaman (grid foto) */
.endatoe-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 26px 0;
}
.endatoe-gallery figure { margin: 0; border-radius: 12px; overflow: hidden; }
.endatoe-gallery img { width: 100%; height: 220px; object-fit: cover; display:block; transition: transform .4s; }
.endatoe-gallery figure:hover img { transform: scale(1.05); }

/* kotak donasi */
.endatoe-donate {
  background: linear-gradient(120deg, #0b8a7d, #16a085);
  color: #fff;
  border-radius: 18px;
  padding: 36px 34px;
  margin-top: 46px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(4,80,66,.25);
}
.endatoe-donate h2 { color:#fff; -webkit-text-fill-color:#fff; margin:0 0 10px; font-size: clamp(22px,3vw,30px); font-weight:800; }
.endatoe-donate p { color:#e9f9f3; margin: 6px 0; }
.endatoe-donate .donate-rek {
  display: inline-block;
  margin-top: 10px;
  background: rgba(255,255,255,.16);
  border: 1px dashed rgba(255,255,255,.65);
  border-radius: 12px;
  padding: 14px 28px;
  font-family: var(--end-font-head);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
}

/* konten program halaman dalam */
.prog-about { text-align:center; max-width:820px; margin:0 auto 10px; }
.prog-about img { max-height: 90px; margin-bottom: 18px; }

/* single post */
.single-meta {
  font-size: 13.5px; color: #89928f;
  font-family: var(--end-font-head);
  margin-bottom: 22px;
}
.single-meta a { color: var(--end-green); text-decoration: none; }
.single-featured { border-radius: 14px; overflow:hidden; margin-bottom: 24px; }
.single-featured img { width:100%; height:auto; }

/* =========================================================
   6. FOOTER
   ========================================================= */
.site-footer {
  background: #032f31 url("/wp-content/uploads/2026/02/footer-bg-scaled.webp") no-repeat center / cover;
  color: #cfe3de;
}
.site-footer .site-info { padding: 0; }
.endatoe-footer { padding-top: 60px; }
.endatoe-footer .endatoe-container { padding-bottom: 0; }
.endatoe-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 40px;
}
.endatoe-footer-grid h4 {
  font-family: var(--end-font-head);
  font-weight: 800;
  color: #fff;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.endatoe-footer-grid .f-brand img { max-height: 46px; margin-bottom: 16px; }
.endatoe-footer-grid p { font-size: 14.5px; line-height: 1.85; color: #b9d4cd; margin: 0 0 10px; }
.endatoe-footer-grid ul { list-style: none; margin: 0; padding: 0; }
.endatoe-footer-grid ul li { margin-bottom: 10px; }
.endatoe-footer-grid ul a {
  color: #b9d4cd; text-decoration: none; font-size: 14.5px;
  transition: color .2s, padding-left .2s;
}
.endatoe-footer-grid ul a:hover { color: #7ef0b8; padding-left: 4px; }
.endatoe-copyright {
  border-top: 1px solid rgba(255,255,255,.14);
  text-align: center;
  font-size: 13.5px;
  padding: 18px 20px;
  color: #9dbdb5;
}
.site-footer a, .endatoe-copyright a { color: #9bf0c4; }

/* =========================================================
   7. RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .program-grid, .news-grid, .cta-grid { grid-template-columns: repeat(2, 1fr); }
  .endatoe-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .sec { padding: 62px 0; }
  .stats-grid, .program-grid, .news-grid, .cta-grid { grid-template-columns: 1fr; }
  .endatoe-footer-grid { grid-template-columns: 1fr; }
  .endatoe-gallery { grid-template-columns: repeat(2, 1fr); }
  .site-header { position: relative; background: #043235; }
  .endatoe-page-hero { padding-top: 40px; }
  .end-hero { padding-top: 60px; }
  .main-navigation .main-nav > ul { background: #043235; }
  .main-navigation .menu-toggle { color: #fff; }
}
