/* ============================================================
   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;
}

/* Org link cards — reusable across Education, Church Directory, Find a Counsellor */
.cbcc-org-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cbcc-org-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.cbcc-org-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0,0,0,.09);
  border-color: var(--c-gold);
}
.cbcc-org-card h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 10px;
}
.cbcc-org-card p {
  font-size: .95rem;
  line-height: 1.6;
  color: var(--c-muted);
  margin: 0 0 16px;
  flex: 1;
}
.cbcc-org-card__loc {
  color: var(--c-text) !important;
  font-weight: 500;
}
.cbcc-org-card a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--c-gold);
  text-decoration: none;
  align-self: flex-start;
}
.cbcc-org-card a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .cbcc-org-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cbcc-org-grid { grid-template-columns: 1fr; }
}


/* ── 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;}

/* ==========================================================================
   Conference page shared components (hero, quick-facts, verse/pullquote,
   speaker bios, schedule list). Scoped to .cbcc-conference-page so any
   conference-year page (2026 recap, 2027, future years) gets them for free.
   ========================================================================== */
.cbcc-conference-page .cbcc-conf-hero {
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 96px 0 84px;
  text-align: center;
}
.cbcc-conference-page .cbcc-conf-hero .cbcc-eyebrow {
  color: var(--c-gold);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.cbcc-conference-page .cbcc-conf-hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1.12;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
}
.cbcc-conference-page .cbcc-conf-hero__meta {
  font-size: 1.05rem;
  color: rgba(255,255,255,.82);
  margin: 0;
}
.cbcc-conference-page .cbcc-conf-hero__badge {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
}

/* Quick facts grid */
.cbcc-conference-page .cbcc-conf-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.cbcc-conference-page .cbcc-conf-fact {
  padding: 28px 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: var(--c-card);
}
.cbcc-conference-page .cbcc-conf-fact svg {
  color: var(--c-gold);
  margin-bottom: 12px;
}
.cbcc-conference-page .cbcc-conf-fact h4 {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 700;
  margin: 0 0 6px;
}
.cbcc-conference-page .cbcc-conf-fact p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--c-text);
  margin: 0;
}

/* Scripture verse + pullquote */
.cbcc-conference-page .cbcc-conf-verse {
  margin: 0 0 28px;
  padding: 28px 32px;
  border-left: 3px solid var(--c-gold);
  background: var(--c-card);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.cbcc-conference-page .cbcc-conf-verse p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--c-text);
  margin: 0 0 10px;
}
.cbcc-conference-page .cbcc-conf-verse cite {
  font-style: normal;
  font-size: .85rem;
  font-weight: 700;
  color: var(--c-gold);
  letter-spacing: .04em;
}
.cbcc-conference-page .cbcc-conf-pullquote {
  font-size: 1.3rem;
  line-height: 1.6;
  text-align: center;
  color: var(--c-text);
  margin: 32px 0;
  padding: 0 20px;
}
.cbcc-conference-page .cbcc-conf-reg-open {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-gold);
  letter-spacing: .02em;
  margin-top: 32px;
}

/* Speaker bios */
.cbcc-conference-page .cbcc-conf-speakers {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cbcc-conference-page .cbcc-conf-speaker {
  display: flex;
  gap: 24px;
  padding: 28px;
  align-items: flex-start;
}
.cbcc-conference-page .cbcc-conf-speaker__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--c-border);
}
.cbcc-conference-page .cbcc-conf-speaker__body h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 10px;
}
.cbcc-conference-page .cbcc-conf-speaker__body p {
  font-size: .95rem;
  line-height: 1.65;
  color: var(--c-muted);
  margin: 0;
}

/* Schedule */
.cbcc-conference-page .cbcc-conf-schedule-day {
  margin-bottom: 32px;
}
.cbcc-conference-page .cbcc-conf-schedule-day h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-gold);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border);
}
.cbcc-conference-page .cbcc-conf-schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cbcc-conference-page .cbcc-conf-schedule-list li {
  display: flex;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-border);
  font-size: .92rem;
}
.cbcc-conference-page .cbcc-conf-schedule-list li:last-child { border-bottom: none; }
.cbcc-conference-page .cbcc-conf-schedule-time {
  flex: 0 0 150px;
  color: var(--c-muted);
  font-weight: 600;
}
.cbcc-conference-page .cbcc-conf-schedule-title { color: var(--c-text); }

@media (max-width: 820px) {
  .cbcc-conference-page .cbcc-conf-hero h1 { font-size: 2.2rem; }
  .cbcc-conference-page .cbcc-conf-facts { grid-template-columns: repeat(2, 1fr); }
  .cbcc-conference-page .cbcc-conf-speaker { flex-direction: column; align-items: center; text-align: center; }
  .cbcc-conference-page .cbcc-conf-schedule-time { flex-basis: 110px; }
}
@media (max-width: 480px) {
  .cbcc-conference-page .cbcc-conf-facts { grid-template-columns: 1fr; }
  .cbcc-conference-page .cbcc-conf-schedule-list li { flex-direction: column; gap: 4px; }
}
/* Hero banner variant for pages using a pre-designed graphic that already
   includes its own title typography (no text overlay on the image itself;
   supporting info sits in a dark bar underneath). Reusable across conference
   years whenever the client supplies a finished title banner. */
.cbcc-conf-hero-banner {
  line-height: 0;
}
.cbcc-conf-hero-banner__img {
  width: 100%;
  height: auto;
  display: block;
}
.cbcc-conf-hero-info {
  background: var(--c-dark);
  color: #fff;
  padding: 32px 0;
  text-align: center;
}
.cbcc-conf-hero-info .cbcc-eyebrow {
  color: var(--c-gold);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.cbcc-conf-hero-info__meta {
  font-size: 1.05rem;
  color: rgba(255,255,255,.82);
  margin: 0 0 16px;
}