/* ==========================================================================
   Public photographer landing
   - Mobile and desktop hero images are configured independently.
   - Each viewport falls back to a branded geometric hero when its image is off.
   ========================================================================== */

:root {
    --spectro-navbar-height: 74px;
    --landing-shell-max: 1400px;
}

.landing-public {
    width: 100%;
    background: #eef2f7;
}

.landing-hero--desktop-only { display: none; }
.landing-hero--mobile-only { display: block; }

.landing-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
}

.landing-hero--with-image {
    min-height: 70vh;
    background-image:
        linear-gradient(
            180deg,
            rgba(8, 10, 16, 0.02) 0%,
            rgba(8, 10, 16, 0.08) 36%,
            rgba(8, 10, 16, 0.62) 66%,
            rgba(8, 10, 16, 0.98) 100%
        ),
        var(--landing-hero-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #111827;
}

.landing-hero--brand-card {
    min-height: auto;
    background-color: var(--brand-primary, #0b1220);
    background-image:
        radial-gradient(520px 380px at 100% 0%,
            color-mix(in srgb, var(--brand-secondary, #6366f1) 42%, transparent) 0%,
            transparent 65%),
        radial-gradient(460px 360px at 0% 100%,
            color-mix(in srgb, var(--brand-secondary, #6366f1) 30%, transparent) 0%,
            transparent 65%),
        radial-gradient(280px 220px at 70% 85%,
            color-mix(in srgb, var(--brand-secondary, #6366f1) 20%, transparent) 0%,
            transparent 70%),
        linear-gradient(165deg,
            var(--brand-primary, #0b1220) 0%,
            color-mix(in srgb, var(--brand-primary, #0b1220) 92%, black 8%) 55%,
            color-mix(in srgb, var(--brand-primary, #0b1220) 78%, var(--brand-secondary, #6366f1) 22%) 100%);
}

.landing-hero--brand-card::before,
.landing-hero--brand-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.landing-hero--brand-card::before {
    top: -90px;
    right: -110px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.landing-hero--brand-card::after {
    bottom: -120px;
    left: -110px;
    width: 320px;
    height: 320px;
    border: 1px solid color-mix(in srgb, var(--brand-secondary, #6366f1) 38%, transparent);
}

.landing-hero__overlay {
    min-height: inherit;
    display: flex;
    align-items: flex-end;
    position: relative;
    z-index: 1;
}

.landing-hero--brand-card .landing-hero__overlay {
    align-items: stretch;
}

.landing-hero__content {
    width: 100%;
    padding: 3rem 1.25rem 2.15rem;
    text-align: center;
    color: #fff;
}

.landing-hero--brand-card .landing-hero__content {
    padding: 2.75rem 1.25rem 2rem;
}

.landing-hero h1 {
    max-width: 860px;
    margin: 0 auto .55rem;
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.08;
    color: #fff;
}

.landing-hero p {
    max-width: 680px;
    margin: 0 auto 1.35rem;
    color: rgba(255,255,255,.82);
    font-size: .94rem;
    line-height: 1.55;
}

/* Light brand background variant — flip hero typography + decorative rings to dark tones */
.landing-hero--brand-card-light .landing-hero__content {
    color: #111827;
}

.landing-hero--brand-card-light h1 {
    color: #111827;
}

.landing-hero--brand-card-light p {
    color: rgba(17, 24, 39, .72);
}

.landing-hero--brand-card-light.landing-hero--brand-card::before {
    border-color: rgba(17, 24, 39, .14);
}

.landing-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.landing-hero__social {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.25rem;
}

.landing-hero__social .hero-social-link,
.landing-hero__social-link {
    position: static;
}

.landing-events-panel {
    padding: 2.5rem 1rem 1.25rem;
}

.landing-events-header {
    margin-bottom: 1.25rem;
}

.landing-events-subtitle {
    margin: .35rem 0 0;
    color: #6b7280;
    font-size: .95rem;
    line-height: 1.5;
    max-width: 56ch;
}

@media (max-width: 768px) {
    .landing-events-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 992px) {
    .landing-hero--mobile-only { display: none; }
    .landing-hero--desktop-only { display: block; }

    .landing-public {
        min-height: calc(100vh - var(--spectro-navbar-height));
    }

    .landing-hero--with-image {
        min-height: 72vh;
        background-image:
            linear-gradient(180deg, rgba(8, 10, 16, 0.04) 0%, rgba(8, 10, 16, 0.22) 48%, rgba(8, 10, 16, 0.68) 82%, rgba(8, 10, 16, 0.92) 100%),
            var(--landing-hero-image);
    }

    .landing-hero--brand-card {
        min-height: 320px;
        background-image:
            radial-gradient(720px 480px at 100% 0%,
                color-mix(in srgb, var(--brand-secondary, #6366f1) 42%, transparent) 0%,
                transparent 65%),
            radial-gradient(640px 460px at 0% 100%,
                color-mix(in srgb, var(--brand-secondary, #6366f1) 28%, transparent) 0%,
                transparent 65%),
            radial-gradient(380px 280px at 65% 90%,
                color-mix(in srgb, var(--brand-secondary, #6366f1) 22%, transparent) 0%,
                transparent 70%),
            linear-gradient(165deg,
                var(--brand-primary, #0b1220) 0%,
                color-mix(in srgb, var(--brand-primary, #0b1220) 92%, black 8%) 55%,
                color-mix(in srgb, var(--brand-primary, #0b1220) 78%, var(--brand-secondary, #6366f1) 22%) 100%);
    }

    .landing-hero--brand-card::before {
        top: -110px;
        right: -110px;
        width: 320px;
        height: 320px;
    }

    .landing-hero--brand-card::after {
        bottom: -130px;
        left: -130px;
        width: 360px;
        height: 360px;
    }

    .landing-hero__overlay {
        align-items: flex-end;
    }

    .landing-hero--brand-card .landing-hero__overlay {
        align-items: center;
        min-height: 320px;
    }

    .landing-hero__content {
        max-width: 1240px;
        margin: 0 auto;
        padding: 5.25rem 2rem 2.35rem;
    }

    .landing-hero--brand-card .landing-hero__content {
        padding: 3.5rem 2rem 2.75rem;
    }

    .landing-hero h1 {
        font-size: clamp(2.35rem, 5.2vw, 4.3rem);
        letter-spacing: 0;
    }

    .landing-hero p {
        font-size: 1.05rem;
        line-height: 1.7;
    }

    .landing-events-panel {
        max-width: var(--landing-shell-max);
        margin: 0 auto;
        padding: 48px 16px 40px;
    }

    .landing-events-header {
        margin-bottom: 1.5rem;
    }

    .landing-events-subtitle {
        font-size: 1rem;
    }
}
