/* ------------------------------------------------
   Calm Clarity Design System
   Single Source of Truth (Bricks + Blocksy-safe, mobile-first)
   Version: v2.3.5 (Blocksy + Gutenberg Integrated, no-numbering edition)

   EDIT THIS FILE LOCALLY.
   When happy, upload as:
   /wp-content/themes/blocksy-child/calm-clarity.css
------------------------------------------------- */

/* ------------------------------------------------
   Calm Clarity Design System – Stylesheet Map
   (Quick Reference – non-enforced, just for humans)

   1. Tokens
      - Type scale, spacing, radii, shadows, colour system

   2. Base Typography & Globals
      - Body text, headings, paragraphs, links, Blocksy base overrides

   3. Buttons
      - .cc-button, ghost variant, full-width mobile, Bricks/Gutenberg integration

   4. Card Shell
      - .cc-card base, card title/body styles

   5. Layout Helpers
      - .cc-section, .cc-container, .cc-stack-*, .cc-hero, .cc-logo-row,
        .cc-grid-2, .cc-grid-3, .cc-button-row

   6. Safety Nets
      - Responsive images, horizontal overflow protection

   7. Theme Overrides
      - H1 / entry-title overrides for Blocksy / theme titles

   8. Gutenberg Button Overrides
      - .wp-block-button.cc-button, .wp-block-button__link.cc-button,
        ghost variants inside Gutenberg

   9. Image Treatment Utilities
      - .cc-image, background blocks, frames, shadows, rounded masks,
        .cc-hero-image shell

  10. Image Layout Patterns
      - .cc-hero-media, .cc-feature-row, .cc-media-object, .cc-avatar-row,
        .cc-image-row patterns

  11. Cards & Feature Block Patterns
      - .cc-feature-card, .cc-icon-card, .cc-stat-card, .cc-pricing-card,
        .cc-card-grid-2 / .cc-card-grid-3 / .cc-card-grid-4, section header helpers

  12. Testimonials & Quotes
      - .cc-quote-block, .cc-testimonial-card, .cc-testimonial-grid,
        .cc-quote-strip, testimonial section hooks

  13. CTAs & Footers
      - .cc-cta-section, .cc-cta-inline, .cc-footer, .cc-footer-primary,
        .cc-footer-bottom and related helpers

  14. Utility Classes
     - Margin helpers (.cc-mb-*, .cc-mt-*, .cc-pt-*, .cc-pb-*)
     - Layout helpers (.cc-flex-*, .cc-grid, .cc-no-gap, .cc-center-block, widths)
     - Colour utilities (.cc-bg-*, .cc-text-*, .cc-bg-white, overlays)
     - Icon + label bullets (.cc-bullet-list, .cc-bullet-row)

------------------------------------------------ */


/* ========================================
   TOKENS (global custom properties)
   - Type scale
   - Spacing
   - Radii
   - Shadows
   - Color system
======================================== */

:root {
  /* TYPE SCALE (Fluid, mobile → desktop) */
  --heading-h6: clamp(1rem, 0.20vw + 0.90rem, 1.25rem);
  --heading-h5: clamp(1.20rem, 0.24vw + 1.05rem, 1.55rem);
  --heading-h4: clamp(1.35rem, 0.32vw + 1.15rem, 1.85rem);
  --heading-h3: clamp(1.55rem, 0.46vw + 1.30rem, 2.20rem);
  --heading-h2: clamp(1.80rem, 0.70vw + 1.50rem, 2.60rem);
  --heading-h1: clamp(2.20rem, 1.40vw + 1.70rem, 3.40rem);

  --text-xs: clamp(0.75rem, 0.15vw + 0.70rem, 0.85rem);
  --text-sm: clamp(0.875rem, 0.2vw + 0.80rem, 1rem);
  --text-md: clamp(1rem, 0.25vw + 0.90rem, 1.125rem);
  --text-lg: clamp(1.125rem, 0.3vw + 1rem, 1.25rem);
  --text-xl: clamp(1.25rem, 0.4vw + 1.1rem, 1.5rem);
  --text-xxl: clamp(1.375rem, 0.5vw + 1.2rem, 1.75rem);
  --text-xxxl: clamp(1.5rem, 0.6vw + 1.3rem, 2rem);

  --lh-body: 1.6;
  --lh-heading: 1.25;

  /* SPACING SCALE */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.25rem;
  --space-2xl: 5.25rem;

  /* Fluid section spacing */
  --space-section: clamp(3rem, 4vw + 1rem, 6rem);

  /* RADII */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.5rem;
  --radius-full: 999px;

  /* SHADOWS (light mode) */
  --shadow-soft: 0 4px 10px hsla(220, 30%, 0%, 0.06);
  --shadow-medium: 0 6px 24px hsla(220, 30%, 0%, 0.10);
  --shadow-strong: 0 10px 40px hsla(220, 30%, 0%, 0.16);

  /* NEUTRALS (warm slate) */
  --cc-neutral-50: #f8f9fb;
  --cc-neutral-100: #f1f3f6;
  --cc-neutral-200: #e2e6ed;
  --cc-neutral-300: #cfd5e0;
  --cc-neutral-400: #aeb8c9;
  --cc-neutral-500: #8794a8;
  --cc-neutral-600: #66748b;
  --cc-neutral-700: #505d70;
  --cc-neutral-800: #384257;
  --cc-neutral-900: #242b3a;

  /* PRIMARY (blue) */
  --cc-primary-50: #eef6ff;
  --cc-primary-100: #daeaff;
  --cc-primary-200: #bcd9ff;
  --cc-primary-300: #93c3ff;
  --cc-primary-400: #66aaff;
  --cc-primary-500: #3b88f6;
  --cc-primary-600: #2f6cd9;
  --cc-primary-700: #2553b3;
  --cc-primary-800: #1b3c8a;
  --cc-primary-900: #122966;

  /* ACCENT (soft aqua) */
  --cc-accent-50: #e9fbff;
  --cc-accent-100: #ccf5ff;
  --cc-accent-200: #a8ecff;
  --cc-accent-300: #7de0fa;
  --cc-accent-400: #4acff1;
  --cc-accent-500: #21b8e4;
  --cc-accent-600: #1892b8;
  --cc-accent-700: #116e8c;
  --cc-accent-800: #0b4c63;
  --cc-accent-900: #073340;

  /* SEMANTIC COLORS */
  --cc-success: #3aa76d;
  --cc-warning: #e5b236;
  --cc-danger: #e25454;

  /* SURFACES */
  --cc-bg: var(--cc-neutral-50);
  --cc-surface-0: var(--cc-neutral-50);
  --cc-surface-1: var(--cc-neutral-100);
  --cc-surface-2: var(--cc-neutral-200);
  --cc-surface-3: var(--cc-neutral-300);

  /* BORDERS */
  --cc-border-subtle: var(--cc-neutral-200);
  --cc-border: var(--cc-neutral-300);

  /* TEXT */
  --cc-text: var(--cc-neutral-800);
  --cc-text-soft: var(--cc-neutral-600);
  --cc-text-strong: var(--cc-neutral-900);
  --cc-text-inverse: #ffffff;
  /* default inverse if no skin loaded */

  /* ACCENT SEMANTICS */
  --cc-accent: var(--cc-primary-500);
  --cc-accent-hover: var(--cc-primary-600);
  --cc-accent-bg: var(--cc-primary-100);
  --cc-accent-bg-hover: var(--cc-primary-200);

  /* OVERLAYS */
  --cc-overlay-1: rgba(0, 0, 0, 0.06);
  --cc-overlay-2: rgba(0, 0, 0, 0.12);
}

/* ========================================
   BASE TYPOGRAPHY & GLOBALS
   - Body
   - Headings
   - Text
   - Links
======================================== */

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--text-md);
  line-height: var(--lh-body);
  color: var(--cc-text);
  background: var(--cc-bg);
  margin: 0;
}

/* Blocksy override fix (forces Calm Clarity to stay in control) */
body {
  font-size: var(--text-md) !important;
  font-weight: 400 !important;
  line-height: var(--lh-body) !important;
}

/* Calm Clarity – Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-block: 0 var(--space-sm);
  font-family: inherit;
  font-weight: 600;
  line-height: var(--lh-heading);
  color: var(--cc-text-strong);
}

/* Fluid heading sizes */
h1 {
  font-size: var(--heading-h1);
}

h2 {
  font-size: var(--heading-h2);
}

h3 {
  font-size: var(--heading-h3);
}

h4 {
  font-size: var(--heading-h4);
}

h5 {
  font-size: var(--heading-h5);
}

h6 {
  font-size: var(--heading-h6);
}

p,
li {
  font-size: var(--text-md);
  line-height: var(--lh-body);
  margin-block: 0 var(--space-sm);
}

a {
  color: var(--cc-accent);
  text-decoration: none;
}

a:hover {
  color: var(--cc-accent-hover);
  text-decoration: underline;
}

/* ========================================
   TYPOGRAPHY HELPERS
   - Intro / lead text
   - Size utilities (XS → XXXL + Hero)
   - Muted tone
======================================== */

/* Lead / intro paragraph (slightly larger, constrained width) */
.cc-text-intro {
  font-size: var(--text-lg);
  line-height: var(--lh-body);
  max-width: 65ch;
  /* calm reading width */
}

/* SIZE UTILITIES */

.cc-text-xs {
  font-size: var(--text-xs);
  line-height: var(--lh-body);
}

.cc-text-sm {
  font-size: var(--text-sm);
  line-height: var(--lh-body);
}

.cc-text-md {
  font-size: var(--text-md);
  line-height: var(--lh-body);
}

.cc-text-lg {
  font-size: var(--text-lg);
  line-height: var(--lh-body);
}

.cc-text-xl {
  font-size: var(--text-xl);
  line-height: var(--lh-body);
}

.cc-text-xxl {
  font-size: var(--text-xxl);
  line-height: var(--lh-body);
}

.cc-text-xxxl {
  font-size: var(--text-xxxl);
  line-height: var(--lh-body);
}

.cc-text-hero {
  font-size: var(--heading-h1);
  line-height: var(--lh-heading);
  font-weight: 600;
}

.cc-text-muted {
  color: var(--cc-text-soft);
}

/* ========================================
   BUTTONS
======================================== */

.cc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  background: var(--cc-accent);
  color: #fff;
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;

  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.cc-button:hover {
  background: var(--cc-accent-hover);
  box-shadow: var(--shadow-soft);
}

.cc-button:active {
  transform: translateY(1px);
  box-shadow: none;
}

.cc-button--ghost {
  background: transparent;
  color: var(--cc-accent);
  border: 1px solid var(--cc-accent);
}

.cc-button--ghost:hover {
  background: var(--cc-accent-bg);
}

.cc-button--full-mobile {
  width: 100%;
}

@media (min-width: 48rem) {
  .cc-button--full-mobile {
    width: auto;
  }
}

.brxe-button.cc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  background: var(--cc-accent);
  color: #fff;
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;

  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}


/* ========================================
   CARD
======================================== */

.cc-card {
  background: var(--cc-surface-1);
  border: 1px solid var(--cc-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
}

.cc-card__title {
  font-size: var(--heading-h4);
  margin-bottom: var(--space-sm);
}

.cc-card__body {
  font-size: var(--text-md);
  color: var(--cc-text-soft);
}

/* Card layout helpers
   ------------------------------------ */

.cc-card-space-between {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* ========================================
   IMAGE CARD – full-bleed top image
======================================== */

.cc-image-card {
  background: var(--cc-surface-1);
  border: 1px solid var(--cc-border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  padding: 0;
  /* no padding – image + body manage spacing */
}

/* 1) Nuke any top margin from the first child block */
.cc-image-card>*:first-child {
  margin-top: 0 !important;
}

/* 2) If Gutenberg wraps the image in a Group, strip its spacing */
.cc-image-card>.wp-block-group:first-child {
  margin: 0 !important;
  padding: 0 !important;
}

/* 3) Top image goes edge-to-edge, even if nested */
.cc-image-card .wp-block-image:first-of-type {
  margin: 0 !important;
  padding: 0 !important;
}

/* Make sure the <img> fills the width cleanly */
.cc-image-card .wp-block-image:first-of-type img {
  display: block;
  width: 100%;
  height: auto;
}

/* Inner body content for text under the image */
.cc-image-card__body {
  padding: var(--space-md);
}

/* Optional: remove top margin on first element in body */
.cc-image-card__body>*:first-child {
  margin-top: 0 !important;
}

/* Inner body content for text under the image */
.cc-image-card__body {
  padding: var(--space-md);
}

/* If the body is a paragraph directly, strip its default margin */
p.cc-image-card__body {
  margin: 0 !important;
}


/* ========================================
   LAYOUT HELPERS (mobile-first)
======================================== */

.cc-section {
  padding-block: var(--space-section);
  background: var(--cc-surface-0);
  text-align: left;
}

/* Calm Clarity – Final Full-bleed Section Helper
   Works safely inside Blocksy without offsetting content */
.cc-section--full {
  width: 100%;
}

.cc-section--full>.cc-container {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* Tell Blocksy to stop limiting section width when alignfull is used */
.alignfull.cc-section {
  max-width: none !important;
}

.cc-container {
  box-sizing: border-box;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.cc-container p {
  max-width: 70ch;
}

.cc-stack-sm,
.cc-stack-md,
.cc-stack-lg {
  display: flex;
  flex-direction: column;
  margin: 0 !important;
}

.cc-stack-sm {
  gap: var(--space-sm);
}

.cc-stack-md {
  gap: var(--space-md);
}

.cc-stack-lg {
  gap: var(--space-lg);
}

.cc-stack-sm>*,
.cc-stack-md>*,
.cc-stack-lg>* {
  margin-block: 0;
}

.cc-stack-sm>.wp-block-group__inner-container,
.cc-stack-md>.wp-block-group__inner-container,
.cc-stack-lg>.wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
  gap: inherit;
}

.cc-stack-sm>.wp-block-group__inner-container>*,
.cc-stack-md>.wp-block-group__inner-container>*,
.cc-stack-lg>.wp-block-group__inner-container>* {
  margin-block: 0;
}

.cc-hero-stack {
  display: flex;
  flex-direction: column;
  row-gap: 0.5rem;
}

.cc-hero-stack>* {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.cc-stack-md>.cc-button-row,
.cc-stack-lg>.cc-button-row {
  margin-bottom: var(--space-md) !important;
}

.cc-layout {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

p.cc-tagline,
.cc-tagline {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cc-text-soft);

  margin-top: 0 !important;
  margin-bottom: var(--space-xs) !important;
}

.cc-center {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
}

.cc-hero {
  max-width: 70ch;
  margin-inline: auto;
  text-align: left;
}

.cc-grid-3 {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .cc-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cc-grid-2 {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .cc-grid-2 {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
  }
}

/* ========================================
   GUTENBERG LAYOUT SAFETY – Calm Clarity
   Keep our layout even if Gutenberg uses
   "is-layout-constrained" on Groups
======================================== */

/* 1. Sections: if a cc-section is alignfull AND is-layout-constrained,
      keep it full-bleed (no max-width clamp) */
.wp-block-group.cc-section.is-layout-constrained,
.wp-block-group.cc-section.alignfull.is-layout-constrained {
  max-width: none !important;
}

/* 2. Containers: always behave like Calm Clarity containers,
      even when Gutenberg marks them as "constrained" */
.wp-block-group.cc-container.is-layout-constrained {
  box-sizing: border-box;
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

/* 3. Centered text blocks: keep them nicely centered and narrow,
      ignoring Gutenberg’s constrained layout quirks */
.wp-block-group.cc-center-block.is-layout-constrained {
  max-width: 70ch;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Calm Clarity – center containers inside full-width sections
   (Blocksy alignfull override) */
.cc-section.alignfull>.cc-container,
.cc-section.alignfull>.wp-block-group.cc-container,
.cc-section.alignfull>.wp-block-group.cc-container.is-layout-constrained {
  max-width: 72rem;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
  box-sizing: border-box;
}

/* ========================================
   Calm Clarity – Logo Row (v2.3.4)
======================================== */

.cc-logo-row,
.wp-block-group.cc-logo-row,
.wp-block-group.is-layout-flex.cc-logo-row,
.wp-block-group.is-layout-flex.is-vertical.cc-logo-row {
  display: flex !important;
  flex-wrap: wrap !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;

  gap: var(--space-md);
  --wp--style--block-gap: 0 !important;

  width: 100%;
  margin-inline: auto !important;
}

.cc-logo-row>* {
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
}

.cc-logo-row img {
  display: block;
  max-width: 140px;
  height: auto;
  margin: 0 auto;
}


/* ========================================
   RESPONSIVE BUTTON ROW
======================================== */

.cc-button-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left !important;
}

.cc-button-row .wp-block-button {
  width: 100%;
}

.cc-button-row .cc-button,
.cc-button-row .wp-block-button__link {
  width: 100%;
}

@media (min-width: 48rem) {
  .cc-button-row {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }

  .cc-button-row .wp-block-button {
    width: auto;
  }

  .cc-button-row .cc-button,
  .cc-button-row .wp-block-button__link {
    width: auto;
  }
}


/* ========================================
   SAFETY NETS
======================================== */

img {
  max-width: 100%;
  height: auto;
}

/* Avoid accidental horizontal scroll from children */
.cc-container {
  overflow-x: clip;
}


/* ========================================
   THEME OVERRIDES – H1 / Entry Title
======================================== */

h1,
h1.entry-title,
.entry-title,
.page-title {
  font-size: var(--heading-h1) !important;
  line-height: var(--lh-heading) !important;
}


/* ========================================
   BUTTON OVERRIDES – Gutenberg / Blocksy
======================================== */

.wp-block-button.cc-button {
  background: none !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.wp-block-button.cc-button .wp-block-button__link,
.wp-block-button__link.cc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  padding: 0.75rem 1.5rem !important;
  border-radius: var(--radius-full) !important;

  font-weight: 600 !important;
  font-size: var(--text-sm) !important;
  text-decoration: none !important;

  background-color: var(--cc-accent) !important;
  color: #fff !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}

.wp-block-button.cc-button.cc-button--ghost .wp-block-button__link,
.wp-block-button__link.cc-button--ghost {
  background-color: transparent !important;
  color: var(--cc-accent) !important;
  border-color: var(--cc-accent) !important;
  box-shadow: none !important;
}


/* ========================================
   IMAGE TREATMENT UTILITIES
======================================== */

.cc-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.cc-image-bg {
  background: var(--cc-surface-1);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
}

.cc-image-bg-accent {
  background: var(--cc-accent-bg);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
}

.cc-image-bg-primary {
  background: var(--cc-primary-100);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
}

.cc-image-frame {
  padding: var(--space-sm);
  border-radius: var(--radius-lg);
  border: 1px solid var(--cc-border-subtle);
  background: var(--cc-surface-0);
}

.cc-image-shadow-soft {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.cc-image-shadow-medium {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
}

.cc-image-rounded {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cc-image-circle {
  border-radius: 999px;
  overflow: hidden;
}

.cc-hero-image {
  width: 100%;
  display: block;
  padding: var(--space-md);
  background: var(--cc-surface-1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  text-align: center;
}

.cc-hero-image img {
  width: 100%;
  height: auto;
  max-width: 700px;
  object-fit: contain;
  margin-inline: auto;
}

@media (min-width: 48rem) {
  .cc-hero-image {
    padding: var(--space-lg);
  }
}


/* ========================================
   IMAGE LAYOUT PATTERNS
======================================== */

.cc-hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
  padding: 0;
}

.cc-hero-media-inner {
  width: 100%;
  max-width: 720px;
}

.cc-feature-row {
  /* semantic hook only; layout comes from .cc-grid-2 */
}

.cc-feature-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cc-feature-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cc-feature-media-inner {
  width: 100%;
  max-width: 640px;
}

.cc-media-object {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-md);
}

.cc-media-object__image {
  flex: 0 0 auto;
}

.cc-media-object__body {
  flex: 1 1 auto;
}

@media (max-width: 47.99rem) {
  .cc-media-object {
    flex-direction: column;
    align-items: flex-start;
  }
}

.cc-avatar-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

.cc-avatar-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.cc-avatar-item__meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: var(--text-sm);
}

.cc-avatar-item__name {
  font-weight: 600;
  color: var(--cc-text-strong);
}

.cc-avatar-item__role {
  color: var(--cc-text-soft);
  font-size: var(--text-sm);
}

.cc-image-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.cc-image-row__item {
  flex: 1 1 220px;
  max-width: 320px;
}


/* ========================================
   CARDS & FEATURE BLOCK PATTERNS
======================================== */

.cc-feature-card {
  background: var(--cc-surface-1);
  border-radius: var(--radius-lg);
  border: 1px solid var(--cc-border-subtle);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.cc-feature-card__title {
  font-size: var(--heading-h4);
  font-weight: 600;
  color: var(--cc-text-strong);
  margin: 0;
}

.cc-feature-card__kicker {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cc-text-soft);
  margin: 0;
}

.cc-feature-card__body {
  font-size: var(--text-md);
  color: var(--cc-text);
}

.cc-icon-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  max-width: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;

  background: var(--cc-accent-bg);
  border-radius: var(--radius-md);
  /* Calm Clarity soft-square */

  /* Optional shadow – uncomment if you ever want it back */
  /* box-shadow: var(--shadow-soft); */

  margin-bottom: 0.25rem;
}

.cc-icon-card__icon img,
.cc-icon-card__icon svg {
  max-width: 1.5rem;
  max-height: 1.5rem;
}

.cc-stat-card {
  background: var(--cc-surface-1);
  border-radius: var(--radius-lg);
  border: 1px solid var(--cc-border-subtle);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cc-stat-card__value {
  font-size: var(--text-xxxl);
  font-weight: 600;
  color: var(--cc-text-strong);
}

.cc-stat-card__label {
  font-size: var(--text-sm);
  color: var(--cc-text-soft);
}

.cc-stat-card__hint {
  font-size: var(--text-xs);
  color: var(--cc-text-soft);
}

.cc-pricing-card {
  background: var(--cc-surface-1);
  border-radius: var(--radius-lg);
  border: 1px solid var(--cc-border-subtle);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cc-pricing-card--highlight {
  border-color: var(--cc-accent);
  box-shadow: var(--shadow-medium);
}

.cc-pricing-card__name {
  font-size: var(--heading-h4);
  font-weight: 600;
  color: var(--cc-text-strong);
  margin: 0;
}

.cc-pricing-card__tagline {
  font-size: var(--text-sm);
  color: var(--cc-text-soft);
  margin: 0;
}

.cc-pricing-card__price-row {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.35rem;
}

.cc-pricing-card__price {
  font-size: var(--text-xxxl);
  font-weight: 600;
  color: var(--cc-text-strong);
}

.cc-pricing-card__per {
  font-size: var(--text-sm);
  color: var(--cc-text-soft);
}

.cc-pricing-card__features {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.cc-pricing-card__features li {
  font-size: var(--text-sm);
  color: var(--cc-text);
}

.cc-card-grid-3,
.cc-card-grid-2 {
  display: grid;
  gap: var(--space-lg);
}

.cc-card-grid-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .cc-card-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cc-card-grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .cc-card-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ========================================
   Calm Clarity – 4-column card grid
======================================== */

.cc-card-grid-4 {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
  /* mobile */
}

@media (min-width: 48rem) {
  .cc-card-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* tablet */
  }
}

@media (min-width: 75rem) {
  .cc-card-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    /* desktop */
  }
}

.cc-feature-section-header {
  max-width: 46rem;
  margin-inline: auto;
  text-align: left;
}

.cc-feature-section-header--center {
  text-align: center;
}


/* ========================================
   TESTIMONIALS & QUOTES
======================================== */

.cc-quote-block {
  background: var(--cc-surface-1);
  border-radius: var(--radius-lg);
  border: 1px solid var(--cc-border-subtle);
  padding: var(--space-xl);
  box-shadow: var(--shadow-soft);
  max-width: 52rem;
  margin-inline: auto;
}

.cc-quote-block__text {
  font-size: var(--text-xxl);
  line-height: 1.4;
  color: var(--cc-text-strong);
  margin: 0 0 var(--space-md);
}

.cc-quote-block__name {
  font-weight: 600;
  color: var(--cc-text-strong);
  margin: 0;
}

.cc-quote-block__role {
  font-size: var(--text-sm);
  color: var(--cc-text-soft);
  margin: 0.15rem 0 0;
}

.cc-testimonial-card {
  background: var(--cc-surface-1);
  border-radius: var(--radius-lg);
  border: 1px solid var(--cc-border-subtle);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  height: 100%;
}

.cc-testimonial-card__quote {
  font-size: var(--text-md);
  color: var(--cc-text);
  margin: 0;
}

.cc-testimonial-card__footer {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.cc-testimonial-card__avatar {
  flex: 0 0 auto;
}

.cc-testimonial-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: var(--text-sm);
}

.cc-testimonial-card__name {
  font-weight: 600;
  color: var(--cc-text-strong);
}

.cc-testimonial-card__role {
  color: var(--cc-text-soft);
  font-size: var(--text-sm);
}

.cc-testimonial-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .cc-testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cc-quote-strip {
  background: var(--cc-surface-1);
  border-radius: var(--radius-lg);
  border: 1px solid var(--cc-border-subtle);
  padding: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.cc-quote-strip__item {
  font-size: var(--text-sm);
  color: var(--cc-text-soft);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  background: var(--cc-surface-0);
  border: 1px solid var(--cc-border-subtle);
}

.cc-quote-strip--bare {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  gap: 0;
}

.cc-quote-strip--with-icon {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  gap: var(--space-xs);
}

.cc-quote-strip--chip {
  background: var(--cc-bg-accent-100, rgba(56, 189, 248, 0.05));
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  border: 1px solid rgba(56, 189, 248, 0.18);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  box-shadow: var(--shadow-soft);
}

.cc-testimonial-section {
  /* semantic hook – layout from .cc-section / .cc-container */
}


/* ========================================
   CTAS & FOOTERS
======================================== */

.cc-cta-section {
  background: var(--cc-primary-800);
  color: #ffffff;
}

.cc-cta-inner {
  max-width: 56rem;
  margin-inline: auto;
}

.cc-cta-inner h2,
.cc-cta-inner h3 {
  color: #ffffff;
  margin: 0 0 var(--space-sm);
}

.cc-cta-inner p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 var(--space-md);
}

.cc-cta-section .cc-button {
  background: #ffffff;
  color: var(--cc-primary-800);
}

.cc-cta-section .cc-button:hover {
  background: #f1f5f9;
  color: var(--cc-primary-900);
}

.cc-cta-section .cc-button.cc-button--ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
}

.cc-cta-section .cc-button.cc-button--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.cc-cta-inline {
  background: var(--cc-surface-1);
  border-radius: var(--radius-lg);
  border: 1px solid var(--cc-border-subtle);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
}

.cc-cta-inline__content {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 48rem) {
  .cc-cta-inline__content {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, auto);
  }
}

.cc-cta-inline__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

@media (min-width: 48rem) {
  .cc-cta-inline__actions {
    align-items: flex-end;
  }
}

.cc-footer {
  background: var(--cc-neutral-900);
  color: var(--cc-neutral-100);
  padding-block: var(--space-2xl);
}

.cc-footer a {
  color: var(--cc-neutral-100);
  text-decoration: none;
}

.cc-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.cc-footer-primary {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .cc-footer-primary {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  }
}

.cc-footer-col-title {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cc-neutral-300);
  margin: 0 0 var(--space-xs);
}

.cc-footer-col-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 0.25rem;
}

.cc-footer-col-list li {
  font-size: var(--text-sm);
  color: var(--cc-neutral-200);
}

.cc-footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.cc-footer-brand__logo {
  max-width: 160px;
}

.cc-footer-brand__text {
  font-size: var(--text-sm);
  color: var(--cc-neutral-300);
}

.cc-footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--cc-neutral-400);
}

.cc-footer-bottom__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (min-width: 48rem) {
  .cc-footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cc-footer-section {
  /* semantic hook if you wrap footer in a cc-section */
}


/* ========================================
   UTILITIES (Spacing, Colour, etc.)
======================================== */

.cc-mb-sm {
  margin-bottom: var(--space-sm) !important;
}

.cc-mb-md {
  margin-bottom: var(--space-md) !important;
}

.cc-mb-lg {
  margin-bottom: var(--space-lg) !important;
}

.cc-text-strong {
  color: var(--cc-text-strong);
}

.cc-text-soft {
  color: var(--cc-text-soft);
}

.cc-text-primary {
  color: var(--cc-primary-500);
}

.cc-text-accent {
  color: var(--cc-accent-500);
}

/* Universal inverse text mode (brand-agnostic)
   Brand skins define the token: --cc-text-inverse
*/
.cc-text-inverse,
.cc-text-inverse * {
  color: var(--cc-text-inverse, #ffffff) !important;
}

.cc-bg-primary {
  background-color: var(--cc-primary-500);
  color: #fff;
}

.cc-bg-primary-50 {
  background-color: var(--cc-primary-50);
}

.cc-bg-accent {
  background-color: var(--cc-accent-500);
  color: #fff;
}

.cc-bg-accent-100 {
  background-color: var(--cc-accent-100);
}

.cc-bg-neutral-50 {
  background-color: var(--cc-neutral-50);
}

.cc-bg-neutral-100 {
  background-color: var(--cc-neutral-100);
}

.cc-border-neutral-200 {
  border-color: var(--cc-neutral-200);
}

.cc-border-neutral-300 {
  border-color: var(--cc-neutral-300);
}

.cc-border-primary {
  border-color: var(--cc-primary-500);
}

.cc-shadow-soft {
  box-shadow: var(--shadow-soft);
}

.cc-overlay-1 {
  background-color: var(--cc-overlay-1);
}

/* True white background utility (full override, theme-safe) */
.cc-bg-white,
.has-cc-bg-white {
  background-color: #ffffff !important;
  color: var(--cc-text);
  /* preserve normal text colour */
}

/* Optional: inverse text mode for white if needed */
.cc-bg-white.cc-text-inverse * {
  color: #ffffff !important;
}


.cc-center-block {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: left !important;
  max-width: 70ch;
}

.cc-mt-sm {
  margin-top: var(--space-sm) !important;
}

.cc-mt-md {
  margin-top: var(--space-md) !important;
}

.cc-mt-lg {
  margin-top: var(--space-lg) !important;
}

.cc-pt-sm {
  padding-top: var(--space-sm) !important;
}

.cc-pt-md {
  padding-top: var(--space-md) !important;
}

.cc-pt-lg {
  padding-top: var(--space-lg) !important;
}

.cc-pb-sm {
  padding-bottom: var(--space-sm) !important;
}

.cc-pb-md {
  padding-bottom: var(--space-md) !important;
}

.cc-pb-lg {
  padding-bottom: var(--space-lg) !important;
}

.cc-gap-sm {
  gap: var(--space-sm) !important;
}

.cc-gap-md {
  gap: var(--space-md) !important;
}

.cc-gap-lg {
  gap: var(--space-lg) !important;
}

/* Stronger no-gap helper for Gutenberg / WP 6.9 */
.cc-no-gap,
.cc-no-gap.wp-block-group,
.cc-no-gap>.wp-block-group__inner-container {
  --wp--style--block-gap: 0 !important;
  gap: 0 !important;
  row-gap: 0 !important;
  column-gap: 0 !important;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.cc-w-full {
  width: 100% !important;
}

.cc-w-auto {
  width: auto !important;
}

.cc-w-max {
  max-width: none !important;
}

.cc-stack-sm,
.cc-stack-md,
.cc-stack-lg {
  --wp--style--block-gap: 0 !important;
}

.cc-align-start {
  justify-content: flex-start !important;
  align-items: flex-start !important;
  text-align: left !important;
}

.cc-align-center {
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
}

.cc-align-end {
  justify-content: flex-end !important;
  align-items: flex-end !important;
  text-align: right !important;
}

.cc-flex {
  display: flex !important;
}

.cc-flex-row {
  display: flex !important;
  flex-direction: row !important;
}

.wp-block-group.cc-flex-row p {
  margin: 0;
}

.cc-flex-col {
  display: flex !important;
  flex-direction: column !important;
}

.cc-grid {
  display: grid !important;
}


/* Icon + label bullet rows (for Values / Philosophy lists) */
.cc-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  /* tighter than stack-sm */
  margin: 0 !important;
  padding: 0 !important;
}

.cc-bullet-list>* {
  margin: 0 !important;
}

.cc-bullet-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  /* space between icon and text */
  margin: 0 !important;
}

.cc-bullet-row p {
  margin: 0 !important;
}

/* ========================================
   Calm Clarity – Form Shell (SureForms-safe)
   Wrap your form in a Group with class: cc-form-shell
======================================== */

.cc-form-shell {
  max-width: 36rem;
  margin-inline: auto;
}

/* Inputs & selects inside the shell – plugin-agnostic */
.cc-form-shell input:not([type="checkbox"]):not([type="radio"]),
.cc-form-shell textarea,
.cc-form-shell select {
  background-color: #ffffff !important;
  border-radius: var(--radius-md);
  border: 1px solid var(--cc-border-subtle);
  color: var(--cc-text);
  padding: 0.6rem 0.75rem;
  box-shadow: none !important;
}

/* Optional: keep the overall form background calm & transparent */
.cc-form-shell form {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* ========================================
   BLOCKSY LAYOUT OVERRIDES
   - Let Blocksy control width/centering
   - Only strip padding at the edges
======================================== */

/* 1. Reset document edges (safe) */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
}

/* 2. Main site wrapper – respect Blocksy centering + width,
      only remove padding so there’s no double-gutter */
body .site {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 3. Core content wrappers – strip extra padding only
      (keep width + centering from Blocksy) */
body .site-main,
body .site-main.hfeed,
body #main,
body .ct-main,
body .ct-content,
body .ct-pageContent,
body .entry-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 4. IMPORTANT:
   Do NOT touch ct-container max-width or margin.
   Only remove its padding so Calm Clarity sections
   can go full-bleed cleanly. */
body .ct-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Fix Gutenberg group wrapper inside icon card */
.cc-icon-card__icon .wp-block-group__inner-container,
.cc-icon-card__icon>* {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.cc-icon-card__icon img {
  max-width: 1.5rem !important;
  max-height: 1.5rem !important;
  height: auto !important;
  display: block !important;
}