/**
 * Header Navigation Styles
 * Extracted from header.php inline styles for cacheability
 * 
 * @package Silvas_Remodeling
 * @since 2.0.2
 */

/* ========================================
   UNIVERSAL HEADER
   ======================================== */

.universal-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #014385 0%, #0A5CAA 100%);
    box-shadow: 0 2px 10px rgba(1, 67, 133, 0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    gap: 2rem;
}

.header-logo { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
    background: transparent; 
}

.header-logo img { 
    height: 60px; 
    width: auto; 
    background: transparent; 
}

/* ========================================
   DESKTOP NAVIGATION
   ======================================== */

.header-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.header-nav a {
    color: #F8F9FA;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
}

.header-nav a:hover {
    color: #D4A017;
}

/* ========================================
   SERVICES DROPDOWN (DESKTOP)
   ======================================== */

.services-dropdown {
    position: relative;
}

.services-dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #014385;
    min-width: 240px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    z-index: 1000;
}

.services-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #F8F9FA;
    border-bottom: 1px solid rgba(212, 160, 23, 0.2);
    font-size: 0.95rem;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: rgba(212, 160, 23, 0.15);
    color: #D4A017;
}

.dropdown-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.services-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* ========================================
   HEADER CONTACT & CTA
   ======================================== */

.header-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Booking button styles for header navigation */
.header-contact .silva-booking-btn {
    background: #D4A017 !important;
    color: #014385 !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    transition: all 0.3s !important;
    white-space: nowrap !important;
}

.header-contact .silva-booking-btn:hover {
    background: #E8C98F !important;
    color: #014385 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(212, 160, 23, 0.4) !important;
}

.header-phone {
    color: #FFD700;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.header-phone:hover {
    color: #FFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.header-cta {
    background: #D4A017;
    color: #014385;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    white-space: nowrap;
}

.header-cta:hover {
    background: #E8C98F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 160, 23, 0.4);
}

/* ========================================
   MOBILE MENU
   ======================================== */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #F8F9FA;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-header-actions {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.mobile-header-booking-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #D4A017;
    color: #014385;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.mobile-header-booking-btn:active {
    background: #E8C98F;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(1, 67, 133, 0.9);
    z-index: 999;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-content {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100%;
    background: linear-gradient(135deg, #014385 0%, #0A5CAA 100%);
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 2rem;
}

.mobile-menu-content.active {
    right: 0;
}

.mobile-close {
    background: none;
    border: none;
    color: #F8F9FA;
    font-size: 2rem;
    cursor: pointer;
    float: right;
    padding: 0;
    margin-bottom: 2rem;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav a {
    color: #F8F9FA;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 1rem;
    border-bottom: 1px solid rgba(212, 160, 23, 0.2);
    transition: color 0.3s;
}

.mobile-nav a:hover {
    color: #D4A017;
}

/* ========================================
   MOBILE SERVICES DROPDOWN
   ======================================== */

.mobile-services-dropdown {
    display: flex;
    flex-direction: column;
}

.mobile-services-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.mobile-services-toggle span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.mobile-dropdown-menu {
    display: none;
    background: transparent;
    padding: 0;
    margin: 0;
}

.mobile-dropdown-menu.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.mobile-services-section {
    padding: 4px 0;
}

.mobile-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(212, 160, 23, 0.8);
    margin: 12px 0 4px 0;
    padding: 0 1.5rem;
    letter-spacing: 0.5px;
}

.mobile-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.5rem;
    color: #F8F9FA !important;
    text-decoration: none;
    transition: background 0.2s ease;
    font-size: 1.2rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(212, 160, 23, 0.2);
    background: transparent;
    min-height: 48px;
}

.mobile-dropdown-menu a i {
    width: 20px;
    text-align: center;
    color: #D4A017;
    font-size: 16px;
}

.mobile-dropdown-menu a:active {
    background: rgba(212, 160, 23, 0.15);
}

/* ========================================
   MOBILE CONTACT
   ======================================== */

.mobile-contact {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(212, 160, 23, 0.3);
}

.mobile-phone {
    color: #D4A017;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mobile-cta {
    background: #D4A017;
    color: #014385;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    display: block;
    text-align: center;
}

/* Mobile booking button styles */
.mobile-contact .silva-booking-btn {
    background: #D4A017 !important;
    color: #014385 !important;
    padding: 1rem !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
    margin-top: 1rem !important;
}

.mobile-contact .silva-booking-btn:active {
    background: #E8C98F !important;
}

/* ========================================
   RESPONSIVE BREAKPOINT
   ======================================== */

@media (max-width: 968px) {
    .header-nav,
    .header-contact {
        display: none;
    }
    .mobile-header-actions {
        display: flex;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .header-container {
        padding: 1rem;
    }
}
