/* 
 * Common Responsive Styles for KarsenNWelch Website
 * This file contains all responsive CSS that's shared across pages
 */

/* Header contact responsive styles */
.header-contact-item {
    display: inline-block;
    margin-right: 15px;
}

.header-contact-item a {
    color: inherit !important;
    text-decoration: none;
}

.header-contact-item .contact-text {
    margin-left: 5px;
}

@media (max-width: 767px) {
    .header-contact-item .email-text {
        display: inline !important;
        font-size: 0.9rem;
    }
    
    .col-md-12[style*="background-color:#0B2B54"] {
        padding: 4px 15px !important;
        text-align: center;
    }
    
    .header-contact-item {
        margin-right: 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 575px) {
    .header-contact-item .email-text {
        display: inline !important;
        font-size: 0.85rem;
    }
    
    .header-contact-item {
        margin-right: 8px;
        font-size: 0.85rem;
    }
    
    .col-md-12[style*="background-color:#0B2B54"] {
        padding: 4px 10px !important;
        height: auto !important;
        min-height: 35px;
    }
}

/* Responsive Logo Sizing */
.tj-header-3-bottom-logo img {
    max-width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

/* Desktop - default size */
@media (min-width: 1200px) {
    .tj-header-3-bottom-logo img {
        max-height: 80px;
        width: auto;
    }
}

/* Large tablets and small desktops */
@media (min-width: 992px) and (max-width: 1199px) {
    .tj-header-3-bottom-logo img {
        max-height: 70px;
        width: auto;
    }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 991px) {
    .tj-header-3-bottom-logo img {
        max-height: 60px;
        width: auto;
    }
}

/* Small tablets */
@media (min-width: 576px) and (max-width: 767px) {
    .tj-header-3-bottom-logo img {
        max-height: 50px;
        width: auto;
    }
}

/* Mobile phones */
@media (max-width: 575px) {
    .tj-header-3-bottom-logo img {
        max-height: 45px;
        width: auto;
    }
}

/* Mobile Menu Responsive Styles */
.tj-header-bottom-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.tj-header-3-bottom-logo {
    flex-shrink: 0;
}

.tj-header-bottom-right {
    display: flex;
    align-items: center;
}

/* Mobile menu button styling */
.tj-header-bottom-mobile-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    padding: 5px;
    cursor: pointer;
    position: relative;
    z-index: 10000;
    pointer-events: auto;
}

.tj-header-bottom-mobile-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #0B2B54;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.tj-header-bottom-mobile-btn:hover span {
    background-color: #003f7f;
}

/* Responsive header adjustments */
@media (max-width: 1199px) {
    .tj-header-bottom-left {
        display: none !important;
    }
    
    .tj-header-bottom-mobile-button {
        display: block !important;
    }
}

/* Ensure mobile menu and overlay are properly positioned */
.body-overlay {
    z-index: 9998 !important;
}

/* Ensure mobile menu logo is properly sized */
.hamburger_logo img {
    max-height: 80px;
    width: auto;
    height: auto;
}

.hamburger_logo {
    padding: 10px 0;
}

@media (max-width: 575px) {
    .hamburger_logo img {
        max-height: 70px;
    }
}

/* Style mobile menu items */
.hamburger_menu .mobile_menu {
    padding: 20px 0;
}

.hamburger_menu .mean-nav ul li a {
    color: #333;
    padding: 12px 25px;
    display: block;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    font-weight: 500;
}

.hamburger_menu .mean-nav ul li a:hover {
    color: #0B2B54;
    background-color: #f8f9fa;
}

/* Manual mobile navigation styles */
.manual-mobile-nav {
    padding: 20px 0;
}

.manual-mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.manual-mobile-nav ul li {
    border-bottom: 1px solid #eee;
}

.manual-mobile-nav ul li a {
    display: block;
    color: #333;
    padding: 15px 25px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.manual-mobile-nav ul li a:hover {
    color: #0B2B54;
    background-color: #f8f9fa;
    padding-left: 35px;
}

/* Ensure hamburger area has proper background */
.hamburger_wrapper {
    background-color: #ffffff;
    height: 100%;
    position: relative;
    z-index: 10;
}

/* Ensure hamburger slide animation works properly */
.hamburger-area {
    position: fixed !important;
    top: 0 !important;
    right: -500px !important;
    width: 450px !important;
    height: 100vh !important;
    z-index: 9999 !important;
    transition: right 0.3s ease-in-out !important;
    background-color: #ffffff !important;
}

.hamburger-area.opened {
    right: 0px !important;
}

@media (max-width: 575px) {
    .hamburger-area {
        width: 320px !important;
        right: -350px !important;
    }
}

@media (max-width: 767px) {
    .tj-header-bottom-wrapper {
        padding: 10px 15px;
    }
    
    .tj-header-3-bottom-logo {
        flex: 1;
    }
}

@media (max-width: 575px) {
    .tj-header-bottom-wrapper {
        padding: 8px 10px;
    }
    
    .tj-header-bottom-mobile-btn {
        width: 25px;
        height: 20px;
    }
    
    .tj-header-bottom-mobile-btn span {
        height: 2px;
    }
}

/* Active menu highlighting */
.mainmenu ul li a.active,
.mainmenu-3 ul li a.active {
    color: #0B2B54 !important;
    font-weight: bold !important;
    position: relative;
    padding-bottom: 10px !important;
}

.mainmenu ul li a.active::after,
.mainmenu-3 ul li a.active::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #0B2B54;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}