/* =====================================================================
   Charity Search Group — Resource Library (demo)
   One stylesheet. Brand tokens live in :root below — swap the real
   CSG Elementor hex/fonts here and the whole site updates.
   ===================================================================== */

:root {
  /* --- Palette (CSG-matched placeholders; swap with real Elementor hex) --- */
  --ink:    #16314D;   /* deep professional blue — headings, header, footer */
  --ink-2:  #20496F;   /* secondary blue */
  --paper:  #FBFAF7;   /* warm off-white page background */
  --stone:  #EFEBE3;   /* alternating section band */
  --gold:   #B0822F;   /* premium accent — prices, key CTAs */
  --gold-d: #8E681F;   /* gold hover */
  --slate:  #56697B;   /* secondary text */
  --line:   #DED7CA;   /* hairlines */
  --white:  #FFFFFF;

  /* --- Type --- */
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --wrap: 1180px;
}

/* ---------- reset / base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--ink-2); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-d); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* ---------- header / nav ---------- */
.site-header {
  background: var(--ink);
  color: var(--white);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--white); }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand .bn { font-family: var(--display); font-size: 19px; line-height: 1; }
.brand .bn small { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: rgba(255,255,255,.82); font-size: 14.5px; font-weight: 500; }
.nav a:hover { color: var(--white); }
.nav a.active { color: var(--gold); }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }

/* ---------- hero ---------- */
.hero { background: var(--ink); color: var(--white); padding: 84px 0 72px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(176,130,47,.16), transparent 70%);
  pointer-events: none;
}
.hero .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(34px, 5.2vw, 60px); max-width: 17ch; color: var(--white); }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p.lede { font-size: clamp(17px, 2vw, 20px); color: rgba(255,255,255,.78); max-width: 56ch; margin: 22px 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* scale strip — the "look how big this is" signature */
.scale {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 56px;
}
.scale div { padding: 24px 8px 4px; }
.scale .n { font-family: var(--mono); font-size: clamp(26px, 4vw, 38px); color: var(--white); line-height: 1; }
.scale .l { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 8px; }

/* ---------- generic section ---------- */
.section { padding: 76px 0; }
.section--stone { background: var(--stone); }
.section-head { max-width: 60ch; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.section-head .count { font-family: var(--mono); font-size: 13px; color: var(--slate); float: right; padding-top: 10px; }
.section-head p { color: var(--slate); margin: 14px 0 0; }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 22px 20px;
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(22,49,77,.4); border-color: #cfc6b5; }
.card .sku { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--slate); }
.card .tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px; background: var(--stone); color: var(--ink-2);
}
.card .tag.ai { background: var(--ink); color: var(--gold); }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card h3 a:hover { color: var(--gold-d); }
.card p { font-size: 14.5px; color: var(--slate); margin: 0 0 18px; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.price { font-family: var(--mono); font-size: 19px; color: var(--gold); font-weight: 500; }
.price small { font-size: 12px; color: var(--slate); }

/* ---------- membership band ---------- */
.mband { background: var(--ink); color: var(--white); border-radius: 12px; padding: 48px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.mband .eyebrow { color: var(--gold); }
.mband h2 { font-size: clamp(26px, 3.4vw, 36px); color: var(--white); max-width: 18ch; }
.mband p { color: rgba(255,255,255,.78); margin: 16px 0 0; }
.mband .pricebox { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 28px; text-align: center; }
.mband .pricebox .big { font-family: var(--mono); font-size: 46px; color: var(--white); line-height: 1; }
.mband .pricebox .per { color: rgba(255,255,255,.6); font-size: 14px; }
.mband .pricebox .note { color: rgba(255,255,255,.6); font-size: 13px; margin: 14px 0 20px; }

/* ---------- pricing page ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.tier { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 32px 28px; display: flex; flex-direction: column; }
.tier.feature { border-color: var(--gold); box-shadow: 0 20px 50px -30px rgba(176,130,47,.6); position: relative; }
.tier.feature::before { content: "Most popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #fff; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; }
.tier h3 { font-size: 23px; }
.tier .tprice { font-family: var(--mono); font-size: 40px; color: var(--ink); margin: 14px 0 2px; }
.tier .tprice small { font-size: 15px; color: var(--slate); }
.tier ul { list-style: none; padding: 0; margin: 22px 0 26px; flex: 1; }
.tier li { font-size: 14.5px; padding: 9px 0 9px 26px; position: relative; border-top: 1px solid var(--line); color: var(--slate); }
.tier li:first-child { border-top: 0; }
.tier li::before { content: "→"; position: absolute; left: 0; color: var(--gold); }

/* ---------- product detail ---------- */
.pd { padding: 64px 0; }
.pd-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.pd .sku { font-family: var(--mono); font-size: 12px; color: var(--slate); }
.pd h1 { font-size: clamp(30px, 4vw, 44px); margin: 12px 0 18px; }
.pd .lede { font-size: 19px; color: var(--slate); }
.pd h3 { font-size: 20px; margin: 30px 0 12px; }
.pd ul { padding-left: 20px; color: var(--slate); }
.pd ul li { margin: 8px 0; }
.buybox { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 28px; position: sticky; top: 92px; }
.buybox .price { font-size: 36px; display: block; margin-bottom: 4px; }
.buybox .btn { width: 100%; text-align: center; margin-top: 16px; }
.buybox .meta { font-size: 13px; color: var(--slate); margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.breadcrumb { font-size: 13px; color: var(--slate); margin-bottom: 8px; }
.breadcrumb a { color: var(--slate); }

/* ---------- insight / blog post (entry point) ---------- */
.post { max-width: 720px; margin: 0 auto; padding: 64px 24px; }
.post h1 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 14px; }
.post .meta { font-family: var(--mono); font-size: 12.5px; color: var(--slate); margin-bottom: 36px; }
.post p { margin: 0 0 22px; color: #2b3d4d; }
.post h2 { font-size: 27px; margin: 38px 0 14px; }
.inline-cta { background: var(--stone); border-left: 4px solid var(--gold); border-radius: 6px; padding: 26px 28px; margin: 40px 0; }
.inline-cta .eyebrow { margin-bottom: 8px; }
.inline-cta h3 { font-size: 22px; margin-bottom: 8px; }
.inline-cta p { color: var(--slate); margin-bottom: 16px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 54px 0 30px; margin-top: 0; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--body); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,.7); display: block; padding: 5px 0; font-size: 14.5px; }
.site-footer a:hover { color: var(--gold); }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; font-size: 13px; color: rgba(255,255,255,.5); }
.demo-flag { background: var(--gold); color: #fff; text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: .05em; padding: 7px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid, .tiers { grid-template-columns: 1fr 1fr; }
  .mband, .pd-grid { grid-template-columns: 1fr; }
  .buybox { position: static; }
  .scale { grid-template-columns: 1fr 1fr; }
  .scale div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.14); }
}
@media (max-width: 620px) {
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; border-top: 1px solid rgba(255,255,255,.08); }
  .nav-toggle { display: block; }
  .grid, .tiers { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .mband { padding: 32px 26px; }
  .section-head .count { float: none; display: block; padding-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; }
}
