/**
 * Tenerife Advisor — Gemini Subsite Hero (Speisekarten-Look, ohne Menu-Grid).
 * Verwendet von themes/gemini/parts/hero-gemini-subsite.php
 */

:root {
    --iro-fmh-g1: #4796e3;
    --iro-fmh-g2: #9177c7;
    --iro-fmh-g3: #ca6673;
    --iro-fmh-g4: #f8dc32;
    --iro-fmh-text: var(--lp-text-main, #1f2937);
    --iro-fmh-muted: var(--lp-text-muted, #6b7280);
    --iro-fmh-surface: var(--lp-bg-color, #f8fafc);
}

html[data-lp-color-scheme="dark"] {
    --iro-fmh-text: var(--lp-text-main, #f1f5f9);
    --iro-fmh-muted: var(--lp-text-muted, #94a3b8);
    --iro-fmh-surface: var(--lp-bg-color, #0f172a);
}

@keyframes iro-fmh-gradient-pan {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

@keyframes iro-fmh-fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Volle Breite — landing.css setzt max-width ohne margin:auto auf .inhouse-menu-wrapper */
body.cms-landing-theme .inhouse-menu-wrapper.iro-fmh-hero-only-page {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

body.cms-landing-theme #brief-ai-lp .cms-layout-module:has(.iro-fmh-hero-only-page),
body.cms-landing-theme #brief-ai-lp .cms-unified-module:has(.iro-fmh-hero-only-page) {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}

.iro-fmh-hero-only-page .iro-food-menu-hero-root {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    min-height: clamp(220px, 34vw, 360px);
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
    border-radius: 0 0 1.75rem 1.75rem;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, color-mix(in srgb, var(--iro-fmh-g1) 14%, transparent), transparent 70%),
        radial-gradient(ellipse 60% 50% at 100% 20%, color-mix(in srgb, var(--iro-fmh-g2) 10%, transparent), transparent 65%),
        var(--iro-fmh-surface);
}

.iro-food-menu-hero-root {
    position: relative;
    isolation: isolate;
}

.iro-fmh-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(48px);
    opacity: 0.55;
    z-index: 0;
}

.iro-fmh-orb-1 {
    top: -12%;
    left: -8%;
    width: min(42vw, 280px);
    height: min(42vw, 280px);
    background: color-mix(in srgb, var(--iro-fmh-g1) 55%, transparent);
}

.iro-fmh-orb-2 {
    top: 8%;
    right: -6%;
    width: min(36vw, 240px);
    height: min(36vw, 240px);
    background: color-mix(in srgb, var(--iro-fmh-g2) 50%, transparent);
}

.iro-fmh-orb-3 {
    bottom: -18%;
    left: 18%;
    width: min(30vw, 200px);
    height: min(30vw, 200px);
    background: color-mix(in srgb, var(--iro-fmh-g3) 45%, transparent);
}

.iro-fmh-orb-4 {
    bottom: -10%;
    right: 12%;
    width: min(28vw, 180px);
    height: min(28vw, 180px);
    background: color-mix(in srgb, var(--iro-fmh-g4) 40%, transparent);
}

.iro-fmh-main {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.65rem;
    box-sizing: border-box;
    width: 100%;
    max-width: var(--cms-layout-max, 1100px);
    margin: 0 auto;
    padding: 0 var(--cms-layout-gutter, 24px);
}

.iro-fmh-tagline {
    margin: 0;
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    font-size: clamp(0.62rem, 1.4vw, 0.78rem);
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--iro-fmh-muted);
}

.iro-fmh-title {
    margin: 0.15rem 0 0;
    width: 100%;
    text-align: center;
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    font-size: clamp(2.4rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    cursor: default;
}

.iro-fmh-line {
    display: inline;
    background-size: 200% auto;
    background-repeat: repeat;
    color: var(--iro-fmh-text);
    transition: color 0.25s ease;
}

.iro-fmh-title.is-hovering .iro-fmh-w1,
.iro-fmh-title.is-hovering .text-food {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background-image: linear-gradient(to right, var(--iro-fmh-g1), var(--iro-fmh-g2), var(--iro-fmh-g3), var(--iro-fmh-g4), var(--iro-fmh-g1));
    animation: iro-fmh-gradient-pan 3s linear infinite;
}

.iro-fmh-title.is-hovering .iro-fmh-w2,
.iro-fmh-title.is-hovering .text-menu {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background-image: linear-gradient(to right, var(--iro-fmh-g4), var(--iro-fmh-g3), var(--iro-fmh-g2), var(--iro-fmh-g1), var(--iro-fmh-g4));
    animation: iro-fmh-gradient-pan 3s linear infinite;
}

.iro-fmh-deco-line {
    width: min(180px, 42vw);
    height: 3px;
    margin: 0.35rem auto 0.15rem;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--iro-fmh-g1) 18%,
        var(--iro-fmh-g2) 42%,
        var(--iro-fmh-g3) 62%,
        var(--iro-fmh-g4) 82%,
        transparent
    );
    opacity: 0.85;
}

.iro-fmh-subtitle {
    margin: 0.35rem 0 0;
    max-width: 36ch;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    line-height: 1.55;
    color: var(--iro-fmh-muted);
}

.iro-fmh-fade-in {
    opacity: 0;
    animation: iro-fmh-fade-up 0.7s ease forwards;
}

.iro-fmh-fade-in--sub {
    animation-delay: 0.05s;
}

.iro-fmh-fade-in--title {
    animation-delay: 0.15s;
}

.iro-fmh-fade-in:not(.iro-fmh-fade-in--sub):not(.iro-fmh-fade-in--title) {
    animation-delay: 0.28s;
}

.iro-fmh-hero-only-page #im-header-and-accordion-wrapper {
    width: 100%;
}

@media (max-width: 768px) {
    .iro-fmh-hero-only-page .iro-food-menu-hero-root {
        border-radius: 0 0 1.25rem 1.25rem;
        min-height: clamp(200px, 48vw, 280px);
        padding-top: 2rem;
        padding-bottom: 1.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .iro-fmh-fade-in {
        opacity: 1;
        animation: none;
        transform: none;
    }

    .iro-fmh-title.is-hovering .iro-fmh-w1,
    .iro-fmh-title.is-hovering .text-food,
    .iro-fmh-title.is-hovering .iro-fmh-w2,
    .iro-fmh-title.is-hovering .text-menu {
        animation: none;
    }
}
