
:root{
  --bg:#FAE3C8;           /* light peach */
  --panel:#FFF8F0;        /* soft ivory */
  --ink:#2B2B2B;          /* charcoal text */
  --muted:#6B6B6B;
  --accent:#D35400;       /* dark orange */
  --accent-ink:#ffffff;
  --accent-700:#A14D00;
  --ring: rgba(211,84,0,0.35);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Arial,Helvetica,sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

.container{width: min(1100px, 92%); margin-inline:auto}

.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(250,227,200,.9); backdrop-filter:saturate(1.2) blur(6px);
  border-bottom:1px solid rgba(0,0,0,.06);
}
.header-inner{display:flex; align-items:center; justify-content:space-between; padding: .7rem 0}
.brand{display:flex; align-items:center; gap:.6rem; text-decoration:none; color:var(--ink); font-weight:800; letter-spacing:.2px}
.brand-logo{width:40px; height:40px; object-fit:cover; border-radius:6px; box-shadow:0 2px 6px rgba(0,0,0,.15)}

.nav-list{display:flex; gap:1rem; list-style:none; margin:0; padding:0}
.nav-list a{color:var(--ink); text-decoration:none; font-weight:600}
.nav-list a:hover{color:var(--accent)}
.nav-toggle{display:none; background:none; border:0; padding:.4rem; cursor:pointer}
.nav-toggle .bar{display:block; width:24px; height:2px; background:var(--ink); margin:5px 0; border-radius:2px}

.hero{
  position:relative;
  overflow:hidden;
  background:linear-gradient(180deg, #F7D6B8 0%, #FBE9D6 60%, #FFF8F0 100%);
  border-bottom:1px solid rgba(0,0,0,.06);
}
.hero-inner{padding: clamp(3rem, 5vw, 5rem) 0; text-align:center}
.hero h1{font-size: clamp(1.9rem, 3.5vw, 3rem); margin:0 0 .5rem 0; font-weight:800; letter-spacing:.2px}
.hero .sub{max-width:800px; margin:0 auto 1.2rem; color:var(--muted); font-size:1.05rem}
/*.cta-row{display:flex; gap:.05rem; flex-wrap:wrap; justify-content:center}*/
.cta-row{display:flex; gap:1rem; flex-wrap:wrap; justify-content:center}

.btn{display:inline-block; padding:.8rem 1.1rem; border-radius:.6rem; text-decoration:none; font-weight:700; letter-spacing:.2px; border:2px solid transparent; transition:.2s transform, .2s box-shadow}
.btn:focus{outline:3px solid var(--ring); outline-offset:2px}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--accent); color:var(--accent-ink); box-shadow:0 6px 16px rgba(211,84,0,.25)}
.btn-outline{background:transparent; border-color:var(--accent); color:var(--accent)}

.hero-bg{
  position:absolute; inset:0;
  background-image: url('../img/hero-light.png');
  background-size: cover;
  background-position: center;
  opacity:.15;
  pointer-events:none;
}

.section{padding: clamp(2rem, 5vw, 4rem) 0}

.grid-2{display:grid; grid-template-columns:1.2fr .8fr; gap:2rem}
.info-card{
  background:var(--panel); border:1px solid rgba(0,0,0,.06); border-radius:1rem; padding:1.2rem;
  box-shadow: 0 10px 18px rgba(0,0,0,.06);
}
.info-card h3{margin:.2rem 0 1rem 0}
.info-card dt{font-weight:700}
.info-card dd{margin:0 0 .6rem 0; color:var(--muted)}

.about .bullets{padding-left:1.1rem}
.about .bullets li{margin:.3rem 0}

.apps .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
  gap: 1.5rem; /* spacing between cards */
  margin-top: 2rem;
}

.companies .card-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap:1rem; margin-top:1.2rem
}
.card{
  background:var(--panel); border:1px solid rgba(0,0,0,.06); border-radius:1rem; padding:1rem;
  box-shadow:0 10px 18px rgba(0,0,0,.06); display:flex; flex-direction:column; gap:.6rem
}
.card .icon{width:44px;height:44px; display:grid; place-items:center; background:#FFE9D8; border-radius:.7rem}
.card h3{margin:.2rem 0}
.card p{color:var(--muted); margin:.1rem 0 .6rem 0}
.card-cta{margin-top:auto; align-self:flex-start; padding:.5rem .8rem; background:#fff; border:1px solid rgba(0,0,0,.08); border-radius:.5rem; text-decoration:none; color:var(--accent); font-weight:700}
.card-cta:hover{background:#FFF3EA}

.values{padding-top:1rem}
.pill-row{display:flex; gap:.6rem; justify-content:center; flex-wrap:wrap}
.pill{background:#FFE9D8; border:1px solid rgba(0,0,0,.06); padding:.5rem .9rem; border-radius:999px; font-weight:700; color:#7a3e00}

.contact .contact-list{list-style:none; padding:0; margin:.6rem 0 1rem 0}
.contact .contact-list li{margin:.2rem 0}
.contact-form{background:var(--panel); border:1px solid rgba(0,0,0,.06); border-radius:1rem; padding:1rem; display:grid; gap:.7rem}
.contact-form label{display:grid; gap:.35rem; font-weight:600}
.contact-form input, .contact-form textarea{
  width:100%; padding:.75rem .9rem; border-radius:.6rem; border:1px solid rgba(0,0,0,.18); background:#fff; color:var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus{outline:3px solid var(--ring); border-color:var(--accent)}

.site-footer{padding:1.2rem 0; border-top:1px solid rgba(0,0,0,.08); background:#FFF4E9}
.footer-inner{display:flex; gap:1rem; justify-content:space-between; align-items:center; flex-wrap:wrap}
.site-footer a{color:var(--accent); text-decoration:none; font-weight:700}

@media (max-width: 900px){
  .grid-2{grid-template-columns:1fr}
  .companies .card-grid{grid-template-columns: repeat(2, 1fr)}
  .nav-toggle{display:block}
  .nav-list{position:absolute; right:1rem; top:64px; background:var(--panel); padding: .8rem; border-radius:.8rem; border:1px solid rgba(0,0,0,.08); display:none; flex-direction:column}
  .nav-list.open{display:flex}
}

@media (max-width: 520px){
  .companies .card-grid{grid-template-columns: 1fr}
}

/* Tighten hero spacing for QBH Investments page */
.hero.hero--investments .hero-inner {
  padding: 2rem 0 !important;   /* reduce vertical padding */
}

.hero.hero--investments h1 {
  margin-bottom: 0.3rem;        /* tighten heading spacing */
}

.hero.hero--investments .sub {
  margin-bottom: 0.8rem;        /* reduce gap under subheading */
}

/* Decorative divider above Income-Focused Strategies */
.decorative-divider {
  width: 100%;
  height: 2px;
  margin: 1.5rem 0 0.5rem 0;
  background: linear-gradient(to right,
    transparent,
    var(--accent),
    transparent);
  opacity: 0.6;
}

/* --- Conversion-focused polish --- */
.btn, .btn-primary, .btn-outline {
  transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover, .btn-primary:hover, .btn-outline:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

/* Donate (nav) — pill + emphasis */
.btn-donate-nav{
  background: var(--accent-700);
  color:#fff !important;
  border-radius:999px;
  padding:.5rem 1.1rem;
  font-weight:800;
  letter-spacing:.2px;
  box-shadow:0 2px 6px rgba(0,0,0,.2);
  display:inline-block;
  line-height:1;
}
.btn-donate-nav:hover{
  box-shadow:0 8px 22px rgba(161,77,0,.35);
  transform: translateY(-1px);
}

/* Investors section (metrics cards) */
.investors{ background:#faf8f6; }
.investor-metrics{
  display:flex; justify-content:center; align-items:stretch;
  gap:1.5rem; flex-wrap:wrap; margin-top:1.75rem;
}
.metric{
  min-width:200px; flex:1; text-align:center; background:#fff;
  border:1px solid rgba(0,0,0,.06); border-radius:14px; padding:1.25rem;
  box-shadow:0 2px 10px rgba(0,0,0,.05);
}
.metric h3{ margin:0; font-size:1.9rem; color:var(--accent-700); }
.metric p{ margin:.4rem 0 0; color:#444; }

/* Fundraiser block embedded inside About */
.fundraiser{
  margin-top:2rem; text-align:center; padding:1.75rem 1rem;
  border:1px solid rgba(0,0,0,.06); border-radius:14px; background:#fff;
  box-shadow:0 4px 20px rgba(0,0,0,.05);
}
.fundraiser h2{ color:var(--accent-700); font-weight:800; margin-bottom:.5rem; }
.fundraiser p.lead{
  max-width:680px; margin:.5rem auto 1.25rem; font-size:1.06rem; line-height:1.65; color:#333;
}
.qr-frame{ margin:1.25rem 0; }
.qr-frame img{
  max-width:200px; height:auto;
  border:2px solid var(--accent-700); border-radius:10px; padding:6px;
  box-shadow:0 6px 18px rgba(161,77,0,.2);
}

/* Small eyebrow label used above section headings */
.eyebrow{
  display:inline-block; font-size:.8rem; letter-spacing:.12em; text-transform:uppercase;
  color:var(--accent-700); font-weight:800; margin-bottom:.25rem;
}

/* Mobile tweaks for metrics grid and nav flyout spacing */
@media (max-width: 900px){
  .investor-metrics{ gap:1rem; }
  .btn-donate-nav{ margin-top:.4rem; }
}
/* ====== QBH Theme System (image-driven) ====== */
:root{
  /* Base (fallback) */
  --accent: #a14d00;         /* metallic orange */
  --ink: #1b1f23;            /* graphite */
  --muted-ink: #646b73;
  --bg: #ffffff;
  --card: #ffffff;
  --soft: #faf8f6;
  --elev: 0 6px 18px rgba(0,0,0,.12);
}

/* Light theme (formal deck look) */
:root[data-theme="light"]{
  --accent: #a14d00;
  --ink: #111315;
  --muted-ink: #495057;
  --bg: #ffffff;
  --card: #ffffff;
  --soft: #faf8f6;
}

/* Dark theme (matches uploaded image) */
:root[data-theme="dark"]{
  --accent: #c45f15;         /* a touch brighter for dark bg */
  --ink: #e7e4df;            /* warm silver for body text */
  --muted-ink: #b9b2aa;
  --bg: #0f1215;             /* charcoal */
  --card: #171b20;           /* graphite */
  --soft: #13171b;
}

/* Global application */
html, body{ background: var(--bg); color: var(--ink); }
.section{ background: transparent; }
h1,h2,h3,h4,h5{ color: var(--ink); }
.pill, .badge{ color: var(--ink); }

/* Buttons */
.btn, .btn-primary, .btn-outline{
  transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary{ background: var(--accent); border-color: var(--accent); color:#fff; }
.btn-primary:hover{ transform: translateY(-1px); box-shadow: var(--elev); }
.btn-outline{ border:1px solid var(--accent); color: var(--accent); background:transparent; }
.btn-outline:hover{ background:var(--accent); color:#fff; }

/* Nav donate (pill) */
.btn-donate-nav{
  background: var(--accent); color:#fff !important; border-radius:999px;
  padding:.5rem 1.1rem; font-weight:800; letter-spacing:.2px;
  box-shadow:0 2px 6px rgba(0,0,0,.25);
}
.btn-donate-nav:hover{ box-shadow:0 8px 22px rgba(0,0,0,.35); transform: translateY(-1px); }

/* Hero background using the image */
.hero{
  position: relative;
  overflow: hidden;
}
.hero-bg{
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.25) 75%),
    url('assets/img/hero-dark.png') center/cover no-repeat;
  filter: saturate(1.02) contrast(1.02);
}
:root[data-theme="light"] .hero-bg{
  /* keep the same art but soften for light */
  background:
    linear-gradient(180deg, rgba(255,255,255,.65) 0%, rgba(255,255,255,.85) 65%, rgba(255,255,255,1) 100%),
    url('assets/img/hero-dark.png') center/cover no-repeat;
  filter: grayscale(.1) brightness(1.08);
}

/* Cards, metrics, fundraiser */
.info-card, .metric, .feature-card, .rm-item, .qa, .fundraiser, .strip{
  background: var(--card);
  color: var(--ink);
  border:1px solid rgba(0,0,0,.08);
}
.metric h3, .fundraiser h2, .eyebrow{ color: var(--accent); }
.qr-frame img{ border:2px solid var(--accent); }

/* Hero CTAs spacing */
.cta-row{ display:flex; gap:1rem; flex-wrap:wrap; }

/* Footer */
.site-footer{ background: var(--soft); color: var(--muted-ink); }

/* ===========================
   QBH — DARK THEME (attachment style)
   =========================== */

/* Palette tuned to the mockup */
:root[data-theme="dark"]{
  --bg: #0d0f12;            /* deep charcoal background */
  --soft: #101317;          /* section backdrop */
  --card: #161a1f;          /* panel/card bg */
  --ink: #e8e3db;           /* warm silver text */
  --muted-ink: #c9c3bb;     /* secondary text */
  --accent: #d5742b;        /* warm metallic orange */
  --accent-600: #c86820;    /* darker hover */
  --cream: #f3e7d8;         /* tile/beige for icons/tiles */
  --shadow-strong: 0 16px 40px rgba(0,0,0,.45);
  --shadow-soft:   0 8px 24px rgba(0,0,0,.28);
}

/* Global surface + type */
:root[data-theme="dark"] body,
:root[data-theme="dark"] html{
  background: var(--bg);
  color: var(--ink);
}
:root[data-theme="dark"] .section{ background: transparent; }
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3{ color: var(--ink); }

/* Header bar (sleek, subtle) */
:root[data-theme="dark"] .site-header{
  background: rgba(13,15,18,.55);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
:root[data-theme="dark"] .nav a{ color: var(--ink); opacity: .9; }
:root[data-theme="dark"] .nav a:hover{ opacity: 1; }

/* Donate button — pill + glow */
:root[data-theme="dark"] .btn-donate-nav{
  background: var(--accent);
  color:#fff !important;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(213,116,43,.35), var(--shadow-soft);
}
:root[data-theme="dark"] .btn-donate-nav:hover{
  background: var(--accent-600);
  box-shadow: 0 6px 22px rgba(213,116,43,.5), var(--shadow-strong);
  transform: translateY(-1px);
}

/* Primary/Outline buttons */
:root[data-theme="dark"] .btn-primary{
  background: var(--accent);
  border-color: var(--accent);
  color:#fff;
}
:root[data-theme="dark"] .btn-primary:hover{
  background: var(--accent-600);
  border-color: var(--accent-600);
}
:root[data-theme="dark"] .btn-outline{
  border-color: var(--accent);
  color: var(--accent);
}
:root[data-theme="dark"] .btn-outline:hover{
  background: var(--accent);
  color:#fff;
}

/* Hero — charcoal + orange glow like the mockup */
:root[data-theme="dark"] .hero{
  background: radial-gradient(1200px 420px at 50% 86%, rgba(213,116,43,.18) 0%, rgba(213,116,43,0) 60%),
              linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.28) 75%);
}
:root[data-theme="dark"] .hero-bg{
  min-height: 320px;
  background:
    radial-gradient(1200px 420px at 50% 90%, rgba(213,116,43,.25) 0%, rgba(213,116,43,0) 55%),
    url('assets/img/hero-dark.png') center/cover no-repeat;
  filter: saturate(1.05) contrast(1.05);
}
:root[data-theme="dark"] .hero .hero-inner h1{
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: .02em;
  line-height: 1.1;
}
:root[data-theme="dark"] .hero .sub{
  color: var(--muted-ink);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

/* Section headings in orange with subtle underline */
:root[data-theme="dark"] .eyebrow{ color: var(--accent); }
:root[data-theme="dark"] #about h2,
:root[data-theme="dark"] #companies h2,
:root[data-theme="dark"] #investors h2,
:root[data-theme="dark"] #values h2,
:root[data-theme="dark"] #contact h2{
  position: relative;
}
:root[data-theme="dark"] #about h2::after,
:root[data-theme="dark"] #companies h2::after,
:root[data-theme="dark"] #investors h2::after{
  content:"";
  display:block;
  width:56px; height:3px;
  margin-top:.45rem;
  background: var(--accent);
  border-radius: 3px;
  opacity:.9;
}

/* Investors metrics */
:root[data-theme="dark"] .investors{ background: #0f1216; }
:root[data-theme="dark"] .metric{
  background: #14181d;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: var(--shadow-soft);
}
:root[data-theme="dark"] .metric h3{ color: var(--accent); }
:root[data-theme="dark"] .metric p{ color: var(--muted-ink); }

/* Subsidiaries cards (cream tiles with orange icons/buttons) */
:root[data-theme="dark"] .companies .card{
  background: var(--cream);
  color: #1f1f1f;
  border: none;
  box-shadow: 0 8px 26px rgba(0,0,0,.22);
  border-radius: 14px;
}
:root[data-theme="dark"] .companies .card .icon svg{
  color: var(--accent);
}
:root[data-theme="dark"] .companies .card .card-cta{
  color:#fff;
  background: var(--accent);
  border-radius: 8px;
  padding:.5rem .8rem;
  display:inline-block;
  margin-top:.25rem;
}
:root[data-theme="dark"] .companies .card .card-cta:hover{
  background: var(--accent-600);
}

/* Fundraiser block (white card on dark) */
:root[data-theme="dark"] .fundraiser{
  background: #14181d;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: var(--shadow-soft);
}
:root[data-theme="dark"] .fundraiser h2{ color: var(--accent); }
:root[data-theme="dark"] .fundraiser p.lead{ color: var(--ink); opacity:.95; }
:root[data-theme="dark"] .qr-frame img{
  border-color: var(--accent);
  box-shadow: 0 10px 26px rgba(213,116,43,.25);
}

/* Values pills on dark */
:root[data-theme="dark"] .pill-row .pill{
  background: #14181d;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.06);
}

/* Footer */
:root[data-theme="dark"] .site-footer{
  background: #0f1216;
  color: var(--muted-ink);
  border-top: 1px solid rgba(255,255,255,.06);
}
:root[data-theme="dark"] .companies .card .icon svg {
  color: var(--accent);
  background: #fff3e9;
  border-radius: 8px;
  padding: 4px;
}
/* ===========================
   Company card headings — universal fix
   =========================== */

/* Light mode (white cards on white bg) */
:root[data-theme="light"] .companies .card h3 {
  color: #1f1f1f;   /* rich dark gray */
  font-weight: 700;
}

/* Dark mode (cream tiles on charcoal bg) */
:root[data-theme="dark"] .companies .card h3 {
  color: #1f1f1f;   /* same dark gray for contrast */
  font-weight: 700;
}

/* Body text on cards */
:root[data-theme="light"] .companies .card p,
:root[data-theme="dark"] .companies .card p {
  color: #2a2a2a;   /* softer but still dark */
}
/* ===========================
   Learn More buttons (consistent across themes)
   =========================== */
.companies .card .card-cta,
.companies .card .btn,
.companies .card a.btn-primary {
  background: var(--accent);
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  display: inline-block;
  text-align: center;
}

.companies .card .card-cta:hover,
.companies .card .btn:hover,
.companies .card a.btn-primary:hover {
  background: #c86820; /* darker orange hover */
  color: #fff !important;
}
/* Publishing page: fix card text contrast in dark theme */
:root[data-theme="dark"] .section.books .card{
  background: #f3e7d8;          /* warm cream tile */
  color: #1f1f1f;               /* dark body text */
  border: none;
  box-shadow: 0 8px 26px rgba(0,0,0,.22);
}
:root[data-theme="dark"] .section.books .card h3{
  color: #1f1f1f;               /* strong heading (ISBN/title) */
  font-weight: 700;
}
:root[data-theme="dark"] .section.books .card img.cover{
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
#investor-highlights .grid-2{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
@media (max-width:900px){#investor-highlights .grid-2{grid-template-columns:1fr}}
