
/**************
*****************
*************** Site Header ── 
****************
******************/

.site-header {
    width: 100%;
    max-width: 1440px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: stretch;
    height: 82px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 60px;
    margin: auto;
    z-index: 999;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .site-header {
    background: rgba(15, 15, 15, 0.7);
    border-bottom-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* ── LOGO ZONE ── */
.logo-zone {
    display: flex;
    align-items: center;
    padding: 0 24px 0 20px;
    flex-shrink: 0;
}

.logo-zone .logo img {
    width: 100%;
    height: auto;
}

.logo-zone .logo {
    width: 70px;
    height: auto;
}

/* ── HOME TAB (gold slab) ── */
.nav-home-tab {
    display: none;
}

.nav-home-tab a {
    background: var(--golden-gradient);
    padding: 30px 10px;
    border-radius: 0 0 10px 10px;
    font-family: var(--primary-font);
    font-size: clamp(1rem, 4vw, 1.2rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    height: 100%;
}

/* ── MAIN NAV ── */
.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    padding: 0 32px;
    flex: 1;
}

.nav-links a {
    font-family: var(--primary-font);
    font-size: clamp(1rem, 4vw, 1rem);
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-color-primary);
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.2s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-mid);
    transition: width 0.25s ease;
}

.nav-links a:hover {
    color: var(--gold-mid);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ── RIGHT SIDE ── */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 24px;
    flex-shrink: 0;
}

/* contact us link */
.contact-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--primary-font);
    font-size: clamp(1rem, 4vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-color-primary);
    text-decoration: none;
    border-bottom: 1.5px solid var(--text-color-primary);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}

.contact-link:hover {
    color: var(--gold-mid);
    border-color: var(--gold-mid);
}

.contact-link .arrow {
    color: var(--gold-mid);
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.2s;
}

.contact-link:hover .arrow {
    transform: translate(2px, -2px);
}

/* divider */
.divider {
    width: 1px;
    height: 32px;
    background: rgba(0, 0, 0, 0.2);
}

/* hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    justify-content: center;
}

.hamburger span {
    display: block;
    height: 2px;
    background: var(--text-color-primary);
    transition: background 0.2s;
}

.hamburger span:nth-child(1) {
    width: 28px;
}

.hamburger span:nth-child(2) {
    width: 20px;
}

.hamburger:hover span {
    background: var(--gold-mid);
}


/* ── Mobile base (≤ 430px) ── */
@media (max-width: 430px) {

    /* ── Site Header ── */
    .site-header {
        padding: 0 16px;
        height: 64px;
    }

    .logo-zone {
        padding: 0 12px 0 0;
    }

    .logo-zone .logo {
        width: 48px;
    }

    .nav-home-tab a {
        padding: 20px 8px;
        font-size: 0.75rem;
        letter-spacing: 0.06em;
    }

    .nav-links {
        display: none;
    }

    .header-right {
        padding: 0 0 0 12px;
        gap: 12px;
        margin-left: auto;
    }

    .contact-link {
        display: none;
    }

}


/* ── 360px ── */
@media (max-width: 360px) {

    .site-header {
        height: 58px;
        padding: 0 12px;
    }

    .logo-zone .logo {
        width: 40px;
    }

    .nav-home-tab a {
        font-size: 0.65rem;
        padding: 18px 6px;
    }
    .contact-link { font-size: 0.56rem; }
    .hamburger span:nth-child(1) { width: 20px; }
    .hamburger span:nth-child(2) { width: 14px; }
}

/* ── 390px ── */
@media (min-width: 361px) and (max-width: 390px) {

    /* nothing here for now */

}

/* ── 410px ── */
@media (min-width: 391px) and (max-width: 410px) {

    /* nothing here for now */

}

/* ── 430px ── */
@media (min-width: 411px) and (max-width: 430px) {

    /* nothing here for now */

}

/* ── Phone landscape ── */
@media (max-height: 500px) and (min-width: 600px) and (orientation: landscape) {

    .site-header {
        height: 56px;
        padding: 0 28px;
    }

    .logo-zone .logo {
        width: 44px;
    }

    .nav-home-tab a {
        padding: 18px 10px;
        font-size: 0.8rem;
    }

    .nav-links {
        display: flex;
        gap: 20px;
        padding: 0 16px;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .contact-link {
        display: flex;
        font-size: 0.8rem;
    }

}

/* ── Tablet portrait (431px – 1023px) ── */
@media (min-width: 431px) and (max-width: 1023px) and (orientation: portrait) {
    .site-header {
        padding: 0 28px;
        height: 72px;
    }

    .logo-zone .logo {
        width: 56px;
    }

    .nav-home-tab a {
        padding: 24px 10px;
        font-size: 0.9rem;
    }

    .nav-links {
        display: none;
    }

    .contact-link {
        font-size: 0.9rem;
    }
}

/* ── iPad portrait at 768px ── */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {

    /* nothing to add here for now */

}

/* ── Global mobile helpers ── */
@media (max-width: 1023px) {

    /* nothing here for now */
}


/* ============================================================
   MOBILE MENU — Group Crazy Pineapple Inc
   ============================================================ */

.hamburger.is-open span:nth-child(1) {
    width: 26px;
    transform: translateY(7px) rotate(45deg);
    background: #fff;
}

.hamburger.is-open span:nth-child(2) {
    width: 26px;
    transform: translateY(0px) rotate(-45deg);
    background: #fff;
}

.hamburger span {
    transition: transform 0.35s cubic-bezier(0.77, 0, 0.175, 1),
                width     0.25s ease,
                background 0.2s ease;
    transform-origin: center;
}

.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.mobile-nav-backdrop.is-open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(340px, 88vw);
    height: 100dvh;
    background: #0d0d0d;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    padding: 0;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    overflow: hidden;
}

.mobile-nav.is-open {
    transform: translateX(0);
}

.mobile-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, #A16C16, #E6B554, #A16C16);
    flex-shrink: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    height: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
}

.mobile-nav-logo {
    width: 44px;
    height: auto;
}

.mobile-nav-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.mobile-nav-close {
    display: flex;
    flex-direction: column;
    gap: 0;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
    position: relative;
    width: 32px;
    height: 32px;
}

.mobile-nav-close::before,
.mobile-nav-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: background 0.2s;
}

.mobile-nav-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-nav-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-nav-close:hover::before,
.mobile-nav-close:hover::after {
    background: #E6B554;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 36px 28px 28px;
    gap: 4px;
    flex: 1;
}

.mobile-nav-links a {
    font-family: var(--secondary-font, serif);
    font-size: clamp(1.8rem, 8vw, 2.6rem);
    font-weight: 900;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.15);
    text-decoration: none;
    letter-spacing: 0.04em;
    line-height: 1.15;
    position: relative;
    padding: 6px 0;
    opacity: 0;
    transform: translateX(24px);
    transition: color 0.25s ease,
                opacity 0.4s ease,
                transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-nav.is-open .mobile-nav-links a {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav.is-open .mobile-nav-links a:nth-child(1) { transition-delay: 0.08s; }
.mobile-nav.is-open .mobile-nav-links a:nth-child(2) { transition-delay: 0.14s; }
.mobile-nav.is-open .mobile-nav-links a:nth-child(3) { transition-delay: 0.20s; }
.mobile-nav.is-open .mobile-nav-links a:nth-child(4) { transition-delay: 0.26s; }

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: transparent;
    background-image: linear-gradient(to right, #A16C16, #E6B554);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-nav-links a.active::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(45deg, #A16C16, #E6B554);
    margin-top: 4px;
}

.mobile-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 0 28px;
    flex-shrink: 0;
}

.mobile-nav-footer {
    padding: 24px 28px 36px;
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease 0.32s,
                transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.32s;
}

.mobile-nav.is-open .mobile-nav-footer {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #A16C16, #E6B554);
    color: #fff;
    padding: 12px 20px 12px 28px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 55px;
    text-decoration: none;
    width: 100%;
    justify-content: space-between;
    transition: opacity 0.2s;
}

.mobile-nav-contact-btn:hover {
    opacity: 0.85;
}

.mobile-nav-contact-btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    flex-shrink: 0;
}

.mobile-nav-contact-btn-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.mobile-nav-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.mobile-nav-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.mobile-nav-social a:hover {
    border-color: #E6B554;
    color: #E6B554;
}

.mobile-nav,
.mobile-nav-backdrop {
    display: none;
}

@media (max-width: 430px),
       (min-width: 431px) and (max-width: 1023px) and (orientation: portrait) {
    .mobile-nav,
    .mobile-nav-backdrop {
        display: flex;
    }
}

@media (max-height: 500px) and (min-width: 600px) and (orientation: landscape) {
    .mobile-nav,
    .mobile-nav-backdrop {
        display: flex;
    }

    .mobile-nav-links a {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
        padding: 3px 0;
    }

    .mobile-nav-footer {
        padding: 16px 28px 20px;
    }
}

body.nav-open {
    overflow: hidden;
}

/* ── NAV DROPDOWN ── */

/* Wrapper — gives us a hover anchor */
.nav-item.has-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

/* Chevron SVG */
.nav-chevron {
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
    flex-shrink: 0;
    transition: transform 0.25s ease, color 0.2s;
    color: currentColor;
}

.nav-item.has-dropdown:hover .nav-chevron {
    transform: rotate(-180deg);
    color: var(--gold-mid);
}

/* The dropdown panel */
.nav-dropdown {
    list-style: none;
    margin: 0;
    padding: 18px 0 10px; /* 18px top = invisible bridge over the gap */
    position: absolute;
    top: 100%;             /* flush — no gap, mouse never escapes */
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 220px;
    background: transparent; /* panel bg handled by ::before */
    border-radius: 0;
    box-shadow: none;
    border: none;

    /* Hidden by default */
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.25s ease,
                transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0.25s;
    z-index: 999999;
}

/* Actual visible white panel */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: 18px;   /* matches padding-top */
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 48px 0 rgba(0, 0, 0, 0.12),
                0 2px 8px 0 rgba(0, 0, 0, 0.06);
    z-index: -1;
    transition: background 0.3s ease;
}

[data-theme="dark"] .nav-dropdown::before {
    background: #1E1E1E;
    box-shadow: 0 12px 48px 0 rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .nav-dropdown li a {
    color: #D4D4D4;
}

[data-theme="dark"] .nav-dropdown li a:hover {
    color: #F0C56A;
}

/* Gold accent line at top of visible panel */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 18px;   /* flush with panel top */
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(to right, #A16C16, #E6B554);
    border-radius: 2px;
}

/* Reveal on hover */
.nav-item.has-dropdown:hover .nav-dropdown {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Dropdown links */
.nav-dropdown li a {
    display: block;
    padding: 10px 22px;
    font-family: var(--primary-font);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-color-primary);
    text-decoration: none;
    position: relative;
    z-index: 1;  /* sit above ::before panel so links are clickable */
    transition: color 0.2s, background 0.2s, padding-left 0.2s;
    white-space: nowrap;
}

.nav-dropdown li a:hover {
    color: var(--gold-mid);
    background: rgba(230, 181, 84, 0.06);
    padding-left: 28px;
}

/* Subtle divider between items */
.nav-dropdown li + li {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ── MOBILE: hide desktop dropdown ── */
@media (max-width: 1023px) {
    .nav-dropdown {
        display: none;
    }
}