/*
 * Hero 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 .hero — 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).
 */

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

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

/* Surface variants */

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

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

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

.hero[data-bg="image"] {
    position: relative;
    background-image: var(--hero-bg-image);
    background-size: cover;
    background-position: center;
    color: var(--color-text-inverse);
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: var(--brand-black);
    opacity: var(--hero-overlay-opacity, 0.5);
    z-index: var(--z-base);
}
.hero[data-bg="image"] .container {
    position: relative;
    z-index: var(--z-raised);
}

/* Layout variants */

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

.hero[data-layout="left"] .hero__inner {
    align-items: flex-start;
    text-align: left;
}

.hero[data-layout="split-image"] .hero__inner {
    /* TODO: style split-image 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 --- */
.hero { padding-block: var(--space-3xl); }
.hero__inner { display: grid; gap: var(--space-lg); grid-template-columns: 1fr; align-items: center; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: var(--text-sm); font-weight: 600; color: var(--color-text-muted); margin-bottom: var(--space-xs); }
.hero__heading { font-size: var(--text-5xl); letter-spacing: -0.035em; line-height: 1.1; }
.hero__subtext { margin-block: var(--space-sm) var(--space-md); max-width: 48ch; }
.hero__actions { display: flex; gap: var(--space-xs); flex-wrap: wrap; margin-top: var(--space-md); }
.hero__media { max-width: 420px; width: 100%; justify-self: center; }
.hero__media-image { border-radius: 50%; aspect-ratio: 1; object-fit: cover; width: 100%; height: auto; }
.hero[data-layout="centred"] .hero__inner { text-align: center; max-width: 60ch; margin-inline: auto; }
.hero[data-layout="centred"] .hero__actions { justify-content: center; }
.hero[data-layout="centred"] .hero__subtext { margin-inline: auto; }
@media (min-width: 48rem) {
  .hero[data-layout="split-image"] .hero__inner { grid-template-columns: 1.2fr 1fr; gap: var(--space-xl); }
}
.hero[data-surface="dark"], .hero[data-bg="image"] { color: var(--color-text-inverse, #fff); }
.hero[data-surface="dark"] .hero__eyebrow { color: color-mix(in srgb, currentColor 70%, transparent); }

/* --- Components used — button-primary, button-ghost, button-link --- */
.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;
}

.button-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    transition: gap 180ms ease;

    &:hover { gap: 0.55em; }
}


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

