/*
Theme Name: BELKINI 2.0
Theme URI: https://www.belkini.sk/
Author: BELKINI PRODUCTION
Author URI: https://www.belkini.sk/
Description: Custom WordPress theme for BELKINI PRODUCTION.
Version: 1.0.0
Text Domain: belkini
*/


:root {
    --black: #080808;
    --white: #ffffff;
    --gray: #a0a0a0;
    --border: #242424;

    --container: 1600px;
    --gutter: clamp(24px, 3vw, 50px);

    --font-main: Arial, Helvetica, sans-serif;
}


/* =====================================================
   RESET
===================================================== */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: var(--black);
    color: var(--white);

    font-family: var(--font-main);

    font-size: 16px;
    line-height: 1.5;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    color: inherit;
}

main {
    width: 100%;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -0.055em;
}

h1 {
    font-size: clamp(4rem, 9vw, 9rem);
}

h2 {
    font-size: clamp(3rem, 6vw, 6rem);
}

h3 {
    font-size: clamp(2rem, 4vw, 4rem);
}

p {
    line-height: 1.5;
}


/* =====================================================
   CONTAINER
===================================================== */

.container {
    width: 100%;
    max-width: var(--container);

    margin-left: auto;
    margin-right: auto;

    padding-left: var(--gutter);
    padding-right: var(--gutter);
}


/* =====================================================
   SECTIONS
===================================================== */

.section {
    width: 100%;
    padding: 120px var(--gutter);
}


/* =====================================================
   HEADER
===================================================== */

.site-header {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1001;

    padding:
        65px
        0
        32px;
}

.site-header__inner {
    display: flex;

    align-items: center;
    justify-content: space-between;
}


/* =====================================================
   LOGO
===================================================== */

.site-logo {
    display: block;

    width: 460px;

    position: relative;

    z-index: 1002;
}

.site-logo img {
    display: block;

    width: 100%;
    height: auto;
}


/* =====================================================
   MENU BUTTON
===================================================== */

.menu-toggle {
    position: relative;

    z-index: 1003;

    width: 48px;
    height: 48px;

    display: flex;
    flex-direction: column;

    align-items: stretch;
    justify-content: center;

    gap: 6px;

    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;

    transition:
        filter 0.45s ease;
}

.menu-toggle span {
    display: block;

    width: 100%;
    height: 2px;

    background: var(--white);

    transform-origin: center;

    transition:
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.3s ease,
        filter 0.45s ease;
}


/* =====================================================
   HAMBURGER BLUR
===================================================== */

.menu-toggle:hover:not(.is-open) {
    filter: blur(2px);
}


/* =====================================================
   HAMBURGER → X
===================================================== */

.menu-toggle.is-open span:first-child {
    transform:
        translateY(4px)
        rotate(45deg);
}

.menu-toggle.is-open span:last-child {
    transform:
        translateY(-4px)
        rotate(-45deg);
}

.menu-toggle.is-open:hover {
    filter: none;
}


/* =====================================================
   MENU OVERLAY
===================================================== */

.menu-overlay {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100svh;

    z-index: 1000;

    background: var(--black);

    visibility: hidden;

    opacity: 0;

    transform:
        translate3d(0, 18px, 0);

    pointer-events: none;

    transition:
        opacity 0.65s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.8s;
}

.menu-overlay.is-open {
    visibility: visible;

    opacity: 1;

    transform:
        translate3d(0, 0, 0);

    pointer-events: auto;
}

/* =====================================================
   MENU AMBIENT CURSOR LIGHT
===================================================== */

.menu-overlay::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 520px;
    height: 520px;

    pointer-events: none;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(
                255,
                255,
                255,
                0.10
            ) 0%,

            rgba(
                255,
                255,
                255,
                0.045
            ) 25%,

            rgba(
                255,
                255,
                255,
                0.015
            ) 45%,

            transparent 70%
        );

    transform:
        translate3d(
            calc(
                var(--menu-mouse-x, 50vw) -
                260px
            ),

            calc(
                var(--menu-mouse-y, 50vh) -
                260px
            ),

            0
        );

    filter:
        blur(12px);

    opacity: 0.9;

    z-index: 0;

    will-change:
        transform;
}

/* =====================================================
   MENU INNER
===================================================== */

.menu-overlay__inner {
    position: relative;
    z-index: 1;
    
    width: 100%;
    max-width: var(--container);

    height: 100%;

    margin: 0 auto;

    padding:
        170px
        var(--gutter)
        50px;

    display: flex;
    flex-direction: column;

    justify-content: center;
}


/* =====================================================
   MENU SERVICES
===================================================== */

.menu-services {
    width:
        max-content;

    max-width:
        calc(
            100vw -
            (var(--gutter) * 2)
        );

    margin-left: auto;
    margin-right: auto;

    flex: 1;

    min-height: 0;

    display: flex;
    flex-direction: column;

    align-items: flex-start;
    justify-content: center;

    gap: 0;

    overflow: visible;

    text-align: left;
}


/* =====================================================
   MENU SERVICE ROW
===================================================== */

.menu-service {
    position: relative;

    width: 100%;

    height:
        clamp(
            82px,
            6.5vw,
            112px
        );

    min-height:
        clamp(
            82px,
            6.5vw,
            112px
        );

    flex: 0 0 auto;

    display: flex;

    align-items: center;
    justify-content: flex-start;

    gap: 28px;

    padding:
        10px
        0;

    overflow: visible;

    cursor: pointer;

    transition:
        transform
        0.95s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        ),

        opacity
        0.8s
        ease,

        filter
        0.8s
        ease;
}


/* =====================================================
   MENU NUMBER
===================================================== */

.menu-service__number {
    flex:
        0 0 auto;

    font-size:
        clamp(
            3rem,
            6vw,
            6.8rem
        );

    font-weight: 700;

    line-height: 0.86;

    letter-spacing: -0.065em;

    color: transparent;

    -webkit-text-stroke:
        1.5px
        rgba(
            255,
            255,
            255,
            0.58
        );

    transition:
        color
        0.55s
        ease,

        -webkit-text-stroke
        0.55s
        ease;
}


/* =====================================================
   MENU TITLE
===================================================== */

.menu-service__title {
    display: block;

    font-size:
        clamp(
            3rem,
            6vw,
            6.8rem
        );

    font-weight: 700;

    line-height: 0.86;

    letter-spacing: -0.065em;

    color: var(--white);

    white-space: nowrap;

    transition:
        opacity
        0.45s
        ease,

        transform
        0.8s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}


/* =====================================================
   DESCRIPTION
===================================================== */

.menu-service__description {
    position: absolute;

    left:
        clamp(
            125px,
            13vw,
            175px
        );

    top: 50%;

    width:
        min(
            760px,
            calc(
                100% - 180px
            )
        );

    transform:
        translateY(-50%);

    opacity: 0;

    pointer-events: none;

    font-size:
        clamp(
            1.35rem,
            2.05vw,
            2.35rem
        );

    font-weight: 700;

    line-height: 1.06;

    letter-spacing: -0.04em;

    text-align: left;

    color: var(--white);

    max-height:
        3.25em;

    overflow: hidden;

    transition:
        opacity
        0.55s
        ease;
}


/* =====================================================
   DESCRIPTION WORD
===================================================== */

.menu-description-word {
    display: inline-block;

    white-space: nowrap;
}


/* =====================================================
   DESCRIPTION LETTER
===================================================== */

.menu-description-letter {
    display: inline-block;

    will-change:
        transform,
        opacity,
        filter;
}


/* =====================================================
   ACTIVE SERVICE
===================================================== */

.menu-service.is-active {
    z-index: 10;

    transform:
        translate3d(
            -90px,
            0,
            0
        );

    opacity: 1;

    filter: none;
}


/* =====================================================
   ACTIVE NUMBER
===================================================== */

.menu-service.is-active
.menu-service__number {

    color: var(--white);

    -webkit-text-stroke:
        0 transparent;
}


/* =====================================================
   ACTIVE TITLE
===================================================== */

.menu-service.is-active
.menu-service__title {

    opacity: 0;

    transform:
        translate3d(
            25px,
            0,
            0
        );
}


/* =====================================================
   ACTIVE DESCRIPTION
===================================================== */

.menu-service.is-active
.menu-service__description {

    opacity: 1;

    transform:
        translateY(-50%);
}


/* =====================================================
   INACTIVE SERVICES
===================================================== */

.menu-services.has-active
.menu-service:not(.is-active) {

    opacity: 0.19;

    filter:
        blur(4px);

    transform:
        scale(0.78);
}


/* =====================================================
   SECONDARY NAVIGATION
===================================================== */

.menu-secondary {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 14px;

    padding-top: 30px;

    flex-shrink: 0;
}

.menu-secondary a {
    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;

    color: var(--gray);

    transition:
        color
        0.3s
        ease;
}

.menu-secondary a:hover {
    color: var(--white);
}

.menu-secondary__dot {
    color: #444;

    font-size: 13px;
}


/* =====================================================
   BODY WHEN MENU OPEN
===================================================== */

body.menu-open {
    overflow: hidden;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    position: relative;

    width: 100%;
    min-height: 100vh;

    display: flex;
    align-items: stretch;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 70% 20%,
            rgba(
                80,
                80,
                80,
                0.16
            ),
            transparent 42%
        ),

        radial-gradient(
            circle at 15% 80%,
            rgba(
                45,
                45,
                45,
                0.12
            ),
            transparent 38%
        ),

        var(--black);
}


/* =====================================================
   AMBIENT CURSOR LIGHT
===================================================== */

.hero::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 520px;
    height: 520px;

    pointer-events: none;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(
                255,
                255,
                255,
                0.10
            ) 0%,

            rgba(
                255,
                255,
                255,
                0.045
            ) 25%,

            rgba(
                255,
                255,
                255,
                0.015
            ) 45%,

            transparent 70%
        );

    transform:
        translate3d(
            calc(
                var(--mouse-x, 50vw) -
                260px
            ),

            calc(
                var(--mouse-y, 50vh) -
                260px
            ),

            0
        );

    filter:
        blur(12px);

    opacity: 0.9;

    z-index: 0;

    will-change:
        transform;
}


/* =====================================================
   HERO INNER
===================================================== */

.hero__inner {
    position: relative;

    z-index: 1;

    min-height: 100vh;

    display: flex;
    flex-direction: column;

    justify-content: space-between;

    padding-top: 145px;
    padding-bottom: 65px;
}


/* =====================================================
   HERO TOP
===================================================== */

.hero__top {
    display: flex;

    align-items: center;
    justify-content: space-between;

    width: 100%;

    padding-bottom: 34px;

    border-bottom:
        1px solid
        var(--border);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.hero__label {
    color: var(--white);
}

.hero__location {
    color: var(--gray);

    text-align: right;
}


/* =====================================================
   HERO CONTENT
===================================================== */

.hero__content {
    flex: 1;

    display: flex;
    flex-direction: column;

    justify-content: space-between;

    padding-top: 52px;
}


/* =====================================================
   HERO TITLE
===================================================== */

.hero-title {
    width: 100%;
    max-width: none;

    padding-top: 8px;

    text-transform: uppercase;
}

.hero-title > span {
    display: block;
}

.hero-title .hero-letter {
    display: inline-block;
}


/* =====================================================
   HERO LINE
===================================================== */

.hero-line {
    display: block;

    width: 100%;

    overflow: visible;

    padding-top: 3px;
    padding-bottom: 3px;
}


/* =====================================================
   HERO LETTER
===================================================== */

.hero-letter {
    display: inline-block;

    opacity: 0.18;

    /*
     * Dôležité pre Safari:
     * stabilnejší compositing pri diakritike.
     */

    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;

    -webkit-transform: translate3d(
        var(--current-x, 0px),
        var(--current-y, 0px),
        0
    ) scale(
        var(--current-scale, 1)
    );

    transform:
        translate3d(
            var(--current-x, 0px),
            var(--current-y, 0px),
            0
        )
        scale(
            var(--current-scale, 1)
        );

    filter:
        blur(
            var(--blur, 0px)
        );

    will-change:
        transform,
        opacity,
        filter;

    /*
     * Zabráni Safari, aby pri transformácii
     * rozdeľovalo glyph s diakritikou.
     */

    -webkit-font-smoothing: antialiased;
    font-kerning: none;
    font-variant-ligatures: none;
}


/* =====================================================
   HERO DIACRITIC LETTER
===================================================== */

.hero-letter-diacritic {
    /*
     * Samostatný compositing layer pre znaky
     * ako Ť, Š, Č, Ž, Ľ, Ň atď.
     */

    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;

    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}


/* =====================================================
   HERO LETTER FINAL / CURSOR STATE
===================================================== */

.hero-title-visible .hero-letter {

    filter:
        blur(
            calc(
                var(--blur, 0px) +
                var(--cursor-blur, 0px)
            )
        );

    -webkit-transform:
        translate3d(
            var(--current-x, 0px),
            var(--current-y, 0px),
            0
        )
        scale(
            calc(
                var(--current-scale, 1) *
                var(--cursor-scale, 1)
            )
        );

    transform:
        translate3d(
            var(--current-x, 0px),
            var(--current-y, 0px),
            0
        )
        scale(
            calc(
                var(--current-scale, 1) *
                var(--cursor-scale, 1)
            )
        );
}


/* =====================================================
   HERO BOTTOM
===================================================== */

.hero__bottom {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 40px;

    padding-top: 55px;
}

.hero__bottom p {
    max-width: 360px;

    color: var(--gray);

    font-size: 15px;

    line-height: 1.45;
}


/* =====================================================
   BUTTON
===================================================== */

.button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 52px;

    padding:
        0
        28px;

    border:
        1px solid
        var(--white);

    border-radius: 999px;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    white-space: nowrap;

    transition:
        background-color
        0.3s
        ease,

        color
        0.3s
        ease,

        transform
        0.3s
        ease;
}

.button:hover {
    background: var(--white);

    color: var(--black);

    transform:
        translateY(-2px);
}


/* =====================================================
   WORDPRESS ADMIN BAR
===================================================== */

body.admin-bar .hero,
body.admin-bar .hero__inner {

    min-height:
        calc(
            100vh - 32px
        );
}


/* =====================================================
   LARGE DESKTOP
===================================================== */

@media (min-width: 1600px) {

    .site-logo {
        width: 480px;
    }

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1100px) {

    :root {
        --gutter: 30px;
    }

    .site-logo {
        width: 300px;
    }

    .hero__inner {
        padding-top: 145px;
        padding-bottom: 55px;
    }

    .hero-title {
        font-size:
            clamp(
                4rem,
                9vw,
                7rem
            );
    }

    .menu-overlay__inner {
        padding:
            145px
            var(--gutter)
            40px;
    }

    .menu-services {
        width: 100%;
        max-width: 100%;
    }

    .menu-service {

        height:
            clamp(
                72px,
                7vw,
                95px
            );

        min-height:
            clamp(
                72px,
                7vw,
                95px
            );

        gap: 20px;
    }

    .menu-service__number,
    .menu-service__title {

        font-size:
            clamp(
                2.4rem,
                7vw,
                5.5rem
            );
    }

    .menu-service__description {

        left: 105px;

        width:
            calc(
                100% - 130px
            );

        font-size:
            clamp(
                1.2rem,
                2.7vw,
                2rem
            );
    }

    .menu-service.is-active {

        transform:
            translate3d(
                -55px,
                0,
                0
            );
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    :root {
        --gutter: 20px;
    }

    body.admin-bar .hero,
    body.admin-bar .hero__inner {

        min-height:
            calc(
                100svh - 46px
            );
    }

    .site-header {
        padding:
            24px
            0;
    }

    .site-logo {
        width: 270px;
    }

    .menu-toggle {
        width: 44px;
        height: 44px;
    }

    .menu-overlay {
        height: 100svh;
    }

    .menu-overlay__inner {
        padding:
            110px
            20px
            28px;
    }

    .menu-services {
        width: 100%;
        max-width: 100%;
    }

    .menu-service {

        height:
            clamp(
                58px,
                12vw,
                78px
            );

        min-height:
            clamp(
                58px,
                12vw,
                78px
            );

        gap: 10px;

        padding:
            6px
            0;
    }

    .menu-service__number,
    .menu-service__title {

        font-size:
            clamp(
                1.7rem,
                9.5vw,
                3.8rem
            );

        letter-spacing:
            -0.065em;
    }

    .menu-service__number {

        -webkit-text-stroke:
            0.8px
            rgba(
                255,
                255,
                255,
                0.65
            );
    }

    .menu-service__description {

        left: 72px;

        width:
            calc(
                100% - 78px
            );

        font-size:
            clamp(
                1rem,
                5vw,
                1.65rem
            );

        line-height: 1.06;

        max-height:
            3.2em;
    }

    .menu-service.is-active {

        transform:
            translate3d(
                -20px,
                0,
                0
            );
    }

    .menu-services.has-active
    .menu-service:not(.is-active) {

        opacity: 0.18;

        filter:
            blur(3px);

        transform:
            scale(0.82);
    }

    .menu-secondary {

        gap: 9px;

        padding-top: 18px;
    }

    .menu-secondary a {

        font-size: 8px;

        letter-spacing: 0.09em;
    }

    .menu-secondary__dot {

        font-size: 10px;
    }

    .hero,
    .hero__inner {

        min-height:
            100svh;
    }

    .hero__inner {

        padding-top: 115px;
        padding-bottom: 25px;
    }

    .hero::before {

        width: 360px;
        height: 360px;

        transform:
            translate3d(
                calc(
                    var(--mouse-x, 50vw) -
                    180px
                ),

                calc(
                    var(--mouse-y, 50vh) -
                    180px
                ),

                0
            );
    }

    .hero__top {

        align-items: flex-start;

        gap: 20px;

        padding-bottom: 22px;

        font-size: 9px;

        line-height: 1.4;
    }

    .hero__location {

        max-width: 150px;
    }

    .hero__content {

        padding-top: 105px;
    }

    .hero-title {

        width: 100%;
        max-width: none;

        text-align: center;

        font-size: 12vw;

        line-height: 0.88;

        letter-spacing: -0.065em;

        padding-top: 6px;
    }

    .hero-line {

        display: block;

        width: 100%;

        white-space: nowrap;

        padding-top: 2px;
        padding-bottom: 2px;
    }

    .hero__bottom {

        flex-direction: column;

        align-items: flex-start;

        gap: 25px;

        padding-top: 35px;

        transform:
            translateY(-70px);
    }

    .hero__bottom p {

        max-width: 300px;

        font-size: 14px;
    }

    .button {

        min-height: 48px;

        padding:
            0
            22px;
    }

    .section {

        padding:
            80px
            var(--gutter);
    }

    h2 {

        font-size:
            clamp(
                2.6rem,
                12vw,
                5rem
            );
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 480px) {

    .site-logo {
        width: 250px;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
    }

    .hero__inner {
        padding-top: 105px;
    }

    .hero-title {
        font-size: 11.7vw;
    }

    .hero__bottom {

        padding-top: 35px;

        transform:
            translateY(-70px);
    }

}


/* =====================================================
   VERY SMALL MOBILE
===================================================== */

@media (max-width: 350px) {

    .site-logo {
        width: 225px;
    }

    .hero-title {
        font-size: 11.2vw;
    }

    .hero__bottom {

        padding-top: 30px;

        transform:
            translateY(-70px);
    }

}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .hero-letter {

        opacity: 1 !important;

        filter: none !important;

        transform: none !important;
    }

    .hero::before {
        display: none;
    }

    .menu-overlay,
    .menu-service,
    .menu-service__number,
    .menu-service__title,
    .menu-service__description,
    .menu-toggle span {

        transition: none !important;
    }

}


/* =====================================================
   HERO CTA
===================================================== */

.hero-cta {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    color: var(--white);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;

    white-space: nowrap;

    cursor: pointer;

    transition:
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.5s ease;
}

.hero-cta__bracket {
    display: inline-block;

    color: rgba(255, 255, 255, 0.55);

    font-size: 17px;
    font-weight: 400;

    line-height: 1;

    transition:
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.5s ease;
}

.hero-cta__text {
    display: inline-block;

    transition:
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        letter-spacing 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}


/* =====================================================
   CTA HOVER
===================================================== */

.hero-cta:hover {
    filter: blur(0.25px);
}

.hero-cta:hover .hero-cta__bracket--left {
    transform: translateX(-4px);
    color: var(--white);
}

.hero-cta:hover .hero-cta__bracket--right {
    transform: translateX(4px);
    color: var(--white);
}

.hero-cta:hover .hero-cta__text {
    letter-spacing: 0.14em;
}


/* =====================================================
   HERO TEXT
===================================================== */

.hero__bottom p {
    width: min(820px, 62vw);

    max-width: 820px;

    color: var(--gray);

    font-size: 15px;

    line-height: 1.45;
}


/* =====================================================
   HERO CTA — MOBILE
===================================================== */

@media (max-width: 768px) {

    .hero__bottom p {
        width: 100%;
        max-width: 430px;
    }

    .hero-cta {
        font-size: 11px;
        gap: 6px;
    }

    .hero-cta__bracket {
        font-size: 15px;
    }

}