/* ==========================================================================
   Brand tokens
   Both palettes live here; theme switches via <html class="brand-*">.
   ========================================================================== */
:root {
    /* Gillmann24 — main site */
    --g-red: #c0392b;
    --g-red-dark: #96281b;
    --g-red-light: #e74c3c;
    --g-black: #1a1a1a;
    --g-white: #ffffff;
    --g-off-white: #fafafa;
    --g-gray: #f2f2f2;
    --g-text: #222222;
    --g-text-muted: #666666;
    --g-border: #e0e0e0;

    /* Heikes Nudelliebe — subsite */
    --h-primary: #a0856b;
    --h-primary-dark: #7a6450;
    --h-primary-light: #c4aa8e;
    --h-bg: #faf6f1;
    --h-card-border: #e8ddd0;
    --h-text: #4a3f35;
    --h-text-muted: #7a6e62;
    --h-accent: #d4a574;
    --h-white: #ffffff;

    /* Layout */
    --container-max: 1080px;
    --site-header-height: 5rem;
    --container-pad: clamp(1rem, 4vw, 3rem);
    --radius: 6px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.12);
    --transition: 180ms ease-out;

    /* Resolved theme vars — overridden per brand below */
    --brand-primary: var(--g-red);
    --brand-primary-dark: var(--g-red-dark);
    --brand-bg: var(--g-off-white);
    --brand-surface: var(--g-white);
    --brand-text: var(--g-text);
    --brand-text-muted: var(--g-text-muted);
    --brand-border: var(--g-border);
    --brand-header-bg: var(--g-white);
    --brand-header-text: var(--g-black);
    --brand-footer-bg: var(--g-black);
    --brand-footer-text: #cccccc;
    --brand-hero-bg: var(--g-black);
    --brand-hero-text: var(--g-white);
    --brand-hero-card-bg: var(--g-black);
    --brand-hero-subtitle: rgba(255, 255, 255, 0.92);
    --font-display: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    --font-body: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

html.brand-heike {
    --brand-primary: var(--h-primary);
    --brand-primary-dark: var(--h-primary-dark);
    --brand-bg: var(--h-bg);
    --brand-surface: var(--h-white);
    --brand-text: var(--h-text);
    --brand-text-muted: var(--h-text-muted);
    --brand-border: var(--h-card-border);
    --brand-header-bg: var(--h-primary-dark);
    --brand-header-text: var(--h-white);
    --brand-footer-bg: var(--h-primary-dark);
    --brand-footer-text: #ede4d6;
    --brand-hero-bg: var(--h-primary);
    --brand-hero-text: var(--h-white);
    --brand-hero-card-bg: var(--h-text);
    --brand-hero-subtitle: rgba(255, 255, 255, 0.9);
    --font-display: "Pacifico", "Inter", system-ui, sans-serif;
}


/* ==========================================================================
   Reset + base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--brand-bg);
    color: var(--brand-text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
    /* header + main = exactly one viewport, so the footer sits just below the
       fold without a half-page of empty scroll. */
    min-height: calc(100svh - var(--site-header-height));
}
.site-footer { flex-shrink: 0; }

img, svg { max-width: 100%; height: auto; display: block; }

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover, a:focus { color: var(--brand-primary-dark); }

h1, h2, h3, h4 { color: var(--brand-text); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

p { margin: 0 0 1rem; }

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

/* ==========================================================================
   Reusable primitives
   ========================================================================== */
.section-heading {
    position: relative;
    display: inline-block;
    padding-bottom: 0.4rem;
    margin-bottom: 1.5rem;
}
.section-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--brand-primary);
    border-radius: 2px;
}
html.brand-heike .section-heading::after { background: var(--h-accent); }

/* Page-title component alignment modifiers. */
.page-title {
    margin-top: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
}
.page-title__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brand-text-muted);
}
.page-title--center { text-align: center; }
.page-title--right  { text-align: right; }

.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    text-align: center;
}
.button--primary {
    background: var(--brand-primary);
    color: var(--brand-surface);
}
.button--primary:hover, .button--primary:focus {
    background: var(--brand-primary-dark);
    color: var(--brand-surface);
}
.button[disabled],
.button.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}
.button--outline {
    background: transparent;
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}
.button--outline:hover, .button--outline:focus {
    background: var(--brand-primary);
    color: var(--brand-surface);
}

.feature-card {
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-top: 3px solid var(--brand-primary);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
html.brand-heike .feature-card { border-top-color: var(--h-accent); }

.feature-card__icon {
    margin: 0 auto 0.5rem;
    color: var(--brand-text);
    font-size: 2.25rem;
    line-height: 1;
}
.feature-card__title { margin: 0; }
.feature-card__body { color: var(--brand-text-muted); }
.feature-card__cta { margin-top: auto; padding-top: 0.5rem; }

/* Responsive card grid — paired [cards][/cards] shortcode wrapper.
   auto-fit reflows children 3 → 2 → 1 column as the viewport shrinks. */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: clamp(1rem, 2.5vw, 1.75rem);
    margin: clamp(0.5rem, 1.5vw, 1rem) 0 clamp(1.5rem, 3vw, 2.5rem);
    align-items: stretch;
}
.cards-grid > .feature-card { height: 100%; }

/* ==========================================================================
   Noodle gallery — Pro Gallery images with filename-derived captions
   ========================================================================== */
.noodles-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.75rem, 2vw, 1.25rem);
    margin: clamp(1rem, 3vw, 2rem) 0;
}
@media (max-width: 900px) { .noodles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .noodles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .noodles-grid { grid-template-columns: 1fr; } }

.noodles-grid__item {
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.noodles-grid__item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.noodles-grid__media {
    position: relative;
    overflow: hidden;
    background: var(--brand-bg);
}
.noodles-grid__img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    transition: transform var(--transition);
}
.noodles-grid__item:hover .noodles-grid__img {
    transform: translateY(-2px) scale(1.02);
}
/* Corner-ribbon "Neu!" badge — diagonal band across the top-right of the image. */
.noodles-grid__badge {
    position: absolute;
    top: 16px;
    right: -38px;
    width: 130px;
    transform: rotate(45deg);
    background: var(--brand-primary);
    color: var(--brand-surface);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    padding: 0.3rem 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    user-select: none;
}
.noodles-grid__caption {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-text);
    padding: 0.75rem 0.85rem;
    text-align: center;
}

/* ==========================================================================
   Page header (title + intro + hairline rule)
   ========================================================================== */
.page-header {
    margin-top: clamp(1.5rem, 4vw, 3rem);
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.page-header__title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin: 0 0 0.75rem;
}
.page-header__intro {
    color: var(--brand-text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 700px;
}
.page-header__intro p:last-child { margin-bottom: 0; }
.page-header__rule {
    border: 0;
    border-top: 1px solid var(--brand-border);
    margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

/* ==========================================================================
   Button group + arrow-button variant
   ========================================================================== */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}
.button--with-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--brand-surface);
    color: var(--brand-text);
    border: 1px solid var(--brand-border);
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        border-color var(--transition),
        color var(--transition),
        box-shadow var(--transition);
}
.button--with-arrow:hover,
.button--with-arrow:focus {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background: var(--brand-surface);
}
.button--with-arrow .button__arrow {
    display: inline-flex;
    align-items: center;
    transition: transform var(--transition);
}
.button--with-arrow:hover .button__arrow,
.button--with-arrow:focus .button__arrow {
    transform: translateX(3px);
}

@media (max-width: 480px) {
    .button-group { flex-direction: column; }
    .button--with-arrow {
        justify-content: space-between;
        width: 100%;
    }
}

/* ==========================================================================
   Note / info-box callout (brand-coloured left border, muted background)
   ========================================================================== */
.note {
    border-left: 4px solid var(--brand-primary);
    background: var(--g-gray);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 2rem;
    border-radius: 0 var(--radius) var(--radius) 0;
}
html.brand-heike .note { background: color-mix(in srgb, var(--h-accent) 12%, transparent); }
.note__title {
    font-size: 1rem;
    margin: 0 0 0.4rem;
    color: var(--brand-text);
}
.note__body p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Form-stack — vertical-label form used by kontakt + bestellung
   ========================================================================== */
.form-stack {
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-block: clamp(1rem, 3vw, 2rem);
}
.form-stack__row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.form-stack__label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--brand-text);
}
.form-stack__required {
    color: var(--brand-primary);
    font-weight: 700;
    margin-left: 0.15rem;
}
.form-stack__input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius);
    background: var(--brand-surface);
    color: var(--brand-text);
    font: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-stack__input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 18%, transparent);
}
.form-stack__input.is-invalid {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-primary) 14%, transparent);
}
.form-stack__error {
    margin: 0;
    color: var(--brand-primary);
    font-size: 0.85rem;
}
.form-stack__textarea { min-height: 8rem; resize: vertical; }
.form-stack__select   { appearance: auto; }

.form-stack__fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}
.form-stack__radio,
.form-stack__check {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.45;
}
.form-stack__radio input,
.form-stack__check input {
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    accent-color: var(--brand-primary);
    cursor: pointer;
}
.form-stack__row--check { margin-top: 0.25rem; }

.form-stack__honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Submit-success / submit-fail banners */
.form-alert {
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius);
    border-left: 4px solid;
    font-size: 0.95rem;
}
.form-alert--ok {
    background: color-mix(in srgb, #2ecc71 12%, transparent);
    border-left-color: #2ecc71;
    color: #1d6b3a;
}
.form-alert--fail {
    background: color-mix(in srgb, var(--brand-primary) 10%, transparent);
    border-left-color: var(--brand-primary);
    color: var(--brand-primary-dark);
}

/* ==========================================================================
   Content section (heading + vertical body stack)
   ========================================================================== */
.content-section {
    margin-top: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
/* Default section body: simple vertical stack. */
.content-section__body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Dialog variant: 2-column grid; child opts in to full width via `long`. */
.content-section--dialog .content-section__body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
.content-section--dialog .content-section__body > *:only-child { grid-column: 1 / -1; }
.content-section--dialog .catalog-row--long { grid-column: 1 / -1; }

@media (max-width: 768px) {
    .content-section--dialog .content-section__body { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Catalog row — title left, 1–2 outlined buttons right
   ========================================================================== */
.catalog-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.catalog-row:hover {
    border-color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.catalog-row__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-text);
}
.catalog-row__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}
.catalog-row__actions .button--with-arrow {
    padding: 0.4rem 0.85rem;
    font-size: 0.875rem;
}

@media (max-width: 560px) {
    .catalog-row { flex-direction: column; align-items: stretch; }
    .catalog-row__title { text-align: left; }
    .catalog-row__actions {
        flex-wrap: wrap;
        justify-content: stretch;
    }
    .catalog-row__actions .button--with-arrow {
        flex: 1 1 0;
        justify-content: space-between;
    }
}

.callout {
    background: color-mix(in srgb, var(--brand-primary) 6%, transparent);
    border-left: 4px solid var(--brand-primary);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background: var(--brand-header-bg);
    color: var(--brand-header-text);
    border-bottom: 1px solid var(--brand-border);
    position: sticky;
    top: 0;
    z-index: 50;
}
html.brand-heike .site-header { border-bottom-color: transparent; }

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--site-header-height);
    padding-block: 0.75rem;
}

.site-header__logo img {
    height: 2.5rem;
    width: auto;
}
html.brand-heike .site-header__logo img { height: 3rem; }

.site-nav__list {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0; padding: 0;
}
.site-nav__link {
    color: var(--brand-header-text);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}
.site-nav__link:hover,
.site-nav__link:focus,
.site-nav__link.is-active {
    color: var(--brand-primary);
}
html.brand-heike .site-nav__link:hover,
html.brand-heike .site-nav__link:focus,
html.brand-heike .site-nav__link.is-active {
    color: var(--h-white);
    text-decoration: underline;
    text-underline-offset: 6px;
}

.site-header__toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 0.5rem;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}
.site-header__toggle-bar {
    display: block;
    width: 26px;
    height: 3px;
    border-radius: 2px;
    background: var(--brand-header-text);
    transition: transform var(--transition), opacity var(--transition);
    transform-origin: center;
}

/* Three-bar → X transformation when the menu is open.
   nth-of-type counts ALL <span> siblings, including the .sr-only label,
   so the bars are spans #2, #3, #4 inside the button. */
.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-of-type(2) {
    transform: translateY(9px) rotate(45deg);
}
.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-of-type(3) {
    opacity: 0;
    transform: scaleX(0.4);
}
.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-of-type(4) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
    .site-header__toggle { display: flex; }
    .site-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--brand-header-bg);
        border-top: 1px solid var(--brand-border);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition);
    }
    .site-nav.is-open { max-height: 24rem; }
    .site-nav__list {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem var(--container-pad);
    }
    .site-nav__link { display: block; padding: 0.75rem 0; }
}

/* ==========================================================================
   Main + page wrappers
   ========================================================================== */
.site-main {
    padding-block: 3rem;
}
.page__header { margin-bottom: 2rem; }
.page__body :first-child { margin-top: 0; }

.page--404__inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-block: 3rem;
}
.page--404__inner .section-heading::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--brand-footer-bg);
    color: var(--brand-footer-text);
    padding-top: 3rem;
}
.site-footer a { color: var(--brand-footer-text); }
.site-footer a:hover, .site-footer a:focus { color: var(--brand-surface); }

.site-footer__cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
}
.site-footer__heading {
    color: var(--brand-surface);
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
html.brand-heike .site-footer__heading { color: var(--h-accent); }
.site-footer__address { font-style: normal; line-height: 1.7; }
.site-footer__list { list-style: none; padding: 0; margin: 0; }
.site-footer__list li { padding: 0.25rem 0; }
.site-footer__muted { opacity: 0.7; }

.site-footer__bottom {
    margin-top: 2rem;
    padding-block: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* ==========================================================================
   Heike font overrides
   ========================================================================== */
html.brand-heike body { font-family: var(--font-body); }
html.brand-heike .section-heading { font-family: var(--font-display); }

/* ==========================================================================
   Hero carousel
   ========================================================================== */
.g24-hero {
    position: relative;
    width: 100%;
    min-height: clamp(360px, 65svh, 520px);
    overflow: hidden;
    color: var(--brand-hero-text);
    background: var(--brand-hero-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

/* The hero is always wider than the body container.
   - Below 96em (1536px / Tailwind 2xl): full-bleed to the viewport edges.
   - Above 96em: still breaks out of `.container` (1440px) but caps at 1800px
     so on ultra-wide displays it doesn't stretch indefinitely. */
.g24-hero {
    width: 100vw;
    max-width: 1800px;
    margin-left: calc(50% - min(50vw, 900px));
    margin-right: calc(50% - min(50vw, 900px));
}

@media (max-width: 96em) {
    .g24-hero {
        max-width: 100vw;
    }
}
.g24-hero--solid { background: var(--brand-hero-bg); }

/* Carousel background layer */
.g24-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--brand-hero-bg);
}

.g24-hero__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity var(--g24-hero-transition, 700ms) ease-in-out;
    will-change: opacity;
}
.g24-hero__slide.is-active { opacity: 1; }

/* When JS is disabled, only the first .is-active stays visible (default state) */
@media (prefers-reduced-motion: reduce) {
    .g24-hero__slide { transition: none; }
}

/* Overlay (semi-opaque card with content) */
.g24-hero__overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: clamp(1.5rem, 5vw, 4rem) var(--container-pad);
    display: flex;
    align-items: center;
    justify-content: center;
}

.g24-hero__card {
    max-width: 45rem;
    text-align: center;
    padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1.25rem, 5vw, 3.5rem);
    border-radius: 12px;
    background: var(--brand-hero-card-bg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* No carousel → drop the card so the title sits on the brand colour directly. */
.g24-hero--solid .g24-hero__card {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.g24-hero__brand-logo {
    width: clamp(120px, 30vw, 200px);
    height: auto;
    margin: 0 auto 1rem;
    display: block;
}

.g24-hero__title {
    color: var(--brand-hero-text);
    font-size: clamp(2rem, 5vw, 3.25rem);
    margin: 0 0 0.5rem;
    line-height: 1.15;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.g24-hero--solid .g24-hero__title {
    text-shadow: none;
}

.g24-hero__subtitle {
    font-size: clamp(1rem, 2.2vw, 1.75rem);
    color: var(--brand-hero-subtitle);
    margin: 0 0 1.25rem;
    line-height: 1.45;
}

.g24-hero__cta { margin: 0; }
.g24-hero__cta .button {
    padding-inline: clamp(1.25rem, 3vw, 2rem);
    padding-block: clamp(0.6rem, 1.5vw, 0.85rem);
}

/* Mobile: shorter, tighter padding */
@media (max-width: 480px) {
    .g24-hero {
        min-height: clamp(280px, 45svh, 360px);
    }
    .g24-hero__card {
        margin-inline: auto;
        max-width: calc(100% - 2rem);
    }
}
