/* ===========================================================
   Counseling Center Group — Creative Component Library
   Tokens come from tokens.css (@imports ../colors_and_type.css).
   Class names are content-agnostic; use these blocks anywhere
   (emails, landing pages, ads, organic social).
   Brand tuning: pill buttons, soft 24px cards, cool-tinted
   shadows, ocean-teal accents.
   =========================================================== */

* { box-sizing: border-box; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* -----------------------------------------------------------
   Button — fully pill (CCG signature)
   ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  padding: 13px 24px;
  transition: background var(--dur-fast) var(--ease-smooth),
              color var(--dur-fast) var(--ease-smooth),
              transform 80ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary   { background: var(--brand-action-500); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover  { background: var(--brand-action-600); }
.btn-primary:active { background: var(--brand-action-700); }
.btn-secondary { background: var(--brand-secondary-700); color: #fff; }
.btn-secondary:hover { background: var(--brand-secondary-900); }
.btn-outline   { background: transparent; color: var(--brand-action-500); border-color: var(--brand-action-500); }
.btn-outline:hover   { background: var(--brand-action-500); color: #fff; }
.btn-ghost     { background: transparent; color: var(--brand-action-600); padding: 8px 0; }
.btn-ghost:hover { color: var(--brand-action-700); text-decoration: underline; text-underline-offset: 4px; }
.btn-on-dark   { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-on-dark:hover { background: #fff; color: var(--brand-secondary-700); }
.btn-sm { padding: 9px 18px;  font-size: 13px; }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* -----------------------------------------------------------
   Badge
   ----------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
}
.badge .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; opacity: .7; }
.badge-green    { background: var(--brand-primary-50);   color: var(--brand-primary-800); }
.badge-action   { background: var(--brand-action-500);   color: #fff; }
.badge-indigo   { background: var(--brand-secondary-50); color: var(--brand-secondary-700); }
.badge-gold     { background: var(--ccg-rose-100);       color: var(--ccg-rose-700); }
.badge-outline  { background: #fff; border: 1px solid var(--brand-action-500); color: var(--brand-action-500); }

/* -----------------------------------------------------------
   Eyebrow label — Roboto Condensed, tracked, brand teal
   ----------------------------------------------------------- */
.eyebrow-lbl {
  display: inline-block;
  font-family: var(--font-eyebrow); font-size: 13px; font-weight: 600;
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--brand-primary-700);
}
.eyebrow-lbl.on-dark  { color: var(--brand-action-300); }
.eyebrow-lbl.on-green { color: #D4E7EC; }

/* -----------------------------------------------------------
   Container & section
   ----------------------------------------------------------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }
.section       { padding: 80px 0; }
.section.tight { padding: 48px 0; }

/* -----------------------------------------------------------
   Section header (eyebrow + h2 + lead)
   ----------------------------------------------------------- */
.section-header { text-align: left; max-width: 720px; margin-bottom: 36px; }
.section-header .eyebrow-lbl { display: block; margin-bottom: 10px; }
.section-header h2 {
  font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 44px); font-weight: 700;
  letter-spacing: -0.022em; color: var(--brand-secondary-700); line-height: 1.08; margin: 0;
}
.section-header .lead {
  color: var(--fg-muted); font-size: 17px; margin-top: 14px; max-width: 60ch; line-height: 1.55;
}
.section-header.center { text-align: center; margin-inline: auto; }
.section-header.center .lead { margin-inline: auto; }
.section-header.on-dark h2 { color: #fff; }
.section-header.on-dark .lead { color: var(--brand-secondary-100); }

/* -----------------------------------------------------------
   Tile card — image + heading + meta + byline + CTA
   ----------------------------------------------------------- */
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1080px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
.tile-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-card); padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 220ms ease, transform 220ms ease; cursor: pointer;
}
.tile-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.tile-card .img {
  aspect-ratio: 1; background: var(--brand-cream); border-radius: var(--r-lg); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; position: relative;
}
.tile-card .img img { width: 100%; height: 100%; object-fit: cover; }
.tile-card .img .corner { position: absolute; top: 10px; left: 10px; }
.tile-card .heading {
  font-family: var(--font-display); font-weight: 600; color: var(--brand-secondary-700);
  font-size: 19px; letter-spacing: -0.012em;
}
.tile-card .meta { font-size: 13px; color: var(--fg-muted); margin: 4px 0 12px; }
.tile-card .row { display: flex; align-items: center; justify-content: space-between; }
.tile-card .price {
  font-family: var(--font-display); font-weight: 700;
  color: var(--brand-action-500); font-size: 16px;
}

/* -----------------------------------------------------------
   Icon feature — icon + h4 + p (alone or in a grid)
   ----------------------------------------------------------- */
.icon-feature { display: flex; gap: 14px; align-items: flex-start; }
.icon-feature .ico { width: 56px; height: 56px; object-fit: contain; flex: none; }
.icon-feature h4 {
  font-family: var(--font-display); font-size: 17px; font-weight: 600;
  color: var(--brand-secondary-700); letter-spacing: -0.01em; margin: 0 0 4px;
}
.icon-feature p { font-size: 13px; color: var(--fg-muted); line-height: 1.5; margin: 0; }
.icon-feature.center { display: block; text-align: center; }
.icon-feature.center .ico { margin: 0 auto; width: 86px; height: 86px; }
.icon-feature.center h4 { margin: 10px 0 4px; font-size: 16px; }
.icon-feature.on-dark h4 { color: #fff; }
.icon-feature.on-dark p  { color: #D4E7EC; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 28px; }
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }

/* Feature band — colored panel hosting a feature-grid plus optional photo */
.feature-band { background: var(--brand-primary-700); color: #fff; }
.feature-band .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 980px) { .feature-band .container { grid-template-columns: 1fr; } }
.feature-band .photo { aspect-ratio: 4/5; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.feature-band .photo img { width: 100%; height: 100%; object-fit: cover; }
.feature-band h2 {
  color: #fff; font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08; letter-spacing: -0.022em; font-weight: 700; margin: 12px 0 22px;
}

/* -----------------------------------------------------------
   Quote card — stars (optional) + headline + body + attribution
   ----------------------------------------------------------- */
.quote-card {
  background: var(--brand-cream); border-radius: var(--radius-card); padding: 24px;
  border: 1px solid var(--line-soft);
}
.quote-card .img { aspect-ratio: 4/3; border-radius: var(--r-lg); overflow: hidden; margin-bottom: 14px; }
.quote-card .img img { width: 100%; height: 100%; object-fit: cover; }
.quote-card .stars { color: var(--brand-accent-warm-500); letter-spacing: 3px; font-size: 13px; }
.quote-card h4 {
  font-family: var(--font-display); font-weight: 600; color: var(--brand-secondary-700);
  font-size: 18px; letter-spacing: -0.01em; margin: 6px 0 8px;
}
.quote-card p { font-size: 14px; line-height: 1.55; color: var(--fg); margin: 0 0 14px; }
.quote-card .author { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--fg-muted); }
.quote-card .verified { color: var(--brand-action-600); font-weight: 700; }
.quote-card .verified::before {
  content: "✓"; display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border-radius: 999px;
  background: var(--brand-action-500); color: #fff; font-size: 9px; margin-right: 4px;
}

.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .quote-grid { grid-template-columns: 1fr; } }

/* -----------------------------------------------------------
   Logo row — N muted logos under a small label
   ----------------------------------------------------------- */
.logo-row { padding: 36px 0; background: var(--brand-cream); }
.logo-row .lbl {
  text-align: center; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brand-primary-700); font-weight: 700; margin-bottom: 18px; font-family: var(--font-eyebrow);
}
.logo-row .row {
  display: flex; gap: 56px; align-items: center; justify-content: center;
  flex-wrap: wrap; opacity: 0.9;
}
.logo-row .row img { height: 30px; object-fit: contain; }

/* -----------------------------------------------------------
   Ribbon bar — single-line color band, optional marquee
   ----------------------------------------------------------- */
.ribbon-bar { background: var(--brand-primary-700); color: #fff; overflow: hidden; }
.ribbon-bar .static {
  text-align: center; padding: 10px 16px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
}
.ribbon-bar .marquee {
  display: flex; gap: 60px; padding: 10px 0; white-space: nowrap;
  animation: ribbon-marquee 36s linear infinite;
}
.ribbon-bar .item { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; opacity: 0.95; }
.ribbon-bar .dot { color: var(--brand-action-300); }
@keyframes ribbon-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ribbon-bar.tone-green  { background: var(--brand-action-500); }
.ribbon-bar.tone-action { background: var(--brand-primary-700); color: #fff; }
.ribbon-bar.tone-cream  { background: var(--brand-cream); color: var(--brand-secondary-700); }

/* -----------------------------------------------------------
   Hero — bg image + scrim + eyebrow + h1 + sub + pills + CTAs
   ----------------------------------------------------------- */
.hero {
  position: relative; min-height: 620px;
  display: flex; align-items: center;
  background: var(--brand-primary-900); color: #fff; overflow: hidden;
}
.hero .bg { position: absolute; inset: 0; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.hero .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,62,72,0.62) 0%, rgba(16,62,72,0.20) 60%, transparent 100%);
}
.hero .content { position: relative; z-index: 2; padding: 100px 0 80px; max-width: 640px; }
.hero .eyebrow {
  color: var(--brand-action-300); font-size: 13px; font-weight: 600; font-family: var(--font-eyebrow);
  letter-spacing: 0.16em; text-transform: uppercase;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(38px, 5vw, 68px); line-height: 1.04; letter-spacing: -0.028em;
  color: #fff; margin: 16px 0 8px;
}
.hero h1 em { font-style: normal; color: var(--brand-action-300); }
.hero .sub {
  font-family: var(--font-body); font-weight: 400;
  font-size: clamp(18px, 2vw, 22px); color: #fff; opacity: 0.92; line-height: 1.5;
}
.hero .pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 32px; }
.hero .pills .pill {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18);
  color: #fff; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.hero .pills .pill::before { content: "✓"; color: var(--brand-action-300); margin-right: 6px; font-weight: 800; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* -----------------------------------------------------------
   VS cards — two panels w/ checkmark vs cross lists
   ----------------------------------------------------------- */
.vs-grid { display: grid; grid-template-columns: 1fr 60px 1fr; gap: 24px; align-items: center; }
@media (max-width: 980px) { .vs-grid { grid-template-columns: 1fr; } .vs-grid .vs { justify-self: center; } }
.vs-card {
  background: #fff; border-radius: var(--radius-card); padding: 28px;
  border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm);
}
.vs-card.win  { border: 2px solid var(--brand-action-500); box-shadow: var(--shadow-md); }
.vs-card .img { aspect-ratio: 16/10; border-radius: var(--r-lg); overflow: hidden; margin-bottom: 16px; background: var(--brand-sand); }
.vs-card .img img { width: 100%; height: 100%; object-fit: cover; }
.vs-card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 24px;
  color: var(--brand-secondary-700); letter-spacing: -0.015em; margin: 0 0 12px;
}
.vs-card ul { padding: 0; margin: 0; list-style: none; }
.vs-card li {
  padding: 10px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 15px; color: var(--fg); display: flex; gap: 10px; align-items: flex-start;
}
.vs-card li:last-child { border: 0; }
.vs-card.win  li::before  { content: "✓"; color: var(--brand-action-500); font-weight: 900; }
.vs-card.lose li          { color: var(--fg-muted); }
.vs-card.lose li::before  { content: "✕"; color: var(--brand-stone-400); font-weight: 900; }
.vs-grid .vs {
  font-family: var(--font-display); font-weight: 700; font-size: 24px;
  color: var(--brand-stone-400); letter-spacing: 0.04em; text-align: center;
}

/* -----------------------------------------------------------
   Numbered step — big numeral + h4 + p
   ----------------------------------------------------------- */
.numbered-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 980px) { .numbered-steps { grid-template-columns: repeat(2, 1fr); } }
.numbered-step {
  background: var(--brand-cream); border: 1px solid var(--line-soft);
  border-radius: var(--radius-card); padding: 24px;
}
.numbered-step .num {
  font-family: var(--font-display); font-weight: 700; font-size: 56px;
  color: var(--brand-action-400); letter-spacing: -0.03em; line-height: 1;
}
.numbered-step h4 {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  margin: 12px 0 8px; color: var(--brand-secondary-700); letter-spacing: -0.012em;
}
.numbered-step p { font-size: 14px; line-height: 1.6; color: var(--fg-muted); margin: 0; }
.numbered-step.on-dark { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.10); }
.numbered-step.on-dark h4 { color: #fff; }
.numbered-step.on-dark p  { color: var(--brand-secondary-100); }

/* -----------------------------------------------------------
   Accordion item
   ----------------------------------------------------------- */
.accordion { max-width: 800px; margin: 0 auto; }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-item .q {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 0; font-family: var(--font-display); font-weight: 600; font-size: 19px;
  color: var(--brand-secondary-700); letter-spacing: -0.012em; cursor: pointer; user-select: none;
}
.accordion-item .q .chev {
  width: 22px; height: 22px; color: var(--brand-action-500);
  transition: transform 200ms ease; flex: none;
}
.accordion-item.open .q .chev { transform: rotate(180deg); }
.accordion-item .a {
  font-size: 15px; line-height: 1.6; color: var(--fg); max-width: 70ch;
  max-height: 0; overflow: hidden;
  transition: max-height 280ms ease, padding 280ms ease;
}
.accordion-item.open .a { max-height: 320px; padding-bottom: 22px; }

/* -----------------------------------------------------------
   Form field
   ----------------------------------------------------------- */
.field-group { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
@media (max-width: 720px) { .field-group { grid-template-columns: 1fr; } }
.field-label {
  display: block; font-size: 12px; font-weight: 700; color: var(--fg);
  margin-bottom: 6px; letter-spacing: 0.02em;
}
.field {
  display: flex; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r-md); background: #fff;
  transition: all var(--dur-fast) var(--ease-smooth);
}
.field:focus-within { border-color: var(--brand-action-500); box-shadow: var(--ring); }
.field input {
  flex: 1; border: 0; outline: 0; padding: 12px 14px;
  font: inherit; color: var(--fg); background: transparent;
}
.field .suffix { padding: 0 14px; color: var(--fg-muted); font-size: 13px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fg); }
.check input { accent-color: var(--brand-action-500); width: 18px; height: 18px; }
.toggle { width: 40px; height: 22px; border-radius: 999px; background: var(--brand-stone-200); position: relative; transition: background var(--dur-fast); }
.toggle.on { background: var(--brand-action-500); }
.toggle::after {
  content: ""; position: absolute; width: 16px; height: 16px;
  background: #fff; border-radius: 999px; top: 3px; left: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0,.15); transition: left var(--dur-fast) var(--ease-smooth);
}
.toggle.on::after { left: 21px; }

/* -----------------------------------------------------------
   Stat tile — big figure + label
   ----------------------------------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 980px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-tile { text-align: left; padding: 8px 0; }
.stat-tile .figure {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(44px, 5vw, 72px); line-height: 1; letter-spacing: -0.03em;
  color: var(--brand-secondary-700);
}
.stat-tile .label {
  margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--fg-muted);
  max-width: 22ch;
}
.stat-tile.center { text-align: center; }
.stat-tile.center .label { margin-inline: auto; }
.stat-tile.accent .figure { color: var(--brand-action-500); }
.stat-tile.on-dark .figure { color: var(--brand-action-300); }
.stat-tile.on-dark .label  { color: var(--brand-secondary-100); }

/* -----------------------------------------------------------
   CTA band — eyebrow + h2 + button on a color block
   ----------------------------------------------------------- */
.cta-band {
  padding: 64px 0; background: var(--brand-primary-700); color: #fff; text-align: center;
}
.cta-band.tone-green  { background: var(--brand-action-500); }
.cta-band.tone-action { background: var(--brand-primary-900); }
.cta-band.tone-cream  { background: var(--brand-cream); color: var(--brand-secondary-700); }
.cta-band .eyebrow-lbl { color: var(--brand-action-300); margin-bottom: 10px; display: inline-block; }
.cta-band.tone-cream .eyebrow-lbl { color: var(--brand-primary-700); }
.cta-band h2 {
  font-family: var(--font-display); font-size: clamp(26px, 3vw, 44px); font-weight: 700;
  letter-spacing: -0.022em; line-height: 1.08; margin: 0 0 24px; color: inherit;
}
.cta-band .sub { font-size: 16px; opacity: 0.9; margin: -14px 0 24px; }

/* -----------------------------------------------------------
   Footer brand
   ----------------------------------------------------------- */
.footer-brand { background: var(--brand-primary-900); color: var(--brand-secondary-100); padding: 64px 0 32px; }
.footer-brand .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
@media (max-width: 980px) { .footer-brand .grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-brand .brand img { height: 72px; }
.footer-brand .brand p { font-size: 13px; color: var(--brand-secondary-100); margin-top: 16px; line-height: 1.6; max-width: 34ch; }
.footer-brand .col h5 {
  font-family: var(--font-eyebrow); font-weight: 600; font-size: 14px; color: #fff;
  letter-spacing: 0.12em; text-transform: uppercase; margin: 4px 0 14px;
}
.footer-brand .col ul { padding: 0; margin: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-brand .col a { font-size: 14px; color: var(--brand-secondary-100); }
.footer-brand .col a:hover { color: var(--brand-action-300); }
.footer-brand .sub-form { display: flex; gap: 8px; margin-top: 14px; }
.footer-brand .sub-form input {
  flex: 1; padding: 11px 14px; border-radius: var(--r-md); border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06); color: #fff; outline: 0; font: inherit;
}
.footer-brand .sub-form input::placeholder { color: rgba(255,255,255,0.5); }
.footer-brand .legal {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px;
  font-size: 12px; color: var(--brand-primary-200);
}

/* -----------------------------------------------------------
   Logo lockup — logo on white / dark / brand panels
   ----------------------------------------------------------- */
.lockup-row { display: grid; grid-template-columns: repeat(3, 1fr); height: 240px; border-radius: var(--r-xl); overflow: hidden; }
@media (max-width: 720px) { .lockup-row { grid-template-columns: 1fr; height: auto; } .lockup-row .panel { padding: 32px 0; } }
.lockup-row .panel {
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px;
  background: #fff; color: var(--fg-muted);
}
.lockup-row .panel.dark  { background: var(--brand-primary-900); color: #fff; }
.lockup-row .panel.green { background: var(--brand-primary-700); color: #fff; }
.lockup-row .panel img   { max-width: 60%; max-height: 60%; }
.lockup-row .panel .label{ font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
