/* ——— Home hero ——— */
.club-hero {
    --hero-ink: #17171a;
    --hero-ink-soft: #737578;
    --hero-accent: var(--club-blue, #32a1d9);
    --hero-accent-deep: #2689bd;
    --hero-cream: #f5f6f8;
    --hero-hairline: rgba(23, 23, 26, 0.08);
    --hero-ease: cubic-bezier(0.2, 0.8, 0.2, 1);

    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: calc(-1 * var(--club-header-space, 0px));
    min-height: auto !important;
    background: var(--hero-cream) !important;
    background-image: none !important;
    border-bottom: 1px solid var(--hero-hairline);
}

.club-hero [data-depth] {
    translate: var(--px, 0) var(--py, 0);
}

/* Background: mesh gradient, scattered dots and film grain */
.club-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.club-hero__mesh {
    position: absolute;
    inset: -12%;
    background:
        radial-gradient(40% 50% at 18% 30%, rgba(50, 161, 217, 0.1) 0%, transparent 72%),
        radial-gradient(36% 44% at 88% 14%, rgba(76, 174, 81, 0.08) 0%, transparent 70%),
        radial-gradient(34% 40% at 72% 88%, rgba(170, 40, 104, 0.05) 0%, transparent 68%),
        linear-gradient(180deg, #fafbfc 0%, #eef1f4 100%);
    animation: clubHeroMesh 28s ease-in-out infinite alternate;
}

.club-hero__dots::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: transparent;
    box-shadow:
        14vw 18vh 0 -0.5px rgba(23, 23, 26, 0.16),
        31vw 74vh 0 0 rgba(50, 161, 217, 0.45),
        47vw 12vh 0 -1px rgba(23, 23, 26, 0.14),
        58vw 86vh 0 -0.5px rgba(23, 23, 26, 0.12),
        72vw 30vh 0 0 rgba(76, 174, 81, 0.4),
        88vw 64vh 0 -1px rgba(23, 23, 26, 0.16),
        93vw 20vh 0 -0.5px rgba(23, 23, 26, 0.1),
        6vw 56vh 0 -1px rgba(23, 23, 26, 0.12),
        40vw 44vh 0 -1.5px rgba(23, 23, 26, 0.1);
}

.club-hero__noise {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Layout */
.club-hero .club-hero__container {
    position: relative;
    z-index: 2;
    padding-top: calc(var(--club-header-space, 0px) + clamp(40px, 6vw, 88px));
    padding-bottom: clamp(56px, 7vw, 104px);
}

.club-hero__row {
    --bs-gutter-x: 3rem;
}

.club-hero__content {
    position: relative;
    z-index: 3;
    text-align: right;
}

/* Glass eyebrow */
.club-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    padding: 8px 18px 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 30px -16px rgba(50, 161, 217, 0.12);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--hero-ink-soft);
}

.club-hero__eyebrow-dot {
    position: relative;
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--hero-accent);
}

.club-hero__eyebrow-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--hero-accent);
    opacity: 0;
    animation: clubHeroPulse 2.8s var(--hero-ease) infinite;
}

/* Typography */
.club-hero .club-hero__title {
    margin: 28px 0 0;
    font-size: clamp(2.25rem, 5vw, 4.1rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: 0;
    word-spacing: 0.04em;
    color: var(--hero-ink);
    text-wrap: balance;
}

.club-hero__word {
    display: inline-block;
}

.club-hero__word--accent {
    position: relative;
}

.club-hero__swash {
    position: absolute;
    right: -2%;
    bottom: -0.12em;
    width: 104%;
    height: 0.32em;
    overflow: visible;
    pointer-events: none;
}

.club-hero__swash path {
    fill: none;
    stroke: var(--hero-accent);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 240;
    stroke-dashoffset: 0;
}

.club-hero .club-hero__tagline {
    margin: 22px 0 0;
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    font-weight: 500;
    line-height: 1.75;
    color: var(--hero-ink);
}

.club-hero .club-hero__desc {
    margin: 12px 0 0;
    max-width: 34rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 2;
    color: var(--hero-ink-soft);
}

/* Buttons */
.club-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 38px;
}

.club-hero .club-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 54px;
    padding: 0 30px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition:
        transform 0.45s var(--hero-ease),
        box-shadow 0.45s var(--hero-ease),
        background-color 0.45s var(--hero-ease),
        border-color 0.3s ease,
        color 0.3s ease;
}

.club-hero .club-hero__btn:focus-visible {
    outline: 3px solid rgba(38, 137, 189, 0.45);
    outline-offset: 3px;
}

.club-hero .club-hero__btn--gold {
    color: var(--hero-ink-soft);
    background: #fff;
    border: 1px solid var(--club-border, rgba(115, 117, 120, 0.35));
    box-shadow: 0 1px 2px rgba(23, 23, 26, 0.06);
}

.club-hero .club-hero__btn--gold:hover {
    color: var(--hero-ink);
    transform: scale(1.05);
    background: #fff;
    border-color: var(--hero-accent);
    box-shadow: 0 0 0 4px rgba(50, 161, 217, 0.15);
}

.club-hero .club-hero__btn--gold:active {
    transform: scale(0.96);
}

.club-hero .club-hero__btn--ink {
    color: #fff;
    background: var(--hero-ink);
    border: 1px solid rgba(115, 117, 120, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 26px -16px rgba(0, 0, 0, 0.55);
}

.club-hero .club-hero__btn--ink:hover {
    color: #fff;
    background: #232327;
    border-color: rgba(50, 161, 217, 0.55);
    transform: translateY(-2px);
}

.club-hero__btn-arrow {
    flex-shrink: 0;
    transition: transform 0.45s var(--hero-ease);
}

.club-hero__btn--ink:hover .club-hero__btn-arrow {
    transform: translateX(-4px);
}

/* Hairline + scroll cue */
.club-hero__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 56px;
}

.club-hero__meta-line {
    flex: 0 0 72px;
    height: 1px;
    background: linear-gradient(to left, rgba(23, 23, 26, 0.3), transparent);
}

.club-hero .club-hero__scroll {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--hero-ink-soft);
    text-decoration: none;
    transition: color 0.3s ease;
}

.club-hero .club-hero__scroll:hover {
    color: var(--hero-ink);
}

.club-hero__scroll-mouse {
    position: relative;
    width: 18px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(23, 23, 26, 0.3);
}

.club-hero__scroll-mouse span {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 2px;
    height: 6px;
    margin-left: -1px;
    border-radius: 2px;
    background: var(--hero-ink);
    animation: clubHeroScroll 2.2s var(--hero-ease) infinite;
}

/* Visual stage */
.club-hero__visual {
    position: relative;
    z-index: 1;
}

.club-hero__stage {
    position: relative;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 1 / 1;
    margin-inline: auto;
}

.club-hero__blob,
.club-hero__ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.club-hero__blob {
    inset: 7%;
    width: 86%;
    height: 86%;
    filter: drop-shadow(0 40px 60px rgba(38, 137, 189, 0.28));
}

.club-hero__ring {
    color: rgba(23, 23, 26, 0.22);
    animation: clubHeroSpin 90s linear infinite;
}

.club-hero__floor {
    position: absolute;
    bottom: 1%;
    left: 50%;
    width: 56%;
    height: 34px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(70, 48, 0, 0.26), transparent);
    filter: blur(6px);
}

.club-hero__figure {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.club-hero__tilt {
    display: flex;
    justify-content: center;
    max-height: 100%;
    transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transform-style: preserve-3d;
    transition: transform 0.6s var(--hero-ease);
}

.club-hero__img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 540px;
    object-fit: contain;
    filter: drop-shadow(0 34px 40px rgba(60, 40, 0, 0.18)) drop-shadow(0 6px 10px rgba(60, 40, 0, 0.1));
}

/* Floating line elements */
.club-hero__float {
    position: absolute;
    z-index: 2;
    animation: clubHeroFloat 8s ease-in-out infinite;
}

.club-hero__float--spark {
    top: 4%;
    right: 8%;
    color: var(--hero-accent);
}

.club-hero__float--plus {
    top: 22%;
    left: -2%;
    color: rgba(23, 23, 26, 0.35);
    animation-delay: -2.5s;
}

.club-hero__float--orb {
    bottom: 30%;
    left: 2%;
    color: rgba(50, 161, 217, 0.45);
    animation-delay: -5s;
    animation-duration: 10s;
}

/* Glass seal */
.club-hero__seal {
    position: absolute;
    z-index: 3;
    bottom: 10%;
    right: -2%;
    display: grid;
    place-items: center;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 24px 44px -22px rgba(70, 48, 0, 0.45);
}

.club-hero__seal-text {
    position: absolute;
    inset: 6px;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    overflow: visible;
    animation: clubHeroSpin 26s linear infinite;
}

/* RTL text on an SVG textPath is anchored before the path start and disappears; LTR keeps Arabic shaping intact. */
.club-hero__seal-text text {
    direction: ltr;
    font-size: 10.4px;
    font-weight: 600;
    fill: var(--hero-ink);
}

.club-hero__seal-core {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--hero-ink);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(50, 161, 217, 0.35);
}

/* Entrance choreography (enabled by the inline script, so content stays visible without JS) */
.club-hero--anim [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(8px);
}

.club-hero--anim.is-ready [data-reveal] {
    animation: clubHeroReveal 0.95s var(--hero-ease) forwards;
    animation-delay: calc(var(--d, 0) * 90ms);
}

.club-hero--anim .club-hero__swash path {
    stroke-dashoffset: 240;
}

.club-hero--anim.is-ready .club-hero__swash path {
    animation: clubHeroDraw 1.1s var(--hero-ease) forwards;
    animation-delay: calc(var(--d, 0) * 90ms + 200ms);
}

.club-hero--anim .club-hero__stage {
    opacity: 0;
    transform: scale(0.95);
}

.club-hero--anim.is-ready .club-hero__stage {
    animation: clubHeroStage 1.4s var(--hero-ease) 0.2s forwards;
}

@keyframes clubHeroReveal {
    to {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

@keyframes clubHeroDraw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes clubHeroStage {
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes clubHeroMesh {
    0% {
        transform: scale(1) rotate(0deg);
    }
    100% {
        transform: scale(1.08) rotate(2deg);
    }
}

@keyframes clubHeroFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(6deg);
    }
}

@keyframes clubHeroSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes clubHeroPulse {
    0% {
        opacity: 0.7;
        transform: scale(0.6);
    }
    100% {
        opacity: 0;
        transform: scale(1.8);
    }
}

@keyframes clubHeroScroll {
    0% {
        opacity: 0;
        transform: translateY(-2px);
    }
    40% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(8px);
    }
}

@media (max-width: 991.98px) {
    .club-hero__visual {
        margin-top: 48px;
    }

    .club-hero__stage {
        max-width: 400px;
    }

    .club-hero__img {
        max-height: 400px;
    }

    .club-hero__seal {
        width: 92px;
        height: 92px;
        right: 0;
    }

    .club-hero__meta {
        margin-top: 40px;
    }
}

@media (max-width: 575.98px) {
    .club-hero .club-hero__btn {
        height: 50px;
        padding: 0 24px;
        font-size: 14px;
    }

    .club-hero__float--plus,
    .club-hero__float--orb {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .club-hero *,
    .club-hero *::before,
    .club-hero *::after {
        animation: none !important;
        transition: none !important;
    }

    .club-hero--anim [data-reveal],
    .club-hero--anim .club-hero__stage {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .club-hero--anim .club-hero__swash path {
        stroke-dashoffset: 0;
    }
}
