/*
Theme Name: HIO Foundation
Theme URI: https://example.com/hio-foundation
Author: Mimshach Digital Services
Author URI: https://example.com
Description: A fully editable donation & sponsorship-tier theme built for non-profits. Every heading, stat, bundle card, and payment step is editable from the WordPress Customizer, Menus and Widgets — no code required. Donation tiers are real WooCommerce products, so the theme ships with full cart & checkout support out of the box.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
Text Domain: hio-foundation
Tags: non-profit, donations, woocommerce, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, threaded-comments, translation-ready
License: GNU General Public License v2 or later
License URI: LICENSE
*/

:root{
  --bg:#FBF8F1;
  --bg-2:#F4EFE3;
  --ink:#14241F;
  --ink-soft:#3A4A43;
  --muted:#6B7771;
  --gold:#B8893A;
  --gold-light:#D4AF6A;
  --gold-deep:#8C6420;
  --green:#1F3D34;
  --green-deep:#0E2720;
  --amber:#C97B2D;
  --teal:#2A6F70;
  --cream:#F8F2E2;
  --line:rgba(20,36,31,.10);
  --shadow:0 30px 60px -25px rgba(20,36,31,.25);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Inter',sans-serif;
  background:var(--bg);
  color:var(--ink);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
.serif{font-family:'Fraunces',serif;font-optical-sizing:auto;}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
ul{list-style:none}

/* TOP BAR */
.topbar{
  background:var(--green-deep);
  color:var(--cream);
  font-size:12.5px;
  letter-spacing:.12em;
  text-transform:uppercase;
  padding:10px 0;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.topbar span{color:var(--gold-light);font-weight:600}
.topbar::before,.topbar::after{
  content:"";position:absolute;top:50%;width:40px;height:1px;background:var(--gold-light);opacity:.5;
}
.topbar::before{left:calc(50% - 220px)}
.topbar::after{right:calc(50% - 220px)}

/* NAV */
nav.site-nav{
  position:sticky;top:0;z-index:50;
  background:rgba(251,248,241,.92);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
  padding:18px 6vw;
  display:flex;align-items:center;justify-content:space-between;
}
.brand{display:flex;align-items:center;gap:14px}
.brand img{width:46px;height:46px;border-radius:50%;object-fit:cover}
.brand .b-name{font-family:'Fraunces',serif;font-weight:600;font-size:18px;letter-spacing:.02em;line-height:1.1}
.brand .b-tag{font-size:10px;letter-spacing:.22em;text-transform:uppercase;color:var(--muted)}
.nav-links{display:flex;gap:32px;font-size:13.5px;letter-spacing:.04em;list-style:none}
.nav-links li{display:flex;align-items:center}
.nav-links a{color:var(--ink-soft);font-weight:500;position:relative;transition:color .2s}
.nav-links a::after{content:"";position:absolute;left:0;bottom:-6px;width:0;height:1.5px;background:var(--gold);transition:width .3s}
.nav-links a:hover{color:var(--gold-deep)}
.nav-links a:hover::after{width:100%}
.nav-cta{
  background:var(--green-deep);color:var(--cream);
  padding:11px 22px;border-radius:2px;
  font-size:12px;letter-spacing:.15em;text-transform:uppercase;font-weight:600;
  transition:all .25s; border:1px solid var(--green-deep);
}
.nav-cta:hover{background:transparent;color:var(--green-deep)}
@media(max-width:820px){.nav-links{display:none}}

/* HERO */
.hero{
  position:relative;
  padding:90px 6vw 110px;
  background:
    radial-gradient(circle at 80% 20%, rgba(184,137,58,.10), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(31,61,52,.08), transparent 50%),
    var(--bg);
  overflow:hidden;
}
.hero::before{
  content:"";position:absolute;inset:0;
  background-image:radial-gradient(rgba(20,36,31,.04) 1px, transparent 1px);
  background-size:28px 28px;
  pointer-events:none;
}
.hero-grid{
  display:grid;grid-template-columns:1.05fr .95fr;gap:80px;align-items:center;
  position:relative;z-index:2;
}
@media(max-width:980px){.hero-grid{grid-template-columns:1fr;gap:50px}}
.eyebrow{
  display:inline-flex;align-items:center;gap:10px;
  font-size:11px;letter-spacing:.3em;text-transform:uppercase;
  color:var(--gold-deep);font-weight:600;margin-bottom:24px;
}
.eyebrow::before{content:"";width:32px;height:1px;background:var(--gold)}
.hero h1{
  font-family:'Fraunces',serif;
  font-weight:300;
  font-size:clamp(40px,5.6vw,76px);
  line-height:1.02;
  letter-spacing:-.015em;
  color:var(--green-deep);
  margin-bottom:28px;
}
.hero h1 em{font-style:italic;color:var(--gold-deep);font-weight:400}
.hero p.lead{
  font-size:17px;color:var(--ink-soft);max-width:520px;line-height:1.7;margin-bottom:38px;
}
.hero-stats{display:flex;gap:48px;flex-wrap:wrap}
.hero-stats .stat .num{font-family:'Fraunces',serif;font-size:34px;color:var(--green-deep);font-weight:500;line-height:1}
.hero-stats .stat .lbl{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);margin-top:6px}
.hero-logo-wrap{position:relative;display:flex;justify-content:center;align-items:center;}
.hero-logo-wrap::before{
  content:"";position:absolute;width:110%;height:110%;
  border:1px solid var(--line);border-radius:50%;
  animation:spin 60s linear infinite;
}
.hero-logo-wrap::after{
  content:"";position:absolute;width:130%;height:130%;
  border:1px dashed rgba(184,137,58,.3);border-radius:50%;
  animation:spin 90s linear infinite reverse;
}
@keyframes spin{to{transform:rotate(360deg)}}
.hero-logo-wrap img{
  width:min(420px,80%);
  aspect-ratio:1/1;
  height:auto;
  object-fit:contain;
  border-radius:50%;
  filter:drop-shadow(0 25px 50px rgba(20,36,31,.25));
  position:relative;z-index:2;
}
.floating-badge{
  position:absolute;background:#fff;padding:14px 20px;border-radius:4px;
  box-shadow:var(--shadow);font-size:12px;letter-spacing:.05em;font-weight:500;
  display:flex;align-items:center;gap:10px;z-index:3;
}
.floating-badge .dot{width:8px;height:8px;border-radius:50%}
.fb-1{top:10%;left:-5%;animation:float 5s ease-in-out infinite}
.fb-1 .dot{background:var(--amber)}
.fb-2{bottom:15%;right:-3%;animation:float 6s ease-in-out infinite .5s}
.fb-2 .dot{background:var(--teal)}
.fb-3{bottom:40%;left:-8%;animation:float 7s ease-in-out infinite 1s}
.fb-3 .dot{background:var(--green)}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
@media(max-width:980px){.floating-badge{display:none}}

/* MARQUEE */
.marquee{
  background:var(--green-deep);color:var(--cream);
  padding:22px 0;overflow:hidden;white-space:nowrap;
  border-top:1px solid rgba(184,137,58,.3);
  border-bottom:1px solid rgba(184,137,58,.3);
}
.marquee-track{display:inline-block;animation:scroll 40s linear infinite}
.marquee-track span{
  font-family:'Fraunces',serif;font-style:italic;font-size:22px;
  margin:0 40px;color:var(--gold-light);
}
.marquee-track span::after{content:"✦";margin-left:40px;color:var(--cream);font-style:normal}
@keyframes scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* SECTIONS */
section{padding:110px 6vw;position:relative}
.section-head{text-align:center;max-width:680px;margin:0 auto 70px}
.section-head .eyebrow{justify-content:center}
.section-head .eyebrow::before{display:none}
.section-head h2{
  font-family:'Fraunces',serif;font-weight:300;
  font-size:clamp(34px,4.5vw,56px);
  line-height:1.05;color:var(--green-deep);margin-bottom:20px;letter-spacing:-.01em;
}
.section-head h2 em{font-style:italic;color:var(--gold-deep)}
.section-head p{color:var(--ink-soft);font-size:16.5px;line-height:1.7}

/* BUNDLE INTRO */
.bundle-intro{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-bottom:80px;}
@media(max-width:880px){.bundle-intro{grid-template-columns:1fr}}
.bundle-card{
  background:#fff;border:1px solid var(--line);border-radius:6px;
  padding:36px 30px;transition:all .3s;position:relative;overflow:hidden;
}
.bundle-card::before{content:"";position:absolute;top:0;left:0;width:100%;height:3px;}
.bundle-card.b1::before{background:var(--amber)}
.bundle-card.b2::before{background:var(--green)}
.bundle-card.b3::before{background:var(--teal)}
.bundle-card:hover{transform:translateY(-6px);box-shadow:var(--shadow)}
.bundle-card .icon{
  width:54px;height:54px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-size:24px;margin-bottom:22px;
}
.b1 .icon{background:rgba(201,123,45,.12);color:var(--amber)}
.b2 .icon{background:rgba(31,61,52,.1);color:var(--green)}
.b3 .icon{background:rgba(42,111,112,.12);color:var(--teal)}
.bundle-card h3{font-family:'Fraunces',serif;font-size:22px;font-weight:500;color:var(--green-deep);margin-bottom:10px}
.bundle-card p{font-size:14.5px;color:var(--ink-soft);line-height:1.65}
.bundle-card .tag{display:inline-block;margin-top:18px;font-size:11px;letter-spacing:.16em;text-transform:uppercase;font-weight:600;}
.b1 .tag{color:var(--amber)}
.b2 .tag{color:var(--green)}
.b3 .tag{color:var(--teal)}

/* TIER CARDS (WooCommerce products rendered in tier layout) */
.tiers-wrap{display:flex;flex-direction:column;gap:32px;max-width:1180px;margin:0 auto}
.tier{
  background:#fff;border-radius:8px;overflow:hidden;
  box-shadow:0 10px 40px -20px rgba(20,36,31,.18);
  border:1px solid var(--line);
  display:grid;grid-template-columns:280px 1fr 320px;
  transition:all .3s;
}
@media(max-width:1024px){.tier{grid-template-columns:1fr}}
.tier:hover{box-shadow:0 25px 60px -25px rgba(20,36,31,.3);transform:translateY(-3px)}
.tier-visual{padding:38px 32px;color:#fff;position:relative;display:flex;flex-direction:column;justify-content:space-between;min-height:280px;}
.tier-visual.food{background:linear-gradient(155deg,var(--amber),#A35E1B)}
.tier-visual.edu{background:linear-gradient(155deg,var(--green),var(--green-deep))}
.tier-visual.ict{background:linear-gradient(155deg,var(--teal),#1B4D4E)}
.tier-visual::before{
  content:"";position:absolute;inset:0;
  background-image:radial-gradient(rgba(255,255,255,.08) 1px,transparent 1px);
  background-size:18px 18px;pointer-events:none;
}
.tv-top{position:relative;z-index:2}
.tv-top .tv-label{font-size:10.5px;letter-spacing:.28em;text-transform:uppercase;opacity:.85;margin-bottom:10px}
.tv-top h3{font-family:'Fraunces',serif;font-weight:400;font-size:24px;line-height:1.15;letter-spacing:-.005em}
.tv-top h3 .sub{font-size:14px;opacity:.85;display:block}
.tv-bottom{position:relative;z-index:2}
.tv-bottom .price{font-family:'Fraunces',serif;font-size:32px;font-weight:500;line-height:1}
.tv-bottom .price small{font-size:13px;opacity:.8;display:block;margin-top:6px;font-family:'Inter',sans-serif;letter-spacing:.05em}
.tv-num{position:absolute;right:24px;top:24px;font-family:'Fraunces',serif;font-size:54px;font-weight:300;opacity:.18;line-height:1}

.tier-body{padding:38px 36px}
.tier-body .impact{
  display:inline-flex;align-items:center;gap:8px;
  font-size:11px;letter-spacing:.18em;text-transform:uppercase;
  color:var(--gold-deep);font-weight:600;margin-bottom:16px;
}
.tier-body .impact::before{content:"◆";font-size:8px}
.tier-body h4{font-family:'Fraunces',serif;font-size:20px;font-weight:500;color:var(--ink);margin-bottom:18px}
.tier-body ul{list-style:none}
.tier-body ul li{
  font-size:14px;color:var(--ink-soft);padding:9px 0 9px 26px;position:relative;
  border-bottom:1px solid rgba(20,36,31,.05);line-height:1.55;
}
.tier-body ul li:last-child{border-bottom:none}
.tier-body ul li::before{
  content:"";position:absolute;left:0;top:14px;width:14px;height:14px;border-radius:50%;
  background:rgba(184,137,58,.15);border:1px solid var(--gold);
}
.tier-body ul li::after{content:"✓";position:absolute;left:4px;top:9px;font-size:9px;color:var(--gold-deep);font-weight:700;}

.tier-cta{padding:38px 32px;background:var(--bg-2);display:flex;flex-direction:column;justify-content:center;gap:14px;border-left:1px solid var(--line)}
@media(max-width:1024px){.tier-cta{border-left:none;border-top:1px solid var(--line)}}
.tier-cta .cta-label{font-size:10.5px;letter-spacing:.22em;text-transform:uppercase;color:var(--muted);font-weight:600;margin-bottom:4px}
.tier-cta .cta-price{font-family:'Fraunces',serif;font-size:26px;color:var(--green-deep);margin-bottom:4px}
.btn-pay{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:14px 18px;border-radius:4px;font-size:13.5px;font-weight:600;
  letter-spacing:.04em;transition:all .25s;cursor:pointer;border:none;
  text-align:left;width:100%;font-family:inherit;
}
.btn-pay .arrow{font-size:16px;transition:transform .25s}
.btn-pay:hover .arrow{transform:translateX(4px)}
.btn-ngn,.tier-cta a.button,.tier-cta button.button{background:var(--green-deep);color:var(--cream)!important;}
.btn-ngn:hover,.tier-cta a.button:hover,.tier-cta button.button:hover{background:var(--gold-deep);color:var(--cream)!important;}
.btn-usd{background:#fff;color:var(--green-deep);border:1px solid var(--green-deep)}
.btn-usd:hover{background:var(--green-deep);color:var(--cream)}
.processor{display:flex;align-items:center;gap:6px;font-size:10.5px;color:var(--muted);letter-spacing:.04em;margin-top:6px}
.processor .p-logo{font-weight:700;letter-spacing:.05em}
.processor .p-logo.paystack{color:#011B33}
.processor .p-logo.selar{color:#E8590C}
.tier-cta .view-cart-link{font-size:11.5px;text-align:center;color:var(--muted);text-decoration:underline}

/* HOW TO PAY */
.howto{background:var(--green-deep);color:var(--cream);padding:90px 6vw}
.howto-grid{display:grid;grid-template-columns:1fr 1fr;gap:60px;max-width:1180px;margin:0 auto;align-items:center}
@media(max-width:880px){.howto-grid{grid-template-columns:1fr;gap:40px}}
.howto h2{font-family:'Fraunces',serif;font-size:42px;font-weight:300;line-height:1.1;margin-bottom:20px}
.howto h2 em{color:var(--gold-light);font-style:italic}
.howto p{color:rgba(248,242,226,.75);font-size:16px;line-height:1.75;margin-bottom:30px}
.processors{display:flex;gap:20px;flex-wrap:wrap}
.proc-box{background:rgba(255,255,255,.04);border:1px solid rgba(212,175,106,.25);padding:24px 28px;border-radius:6px;flex:1;min-width:230px;}
.proc-box .pb-tag{font-size:10.5px;letter-spacing:.22em;text-transform:uppercase;color:var(--gold-light);margin-bottom:8px;font-weight:600}
.proc-box .pb-name{font-family:'Fraunces',serif;font-size:24px;font-weight:500;margin-bottom:4px}
.proc-box .pb-cur{font-size:13px;color:rgba(248,242,226,.6)}
.howto-visual{background:rgba(255,255,255,.03);border-radius:8px;padding:40px;border:1px solid rgba(212,175,106,.15);}
.howto-steps{list-style:none;counter-reset:step}
.howto-steps li{counter-increment:step;padding:18px 0 18px 56px;border-bottom:1px solid rgba(212,175,106,.12);position:relative;font-size:15px;}
.howto-steps li:last-child{border-bottom:none}
.howto-steps li::before{
  content:counter(step,decimal-leading-zero);
  position:absolute;left:0;top:18px;
  font-family:'Fraunces',serif;font-size:18px;color:var(--gold-light);font-weight:500;
}
.howto-steps li strong{color:var(--gold-light);font-weight:600}

/* FOOTER */
footer.site-footer{background:var(--bg-2);padding:70px 6vw 30px;border-top:1px solid var(--line);}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:50px;max-width:1180px;margin:0 auto 50px}
@media(max-width:880px){.footer-grid{grid-template-columns:1fr 1fr;gap:30px}}
.f-brand{display:flex;align-items:center;gap:14px;margin-bottom:18px}
.f-brand img{width:50px;height:50px;border-radius:50%;object-fit:cover}
.f-brand .b-name{font-family:'Fraunces',serif;font-weight:600;font-size:18px}
.f-brand .b-tag{font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:var(--muted)}
footer p.f-desc{font-size:14px;color:var(--ink-soft);line-height:1.7;margin-bottom:20px}
footer h5{font-family:'Fraunces',serif;font-size:16px;font-weight:500;color:var(--green-deep);margin-bottom:18px}
footer ul{list-style:none}
footer ul li{margin-bottom:10px;font-size:13.5px;color:var(--ink-soft)}
footer ul li a:hover{color:var(--gold-deep)}
.footer-widgets .widget{margin-bottom:0}
.footer-widgets .widget-title{font-family:'Fraunces',serif;font-size:16px;font-weight:500;color:var(--green-deep);margin-bottom:18px}
.footer-bottom{
  max-width:1180px;margin:0 auto;padding-top:25px;border-top:1px solid var(--line);
  display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted);flex-wrap:wrap;gap:14px;
}

/* REVEAL ANIMATION */
.reveal{opacity:0;transform:translateY(30px);transition:opacity .8s ease, transform .8s ease}
.reveal.in{opacity:1;transform:none}

/* SCROLL TO TOP */
.scroll-top{
  position:fixed;bottom:30px;right:30px;width:48px;height:48px;border-radius:50%;
  background:var(--green-deep);color:var(--cream);border:none;cursor:pointer;
  display:flex;align-items:center;justify-content:center;font-size:18px;
  opacity:0;pointer-events:none;transition:all .3s;z-index:60;box-shadow:var(--shadow);
}
.scroll-top.show{opacity:1;pointer-events:auto}
.scroll-top:hover{background:var(--gold-deep)}

/* SEPARATOR */
.sep{display:flex;align-items:center;justify-content:center;margin:60px 0;gap:20px}
.sep::before,.sep::after{content:"";flex:1;max-width:140px;height:1px;background:var(--line)}
.sep span{font-family:'Fraunces',serif;font-style:italic;color:var(--gold-deep);font-size:18px}

/* WooCommerce cart/checkout/shop pages — keep them on-brand without hijacking layout */
.woocommerce ul.products li.product .price{color:var(--green-deep);font-family:'Fraunces',serif}
.woocommerce a.button, .woocommerce button.button, .woocommerce #respond input#submit, .woocommerce input.button{
  background:var(--green-deep);color:var(--cream);border-radius:4px;font-weight:600;letter-spacing:.03em;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover{background:var(--gold-deep);color:var(--cream)}
.woocommerce-page section{padding:60px 6vw}
.wc-page-wrap{max-width:1180px;margin:0 auto}

/* Basic content page styling */
.content-page{max-width:820px;margin:0 auto;padding:80px 6vw}
.content-page h1{font-family:'Fraunces',serif;font-weight:300;font-size:clamp(32px,4vw,48px);color:var(--green-deep);margin-bottom:24px}
.content-page p{margin-bottom:18px;color:var(--ink-soft)}
