/* ========================= HEADER CSS ========================= */


/* ----------------------------------------
   TOP HEADER
---------------------------------------- */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #ffffff;
    color: #0a0a0a;
    flex-wrap: wrap;
}

.top-header .logo {
    flex: 0 0 auto;
}

.top-header .logo img {
    width: 105px;
    height: auto;
    border-radius: 2px;
    object-fit: contain;
    margin-left: 90px;
}

.top-header .quote-btn {
    background-color: var(--brand);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    flex: 0 0 auto;
}

.top-header .quote-btn:hover {
    background-color: #e89a10;
    transform: translateY(-2px);
}


/* ----------------------------------------
   CONTACT INFO
---------------------------------------- */
.contact-info {
    display: flex;
    gap: 60px;
    align-items: center;
    justify-content: flex-end;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-direction: row;
}

.contact-item i {
    font-size: 18px;
    color: #ffffff;
    min-width: 18px;
    flex-shrink: 0;
    background-color: var(--brand);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-item div {
    display: flex;
    flex-direction: column;
    gap: 0px;
    line-height: 1.1;
}

.contact-item strong {
    font-size: 12px;
    color: #000000;
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 0;
}

.contact-item small {
    font-size: 13px;
    color: #000000;
    font-weight: 500;
    white-space: nowrap;
    margin-top: -14px;
}


/* ----------------------------------------
   NAVBAR
---------------------------------------- */
.nav {
    background-color: #1a2d4d;
    box-shadow: none;
    position: relative;
    z-index: 100;
    border-bottom: 1px solid rgba(249, 161, 27, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-left img {
    height: 65px;
    width: auto;
    display: none;
}

.nav-logo {
    height: 45px;
    width: auto;
    margin-right: 30px;
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
    flex: 1;
    margin-left: 0;
}

.nav-links > li > a {
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-links > li > a:hover {
    color: var(--brand);
}


/* ----------------------------------------
   DROPDOWN MENU
---------------------------------------- */
.nav-links .dropdown {
    position: relative;
}

.nav-links .dropdown > span {
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-links .dropdown > span:hover {
    color: var(--brand);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1a2d4d;
    list-style: none;
    padding: 15px 0;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 10px;
    border-top: 2px solid var(--brand);
}

.dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    padding: 0;
}

.submenu li a {
    display: block;
    padding: 12px 20px;
    color: #ffffff;
    font-size: 13px;
    transition: all 0.3s ease;
}

.submenu li a:hover {
    background-color: rgba(249, 161, 27, 0.1);
    color: var(--brand);
    padding-left: 25px;
}


/* ----------------------------------------
   NAV ICONS
---------------------------------------- */
.nav-icons {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-left: 30px;
    color: #ffffff;
    font-size: 16px;
}

.nav-icons i {
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-icons i:hover {
    color: var(--brand);
}


/* ----------------------------------------
   HAMBURGER MENU BUTTON
---------------------------------------- */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
    margin-left: 20px;
}


/* ----------------------------------------
   MOBILE PANEL OVERLAY
---------------------------------------- */
.panel-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 28, 52, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.panel-overlay.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
}


/* ----------------------------------------
   MOBILE PANEL
---------------------------------------- */
.mobile-panel {
    display: none;
    position: fixed;
    right: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 101;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.mobile-panel.open {
    transform: translateX(0);
    pointer-events: auto;
}

.mobile-panel .close-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
}


/* ----------------------------------------
   MOBILE MENU
---------------------------------------- */
.mobile-menu {
    list-style: none;
    padding: 80px 20px 20px;
}

.mobile-menu li {
    margin-bottom: 10px;
}

.mobile-menu a {
    display: block;
    padding: 12px 15px;
    color: var(--dark);
    font-weight: 600;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    background-color: var(--light);
    color: var(--brand);
}


/* ----------------------------------------
   MOBILE DROPDOWNS
---------------------------------------- */
.m-dropdown {
    margin-bottom: 0;
}

.m-trigger {
    width: 100%;
    background: none !important;
    border: none !important;
    padding: 12px 15px;
    text-align: left;
    color: var(--dark);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.m-trigger:hover {
    background-color: var(--light) !important;
    color: var(--brand);
}

.m-trigger:focus {
    outline: 2px solid var(--brand);
    outline-offset: -2px;
}

.toggle {
    font-size: 18px;
    font-weight: bold;
    margin-left: 10px;
}

.m-submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.4s ease;
    background-color: var(--light);
    padding: 0;
    opacity: 0;
    display: block;
    visibility: hidden;
}

.m-dropdown.open .m-submenu {
    max-height: 600px;
    overflow: visible;
    padding: 8px 0;
    opacity: 1;
    visibility: visible;
}

.m-submenu li {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
}

.m-submenu li a {
    display: block;
    padding: 10px 30px;
    color: var(--dark);
    font-size: 13px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.m-submenu li a:hover {
    color: var(--brand);
    padding-left: 35px;
}


/* ----------------------------------------
   RESPONSIVE - TABLET (max-width: 1024px)
---------------------------------------- */
@media (max-width: 1024px) {
    .nav-left img {
        display: block;
        height: 65px;
        width: auto;
        margin-right: 10px;
    }

    .nav-container {
        padding: 0 30px;
    }

    .nav-links {
        gap: 20px;
        margin-left: 0;
    }

    .contact-info {
        gap: 25px;
    }

    .contact-item {
        gap: 10px;
    }

    .top-header {
        padding: 18px 30px;
    }
}


/* ----------------------------------------
   RESPONSIVE - MOBILE (max-width: 768px)
---------------------------------------- */
@media (max-width: 768px) {
    .top-header {
        display: none;
    }

    .top-header .logo {
        margin-right: 0;
        width: auto;
        text-align: left;
    }

    .top-header .logo img {
        height: 50px;
        width: auto;
    }

    .top-header .quote-btn {
        width: 100%;
        padding: 16px 24px;
        font-size: 16px;
        text-align: center;
    }

    .contact-info {
        flex-direction: column;
        gap: 25px;
        width: 100%;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .contact-item {
        justify-content: flex-start;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .contact-item i {
        font-size: 24px;
    }

    .contact-item strong {
        font-size: 14px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .contact-item small {
        font-size: 13px;
        white-space: normal;
    }

    .nav-logo {
        display: block;
        height: 45px;
        width: auto;
        margin-right: 10px;
    }

    .nav {
        background-color: #1a2d4d;
        padding: 0;
    }

    .nav-container {
        padding: 15px 20px;
        height: auto;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .nav-links {
        display: none;
    }

    .nav-icons {
        display: none;
    }

    .hamburger {
        display: block;
        color: #ffffff;
        font-size: 28px;
    }

    .panel-overlay {
        display: block;
    }

    .mobile-panel {
        display: block;
    }
}


/* ----------------------------------------
   🔥 COMPREHENSIVE MOBILE TOUCH FIX
---------------------------------------- */

/* Enable all buttons and interactive elements */
button,
input,
select,
textarea,
a,
[role="button"] {
    pointer-events: auto !important;
}

/* Disable overlay from blocking touches */
.panel-overlay {
    pointer-events: none !important;
}

.panel-overlay.show {
    pointer-events: auto !important;
}

/* Nav and header always interactive */
.nav,
.top-header {
    pointer-events: auto !important;
}

/* Mobile panel only interactive when open */
.mobile-panel {
    pointer-events: none !important;
}

.mobile-panel.open {
    pointer-events: auto !important;
}

/* Ensure all interactive content is touchable */
.nav *,
.top-header *,
.footer * {
    pointer-events: auto !important;
}

/* Allow body and main content to receive touches */
body,
main,
section,
div {
    pointer-events: auto;
}
