/*
 * CTA Strip block — scoped styles
 *
 * Whyso Design System — auto-generated from the Whyso hub.
 * Project: Contenze Test
 * Generated: 2026-05-10T14:58:03+00:00
 *
 * Scoped to .cta-strip — relies on tokens.css being loaded.
 * One breakpoint maximum (structural layout shifts only — never size or
 * colour, those come from the fluid scales in tokens.css).
 */

.cta-strip {
    padding-block: var(--space-2xl);
    /* Surface default — overridden by [data-surface] variants below */
    background: var(--color-bg);
    color: var(--color-text);
}

.cta-strip__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Surface variants */

.cta-strip[data-bg="light"] {
    background: var(--color-bg);
    color: var(--color-text);
}

.cta-strip[data-bg="alt"] {
    background: var(--color-bg-alt);
    color: var(--color-text);
}

.cta-strip[data-bg="dark"] {
    background: var(--color-bg-dark);
    color: var(--color-text-inverse);
}

.cta-strip[data-bg="primary"] {
    /* TODO: style primary variant */
}

/* Layout variants */

.cta-strip[data-layout="centred"] .cta-strip__inner {
    align-items: center;
    text-align: center;
    max-inline-size: 60ch;
    margin-inline: auto;
}

.cta-strip[data-layout="split"] .cta-strip__inner {
    /* TODO: style split layout */
}

.cta-strip[data-layout="stacked"] .cta-strip__inner {
    /* TODO: style stacked layout */
}




/* ------------------------------------------------------------------
 * Block polish — from preview_sample.extra_css
 * Plus CSS for every component + animation the block references.
 * Matches byte-for-byte what /library preview inlines, so the
 * deployed block renders the same on a real WordPress site.
 * ------------------------------------------------------------------ */

/* --- preview_sample.extra_css --- */
.cta-strip { padding-block: var(--space-2xl); }
.cta-strip[data-size="sm"] { padding-block: var(--space-xl); }
.cta-strip[data-size="lg"] { padding-block: var(--space-3xl); }
.cta-strip__inner { display: flex; flex-direction: column; gap: var(--space-md); align-items: center; text-align: center; max-width: 60ch; margin-inline: auto; }
.cta-strip__body { display: flex; flex-direction: column; gap: var(--space-2xs); align-items: inherit; }
.cta-strip__text { color: var(--color-text-muted); font-size: var(--text-lg); max-width: 56ch; }
.cta-strip__actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); justify-content: center; }
.cta-strip[data-layout="split"] .cta-strip__inner { flex-direction: row; text-align: left; align-items: center; justify-content: space-between; max-width: none; gap: var(--space-lg); }
.cta-strip[data-layout="split"] .cta-strip__body { align-items: flex-start; flex: 1 1 auto; }
.cta-strip[data-layout="split"] .cta-strip__actions { flex: 0 0 auto; }
.cta-strip[data-layout="stacked"] .cta-strip__inner { max-width: none; }
.cta-strip[data-surface="dark"], .cta-strip[data-surface="primary"] { color: var(--color-text-inverse, #fff); background: var(--color-primary); }
.cta-strip[data-surface="dark"] { background: var(--color-bg-dark); }
.cta-strip[data-surface="dark"] .cta-strip__text, .cta-strip[data-surface="primary"] .cta-strip__text { color: color-mix(in srgb, currentColor 75%, transparent); }
.cta-strip[data-surface="primary"] .button-primary { background: var(--color-text-inverse, #fff); color: var(--color-primary); }
.cta-strip[data-surface="primary"] .button-ghost  { border-color: currentColor; color: currentColor; }
@media (max-width: 48rem) {
  .cta-strip[data-layout="split"] .cta-strip__inner { flex-direction: column; text-align: center; }
  .cta-strip[data-layout="split"] .cta-strip__body { align-items: center; }
}

/* --- Components used — eyebrow, heading-h2, button-primary, button-ghost --- */
.eyebrow {
    font-family: var(--brand-font-mono, var(--brand-font-body, inherit));
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent, currentColor);
    margin: 0;
}

.heading-h2 {
    font-family: var(--brand-font-heading, inherit);
    font-weight: 700;
    font-size: var(--text-3xl);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
}

.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85em 1.6em;
    background: var(--color-primary);
    color: var(--color-on-primary, var(--brand-white, #fff));
    border: 1px solid transparent;
    border-radius: var(--radius-pill, 999px);
    font-family: var(--brand-font-body, inherit);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease;
}

.button-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85em 1.6em;
    background: transparent;
    color: currentColor;
    border: 1px solid currentColor;
    border-radius: var(--radius-pill, 999px);
    font-family: var(--brand-font-body, inherit);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease;
}


/* --- Animations used — fade-up --- */
@keyframes wy-fade-up {
  from { opacity: 0; transform: translateY(var(--anim-distance, 20px)); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
    animation: wy-fade-up var(--anim-duration, 400ms) var(--anim-easing, cubic-bezier(.16, 1, .3, 1)) both;
}

