/*
Theme Name: Hopebridge HADO
Theme URI: https://example.org/
Author: Generated with ChatGPT
Description: Fully customizable NGO theme for HOPEBRIDGE (HADO). Includes Customizer options and automatic demo setup (pages, menu, 3 demo posts with featured images) on activation.
Version: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hopebridge-hado
Tags: custom-logo, custom-menu, featured-images, one-column, two-columns, translation-ready
*/

/* Reset-ish */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  line-height: 1.6;
  color:#0f172a;
  background:#fff;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height:auto; display:block; }

.container{
  width: min(1150px, calc(100% - 32px));
  margin: 0 auto;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding: 12px 18px;
  border-radius: 999px;
  border:1px solid transparent;
  font-weight:800;
  cursor:pointer;
  transition: transform .08s ease, opacity .2s ease;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{ background: var(--hb-blue); color:#fff; }
.btn-accent{ background: var(--hb-gold); color:#1b1b1b; }
.btn-outline{ background: transparent; border-color: rgba(255,255,255,.65); color:#fff; }

.badge{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(236,187,81,.15);
  color: var(--hb-blue);
  font-weight:900;
}

:root{
  --hb-blue:#1e3f5e;
  --hb-gold:#ECBB51;
  --hb-bg-soft:#f6f8fb;
  --hb-card:#ffffff;
  --hb-border: rgba(15,23,42,.10);
  --hb-shadow: 0 10px 30px rgba(2,6,23,.08);
}

/* Header */
.site-header{
  position: sticky;
  top:0;
  z-index:999;
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hb-border);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand{ display:flex; align-items:center; gap:12px; min-width:200px; }
.brand .site-title{ font-weight:900; letter-spacing:.3px; }
.nav-toggle{
  display:none;
  border: 1px solid var(--hb-border);
  background:#fff;
  border-radius: 12px;
  padding: 10px 12px;
}
.primary-nav ul{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}
.primary-nav a{ font-weight:800; opacity:.92; }
.primary-nav a:hover{ opacity:1; }
.header-cta{ display:flex; align-items:center; gap:10px; }

@media (max-width: 900px){
  .nav-toggle{ display:inline-flex; }
  .primary-nav{
    position: fixed;
    left:0; right:0;
    top: 64px;
    background:#fff;
    border-bottom:1px solid var(--hb-border);
    transform: translateY(-120%);
    transition: transform .25s ease;
    z-index:999;
  }
  .primary-nav.is-open{ transform: translateY(0); }
  .primary-nav ul{
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
    gap: 10px;
  }
  .header-cta{ display:none; }
}

/* Hero */
.hero{
  position:relative;
  min-height: 78vh;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:#0b2233;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(30,63,94,.70);
  z-index:1;
}
.hero-bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  transform: scale(1.02);
}
.hero-inner{
  position:relative;
  z-index:2;
  padding: 64px 0;
  color:#fff;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items:center;
}
.hero h1{
  margin:0 0 12px 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height:1.05;
  font-weight: 950;
}
.hero p{
  margin:0 0 18px 0;
  font-size: clamp(15px, 1.2vw, 18px);
  max-width: 60ch;
  opacity:.96;
}
.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; }
.hero-card{
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
.hero-card h3{ margin:0 0 8px 0; font-weight:900; }
.hero-card ul{ margin:0; padding-left: 18px; }
.hero-card li{ margin: 6px 0; opacity:.95; }

@media (max-width: 900px){
  .hero{ min-height: 72vh; }
  .hero-grid{ grid-template-columns: 1fr; }
}

/* Sections */
.section{ padding: 64px 0; }
.section.alt{ background: var(--hb-bg-soft); }

.section-title{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-title h2{
  margin:0;
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 950;
}
.section-title p{ margin:0; opacity:.8; }

.cards-4{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1000px){ .cards-4{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px){ .cards-4{ grid-template-columns: 1fr; } }

.card{
  background: var(--hb-card);
  border: 1px solid var(--hb-border);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--hb-shadow);
}
.card .icon{
  width: 44px; height:44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(236,187,81,.18);
  color: var(--hb-blue);
  font-weight: 950;
}
.card h3{ margin: 12px 0 8px 0; font-weight: 950; }
.card p{ margin:0 0 10px 0; opacity:.86; }
.card a{ font-weight: 900; color: var(--hb-blue); }

.two-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items:center;
}
@media (max-width: 900px){ .two-col{ grid-template-columns: 1fr; } }

.kv{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.kv div{
  background:#fff;
  border: 1px solid var(--hb-border);
  border-radius: 18px;
  padding: 12px 14px;
}
.kv strong{ display:block; font-weight: 950; }

.tiles-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1000px){ .tiles-3{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 650px){ .tiles-3{ grid-template-columns: 1fr; } }

.tile{
  overflow:hidden;
  border-radius: 22px;
  border: 1px solid var(--hb-border);
  background:#fff;
  box-shadow: var(--hb-shadow);
}
.tile .thumb{
  aspect-ratio: 16/10;
  background:#e5e7eb;
}
.tile .thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
}
.tile .body{ padding: 16px; }
.tile h3{ margin:0 0 8px 0; font-weight: 950; }
.tile p{ margin:0 0 10px 0; opacity:.86; }
.tile a{ font-weight: 900; color: var(--hb-blue); }

.cta-band{
  background: var(--hb-blue);
  color:#fff;
  border-radius: 24px;
  padding: 26px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 18px;
}
.cta-band h3{ margin:0 0 8px 0; font-weight: 950; }
.cta-band p{ margin:0; opacity:.92; max-width: 70ch; }
@media (max-width: 900px){
  .cta-band{ flex-direction: column; align-items:flex-start; }
}

/* Footer */
.site-footer{
  background:#071a28;
  color: rgba(255,255,255,.92);
  padding: 50px 0 18px 0;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 16px;
}
@media (max-width: 1000px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .footer-grid{ grid-template-columns: 1fr; } }
.site-footer h4{ margin:0 0 10px 0; font-weight: 950; }
.site-footer a{ color: rgba(255,255,255,.92); }
.footer-bottom{
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 14px;
  opacity:.9;
}

/* WordPress content */
.entry-content{ padding: 44px 0; }
.wp-block-image img{ border-radius: 18px; }
