/*
Theme Name: KLife Foundation Demo
Theme URI: https://klifefoundation.org
Author: Inkroot Build
Description: Demo theme for The Kingdom Life Charity Foundation (teal/gold brand).
Version: 1.0.0
Text Domain: klife
*/

:root{
  --teal:#0D4F5B;
  --tealDeep:#083A43;
  --tealTint:#E7F3F5;
  --gold:#F4B400;
  --goldDeep:#D99A00;
  --text:#111827;
  --muted:#4B5563;
  --border:#E5E7EB;
  --soft:#F8FAFC;
  --radius:16px;
  --shadow:0 10px 30px rgba(0,0,0,.08);
  --max:1100px;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:#fff;
  line-height:1.65;
}
a{ color:var(--teal); text-decoration:none; }
a:hover{ color:var(--tealDeep); }
.container{ width:min(var(--max), calc(100% - 40px)); margin:0 auto; }

.site-header{
  position:sticky; top:0; z-index:50;
  background:#fff; border-bottom:1px solid var(--border);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:14px 0;
}
.brand{
  display:flex; align-items:center; gap:12px;
}
.brand img{ width:44px; height:44px; border-radius:12px; }
.brand .name{
  font-weight:800; letter-spacing:.02em; color:var(--tealDeep);
  line-height:1.1;
}
.brand .sub{ font-size:12px; color:var(--muted); }

.nav ul{
  display:flex; gap:16px; list-style:none; padding:0; margin:0;
  flex-wrap:wrap;
}
.nav a{ font-weight:650; color:var(--tealDeep); }
.nav a:hover{ color:var(--teal); }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:11px 16px; border-radius:12px;
  border:2px solid var(--gold); background:var(--gold);
  color:var(--tealDeep); font-weight:800;
  box-shadow:0 8px 18px rgba(0,0,0,.08);
}
.btn:hover{ background:var(--goldDeep); border-color:var(--goldDeep); }
.btn.outline{
  background:transparent; border-color:var(--teal); color:var(--tealDeep);
  box-shadow:none;
}
.btn.outline:hover{ background:var(--tealTint); }

.hero{
  background: linear-gradient(180deg, var(--tealTint), #fff);
  padding:64px 0 40px;
}
.hero h1{
  margin:0 0 10px; font-size:44px; line-height:1.1; color:var(--tealDeep);
}
.hero p{ margin:0 0 18px; color:var(--muted); font-size:18px; max-width:70ch; }
.hero .actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top:18px; }

.section{ padding:46px 0; }
.section.tint{ background:var(--tealTint); }
.grid3{
  display:grid; grid-template-columns:repeat(3, 1fr);
  gap:18px;
}
.grid2{
  display:grid; grid-template-columns:repeat(2, 1fr);
  gap:18px;
}
.card{
  background:#fff; border:1px solid var(--border);
  border-radius:18px; box-shadow:var(--shadow);
  padding:20px;
}
.card h3{ margin:0 0 10px; color:var(--tealDeep); }
.badge{
  display:inline-block; padding:6px 10px; border-radius:999px;
  background:#FFF2CC; border:1px solid #fde68a;
  font-weight:750; font-size:12px;
}
blockquote{
  margin:0; padding:16px 16px 16px 18px;
  border-left:5px solid var(--gold);
  background:var(--soft); border-radius:14px;
}
.small{ color:var(--muted); font-size:14px; }

.site-footer{
  background:var(--tealDeep); color:#fff; padding:36px 0;
}
.footer-grid{
  display:grid; grid-template-columns:1.4fr 1fr 1.2fr;
  gap:18px; align-items:start;
}
.site-footer a{ color:#fff; }
.site-footer a:hover{ color:var(--gold); }
hr.sep{ border:none; border-top:1px solid rgba(255,255,255,.14); margin:18px 0; }

.form input, .form textarea, .form select{
  width:100%; padding:12px 14px; border-radius:12px;
  border:1px solid var(--border); background:var(--soft);
}
.form textarea{ min-height:120px; resize:vertical; }
.form .row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.form .row3{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:14px; }
.form label{ display:block; font-weight:750; margin:10px 0 6px; }

.notice{
  background: var(--tealTint);
  border: 1px solid #b7d7dc;
  padding: 14px 14px;
  border-radius: 14px;
}

.progress{
  background:var(--border); border-radius:999px; overflow:hidden; height:14px;
}
.progress > span{
  display:block; height:100%; width:80%;
  background:linear-gradient(90deg, var(--gold), var(--goldDeep));
}

.modal-backdrop{
  position:fixed; inset:0;
  background:rgba(0,0,0,.55);
  display:none;
  align-items:center; justify-content:center;
  padding:24px;
  z-index:9999;
}
.modal{
  width:min(760px, 100%);
  background:#fff;
  border-radius:18px;
  box-shadow:0 30px 80px rgba(0,0,0,.25);
  overflow:hidden;
}
.modal header{
  background:var(--tealDeep);
  color:#fff;
  padding:16px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.modal header h3{ margin:0; color:#fff; font-size:18px; }
.modal .content{ padding:18px; }
.modal .close{
  background:transparent;
  border:none;
  color:#fff;
  font-size:20px;
  cursor:pointer;
  line-height:1;
}

@media (max-width: 900px){
  .grid3{ grid-template-columns:1fr; }
  .grid2{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; }
  .form .row, .form .row3{ grid-template-columns:1fr; }
  .hero h1{ font-size:34px; }
}
