/**
 * Petros Marine Exim - Enhanced Header & Navigation Styles
 * Standalone Bootstrap 5 + PHP Platform
 */

/* ==========================================================================
   TOPBAR
   ========================================================================== */
.site-topbar {
    background-color: #071526;
    color: #cbd5e1;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 7px 0;
    position: relative;
    z-index: 1060;
}

.site-topbar a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-topbar a:hover {
    color: #e5a93b;
}

.site-topbar .topbar-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.site-topbar .topbar-divider {
    color: rgba(255, 255, 255, 0.2);
    margin: 0 4px;
}

/* ==========================================================================
   MAIN SITE HEADER
   ========================================================================== */
.site-header {
    background-color: rgba(11, 30, 54, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1050;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
    background-color: rgba(7, 20, 36, 0.98);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
    border-bottom-color: rgba(229, 169, 59, 0.25);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 82px;
    transition: height 0.3s ease;
}

.site-header.scrolled .header-container {
    height: 72px;
}

/* Site Branding / Logo */
.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.site-logo a:hover {
    transform: translateY(-1px);
}

.site-logo-img {
    height: 52px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    transition: height 0.3s ease;
}

.site-header.scrolled .site-logo-img {
    height: 46px;
}

.site-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.site-logo-text .logo-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.site-logo-text .logo-title span {
    color: #e5a93b;
}

.site-logo-text .logo-subtitle {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #00a896;
    font-weight: 600;
}

/* ==========================================================================
   NAVIGATION MENU
   ========================================================================== */
.site-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    font-size: 15px;
    padding: 10px 0;
    position: relative;
    text-decoration: none;
    transition: color 0.25s ease;
    display: block;
    letter-spacing: 0.2px;
}

.nav-menu a:hover,
.nav-menu li.active > a,
.nav-menu .current-menu-item a {
    color: #e5a93b !important;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 2.5px;
    background-color: #e5a93b;
    border-radius: 2px;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:hover::after,
.nav-menu li.active > a::after,
.nav-menu .current-menu-item a::after {
    width: 100%;
}

/* ==========================================================================
   NAV ACTIONS (PHONE PILL, QUOTE BTN, TOGGLE)
   ========================================================================== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-phone-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    transition: all 0.2s ease;
}

.header-phone-pill:hover {
    background: rgba(229, 169, 59, 0.12);
    border-color: rgba(229, 169, 59, 0.4);
    transform: translateY(-1px);
}

.header-phone-pill .phone-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #00a896;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.header-phone-pill .phone-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.header-phone-pill .phone-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.header-phone-pill .phone-number {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.header-quote-btn {
    background: linear-gradient(135deg, #e5a93b 0%, #c48b26 100%) !important;
    color: #0b1e36 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 9px 22px !important;
    border-radius: 30px !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(229, 169, 59, 0.35);
    transition: all 0.25s ease !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.header-quote-btn:hover {
    background: linear-gradient(135deg, #f0ba54 0%, #d49931 100%) !important;
    color: #071526 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(229, 169, 59, 0.45);
}

/* ==========================================================================
   MOBILE HAMBURGER BUTTON
   ========================================================================== */
.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 42px;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.menu-toggle .hamburger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ==========================================================================
   MOBILE MENU OVERLAY
   ========================================================================== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 30, 54, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 99999;
    padding: 24px 20px 40px;
    overflow-y: auto;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    width: 42px;
    height: 42px;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background-color: #dc2626;
    border-color: #dc2626;
    transform: rotate(90deg);
}

.mobile-nav-list {
    list-style: none;
    text-align: center;
    margin: 35px 0 25px;
    padding: 0;
    width: 100%;
    max-width: 500px;
}

.mobile-nav-list li {
    margin-bottom: 18px;
}

.mobile-nav-list a {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    display: block;
    padding: 10px 16px;
    border-radius: 10px;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.mobile-nav-list a:hover,
.mobile-nav-list li.active a {
    color: #e5a93b;
    background-color: rgba(229, 169, 59, 0.1);
}

.mobile-menu-actions {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.mobile-menu-actions .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    text-align: center;
}

.mobile-contact-strip {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 420px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1199px) {
    .nav-menu {
        gap: 20px;
    }
    .nav-menu a {
        font-size: 14px;
    }
}

@media (max-width: 991px) {
    .nav-menu {
        display: none !important;
    }
    .menu-toggle {
        display: flex;
    }
    .header-container {
        height: 72px;
    }
    .site-logo-img {
        height: 44px;
    }
}

@media (max-width: 575px) {
    .site-topbar {
        display: none !important;
    }
    .header-container {
        height: 66px;
    }
    .site-logo-img {
        height: 40px;
    }
    .site-logo-text .logo-title {
        font-size: 17px;
    }
}
