/* Header / Navigation styles */
.navigation {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
}

.containerhd {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(225, 164, 160, 0.15) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(225, 164, 160, 0.15) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0 20px;
    border-radius: 24px;
}

.nav-link {
    font-family: 'Radio Canada Big', serif;
    font-weight: 500;
    font-size: 16px;
    color: #FFFFFF;
}

.nav-link:hover {
    opacity: 0.8;
}

.logo-img {
    width: 100px;
    padding: 10px;
    height: auto;
    object-fit: contain;
}

/* Logo and header-right take equal space so nav-menu centers naturally */
.logo {
    flex: 1;
}

/* Desktop right group: social icons + Text us button */
.header-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.social-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Mobile CTA inside overlay — hidden on desktop */
.nav-mobile-cta {
    display: none;
}

/* ---- Hamburger button (mobile only) ---- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #FFFFFF;
    border-radius: 2px;
    transition: transform 0.15s ease, opacity 0.15s ease;
    transform-origin: center;
}

/* Hamburger → X when open */
.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ---- Mobile Navigation ---- */
@media (max-width: 768px) {
    .navigation { padding: 8px 12px; }

    .containerhd {
        padding: 0 16px;
        border-radius: 16px;
        min-height: 62px;
    }

    .logo-img {
        width: 80px;
        padding: 8px;
    }

    /* Hide desktop right group (social icons + CTA) from the bar */
    .header-right { display: none; }

    /* Show hamburger with animation */
    .hamburger {
        display: flex;
        transition: transform 0.2s ease;
    }
    
    .hamburger:active {
        transform: scale(0.92);
    }

    /* Overlay backdrop for menu */
    .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 303px;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: -1;
    }

    /* Slide-in overlay menu */
    .nav-menu {
        position: fixed;
        top: 78px;
        right: -100%;
        width: calc(100% - 32px);
        max-width: 220px;
        height: 303px;
        background: linear-gradient(135deg, rgba(225, 164, 160, 0.15) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(225, 164, 160, 0.15) 100%);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        z-index: 99;
        padding: 20px;
        border-radius: 16px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border: 1px solid rgba(225, 164, 160, 0.2);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        transition: right 0.2s ease-out, opacity 0.15s ease;
        opacity: 0;
        overflow: hidden;
    }

    .nav-menu.open {
        display: flex;
        right: 0;
        opacity: 1;
    }
    
    .nav-menu.open::before {
        opacity: 1;
        visibility: visible;
    }

    /* Navigation links with improved touch targets */
    .nav-link {
        display: flex;
        align-items: center;
        padding: 0;
        margin: 2px 0;
        font-size: 17px;
        font-weight: 500;
        color: #FFFFFF;
        letter-spacing: 0.2px;
        border-radius: 12px;
        transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
        min-height: 0;
        position: relative;
        overflow: hidden;
    }
    
    .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 0;
        background: #E1A4A0;
        border-radius: 0 2px 2px 0;
        transition: height 0.1s ease;
    }

    .nav-link:hover,
    .nav-link:active {
        background: rgba(225, 164, 160, 0.12);
        color: #E1A4A0;
        transform: translateX(4px);
    }
    
    .nav-link:hover::before,
    .nav-link:active::before {
        height: 24px;
    }

    /* Prominent CTA button inside overlay */
    .nav-mobile-cta {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 16px;
        padding: 16px 32px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 12px;
        background: linear-gradient(135deg, #E1A4A0 0%, #D19490 100%);
        color: #000000;
        box-shadow: 0 4px 20px rgba(225, 164, 160, 0.3);
        transition: transform 0.1s ease, box-shadow 0.1s ease;
        min-height: 52px;
    }
    
    .nav-mobile-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 28px rgba(225, 164, 160, 0.4);
    }
    
    .nav-mobile-cta:active {
        transform: translateY(0);
    }
}

/* ---- Tablet Navigation ---- */
@media (min-width: 769px) and (max-width: 1024px) {
    .containerhd { padding: 0 16px; }
    .nav-menu { gap: 14px; }
    .nav-link { font-size: 14px; }
    .nav-desktop-cta { font-size: 13px; padding: 10px 14px; }
}
