/* Shared Navbar Styles - Source of Truth */
/* Sourced from verified home.css */

.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(192, 192, 192, 0.3);
    /* glass-border */
}

/* Ensure no parent containers (like .header) interfere */
.header {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    width: 100% !important;
    position: static !important;
}

.navbar-logo {
    height: 110px;
    width: auto;
    margin-right: 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-brand .logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #c0c0c0;
    /* var(--silver) */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.nav-brand .logo .accent {
    color: #B66878;
    /* var(--premium-gold) */
    font-weight: 900;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
    /* Reset distinct style.css defaults */
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #b0b0b0;
    /* var(--text-secondary) */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #c0c0c0;
    /* var(--silver) */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #B66878;
    /* var(--premium-gold) */
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.cta-button {
    background: #B66878;
    /* var(--premium-gold) */
    color: #0a0a0a !important;
    /* var(--primary-black) */
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #c0c0c0;
    /* var(--silver) */
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(182, 104, 120, 0.3);
}

.cta-button::after {
    display: none;
    /* Remove underline from CTA */
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    z-index: 1002;
    background: transparent;
    border: none;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(182, 104, 120, 0.3);
}

.hamburger:hover {
    background: rgba(182, 104, 120, 0.1);
}

.hamburger:active {
    background: rgba(182, 104, 120, 0.2);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #c0c0c0;
    /* var(--silver) */
    margin: 3px 0;
    transition: 0.3s;
    display: block;
    pointer-events: none;
}

/* Tablet */
@media (max-width: 1024px) {
    .main-nav {
        padding: 0.5rem 1.5rem;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }
}

/* Mobile and Tablet */
@media (max-width: 768px) {
    .main-nav {
        padding: 0.5rem 1rem;
    }

    /* Reduce logo size on mobile */
    .navbar-logo {
        height: 70px;
        /* Reduced from 110px */
    }

    .nav-brand {
        gap: 10px;
    }

    .nav-brand .logo {
        font-size: 1.4rem;
        /* Reduced from 1.8rem */
        letter-spacing: 1px;
    }

    /* Ensure hamburger is above the menu */
    .hamburger {
        display: flex !important;
        z-index: 1002;
        /* Higher than .nav-menu z-index (999) */
        padding: 10px;
        border-radius: 6px;
        transition: all 0.2s ease;
        position: relative;
        background: transparent;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(182, 104, 120, 0.3);
        user-select: none;
        -webkit-user-select: none;
    }
    
    .hamburger:hover {
        background: rgba(182, 104, 120, 0.1);
    }
    
    .hamburger:active {
        background: rgba(182, 104, 120, 0.2);
        transform: scale(0.95);
    }

    /* Hamburger Animation to X */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
        background: #B66878;
        /* var(--premium-gold) */
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
        background: #B66878;
        /* var(--premium-gold) */
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: rgba(26, 26, 26, 0.98);
        /* var(--dark-gray) */
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
        border-left: 1px solid rgba(192, 192, 192, 0.3);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
        z-index: 999;
        overflow-y: auto;
    }

    /* Ensure header doesn't cover menu */
    .main-nav {
        z-index: 1001;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 1rem 0;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(192, 192, 192, 0.1);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .cta-button {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
        padding: 0.8rem 1.5rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .main-nav {
        padding: 0.4rem 0.8rem;
    }

    .navbar-logo {
        height: 60px;
    }

    .nav-brand .logo {
        font-size: 1.2rem;
    }

    .nav-menu {
        width: 85%;
        padding: 4.5rem 1.5rem 2rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.9rem 0;
    }
}

/* Shared Footer Styles */
.main-footer {
    background: #0a0a0a;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(192, 192, 192, 0.2);
    position: relative;
    z-index: 10;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #c0c0c0;
}

.footer-brand h3 .accent {
    color: #B66878;
}

.footer-brand p {
    color: #b0b0b0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #c0c0c0;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2a2a2a;
    color: #c0c0c0;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.footer-social a:hover {
    background: #B66878;
    color: #0a0a0a;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(192, 192, 192, 0.1);
    color: #b0b0b0;
    font-size: 0.9rem;
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-content {
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-brand h3 {
        font-size: 1.6rem;
    }

    .footer-links {
        align-items: center;
        gap: 1rem;
    }

    .footer-social {
        justify-content: center;
        margin-top: 1rem;
        gap: 1rem;
    }

    .footer-social a {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .main-footer {
        padding: 2.5rem 0 1rem;
    }

    .footer-content {
        gap: 2rem;
    }

    .footer-brand h3 {
        font-size: 1.4rem;
    }

    .footer-social a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}