/* =========================================================
   SHARED HEADER / MOBILE NAV / FOOTER / BACK-TO-TOP
   -----------------------------------------------------------
   Single source of truth for the site-wide header and footer,
   copied 1:1 from the shop.php reference page so every page
   renders and behaves identically (desktop + mobile).

   Loaded via <link> at the very end of <head> on every public
   page, AFTER the page's own <style> block, so it always wins
   the cascade for these selectors — no need to touch each
   page's inline styles.

   If the header/footer design ever changes, edit ONLY this
   file (plus includes/site-header.php and
   includes/site-footer.php for markup) and every page updates
   at once.
   ========================================================= */

/* ---------- HEADER ---------- */
#header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 10, 11, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(14px, 2vw, 22px) var(--container-px, clamp(16px, 5vw, 48px));
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo-block {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: clamp(28px, 4vw, 40px);
    width: auto;
    object-fit: contain;
    display: block;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-block:hover .logo-img {
    opacity: 0.85;
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    gap: clamp(16px, 2vw, 36px);
    align-items: center;
    list-style: none;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(0.7rem, 1vw, 0.8rem);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold, #c9a96e);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.5vw, 20px);
    flex-shrink: 0;
}

.lang-toggle {
    display: flex;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    overflow: hidden;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: clamp(5px, 1vw, 7px) clamp(9px, 1.5vw, 13px);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.65);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
}

.lang-btn.active {
    background: #ffffff;
    color: var(--text-dark, #0f0a0b);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: clamp(8px, 1.2vw, 11px) clamp(14px, 2vw, 22px);
    background: var(--deep-pink, #be185d);
    color: #fff;
    text-decoration: none;
    font-size: clamp(0.68rem, 1vw, 0.78rem);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    border-radius: 3px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--gold, #c9a96e);
    color: var(--text-dark, #0f0a0b);
    transform: translateY(-1px);
}

/* ---------- MOBILE HAMBURGER BUTTON ---------- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- MOBILE NAV DRAWER ---------- */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 2500;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(20px, 4vw, 40px);
    text-align: center;
    padding: 20px;
    overflow-y: auto;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 6vw, 2.2rem);
    color: var(--text-dark, #0f0a0b);
    text-decoration: none;
    font-style: italic;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--text-dark, #0f0a0b);
    background: none;
    border: none;
    line-height: 1;
    padding: 10px 16px;
    z-index: 2501;
}

.mobile-nav-close:hover {
    color: var(--deep-pink, #be185d);
    transform: scale(1.1);
}

.mobile-nav-cta {
    display: inline-block !important;
    padding: 14px 32px !important;
    background: var(--deep-pink, #be185d) !important;
    color: #fff !important;
    border-radius: 3px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.82rem !important;
    font-style: normal !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    margin-top: 8px !important;
}

/* ---------- FOOTER ---------- */
#contact-footer {
    background-color: #1A1C18;
    color: #ffffff;
    padding: clamp(36px, 5vw, 54px) 0 20px;
    font-family: 'Inter', sans-serif;
    border-top: 2px solid rgba(201, 169, 110, 0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.9fr 1.2fr;
    gap: clamp(20px, 3vw, 36px);
    margin-bottom: clamp(24px, 4vw, 36px);
    align-items: start;
}

.footer-logo-block {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: clamp(32px, 4vw, 44px);
    width: auto;
    object-fit: contain;
    display: block;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-logo-block:hover .footer-logo-img {
    opacity: 0.85;
    transform: translateY(-2px);
}

.footer-brand-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-social {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social:hover {
    background: var(--deep-pink, #be185d);
    border-color: var(--deep-pink, #be185d);
    transform: translateY(-2px);
}

.footer-col-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold, #c9a96e);
    font-weight: 600;
    margin-bottom: 14px;
}

.footer-col-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col-list a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.84rem;
    transition: color 0.2s;
}

.footer-col-list a:hover {
    color: #fff;
}

.footer-contact-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.footer-contact-icon {
    color: var(--gold, #c9a96e);
    font-size: 1rem;
    flex-shrink: 0;
}

.footer-contact-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-link:hover {
    color: var(--gold, #c9a96e);
}

.footer-hours-compact {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-hours-compact div {
    display: flex;
    justify-content: space-between;
}

.footer-hours-compact strong {
    color: #fff;
    font-weight: 500;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copy {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.76rem;
}

.footer-lang {
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
}

.footer-lang-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 5px 12px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-lang-btn.active {
    background: #ffffff;
    color: #1A1C18;
}

/* ---------- BACK TO TOP ---------- */
#back-to-top {
    position: fixed;
    bottom: clamp(20px, 4vw, 32px);
    right: clamp(16px, 3vw, 32px);
    width: 46px;
    height: 46px;
    background: var(--deep-pink, #be185d);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(190, 24, 93, 0.35);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 500;
}

#back-to-top.visible {
    display: flex;
}

#back-to-top:hover {
    background: var(--text-dark, #0f0a0b);
    transform: translateY(-3px);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
    }

    /* Center the logo and social icons in the footer's first column */
    .footer-grid > div:first-child {
        text-align: center;
    }

    .footer-logo-block {
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-socials {
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px 14px;
        text-align: left;
    }

    .footer-grid>div:nth-child(1) {
        grid-column: span 2;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 14px;
    }

    .footer-contact-col {
        grid-column: span 2;
        margin-top: 4px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }
}
