/* ── fonts (shared: navbar, footer, overlays; matches public/css/index.css) ── */

@font-face {
    font-family: "Product-Sans";
    src: url("../fonts/Product-Sans-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Product-Sans";
    src: url("../fonts/Product-Sans-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Product-Sans";
    src: url("../fonts/Product-Sans-Italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Product-Sans";
    src: url("../fonts/Product-Sans-Bold-Italic.woff2") format("woff2");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* ── page load (index, contact): full-screen loader + blinking logo; hide main until JS ── */

body {
    background-color: #000000;
}

.loading-container {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-container img {
    width: clamp(160px, 18vw, 300px);
    height: auto;
    animation: blink 1s infinite ease-in-out;
}

@keyframes blink {
    0%   { opacity: 1; }
    50%  { opacity: 0; }
    100% { opacity: 1; }
}

/* Direct child only — explore pages use div.main instead */
body > main {
    opacity: 0;
    display: none;
    transition: opacity 0.9s ease-in-out;
}

/* Contact: sections stay hidden until GSAP ScrollTrigger (prevents FOUC) */
.contact-reveal[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    will-change: opacity, transform;
}

/* ── layout helper ── */

.page-width {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

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

/* ── navbar ── */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background: #000000;
    z-index: 100;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
    font-family: "Product-Sans", sans-serif;
}

.navbar::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 12px;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(15, 15, 15, 0.4) 30%,
        rgba(39, 39, 39, 0.2) 60%,
        transparent 100%
    );
    pointer-events: none;
    transform: translateY(100%);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left,
.nav-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-left {
    justify-content: flex-start;
}

.nav-right {
    justify-content: flex-end;
    gap: 1.25rem;
}

.nav-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-logo img {
    width: clamp(80px, 8vw, 130px);
    height: auto;
}

.menu-toggle, .catalog-toggle {
    all: unset;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Product-Sans", sans-serif;
    color: #fff;
    font-weight: 500;
    font-size: 18px;
    /*letter-spacing: 0.15em;*/
    cursor: pointer;
}

.menu-icon {
    display: grid;
    gap: 5px;
}

.menu-icon span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
}

.nav-catalog {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 500;
    /*font-size: 0.85rem;*/
    /*letter-spacing: 0.12em;*/
}

.catalog-icon {
    font-size: 1.6rem;
    color: #fff;
}

.catalog-icon img {
    height: 1.4rem;
}

.catalog-label {
    margin-left: 5px;
}

.menu-toggle:hover, .catalog-toggle:hover,
.nav-catalog:hover {
    opacity: 0.7;
}

/* ── language switcher ── */

.lang-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.lang-switch:hover {
    opacity: 0.7;
    transform: scale(1.05);
}

.lang-switch img {
    height: 1.4rem;
    width: auto;
    display: block;
}

/* ── menu overlay ── */

.menu-overlay, .catalog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.97);
    display: flex;
    justify-content: center;
    align-items: center;
    clip-path: circle(0% at 0 0);
    pointer-events: none;
    z-index: 90;
    font-family: "Product-Sans", sans-serif;
}

.menu-overlay.open, .catalog-overlay.open {
    pointer-events: auto;
}

.menu-content, .catalog-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.menu-overlay,
.menu-overlay .menu-content,
.menu-overlay .menu-item {
    color: #ffffff;
}

.catalog-overlay,
.catalog-overlay .catalog-content,
.catalog-overlay .catalog-item {
    color: #ffffff;
}

.menu-item, .catalog-item {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.menu-item:hover, .catalog-item:hover {
    color: #ff0000;
}

/* ── footer ── */

.footer {
    background: #000000;
    padding: 2rem 0 2.5rem;
    font-size: 1.3rem;
    color: #fff;
    font-family: "Product-Sans", sans-serif;
}

.footer-inner {
    text-align: center;
}

.footer-inner p + p,
.footer-inner div + div {
    margin-top: 0.3rem;
}

/* ── responsive (header / footer / layout) ── */

@media (max-width: 768px) {
    .navbar {
        height: 64px;
    }

    .page-width {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .nav-right {
        gap: 1rem;
    }

    .nav-catalog {
        gap: 0;
    }
}

@media (max-width: 540px) {
    .navbar {
        height: 56px;
    }

    .menu-toggle, .catalog-toggle {
        font-size: 0.72rem;
        gap: 0.35rem;
    }

    .menu-icon span {
        width: 30px;
    }

    .nav-catalog {
        font-size: 0.72rem;
    }

    .footer {
        font-size: 1rem;
    }

    .menu-label {
        display: none;
    }

    .catalog-label {
        display: none;
    }

    .catalog-icon img {
        height: 1.6rem;
    }

    .lang-switch img {
        height: 1.6rem;
    }

    .nav-right {
        gap: 0.85rem;
    }
}

@media (min-width: 1920px) {
    .navbar {
        height: 80px;
    }
}
