/* TKP One-Page Site
   Palette matched to logo: black/charcoal + olive + warm off-white.
*/

:root{
  --bg: #0e0e0e;
  --panel: #151515;
  --panel2: #111111;
  --text: #f4f4f2;
  --muted: #b8b8b0;
  --muted2: #9a9a9a;
  --line: rgba(244,244,242,.14);
  --olive: #6f7f3a;
  --olive2: #879a49;
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --radius: 18px;
  --radius2: 28px;
  --max: 1120px;
}


/* Light theme overrides */
:root[data-theme="light"]{
  --bg: #FAFAF7;              /* soft paper white */
  --panel: #FFFFFF;           /* true white cards */
  --panel2: #F1F2EC;          /* subtle section background */
  --text: #111111;            /* strong readable text */
  --muted: #3E3E3E;           /* readable secondary text */
  --muted2: #5C5C5C;
  --line: rgba(0,0,0,.12);    /* stronger dividers */
  --shadow: 0 10px 30px rgba(0,0,0,.08);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 700px at 20% 0%, rgba(111,127,58,.22), transparent 55%),
              radial-gradient(900px 600px at 90% 10%, rgba(111,127,58,.15), transparent 55%),
              var(--bg);
  color:var(--text);
  line-height:1.5;
}

a{color:inherit; text-decoration:none}
a:hover{opacity:.95}
.container{max-width:var(--max); margin:0 auto; padding:0 20px}

.skip{
  position:absolute; left:-9999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  left:12px; top:12px; width:auto; height:auto;
  padding:10px 12px; background:var(--panel); border:1px solid var(--line);
  border-radius:12px; z-index:9999;
}

/* Header */
.header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(14,14,14,.75);
  border-bottom:1px solid var(--line);
}

:root[data-theme="light"] .header{
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0,0,0,.14);
}
.header__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:14px 0;
}
.brand{display:flex; align-items:center; gap:12px; min-width:240px}
.brand__logo{
  width:44px; height:44px; object-fit:contain;
  background:#FFFFFF;
  border-radius:10px; padding:4px;
  border:1px solid rgba(0,0,0,.12);
}
.brand__name{font-weight:800; letter-spacing:.2px; font-size:1rem}
.brand__tag{color:var(--muted2); font-size:.8rem}

.nav{display:flex; gap:18px; align-items:center}
.nav a{
  color:var(--muted);
  font-weight:600;
  font-size:.95rem;
  padding:10px 10px;
  border-radius:12px;
}
.nav a:hover{color:var(--text); background: rgba(255,255,255,.06)}

.header__cta{display:flex; gap:10px; align-items:center}

.menuBtn{
  display:none;
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.menuBtn span{
  display:block; height:2px; width:18px;
  margin:4px auto;
  background: var(--text);
  border-radius:20px;
  opacity:.9;
}

/* Mobile nav */
.mobileNav{
  border-top:1px solid var(--line);
  background: rgba(14,14,14,.92);
}
.mobileNav__inner{
  display:grid; gap:10px;
  padding:14px 0 18px;
}
.mobileNav__inner a{
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}
.mobileNav__inner a:hover{background: rgba(255,255,255,.06)}

/* Buttons */

/* Theme toggle */
.themeBtn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: var(--text);
  font-weight:900;
  letter-spacing:.2px;
  cursor:pointer;
}
:root[data-theme="light"] .themeBtn{
  border-color: rgba(14,14,14,.14);
  background: rgba(14,14,14,.04);
}
.themeBtn:hover{background: rgba(255,255,255,.07)}
:root[data-theme="light"] .themeBtn:hover{background: rgba(14,14,14,.06)}
.themeBtn__icon{font-size:1rem; line-height:1}
.themeBtn--mobile{width:100%; justify-content:center}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  font-weight:800;
  letter-spacing:.2px;
  transition: transform .05s ease, background .15s ease;
  user-select:none;
}
.btn:active{transform: translateY(1px)}
.btn--primary{
  background: linear-gradient(180deg, var(--olive2), var(--olive));
  border-color: rgba(255,255,255,.08);
  color:#0b0b0b;
}

:root[data-theme="light"] .btn--primary{
  background: linear-gradient(180deg, #7E8F3F, #6F7F3A);
  color: #111111;
  border: 1px solid rgba(0,0,0,.12);
}
:root[data-theme="light"] .btn--ghost{
  background: transparent;
  border: 1px solid rgba(0,0,0,.18);
  color: #111111;
}
.btn--primary:hover{filter: brightness(1.02)}
.btn--ghost{
  background: rgba(255,255,255,.05);
  color: var(--text);
}
.btn--ghost:hover{background: rgba(255,255,255,.07)}
.btn--full{width:100%}

/* Hero */
.hero{padding:54px 0 26px}
.hero__grid{
  display:grid;
  grid-template-columns: 1.2fr .85fr;
  gap:22px;
  align-items:start;
}
.pill{
  display:inline-flex;
  padding:8px 14px;
  border-radius:999px;
  background: rgba(111,127,58,.22);
  border:1px solid rgba(111,127,58,.45);
  color:#f4f6ea;
  font-weight:800;
  font-size:.9rem;
  letter-spacing:.3px;
  text-transform: uppercase;
}

.heroLogo{
  display:block;
  width: min(520px, 100%);
  height:auto;
  margin: 14px 0 8px;
  background: rgba(244,244,242,.92);
  border-radius: 22px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}
:root[data-theme="light"] .heroLogo{
  border-color: rgba(14,14,14,.14);
  box-shadow: 0 14px 40px rgba(0,0,0,.10);
}
h1{
  margin:14px 0 10px;
  font-size: clamp(2.1rem, 3.2vw, 3.1rem);
  line-height:1.1;
  letter-spacing:-.6px;
}
.lead{
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 60ch;
}
.hero__actions{display:flex; gap:12px; margin:18px 0 10px; flex-wrap:wrap}

.kpis{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-top:18px;
}
.kpi{
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.09);
  border-radius: var(--radius);
  padding:14px;
}
.kpi__label{color: var(--muted2); font-weight:700; font-size:.92rem}
.kpi__value{font-weight:900; margin-top:6px}

/* Card */
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius2);
  padding:18px;
  box-shadow: var(--shadow);
}
.card h2{margin:0 0 8px; font-size:1.25rem}
.muted{color: var(--muted)}
.fineprint{
  margin-top:12px;
  font-size:.92rem;
  color: var(--muted2);
  border-top:1px solid rgba(255,255,255,.10);
  padding-top:12px;
}
.fineprint code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.10);
  padding:2px 6px;
  border-radius:10px;
  color: #f7f7f2;
}
.donateGrid{display:grid; gap:10px; margin-top:12px}

/* Sections */
.section{padding:54px 0}
.section--alt{
  background: rgba(255,255,255,.03);
  border-top:1px solid rgba(255,255,255,.08);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.section__head{margin-bottom:18px}
.section__head h2{
  margin:0 0 8px;
  font-size: clamp(1.6rem, 2vw, 2.05rem);
}
.section__head p{margin:0; color: var(--muted); max-width:75ch}

.grid3{
  display:grid; gap:14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.feature{
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding:16px;
}
.feature h3{margin:0 0 8px}
.feature p{margin:0; color: var(--muted)}

.callout{
  margin-top:18px;
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  background: rgba(111,127,58,.12);
  border:1px solid rgba(111,127,58,.35);
  border-radius: var(--radius2);
  padding:18px;
}
.callout--thin{padding:14px}
.callout h3{margin:0 0 6px}
.callout p{margin:0}

.grid2{
  display:grid; gap:14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.program{
  background: rgba(0,0,0,.20);
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius2);
  padding:18px;
}
.program h3{margin:0 0 8px}
.program p{margin:0 0 12px; color: var(--muted)}
.program ul{margin:0; padding-left:18px; color: var(--muted)}
.program li{margin:6px 0}

/* Impact */
.stats{
  display:grid; gap:14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top:18px;
}
.stat{
  text-align:center;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius2);
  padding:18px 12px;
}
.stat__num{font-size:2rem; font-weight:900}
.stat__label{color: var(--muted); font-weight:700}

.quote{
  margin-top:18px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius2);
  padding:18px;
}
.quote p{margin:0 0 8px; font-size:1.2rem; font-weight:800}
.quote span{color: var(--muted2)}

/* Shop */
.products{
  display:grid; gap:14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top:18px;
}
.product{
  overflow:hidden;
  background: rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius2);
}
.product__img{
  height:132px;
  display:flex; align-items:center; justify-content:center;
  background: radial-gradient(500px 220px at 30% 30%, rgba(111,127,58,.25), rgba(0,0,0,.0) 60%),
              rgba(255,255,255,.04);
  border-bottom:1px solid rgba(255,255,255,.10);
}
.product__img span{
  font-weight:900; letter-spacing:.3px; color:#eaeae5;
  border:1px solid rgba(255,255,255,.14);
  padding:8px 12px; border-radius:999px;
  background: rgba(0,0,0,.25);
}
.product__body{padding:16px}
.product__body h3{margin:0 0 6px}
.product__row{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px}
.price{font-weight:900; font-size:1.05rem}

/* Contact */
.connect{
  display:grid; gap:14px;
  grid-template-columns: .95fr 1.05fr;
  margin-top:18px;
}
.socials{display:grid; gap:10px}
.social{
  display:flex; justify-content:space-between; align-items:center; gap:10px;
  padding:14px;
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.social:hover{background: rgba(255,255,255,.06)}
.social__label{font-weight:900}
.social__hint{color: var(--muted2); font-weight:700}
.social--static:hover{background: rgba(255,255,255,.04); opacity:1}

.form{
  background: rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius2);
  padding:18px;
}
.form__row{
  display:grid; gap:10px;
  grid-template-columns: 1fr 1fr;
}
label span{display:block; font-weight:800; margin-bottom:6px; color:#e7e7df}
input, textarea{
  width:100%;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  padding:12px 12px;
  color: var(--text);
  outline: none;
}
input:focus, textarea:focus{border-color: rgba(111,127,58,.65); box-shadow: 0 0 0 4px rgba(111,127,58,.18)}
textarea{resize: vertical}

/* CTA */
.section--cta{
  background: radial-gradient(900px 300px at 10% 20%, rgba(111,127,58,.25), transparent 62%),
              rgba(255,255,255,.03);
}
.cta{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius2);
  padding:20px;
  background: rgba(0,0,0,.18);
}
.cta h2{margin:0 0 8px}
.cta__actions{display:flex; gap:10px; flex-wrap:wrap}

/* Footer */
.footer{
  border-top:1px solid rgba(255,255,255,.10);
  padding:26px 0;
  background: rgba(0,0,0,.25);
}
.footer__grid{
  display:grid; gap:14px;
  grid-template-columns: 1.2fr .8fr .7fr;
  align-items:start;
}
.footer__brandBlock{display:flex; gap:12px; align-items:flex-start}
.footer__logo{
  width:52px; height:52px; object-fit:contain;
  background: rgba(244,244,242,.92);
  border-radius:14px; padding:6px;
  border:1px solid rgba(255,255,255,.16);
}
.footer__brand{font-weight:900}
.footer__links{display:grid; gap:10px}
.footer__links a{color: var(--muted); font-weight:800}
.footer__links a:hover{color: var(--text)}
.footer__donate{display:grid; gap:10px}
.small{font-size:.92rem}

/* Responsive */
@media (max-width: 980px){
  .hero__grid{grid-template-columns: 1fr}
  .connect{grid-template-columns: 1fr}
  .products{grid-template-columns: 1fr}
  .stats{grid-template-columns: repeat(2, minmax(0, 1fr))}
  .grid3{grid-template-columns: 1fr}
  .grid2{grid-template-columns: 1fr}
  .cta{flex-direction:column; align-items:flex-start}
}

@media (max-width: 860px){
  .nav{display:none}
  .menuBtn{display:inline-block}
  .header__cta{display:none}
  .kpis{grid-template-columns: 1fr}
  .form__row{grid-template-columns: 1fr}
}

@media (prefers-reduced-motion: reduce){
  *{scroll-behavior:auto !important; transition:none !important}
}


/* Pill contrast fix for light mode */
:root[data-theme="light"] .pill{
  background:#E6EAD6;          /* soft olive paper */
  border:1px solid #6F7F3A;    /* strong olive outline */
  color:#2F360F;               /* dark readable text */
}
