/* Navigation & Top Bar Styles - Enhanced Font Sizes */

/* ================================ */
/* TOP BAR SECTION */
/* ================================ */

.marshall-home-topbar {
    background-color: #5ca7db;
    padding: 10px 0; /* Increased from 8px */
    font-family: 'Lancelot', cursive;
    position: relative;
    z-index: 200;
}

.marshall-home-topbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px; /* Increased from 15px */
}

.marshall-home-topbar-text {
    color: #fff;
    font-size: 19px; /* Increased from 18px */
    font-weight: 500;
    letter-spacing: 0.5px;
}

.marshall-home-topbar-cards {
    height: 22px; /* Increased from 20px */
    width: auto;
    object-fit: contain;
}

/* ================================ */
/* HEADER SECTION */
/* ================================ */

.marshall-home-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 18px 0; /* Increased from 15px */
    position: relative;
    z-index: 100;
    font-family: 'Lancelot', cursive;
}

.marshall-home-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.marshall-home-logo {
    display: flex;
    align-items: center;
}

.marshall-home-logo a {
    display: block;
    line-height: 0;
}

.marshall-home-logo img {
    max-height: 55px; /* Increased from 50px */
    width: auto;
    display: block;
}

/* Contact Button */
.marshall-home-header-cta {
    display: flex;
    align-items: center;
}

.marshall-home-btn-contact {
    background-color: #000;
    color: #fff;
    padding: 14px 24px; /* Increased from 12px 20px */
    border-radius: 8px;
    text-decoration: none;
    font-size: 17px; /* Increased from 16px */
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.marshall-home-btn-contact:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ================================ */
/* DESKTOP NAVIGATION */
/* ================================ */

.marshall-home-nav {
    display: flex;
    align-items: center;
}

.marshall-home-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 35px; /* Increased from 30px */
}

.marshall-home-nav-item {
    position: relative;
}

.marshall-home-nav-link {
    color: #333;
    text-decoration: none;
    font-size: 19px; /* Increased from 18px */
    font-weight: 500;
    padding: 12px 0; /* Increased from 10px */
    display: flex;
    align-items: center;
    gap: 10px; /* Increased from 8px */
    transition: color 0.3s ease;
}

.marshall-home-nav-link:hover {
    color: #5ca7db;
}

.marshall-home-nav-link i {
    font-size: 13px; /* Increased from 12px */
    transition: transform 0.3s ease;
}

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

/* Mega Menu */
.marshall-home-mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 30px; /* Increased from 25px */
    min-width: 320px; /* Increased from 300px */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.marshall-home-nav-dropdown:hover .marshall-home-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.marshall-home-mega-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px; /* Increased from 8px */
}

.marshall-home-mega-menu-link {
    color: #333;
    text-decoration: none;
    font-size: 17px; /* Increased from 16px */
    font-weight: 500;
    padding: 10px 15px; /* Increased from 8px 12px */
    border-radius: 4px;
    transition: all 0.3s ease;
    display: block;
}

.marshall-home-mega-menu-link:hover {
    background-color: #f8f9fa;
    color: #5ca7db;
}

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

.marshall-home-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px; /* Increased from 6px */
    z-index: 1002;
    position: relative;
    width: 38px; /* Increased from 35px */
    height: 38px; /* Increased from 35px */
    justify-content: center;
    align-items: center;
}

.marshall-home-hamburger {
    display: flex;
    flex-direction: column;
    width: 22px; /* Increased from 20px */
    height: 17px; /* Increased from 15px */
    position: relative;
}

.marshall-home-hamburger-line {
    width: 100%;
    height: 2.5px; /* Increased from 2px */
    background-color: #333;
    border-radius: 1px;
    transition: all 0.3s ease;
    transform-origin: center;
    margin-bottom: 4px; /* Increased from 3px */
}

.marshall-home-hamburger-line:last-child {
    margin-bottom: 0;
}

/* Hamburger to X Animation */
.marshall-home-mobile-toggle.active .marshall-home-hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px); /* Adjusted for larger size */
}

.marshall-home-mobile-toggle.active .marshall-home-hamburger-line:nth-child(2) {
    opacity: 0;
}

.marshall-home-mobile-toggle.active .marshall-home-hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px); /* Adjusted for larger size */
}

/* ================================ */
/* MOBILE NAVIGATION OVERLAY */
/* ================================ */

.marshall-home-mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: #fff;
    z-index: 1001;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.marshall-home-mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Header */
.marshall-home-mobile-nav-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px; /* Increased from 25px */
    border-bottom: 1px solid #f0f0f0;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1002;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.marshall-home-mobile-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.marshall-home-mobile-logo img {
    max-height: 55px; /* Increased from 50px */
    width: auto;
}

/* Mobile Close Button */
.marshall-home-mobile-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px; /* Increased from 8px */
    width: 38px; /* Increased from 35px */
    height: 38px; /* Increased from 35px */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1003;
}

.marshall-home-mobile-close::before,
.marshall-home-mobile-close::after {
    content: '';
    position: absolute;
    width: 22px; /* Increased from 20px */
    height: 2.5px; /* Increased from 2px */
    background-color: #333;
    border-radius: 1px;
}

.marshall-home-mobile-close::before {
    transform: rotate(45deg);
}

.marshall-home-mobile-close::after {
    transform: rotate(-45deg);
}

/* Mobile Navigation Content */
.marshall-home-mobile-nav-content {
    padding: 35px 0 55px; /* Increased from 30px 0 50px */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100vh - 100px);
}

.marshall-home-mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 420px; /* Increased from 400px */
}

.marshall-home-mobile-nav-item {
    width: 100%;
}

.marshall-home-mobile-nav-item:nth-child(odd) {
    background-color: #f8f9fa;
}

.marshall-home-mobile-nav-item:nth-child(even) {
    background-color: #fff;
}

.marshall-home-mobile-nav-link {
    color: #333;
    text-decoration: none;
    font-size: 19px; /* Increased from 18px */
    font-weight: 500;
    padding: 20px 35px; /* Increased from 18px 30px */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 56px; /* Increased from 52px */
}

.marshall-home-mobile-nav-link:hover {
    color: #5ca7db;
    background-color: rgba(92, 167, 219, 0.1);
}

.marshall-home-mobile-nav-link i {
    margin-left: 10px; /* Increased from 8px */
    font-size: 15px; /* Increased from 14px */
    transition: transform 0.3s ease;
}

.marshall-home-mobile-contact {
    background-color: #000 !important;
    color: #fff !important;
    font-weight: 600;
    margin: 30px 20px 0; /* Increased from 25px */
    border-radius: 8px;
    border-bottom: none !important;
}

.marshall-home-mobile-contact:hover {
    background-color: #333 !important;
    color: #fff !important;
}

/* Mobile Submenu */
.marshall-home-mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #e9ecef;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.marshall-home-mobile-submenu.active {
    max-height: 900px;
}

.marshall-home-mobile-submenu li:nth-child(odd) {
    background-color: #e9ecef;
}

.marshall-home-mobile-submenu li:nth-child(even) {
    background-color: #dee2e6;
}

.marshall-home-mobile-submenu-link {
    color: #555;
    text-decoration: none;
    font-size: 19px; /* Increased from 18px */
    font-weight: 500;
    padding: 20px 55px; /* Increased from 18px 50px */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 58px; /* Increased from 54px */
}

.marshall-home-mobile-submenu-link:hover {
    background-color: rgba(92, 167, 219, 0.2);
    color: #5ca7db;
}

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

/* ================================ */
/* BODY STATES */
/* ================================ */

body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.marshall-home-header.mobile-menu-active {
    visibility: hidden;
}

/* ================================ */
/* TABLET STYLES (768px and below) */
/* ================================ */

@media (max-width: 768px) {
    /* Top Bar */
    .marshall-home-topbar {
        padding: 8px 0; /* Increased from 6px */
    }
    
    .marshall-home-topbar-container {
        padding: 0 20px; /* Increased from 15px */
        gap: 15px; /* Increased from 12px */
    }
    
    .marshall-home-topbar-text {
        font-size: 17px; /* Increased from 16px */
    }
    
    .marshall-home-topbar-cards {
        height: 20px; /* Increased from 18px */
    }

    /* Header */
    .marshall-home-header {
        padding: 15px 0; /* Increased from 12px */
    }
    
    .marshall-home-header-container {
        padding: 0 20px; /* Increased from 15px */
    }
    
    .marshall-home-logo img {
        max-height: 45px; /* Increased from 40px */
    }
    
    /* Hide Desktop Nav */
    .marshall-home-nav,
    .marshall-home-header-cta {
        display: none;
    }
    
    /* Show Mobile Nav */
    .marshall-home-mobile-toggle {
        display: flex;
    }
    
    .marshall-home-mobile-nav {
        display: block;
    }
    
    /* Mobile Toggle Adjustments */
    .marshall-home-mobile-toggle {
        width: 36px;
        height: 36px;
        padding: 7px;
    }
    
    .marshall-home-hamburger {
        width: 20px;
        height: 15px;
    }
    
    .marshall-home-hamburger-line {
        height: 2px;
        margin-bottom: 3px;
    }
}

/* ================================ */
/* MOBILE STYLES (480px and below) */
/* ================================ */

@media (max-width: 480px) {
    /* Hide Top Bar Completely */
    .marshall-home-topbar {
        display: none;
    }

    /* Header */
    .marshall-home-header {
        padding: 12px 0; /* Increased from 10px */
    }
    
    .marshall-home-header-container {
        padding: 0 20px; /* Increased from 10px for small margins */
    }
    
    .marshall-home-logo img {
        max-height: 40px; /* Increased from 35px */
    }
    
    /* Mobile Nav Adjustments */
    .marshall-home-mobile-nav-header {
        padding: 22px 20px; /* Increased from 18px 15px */
    }
    
    .marshall-home-mobile-logo img {
        max-height: 50px; /* Increased from 45px */
    }
    
    .marshall-home-mobile-close {
        right: 20px; /* Increased from 15px */
        width: 35px; /* Increased from 32px */
        height: 35px; /* Increased from 32px */
    }
    
    .marshall-home-mobile-close::before,
    .marshall-home-mobile-close::after {
        width: 20px; /* Increased from 18px */
    }
    
    .marshall-home-mobile-nav-content {
        padding: 25px 0 40px; /* Increased from 20px 0 35px */
    }
    
    .marshall-home-mobile-nav-link {
        font-size: 18px; /* Increased from 17px */
        padding: 18px 30px; /* Increased from 16px 25px */
        min-height: 54px; /* Increased from 50px */
    }
    
    .marshall-home-mobile-submenu-link {
        font-size: 16px; /* Increased from 15px */
        padding: 16px 45px; /* Increased from 14px 40px */
        min-height: 50px; /* Increased from 46px */
    }
    
    .marshall-home-mobile-contact {
        margin: 25px 20px 0; /* Increased from 20px 15px 0 */
    }
    
    /* Hamburger Adjustments */
    .marshall-home-mobile-toggle {
        width: 34px;
        height: 34px;
        padding: 6px;
    }
    
    .marshall-home-hamburger {
        width: 19px; /* Increased from 18px */
        height: 14px; /* Increased from 13px */
    }
    
    .marshall-home-hamburger-line {
        height: 2px;
        margin-bottom: 3px; /* Increased from 2px */
    }
    
    .marshall-home-hamburger-line:last-child {
        margin-bottom: 0;
    }
}

/* ================================ */
/* EXTRA SMALL MOBILE (≤ 360px) */
/* ================================ */

@media (max-width: 360px) {
    .marshall-home-header-container {
        padding: 0 18px; /* Better margins for extra small screens */
    }
    
    .marshall-home-logo img {
        max-height: 38px;
    }
    
    .marshall-home-mobile-nav-header {
        padding: 20px 18px;
    }
    
    .marshall-home-mobile-logo img {
        max-height: 48px;
    }
    
    .marshall-home-mobile-close {
        right: 18px;
    }
    
    .marshall-home-mobile-nav-link {
        font-size: 17px;
        padding: 16px 25px;
        min-height: 52px;
    }
    
    .marshall-home-mobile-submenu-link {
        font-size: 15px;
        padding: 14px 40px;
        min-height: 48px;
    }
    
    .marshall-home-mobile-contact {
        margin: 22px 18px 0;
    }
}