/* Cardiff promo hero — full-bleed image + frosted brand glass card */

.cardiff-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(360px, 48vh, 520px);
    overflow: hidden;
    background: var(--cardiff-sand);
}

.cardiff-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cardiff-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.cardiff-hero__card {
    --cardiff-navy: #2a3344;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    width: min(100%, 320px);
    margin: 28px 0 28px clamp(20px, 5vw, 64px);
    padding: clamp(22px, 3vw, 32px) clamp(20px, 2.5vw, 28px);
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 4px;
    background:
        linear-gradient(
            158deg,
            rgba(199, 100, 105, 0.48) 0%,
            rgba(199, 154, 100, 0.34) 48%,
            rgba(42, 51, 68, 0.45) 100%
        );
    background-size: 140% 140%;
    background-position: 0% 50%;
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    box-shadow:
        0 20px 48px rgba(42, 51, 68, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(42, 51, 68, 0.15);
    transform: scale(1) translateY(0);
    transform-origin: center center;
    transition:
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.5s ease,
        border-color 0.45s ease,
        background 0.55s ease,
        background-position 0.7s ease;
}

/* Soft light refraction / glow wash */
.cardiff-hero__card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 55% at 12% -10%, rgba(255, 255, 255, 0.48), transparent 58%),
        radial-gradient(ellipse 70% 50% at 110% 110%, rgba(100, 199, 194, 0.28), transparent 55%),
        radial-gradient(circle at 70% 30%, rgba(199, 154, 100, 0.2), transparent 40%);
    opacity: 0.95;
    transition: opacity 0.45s ease, transform 0.55s ease, background 0.55s ease;
}

/* Soft light rays */
.cardiff-hero__card::after {
    content: '';
    position: absolute;
    inset: -20%;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(
            108deg,
            transparent 0%,
            transparent 38%,
            rgba(255, 255, 255, 0.07) 42%,
            rgba(255, 248, 230, 0.22) 46%,
            rgba(255, 255, 255, 0.08) 50%,
            transparent 54%,
            transparent 100%
        ),
        linear-gradient(
            118deg,
            transparent 0%,
            transparent 52%,
            rgba(255, 255, 255, 0.05) 56%,
            rgba(243, 223, 181, 0.18) 60%,
            rgba(255, 255, 255, 0.06) 64%,
            transparent 68%,
            transparent 100%
        ),
        linear-gradient(
            98deg,
            transparent 0%,
            transparent 22%,
            rgba(255, 255, 255, 0.04) 26%,
            rgba(255, 255, 255, 0.14) 29%,
            rgba(255, 255, 255, 0.04) 32%,
            transparent 36%,
            transparent 100%
        );
    mix-blend-mode: soft-light;
    opacity: 0.85;
    transform-origin: 20% 0%;
    animation: cardiffHeroRays 14s ease-in-out infinite alternate;
    transition: opacity 0.45s ease;
}

@keyframes cardiffHeroRays {
    0% {
        transform: translate3d(-2%, -1%, 0) rotate(-1deg) scale(1);
        opacity: 0.7;
    }
    100% {
        transform: translate3d(3%, 2%, 0) rotate(1.5deg) scale(1.04);
        opacity: 0.95;
    }
}

.cardiff-hero__card:hover {
    transform: scale(1.04) translateY(-6px);
    border-color: rgba(243, 223, 181, 0.65);
    background:
        linear-gradient(
            158deg,
            rgba(199, 100, 105, 0.62) 0%,
            rgba(199, 154, 100, 0.5) 42%,
            rgba(100, 199, 194, 0.28) 72%,
            rgba(42, 51, 68, 0.52) 100%
        );
    background-size: 160% 160%;
    background-position: 85% 40%;
    box-shadow:
        0 28px 56px rgba(42, 51, 68, 0.3),
        0 0 0 1px rgba(243, 223, 181, 0.2),
        0 12px 40px rgba(199, 100, 105, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.cardiff-hero__card:hover::before {
    opacity: 1;
    transform: scale(1.08);
    background:
        radial-gradient(ellipse 95% 60% at 18% -8%, rgba(255, 255, 255, 0.58), transparent 58%),
        radial-gradient(ellipse 75% 55% at 105% 100%, rgba(100, 199, 194, 0.4), transparent 55%),
        radial-gradient(circle at 65% 35%, rgba(243, 223, 181, 0.38), transparent 42%),
        radial-gradient(circle at 30% 80%, rgba(199, 100, 105, 0.28), transparent 45%);
}

.cardiff-hero__card:hover::after {
    opacity: 1;
    animation-duration: 7s;
}

.cardiff-hero__card > * {
    position: relative;
    z-index: 1;
}

.cardiff-hero__headline {
    margin: 0;
    max-width: none;
    color: #fff8f6;
    font-family: var(--font-display);
    font-size: clamp(34px, 4vw, 44px);
    font-weight: 500;
    font-style: normal;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 12px rgba(42, 51, 68, 0.25);
}

.cardiff-hero__copy {
    margin: 0;
    max-width: 28ch;
    color: rgba(255, 248, 246, 0.88);
    font-size: 14px;
    line-height: 1.5;
}

.cardiff-hero__promo {
    margin: 2px 0 0;
    max-width: 28ch;
    color: rgba(255, 248, 246, 0.92);
    font-size: 14px;
    line-height: 1.45;
}

.cardiff-hero__promo strong {
    font-weight: 700;
    color: #f3dfb5;
}

.cardiff-hero__card .cardiff-btn--promo {
    margin-top: 6px;
    min-width: 160px;
    border-radius: 4px;
    border-color: transparent;
    background: linear-gradient(135deg, var(--cardiff-secondary) 0%, #e0c08a 100%);
    color: #2a3344;
    letter-spacing: 0.02em;
    text-transform: none;
    box-shadow: 0 8px 20px rgba(42, 51, 68, 0.22);
}

.cardiff-hero__card .cardiff-btn--promo:hover,
.cardiff-hero__card .cardiff-btn--promo:focus-visible {
    background: linear-gradient(135deg, #d4ad72 0%, #f0d9a8 100%);
    color: #2a3344;
}

.cardiff-hero__fineprint {
    margin: 4px 0 0;
    color: rgba(255, 248, 246, 0.55);
    font-size: 11px;
    font-style: italic;
    line-height: 1.35;
}

@media (max-width: 720px) {
    .cardiff-hero {
        min-height: 0;
        flex-direction: column;
        align-items: stretch;
    }

    .cardiff-hero__media {
        position: relative;
        min-height: 220px;
    }

    .cardiff-hero__card {
        width: auto;
        max-width: none;
        margin: 0;
        padding: 24px 22px 28px;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        box-shadow: none;
    }

    .cardiff-hero__card:hover {
        transform: none;
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cardiff-hero__card,
    .cardiff-hero__card:hover {
        transition: none;
        transform: none;
    }

    .cardiff-hero__card::before,
    .cardiff-hero__card:hover::before {
        transition: none;
        transform: none;
    }

    .cardiff-hero__card::after {
        animation: none;
    }
}
