/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
}

/* ─── Base ───────────────────────────────────────────────── */
body {
    background-color: #071010;
    font-family: 'Inter', sans-serif;
    /* Fill viewport; min-height ensures scroll only kicks in below 800px */
    height: 100vh;
    min-height: 800px;
    display: flex;
    flex-direction: column;
    padding: 22px 26px 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #fff;
}

body.menu-open {
    overflow: hidden;
}

/* ─── Page wrapper ───────────────────────────────────────── */
.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
}

/* ─── Top bar (logo + mobile hamburger) ──────────────────── */
.topbar {
    position: absolute;
    top: 18px;
    left: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
}

.site-logo {
    line-height: 0;
    text-decoration: none;
}

.site-logo img {
    width: 105px;
    height: auto;
    display: block;
}

/* ─── Hamburger toggle (mobile only) ─────────────────────── */
.menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
    display: block;
    position: absolute;
    left: 6px;
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}

.menu-toggle span:nth-child(1) { top: 11px; }
.menu-toggle span:nth-child(2) { top: 17px; }
.menu-toggle span:nth-child(3) { top: 23px; }

.menu-toggle.open span:nth-child(1) {
    top: 17px;
    transform: rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    top: 17px;
    transform: rotate(-45deg);
}

/* ─── Bordered main box ──────────────────────────────────── */
.main-box {
    flex: 1;
    border: 1px solid #4b4b4b;
    border-radius: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

/* ─── Language switcher (shared styling) ─────────────────── */
.lang-switch {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s ease;
}

.lang-switch[lang="en"] {
    text-transform: uppercase;
}

.lang-switch:hover {
    color: rgba(255, 255, 255, 0.85);
}

/* Desktop: floats top-right inside the main-box */
.lang-switch-desktop {
    position: absolute;
    top: 18px;
    right: 22px;
    z-index: 5;
}

/* Mobile variant lives in the topbar; hidden on desktop */
.lang-switch-mobile {
    display: none;
}

/* ─── Chinese-only typography overrides ──────────────────── */
:lang(zh) .btn {
    font-size: 14px;
}

:lang(zh) .panel-blurb {
    font-size: 14px;
}

/* ─── Two-panel row ──────────────────────────────────────── */
.panels {
    display: flex;
    flex-direction: row;
    flex: 1;
    min-height: 0;
}

/* ─── Individual panel ───────────────────────────────────── */
.panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 52px 48px;
    gap: 24px;
    min-width: 0;
    min-height: 0;
}

/* ─── Centre separator ───────────────────────────────────── */
.separator {
    width: 1px;
    flex-shrink: 0;
    align-self: stretch;
    margin: 40px 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.1)  0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
}

/* ─── Panel logos ────────────────────────────────────────── */
.panel-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.panel-logo {
    display: block;
    width: clamp(140px, min(20vw, 25vh), 260px);
    height: auto;
}

/* ─── Product images ─────────────────────────────────────── */
.panel-image-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    width: 100%;
}

.panel-image {
    max-width: 100%;
    max-height: 50vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ─── Blurb ──────────────────────────────────────────────── */
.panel-blurb {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.80);
    text-align: center;
    line-height: 1.5;
    letter-spacing: 0.01em;
    flex-shrink: 0;
}

/* ─── Button wrapper ─────────────────────────────────────── */
.button-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* ─── Base button / link ─────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 10px 30px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: transparent;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border-radius: 5px;
    -webkit-appearance: none;
    appearance: none;
    transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.btn:focus-visible {
    outline: 1px solid rgba(255, 255, 255, 0.4);
    outline-offset: 4px;
}

/* Active — The Other Shore */
.btn-active {
    color: #BBE3C5;
    border: 1px solid #BBE3C5;
}

.btn-active:hover {
    color: #ffffff;
    border-color: #ffffff;
    background-color: #1A2C23;
}

/* Disabled — Lifestyle (coming soon) */
.btn-disabled {
    color: #3A4A43;
    border: 1px solid #3A4A43;
    cursor: not-allowed;
    display: inline-grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    place-items: center;
}

.btn-disabled .btn-text-default,
.btn-disabled .btn-text-hover {
    grid-column: 1;
    grid-row: 1;
}

.btn-disabled .btn-text-hover {
    visibility: hidden;
}

.btn-disabled:hover {
    color: #6E7E77;
    border-color: #6E7E77;
}

.btn-disabled:hover .btn-text-default {
    visibility: hidden;
}

.btn-disabled:hover .btn-text-hover {
    visibility: visible;
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    flex-shrink: 0;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-link {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: rgba(255, 255, 255, 0.65);
}

.footer-divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 9px;
    line-height: 1;
    user-select: none;
}

/* ─── Mobile menu (overlay, hidden on desktop) ───────────── */
.mobile-menu {
    display: none;
}

/* ─── Mobile (≤ 768px) ───────────────────────────────────── */
@media (max-width: 768px) {

    /* Allow natural document flow + scroll */
    body {
        height: auto;
        min-height: 100vh;
        padding: 0 16px 24px;
    }

    .wrapper {
        flex: none;
        position: static;
    }

    /* Topbar becomes a full-width flex header */
    .topbar {
        position: static;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 18px 4px 16px;
        z-index: 110; /* sits above the open menu */
    }

    .menu-toggle {
        display: block;
    }

    /* Strip the desktop main-box of its border + radius — it
       just acts as an invisible flex-column container now */
    .main-box {
        flex: none;
        border: none;
        border-radius: 0;
        overflow: visible;
    }

    /* Desktop switcher hides; mobile variant shows in the topbar */
    .lang-switch-desktop {
        display: none;
    }

    .lang-switch-mobile {
        display: inline-block;
        margin-left: auto;
        margin-right: 14px;
    }

    /* Stack the panels vertically with a gap between them */
    .panels {
        flex: none;
        flex-direction: column;
        gap: 16px;
    }

    /* Each panel becomes its own bordered card */
    .panel {
        flex: none;
        border: 1px solid #4b4b4b;
        border-radius: 10px;
        padding: 36px 24px 32px;
        gap: 26px;
    }

    .separator {
        display: none;
    }

    .panel-logo {
        width: 220px;
    }

    .panel-image-wrap {
        flex: none;
    }

    .panel-image {
        max-width: 100%;
        height: auto;
    }

    /* Lifestyle button: always shows "Coming Soon" with brighter
       state (no hover on touch devices) */
    .btn-disabled {
        color: #6E7E77;
        border-color: #6E7E77;
    }

    .btn-disabled .btn-text-default {
        display: none;
    }

    .btn-disabled .btn-text-hover {
        visibility: visible;
    }

    /* Footer: privacy links centered, contact moves to menu */
    .footer {
        justify-content: center;
        padding-top: 24px;
    }

    .footer-contact {
        display: none;
    }

    /* ─── Mobile menu overlay ────────────────────────────── */
    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #071010;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
        padding: 100px 28px 40px;
        overflow-y: auto;
    }

    .mobile-menu.open {
        transform: translateY(0);
    }

    .menu-list {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .menu-link {
        display: inline-block;
        font-family: 'Inter', sans-serif;
        font-size: 18px;
        font-weight: 500;
        letter-spacing: 0.04em;
        color: rgba(255, 255, 255, 0.85);
        text-decoration: none;
        padding: 6px 0;
        transition: color 0.2s ease;
    }

    .menu-link:hover,
    .menu-link:focus-visible {
        color: #BBE3C5;
    }
}
