/* ============================================================
   CBCC Global Styles
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 20px; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Page fade-in ── */
body { opacity: 0; animation: pageFadeIn 220ms ease forwards; }
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Container ── */
.cbcc-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-padding);
}

/* ── Section spacing ── */
.cbcc-section { padding: var(--section-pad) 0; }
.cbcc-section--alt   { background: var(--c-bg-alt); }
.cbcc-section--dark  { background: var(--c-dark); }
.cbcc-section--white { background: #fff; }

/* ── Section Heading ── */
.cbcc-section-head { text-align: center; margin-bottom: 52px; }
.cbcc-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 12px;
}
.cbcc-section-head h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.2;
  margin-bottom: 16px;
}
.cbcc-section-head p {
  font-size: 1.05rem;
  color: var(--c-muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--c-text);
}
h1 { font-size: 3.2rem;  font-weight: 700; }
h2 { font-size: 2.4rem;  font-weight: 700; }
h3 { font-size: 1.6rem;  font-weight: 700; }
h4 { font-size: 1.3rem;  font-weight: 600; }

p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

/* ── Buttons ── */
.cbcc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  padding: 14px 28px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s, transform 0.1s;
  text-decoration: none;
  white-space: nowrap;
}
.cbcc-btn:hover { text-decoration: none; transform: translateY(-1px); }
.cbcc-btn:active { transform: translateY(0); }

.cbcc-btn--primary { background: var(--c-primary); color: #fff; }
.cbcc-btn--primary:hover { background: var(--c-primary-dark); color: #fff; }

.cbcc-btn--ghost { background: transparent; color: var(--c-primary); border: 1.5px solid var(--c-primary); }
.cbcc-btn--ghost:hover { background: var(--c-primary); color: #fff; }

.cbcc-btn--ghost-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5); }
.cbcc-btn--ghost-white:hover { background: rgba(255,255,255,0.1); color: #fff; }

.cbcc-btn--dark { background: var(--c-dark); color: #fff; }
.cbcc-btn--dark:hover { background: #2e3440; color: #fff; }

.cbcc-btn--lg  { font-size: 1.05rem; padding: 16px 36px; }
.cbcc-btn--sm  { font-size: 0.85rem; padding: 10px 20px; }
.cbcc-btn--full { width: 100%; }

/* ── Cards ── */
.cbcc-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* ── Badges ── */
.cbcc-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  line-height: 1.4;
}
.cbcc-badge--primary { background: var(--c-primary); color: #fff; }
.cbcc-badge--gold    { background: var(--c-gold-bg);  color: var(--c-gold); }
.cbcc-badge--green   { background: var(--c-green-bg); color: var(--c-green); }
.cbcc-badge--dark    { background: var(--c-dark);     color: #fff; }
.cbcc-badge--muted   { background: var(--c-bg-alt);   color: var(--c-muted); }

/* ── Partner Tier Badges ── */
.cbcc-partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
}
.cbcc-partner-badge--individual { background: var(--c-bg-alt); color: var(--c-muted); border: 1px solid var(--c-border); }
.cbcc-partner-badge--bc         { background: var(--c-gold-bg); color: var(--c-gold); }
.cbcc-partner-badge--ministry   { background: var(--c-dark); color: var(--c-gold); }
.cbcc-partner-badge--church     { background: var(--c-green-bg); color: var(--c-green); }

/* ── Forms ── */
.cbcc-field { margin-bottom: 22px; }
.cbcc-field label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 8px;
}
.cbcc-field input,
.cbcc-field select,
.cbcc-field textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--c-text);
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
}
.cbcc-field input:focus,
.cbcc-field select:focus,
.cbcc-field textarea:focus { border-color: var(--c-primary); }
.cbcc-field textarea { resize: vertical; min-height: 140px; }
.cbcc-field .field-note { font-size: 0.78rem; color: var(--c-muted); margin-top: 6px; }

/* ── Page Banner ── */
.cbcc-page-banner {
  background: var(--c-dark);
  padding: 64px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.cbcc-page-banner .cbcc-eyebrow { color: var(--c-gold); margin-bottom: 12px; }
.cbcc-page-banner h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.15;
}
.cbcc-page-banner p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  line-height: 1.8;
  margin: 0;
}

/* ── Breadcrumb bar ── */
.cbcc-breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  padding: 14px 0;
}
.cbcc-breadcrumb-bar .inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--c-muted);
}
.cbcc-breadcrumb-bar a { color: var(--c-muted); }
.cbcc-breadcrumb-bar a:hover { color: var(--c-primary); }
.cbcc-breadcrumb-bar .sep { opacity: 0.4; }
.cbcc-breadcrumb-bar .current { color: var(--c-text); font-weight: 500; }

/* ── Utility ── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-sm { margin-top: 18px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 56px; }

/* ── Prose ── */
.cbcc-prose h2 { font-size: 1.9rem; margin: 40px 0 16px; }
.cbcc-prose h3 { font-size: 1.45rem; margin: 30px 0 12px; }
.cbcc-prose p  { font-size: 1rem; color: var(--c-text); line-height: 1.85; margin-bottom: 22px; }
.cbcc-prose ul,
.cbcc-prose ol { padding-left: 28px; margin-bottom: 22px; }
.cbcc-prose li { font-size: 1rem; color: var(--c-text); line-height: 1.8; margin-bottom: 10px; }
.cbcc-prose a  { color: var(--c-primary); }
.cbcc-prose blockquote {
  border-left: 4px solid var(--c-primary);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--c-bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--c-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  html { font-size: 18px; }
  :root { --section-pad: 60px; --side-padding: 22px; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.9rem; }
  .cbcc-section-head h2 { font-size: 1.9rem; }
  .cbcc-page-banner h1 { font-size: 2.1rem; }
}

/* Constrain blog post reading width for readability */
.cbcc-single__content{max-width:720px;margin-left:auto;margin-right:auto;}
.cbcc-single__hero-image{max-width:820px;margin:0 auto 16px;}
.cbcc-single__hero-image img{border-radius:var(--radius-lg);display:block;width:100%;height:auto;}

/* Single post — light header (replaces the dark page banner) */
.cbcc-single__header{text-align:center;max-width:820px;margin:0 auto;padding:56px 20px 30px;}
.cbcc-single__header .cbcc-eyebrow{color:var(--c-gold);letter-spacing:.12em;text-transform:uppercase;font-size:.78rem;font-weight:700;margin-bottom:14px;}
.cbcc-single__header .cbcc-eyebrow a{color:inherit;text-decoration:none;}
.cbcc-single__header h1{font-family:var(--font-heading);font-size:2.6rem;line-height:1.16;font-weight:700;color:var(--c-text);margin:0 0 14px;}
.cbcc-single__meta{color:var(--c-muted);font-size:.95rem;margin:0;}
@media (max-width:620px){.cbcc-single__header{padding:40px 16px 22px;}.cbcc-single__header h1{font-size:1.95rem;}}

/* Charcoal line-icon treatment (site-wide sweep) */
.cbcc-icon{display:inline-block;vertical-align:middle;}
.cbcc-pillar-card__icon,.cbcc-giving-card__icon,.cbcc-reg-gate__icon,.cbcc-resource-card__type-icon,.cbcc-resource-card__lock-icon,.cbcc-unauthorized__icon{color:var(--c-dark);}
.cbcc-counsellor-card__church .cbcc-icon,.cbcc-counsellor-card__location .cbcc-icon{color:var(--c-muted);vertical-align:-2px;margin-right:3px;}
/* Blog readability */
.cbcc-single .cbcc-prose p{font-size:1.15rem;line-height:1.95;}
.cbcc-single .cbcc-prose li{font-size:1.12rem;line-height:1.9;}
.cbcc-single .cbcc-prose h2{font-size:2rem;margin-top:46px;}
.cbcc-single .cbcc-prose h3{font-size:1.5rem;}

/* Single post: tighten gap between featured image and body copy */
.cbcc-single .cbcc-single__hero-image + .cbcc-section{padding-top:28px;}

/* Author bio (media-text) at end of posts — compact card, smaller type */
.cbcc-single .cbcc-prose .wp-block-media-text{max-width:600px;margin:44px auto;border-radius:var(--radius-lg);overflow:hidden;align-items:stretch;grid-template-columns:34% auto !important;}
.cbcc-single .cbcc-prose .wp-block-media-text__media{align-self:stretch;}
.cbcc-single .cbcc-prose .wp-block-media-text__media img{width:100%;height:100%;object-fit:cover;display:block;}
.cbcc-single .cbcc-prose .wp-block-media-text__content{padding:22px 26px;}
.cbcc-single .cbcc-prose .wp-block-media-text__content p{font-size:.9rem;line-height:1.6;margin:0;}
