/* ============================================
   FENNEC FREIGHT - HEADER STYLES
   ============================================ */

/* CSS Variables */
:root {
    --primary: #053c23;
    --accent: #F1A128;
    --secondary: #e6eef4;
    --text: #000;
}

/* ============================================
   HEADER STYLES
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background:var(--primary);
    border-bottom: 1px solid var(--secondary);
    box-shadow: 0 1px 3px rgba(5, 60, 35, 0.04);
    transition: box-shadow 0.3s ease;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    position: relative;
}

/* ============================================
   BRAND STYLES
   ============================================ */

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    transition: opacity 0.2s ease;
    z-index: 1;
}

.brand:hover {
    opacity: 0.85;
}

.brand-logo {
    height: 48px;
    width: auto;
    display: block;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.brand:hover .brand-logo {
    transform: scale(1.05);
}

.brand-motto {
    background-color: #003C24;
    color: #F4A026;
    font-family: 'Oooh Baby', cursive;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    transition: all 0.2s ease;
    line-height: 1.2;
}



/* Desktop - Larger motto */
@media (min-width: 1200px) {
    .brand-motto {
        font-size: 18px;
        padding: 5px 10px;
       
    }
}

/* Tablet adjustments */
@media (max-width: 1190px) {
    .brand-motto {
        font-size: 18px;
        display: none;
    }
}

/* ============================================
   PRIMARY NAVIGATION
   ============================================ */

nav.primary-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 16px;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    font-family: "Aptos", sans-serif;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: calc(100% - 32px);
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* ============================================
   DROPDOWN MENU
   ============================================ */

.nav-dropdown {
    position: relative;
}

.nav-link-dropdown {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
}

.nav-link-dropdown i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-link-dropdown {
    background: rgba(255, 255, 255, 0.15);
}

.nav-dropdown:hover .nav-link-dropdown i,
.nav-dropdown.active .nav-link-dropdown i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(5, 60, 35, 0.12),
        0 2px 8px rgba(5, 60, 35, 0.08);
    min-width: 280px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    pointer-events: none;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    font-family: "Aptos", sans-serif;
    transition: all 0.2s ease;
    position: relative;
}

.dropdown-item i {
    color: var(--accent);
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.dropdown-item:hover {
    background: var(--secondary);
    color: var(--text);
    transform: translateX(4px);
}

.dropdown-item:hover i {
    color: var(--accent);
    transform: scale(1.1);
}

/* Mobile Dropdown */
.mobile-nav-dropdown {
    position: relative;
}

.mobile-nav-link-dropdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav-link-dropdown i {
    font-size: 12px;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.mobile-nav-dropdown.active .mobile-nav-link-dropdown i {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-left: 16px;
}

.mobile-nav-dropdown.active .mobile-dropdown-menu {
    max-height: 500px;
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    font-family: "Aptos", sans-serif;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.mobile-dropdown-item i {
    color: var(--accent);
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.mobile-dropdown-item:hover,
.mobile-dropdown-item:active {
    background: var(--secondary);
    color: var(--text);
}

/* ============================================
   WHATSAPP ICON
   ============================================ */

.wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.25),
        0 1px 3px rgba(37, 211, 102, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.wa::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.wa i {
    color: #fff;
    font-size: 24px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.wa:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4),
        0 2px 6px rgba(37, 211, 102, 0.25);
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
}

.wa:hover::before {
    width: 100%;
    height: 100%;
}

.wa:hover i {
    transform: scale(1.1);
}

.wa:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 3px 12px rgba(37, 211, 102, 0.3);
}

/* ============================================
   EMAIL/VCF ICON
   ============================================ */

.vcf-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F1A128;
    box-shadow: 0 3px 10px rgba(255, 122, 0, 0.25),
        0 1px 3px rgba(255, 122, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.vcf-email::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.vcf-email i {
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.vcf-email:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.4),
        0 2px 6px rgba(255, 122, 0, 0.25);
    background: #F1A128;
}

.vcf-email:hover::before {
    width: 100%;
    height: 100%;
}

.vcf-email:hover i {
    transform: scale(1.1);
}

.vcf-email:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 3px 12px rgba(255, 122, 0, 0.3);
}

.mobile-header-vcf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #F1A128;
    box-shadow: 0 3px 10px rgba(255, 122, 0, 0.25),
        0 1px 3px rgba(255, 122, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mobile-header-vcf::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.mobile-header-vcf i {
    color: #fff;
    font-size: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.mobile-header-vcf:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.4),
        0 2px 6px rgba(255, 122, 0, 0.25);
    background: linear-gradient(135deg, #F1A128 0%, #F1A128 100%);
}

.mobile-header-vcf:hover::before {
    width: 100%;
    height: 100%;
}

.mobile-header-vcf:hover i {
    transform: scale(1.1);
}

.mobile-header-vcf:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 3px 12px rgba(255, 122, 0, 0.3);
}

/* ============================================
   HEADER ACTIONS (Mobile)
   ============================================ */

.header-actions {
    display: none;
    align-items: center;
    gap: 12px;
}

.mobile-header-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.25),
        0 1px 3px rgba(37, 211, 102, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mobile-header-wa::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.mobile-header-wa i {
    color: #fff;
    font-size: 22px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.mobile-header-wa:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4),
        0 2px 6px rgba(37, 211, 102, 0.25);
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
}

.mobile-header-wa:hover::before {
    width: 100%;
    height: 100%;
}

.mobile-header-wa:hover i {
    transform: scale(1.1);
}

.mobile-header-wa:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 3px 12px rgba(37, 211, 102, 0.3);
}

/* ============================================
   HAMBURGER MENU
   ============================================ */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    min-width: 22px;
    min-height: 22px;
    gap: 5px;
    -webkit-tap-highlight-color: transparent;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ============================================
   MOBILE MENU - SIDE PANEL MODAL
   ============================================ */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    background: #fff;
    border-left: 1px solid var(--secondary);
    box-shadow: -4px 0 24px rgba(5, 60, 35, 0.08);
    overflow-y: auto;
    overflow-x: hidden;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.open {
    right: 0;
}

/* Backdrop overlay */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 60, 35, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
    pointer-events: none;
}

.mobile-menu-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-content {
    padding: 24px 20px;
    max-width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

/* Mobile menu header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--secondary);
}

.mobile-menu-brand {
    display: flex;
    align-items: center;
    transition: opacity 0.2s ease;
}

.mobile-menu-brand:hover {
    opacity: 0.85;
}

.mobile-menu-logo {
    height: 40px;
    width: auto;
    display: block;
    transition: transform 0.2s ease;
}

.mobile-menu-brand:hover .mobile-menu-logo {
    transform: scale(1.05);
}

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text);
    font-size: 22px;
    padding: 0;
}

.mobile-menu-close:hover {
    background: var(--secondary);
    color: var(--accent);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-radius: 8px;
    font-family: "Aptos", sans-serif;
    color: var(--text);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
    white-space: nowrap;
    min-height: 48px;
}

.mobile-nav-link::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: calc(100% - 32px);
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: transform 0.3s ease;
}

.mobile-nav-link:hover {
    background: rgba(5, 60, 35, 0.1);
    color: var(--text);
}

.mobile-nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.mobile-nav-link:active,
.mobile-nav-link:focus {
    outline: none;
    background: rgba(5, 60, 35, 0.1);
}

.mobile-actions {
    padding: 8px 0 20px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--secondary);
}

.mobile-wa {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    font-weight: 600;
    font-family: "Aptos", sans-serif;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    justify-content: center;
    width: 100%;
    min-height: 52px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.25),
        0 1px 3px rgba(37, 211, 102, 0.15);
    position: relative;
    overflow: hidden;
}

.mobile-wa::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.mobile-wa i {
    font-size: 22px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.mobile-wa span {
    position: relative;
    z-index: 1;
}

.mobile-wa:hover,
.mobile-wa:active,
.mobile-wa:focus {
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
    color: #fff;
    outline: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35),
        0 2px 6px rgba(37, 211, 102, 0.25);
}

.mobile-wa:hover::before,
.mobile-wa:active::before {
    width: 150%;
    height: 150%;
}

.mobile-wa:hover i {
    transform: scale(1.1);
}

.mobile-wa:active {
    transform: translateY(0);
    box-shadow: 0 3px 12px rgba(37, 211, 102, 0.3);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet and Below (max-width: 1024px) */
@media (max-width: 1024px) {
    nav.primary-nav {
        gap: 4px;
    }

    .nav-link {
        padding: 10px 12px;
        font-size: 14px;
    }

    .wa {
        width: 44px;
        height: 44px;
    }

    .wa i {
        font-size: 22px;
    }

    .vcf-email {
        width: 44px;
        height: 44px;
    }

    .vcf-email i {
        font-size: 20px;
    }
}

/* Desktop - Hide mobile menu */
@media (min-width: 901px) {
    .mobile-menu {
        display: none;
    }

    .mobile-menu-backdrop {
        display: none;
    }

    .hamburger.active {
        display: none;
    }
}

/* Mobile Navigation (max-width: 900px) */
@media (max-width: 900px) {
    nav.primary-nav {
        display: none;
    }

    .header-actions {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .site-header-inner {
        height: 64px;
        padding: 0 16px;
    }

    .brand-logo {
        height: 40px;
    }

    .brand-motto {
        font-size: 0.9rem;
        padding: 4px 10px;
    }

    .site-header {
        box-shadow: 0 2px 8px rgba(5, 60, 35, 0.06);
    }
}

/* Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
    .site-header-inner {
        height: 60px;
    }

    .brand-logo {
        height: 38px;
    }

    .brand-motto {
        font-size: 0.85rem;
        padding: 4px 8px;
    }

    .hamburger {
        width: 26px;
        height: 20px;
    }

    .hamburger span {
        height: 2.5px;
    }

    .mobile-header-wa {
        width: 40px;
        height: 40px;
    }

    .mobile-header-wa i {
        font-size: 20px;
    }

    .mobile-header-vcf {
        width: 40px;
        height: 40px;
    }

    .mobile-header-vcf i {
        font-size: 18px;
    }

    .mobile-menu-content {
        padding: 24px 20px;
    }

    .mobile-menu-header {
        padding-bottom: 18px;
        margin-bottom: 18px;
    }

    .mobile-menu-logo {
        height: 38px;
    }

    .mobile-nav-link {
        padding: 14px 16px;
        font-size: 16px;
        min-height: 48px;
    }
}

/* Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {
    .site-header-inner {
        height: 56px;
        padding: 0 12px;
    }

    .brand-logo {
        height: 36px;
    }

    .brand-motto {
        display: none;
    }

    .hamburger {
        width: 24px;
        height: 18px;
    }

    .hamburger span {
        height: 2px;
    }

    .header-actions {
        gap: 10px;
    }

    .mobile-header-wa {
        width: 40px;
        height: 40px;
    }

    .mobile-header-wa i {
        font-size: 20px;
    }

    .mobile-header-vcf {
        width: 40px;
        height: 40px;
    }

    .mobile-header-vcf i {
        font-size: 18px;
    }

    .mobile-menu-content {
        padding: 20px 16px;
    }

    .mobile-menu-header {
        padding-bottom: 16px;
        margin-bottom: 16px;
    }

    .mobile-menu-logo {
        height: 36px;
    }

    .mobile-menu-close {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .mobile-nav-link {
        padding: 12px 14px;
        font-size: 15px;
        min-height: 44px;
    }

    .mobile-actions {
        padding: 8px 0 16px;
    }

    .mobile-wa {
        padding: 14px 18px;
        font-size: 15px;
        min-height: 48px;
    }

    .mobile-wa i {
        font-size: 20px;
    }
}

/* Very Small Phones (max-width: 360px) */
@media (max-width: 360px) {
    .site-header-inner {
        height: 52px;
        padding: 0 10px;
    }

    .brand-logo {
        height: 32px;
    }

    .brand-motto {
        display: none;
    }

    .mobile-menu-content {
        padding: 18px 14px;
    }

    .mobile-menu-header {
        padding-bottom: 14px;
        margin-bottom: 14px;
    }

    .mobile-menu-logo {
        height: 34px;
    }

    .mobile-menu-close {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .mobile-nav-link {
        padding: 12px 14px;
        font-size: 15px;
        min-height: 42px;
    }
}
