/* Homepage hero only. Append after the verified current child-theme CSS. */
.home .hero-glass-card,
.home .hero-glass-card:hover {
    --hero-glass-ink: #101c16;
    --hero-glass-text-shadow: none;
    --hero-glass-x: 18%;
    --hero-glass-y: 8%;
    position: relative;
    /* Opaque, readable default when backdrop filters are unavailable. */
    background: #f2f5f1 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    border: 1px solid transparent !important;
    border-radius: 32px !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1),
        0 16px 34px -18px rgba(3, 25, 17, 0.45) !important;
    /* Interaction moves only the light and rim, not the reading surface. */
    transform: none !important;
    transition: none !important;
}

.home .hero-glass-card > * {
    position: relative;
    z-index: 1;
}

.home .hero-glass-card::before,
.home .hero-glass-card::after {
    content: none;
    pointer-events: none;
}

.home .hero-glass-card h1,
.home .hero-glass-card h2,
.home .hero-glass-card h3,
.home .hero-glass-card p,
.home .hero-glass-card p[style] {
    color: var(--hero-glass-ink) !important;
    text-shadow: var(--hero-glass-text-shadow) !important;
}

.home .hero-glass-card a:focus-visible {
    outline: 2px solid var(--hero-glass-ink);
    outline-offset: 4px;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .home .hero-glass-card,
    .home .hero-glass-card:hover {
        --hero-glass-ink: #ffffff;
        --hero-glass-text-shadow: 0 1px 3px rgba(3, 20, 14, 0.72),
            0 2px 12px rgba(3, 20, 14, 0.38);
        background:
            linear-gradient(132deg,
                rgba(255, 255, 255, 0.14),
                rgba(255, 255, 255, 0.025) 35%,
                rgba(255, 255, 255, 0.015) 65%,
                rgba(255, 255, 255, 0.08)),
            rgba(3, 22, 17, 0.16) !important;
        /* Shallow center blur keeps the player and court recognizable. */
        -webkit-backdrop-filter: blur(4px) saturate(125%) !important;
        backdrop-filter: blur(4px) saturate(125%) !important;
    }

    @media (max-width: 600px) {
        .home .hero-glass-card,
        .home .hero-glass-card:hover {
            /* The phone crop puts the white net behind the lower body copy. */
            background:
                linear-gradient(180deg, transparent 35%,
                    rgba(3, 16, 10, 0.52) 58%,
                    rgba(3, 16, 10, 0.52) 82%, transparent),
                linear-gradient(132deg,
                    rgba(255, 255, 255, 0.14),
                    rgba(255, 255, 255, 0.025) 35%,
                    rgba(255, 255, 255, 0.015) 65%,
                    rgba(255, 255, 255, 0.08)),
                rgba(3, 22, 17, 0.16) !important;
        }
    }

    @supports ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
        .home .hero-glass-card::before,
        .home .hero-glass-card::after {
            content: "";
            position: absolute;
            z-index: 0;
            border-radius: inherit;
            filter: none;
        }

        /* A single fine rim; its highlight follows the pointer. */
        .home .hero-glass-card::before {
            inset: -1px;
            padding: 1px;
            -webkit-mask: linear-gradient(#fff 0 0) content-box,
                linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) content-box,
                linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            background:
                radial-gradient(180px 160px at var(--hero-glass-x) var(--hero-glass-y),
                    rgba(255, 255, 255, 0.98), rgba(234, 245, 255, 0.45) 35%, transparent 75%),
                radial-gradient(160px 140px at calc(100% - var(--hero-glass-x)) calc(100% - var(--hero-glass-y)),
                    rgba(193, 241, 230, 0.48), transparent 75%),
                linear-gradient(145deg, rgba(255, 255, 255, 0.68),
                    rgba(238, 221, 244, 0.2) 25%,
                    rgba(255, 255, 255, 0.04) 55%,
                    rgba(232, 250, 246, 0.38) 82%,
                    rgba(255, 255, 255, 0.62));
            opacity: 0.82;
            transform: scale(1);
            transition: opacity 180ms ease-out,
                transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
        }

        /* Very faint surface reflection; no wide bevel or fog across the photo. */
        .home .hero-glass-card::after {
            inset: 0;
            padding: 0;
            -webkit-mask: none;
            mask: none;
            background: radial-gradient(240px 180px at var(--hero-glass-x) var(--hero-glass-y),
                rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018) 35%, transparent 75%);
            opacity: 0;
            transition: opacity 220ms ease-out;
        }

        .home .hero-glass-card:focus-within::before {
            opacity: 1;
        }

        @media (hover: hover) and (pointer: fine) {
            .home .hero-glass-card:hover::before,
            .home .hero-glass-card:hover::after {
                opacity: 1;
            }
        }

        @media (prefers-reduced-motion: no-preference) {
            .home .hero-glass-card:active::before {
                opacity: 1;
                transform: scale(0.996);
                transition-duration: 100ms;
            }
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .home .hero-glass-card::before,
    .home .hero-glass-card::after {
        transform: none;
        transition: opacity 100ms ease-out;
    }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
    .home .hero-glass-card,
    .home .hero-glass-card:hover {
        --hero-glass-ink: #101c16;
        --hero-glass-text-shadow: none;
        background: #f2f5f1 !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    .home .hero-glass-card::before,
    .home .hero-glass-card::after {
        display: none;
    }
}

@media (forced-colors: active) {
    .home .hero-glass-card,
    .home .hero-glass-card:hover {
        --hero-glass-ink: CanvasText;
        --hero-glass-text-shadow: none;
        background: Canvas !important;
        border-color: CanvasText !important;
        box-shadow: none !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    .home .hero-glass-card::before,
    .home .hero-glass-card::after {
        display: none;
    }
}

/* Compact responsive layout, issue #30. Keep the Liquid Glass material above. */
.home .hero-gym-to-street-wrapper {
    padding-top: 16px !important;
}

.home .hero-gym-to-street-wrapper > .wp-block-cover {
    min-height: 0 !important;
    height: auto !important;
    padding: 0 12px 12px !important;
    border-radius: 24px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
    background-color: #173e32;
    margin-bottom: 0 !important;
}

.home .hero-gym-to-street-wrapper > .wp-block-cover > .wp-block-cover__image-background {
    position: relative !important;
    height: clamp(200px, 58vw, 280px) !important;
    width: calc(100% + 24px) !important;
    max-width: none;
    object-fit: cover;
    object-position: 61% 65%;
}

.home .hero-gym-to-street-wrapper > .wp-block-cover > .wp-block-cover__background {
    display: none;
}

.home .hero-gym-to-street-wrapper > .wp-block-cover > .wp-block-cover__inner-container {
    width: 100%;
    margin-top: -24px;
}

.home .hero-gym-to-street-wrapper > .wp-block-cover .wp-block-columns {
    display: flex !important;
    flex-direction: column;
    margin: 0 !important;
    gap: 0 !important;
}

.home .hero-gym-to-street-wrapper > .wp-block-cover .wp-block-column:first-child {
    display: none;
}

.home .hero-gym-to-street-wrapper > .wp-block-cover .hero-glass-card,
.home .hero-gym-to-street-wrapper > .wp-block-cover .hero-glass-card:hover {
    display: flex;
    flex-direction: column;
    flex: none !important;
    width: 100%;
    margin: 0 !important;
    padding: 24px !important;
    border-radius: 24px !important;
}

.home .hero-gym-to-street-wrapper > .wp-block-cover .hero-glass-card p:empty {
    display: none !important;
}

.home .hero-gym-to-street-wrapper > .wp-block-cover .hero-glass-card h1 {
    order: -1;
    font-size: clamp(1.75rem, 6.7vw, 2.25rem) !important;
    line-height: 1.12 !important;
    font-weight: 600 !important;
    margin: 0 0 12px !important;
    text-wrap: balance;
}

.home .hero-gym-to-street-wrapper > .wp-block-cover .hero-glass-card p[style] {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    margin: 0 0 20px !important;
}

.home .hero-gym-to-street-wrapper > .wp-block-cover .hero-glass-card p[style*='text-transform'] {
    font-size: .875rem !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    margin: 0 0 12px !important;
}

.home .hero-gym-to-street-wrapper > .wp-block-cover .hero-glass-card .wp-block-buttons {
    margin: 0 !important;
}

.home .hero-gym-to-street-wrapper > .wp-block-cover .hero-glass-card .wp-block-button,
.home .hero-gym-to-street-wrapper > .wp-block-cover .hero-glass-card .wp-block-button__link {
    width: 100%;
}

.home .hero-gym-to-street-wrapper > .wp-block-cover .hero-glass-card .wp-block-button__link {
    min-height: 48px;
    padding: 14px 20px !important;
    font-size: .875rem !important;
    line-height: 1.4 !important;
    border-radius: 8px !important;
}

@media (min-width: 740px) {
    .home .hero-gym-to-street-wrapper > .wp-block-cover {
        min-height: clamp(420px, 48svh, 460px) !important;
        padding: 24px !important;
        justify-content: center;
    }

    .home .hero-gym-to-street-wrapper > .wp-block-cover > .wp-block-cover__image-background {
        position: absolute !important;
        height: 100% !important;
        width: 100% !important;
    }

    /* Shade the photo beneath the reading area, without flattening the glass. */
    .home .hero-gym-to-street-wrapper > .wp-block-cover > .wp-block-cover__background {
        display: block;
        background: linear-gradient(90deg, rgba(3, 22, 17, .62) 35%, transparent 70%) !important;
        opacity: 1 !important;
    }

    .home .hero-gym-to-street-wrapper > .wp-block-cover > .wp-block-cover__inner-container {
        margin-top: 0;
    }

    .home .hero-gym-to-street-wrapper > .wp-block-cover .hero-glass-card,
    .home .hero-gym-to-street-wrapper > .wp-block-cover .hero-glass-card:hover {
        width: 48%;
        max-width: 480px;
        padding: 28px !important;
    }

    .home .hero-gym-to-street-wrapper > .wp-block-cover .hero-glass-card h1 {
        font-size: clamp(1.875rem, 3.1vw, 2.75rem) !important;
    }

    .home .hero-gym-to-street-wrapper > .wp-block-cover .hero-glass-card .wp-block-button,
    .home .hero-gym-to-street-wrapper > .wp-block-cover .hero-glass-card .wp-block-button__link {
        width: auto;
    }
}

@media (min-width: 1100px) {
    .home .hero-gym-to-street-wrapper > .wp-block-cover {
        min-height: clamp(420px, 56svh, 540px) !important;
        padding: 32px !important;
    }

    .home .hero-gym-to-street-wrapper > .wp-block-cover .hero-glass-card,
    .home .hero-gym-to-street-wrapper > .wp-block-cover .hero-glass-card:hover {
        width: 43%;
        padding: 32px !important;
    }
}
