/* Site-wide layout */

:root {
    --flagship-yellow: #F4C430;
    --flagship-dark: #333;
    --border-color: #e5e5e5;
    --text-muted: #888;
    --text-default: #525252;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Red Hat Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-default);
    background: #fff;
}

/* Header */
.site-header {
    background-color: #fefefe;
    flex-shrink: 0;
    overflow: hidden;
    border-bottom: 2px solid #525252;
}

.header-inner {
    width: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.logo-link {
    flex-shrink: 0;
    padding: 10px;
}

.header-logo {
    height: 90px !important;
    width: auto;
    display: block;
}

/* Navigation */
.site-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-between;
}

.nav-tabs {
    display: flex;
    gap: 0;
    border-bottom: none !important;
}

.nav-tab {
    text-decoration: none;
    color: var(--text-default);
    font-size: 26px !important;
    font-weight: 700 !important;
    font-family: "Red Hat Display", sans-serif;
    padding: 8px 24px;
    border-bottom: none;
    white-space: nowrap;
}

.nav-tab:hover {
    color: var(--text-default);
    text-decoration: none;
}

.nav-tab::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-default);
    margin-top: 4px;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.nav-tab:hover::after {
    transform: scaleX(1);
}

.nav-tab.active::after {
    transform: scaleX(1);
}

.nav-jetties {
    display: flex;
    gap: 10px;
    align-items: center;
}

.jetty-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: var(--text-default);
    font-size: 16px !important;
    font-weight: 700 !important;
    font-family: "Red Hat Display", sans-serif;
    letter-spacing: 0;
    padding: 0 16px;
    border-bottom: none;
}

.jetty-link:hover {
    color: var(--text-default);
    text-decoration: none;
}

.jetty-link::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-default);
    margin-top: 2px;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.jetty-link:hover::after {
    transform: scaleX(1);
}

.jetty-link.active::after {
    transform: scaleX(1);
}

.jetty-icon {
    width: 67px !important;
    height: 51px !important;
    object-fit: contain;
}

/* Disabled jetty buttons (e.g. on Spree Alert page) */
.nav-jetties.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Content */
.site-content {
    flex: 1;
    overflow: auto;
}

body {
    display: flex;
    flex-direction: column;
}

/* Responsive — Tablet */
@media (max-width: 900px) {
    .header-logo {
        height: 55px !important;
    }

    .nav-tab {
        font-size: 18px !important;
        padding: 4px 12px;
    }

    .jetty-icon {
        width: 40px !important;
        height: 30px !important;
    }

    .jetty-link {
        font-size: 12px !important;
        padding: 0 8px;
    }

    .logo-link {
        padding: 6px;
    }
}

/* Responsive — Phone */
@media (max-width: 640px) {
    .header-inner {
        flex-direction: column;
        padding: 10px 12px;
        gap: 6px;
        align-items: center;
    }

    .header-logo {
        height: 45px;
    }

    .site-nav {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .nav-tabs {
        width: 100%;
        justify-content: center;
    }

    .nav-tab {
        font-size: 16px !important;
        padding: 4px 10px;
    }

    .nav-jetties {
        justify-content: center;
    }

    .jetty-icon {
        width: 40px !important;
        height: 30px !important;
    }

    .jetty-link {
        font-size: 11px !important;
        padding: 0 6px;
    }
}
