/* CSS Document - RCS Apps - MOBILE FRIENDLY WITH HAMBURGER MENU */
:root {
    --primary-blue: #000033;
    --secondary-blue: #0D1845;
    --accent-orange: #F37436;
    --background-gray: #F6F6F6;
    --border-gray: #C9C9C9;
    --text-dark: #53564E;
    --gray-light: #F3F3F3;
    --gray-medium: #969696;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: var(--secondary-blue);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    text-align: center;
    background: var(--background-gray) url(images/bg.jpg) repeat-x top;
    line-height: 1.4;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
    text-decoration: underline;
    color: var(--gray-medium);
}

/* Main Layout */
#wrapper, #wrapper_mobile, #wrapper_hosp, #wrapper_barcode, 
#wrapper_software, #wrapper_inventory, #wrapper_contact, 
#wrapper_active, #wrapper_route, #wrapper_solutions, 
#wrapper_about, #wrapper_thank, #wrapper_arms {
    width: 1080px;
    margin: 19px auto 10px;
    padding: 10px 18px;
    background: var(--white);
    border: 5px solid var(--border-gray);
    text-align: left;
    position: relative;
    min-height: 500px;
}

/* Specific wrapper heights */
#wrapper_solutions { min-height: 500px; }
#wrapper_thank { min-height: 450px; }
#wrapper_arms { min-height: 7000px; }

/* Header & Navigation */
.header-container {
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.header-container img {
    float: left;
}

/* Desktop Navigation */
#cssmenu {
    float: right;
    margin: 20px 20px 0 0;
    font-size: 0;
}

#cssmenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#cssmenu li {
    display: inline-block;
    margin-left: 15px;
}

#cssmenu a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    color: var(--primary-blue);
    border-radius: 3px;
    transition: all 0.3s ease;
}

#cssmenu a:hover {
    background-color: var(--gray-light);
    text-decoration: none;
    transform: translateY(-1px);
}

/* Mobile Hamburger Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    color: var(--primary-blue);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 999;
    padding: 60px 20px 20px;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    margin-bottom: 10px;
    border-bottom: 1px solid var(--gray-light);
}

.mobile-menu a {
    display: block;
    padding: 15px;
    font-size: 18px;
    color: var(--primary-blue);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

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

.close-menu {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--primary-blue);
}

/* Content Sections */
.content-container, #subcontent {
    width: 100%;
    overflow: hidden;
}

.featured-section, .content-section {
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

/* Homepage Specific Styles */
.contentbox_front {
    clear: both;
    margin: 20px 0;
    padding-top: 10px;
}

/* Three Column Layout - FIXED HEADERS */
.header-row {
    width: 538px;
    margin-bottom: 10px;
}

.header-cell {
    width: 174px;
    text-align: center;
    padding-bottom: 5px;
}

.content-row {
    width: 538px;
    border-collapse: collapse;
}

.spacer-cell {
    width: 8px;
}

/* Column Content Styles */
#columns_1, #columns_3 {
    padding: 12px;
    background: var(--gray-light);
    width: 174px;
    vertical-align: top;
    border: 1px solid transparent;
}

#columns_2 {
    padding: 12px;
    border: 1px solid #DBDBDB;
    width: 174px;
    vertical-align: top;
    background: var(--white);
}

/* Content Text */
#columns_1 p, #columns_2 p, #columns_3 p {
    margin: 0 0 12px 0;
    line-height: 1.6;
    color: var(--text-dark);
}

#columns_1 br, #columns_2 br, #columns_3 br {
    display: block;
    margin: 4px 0;
}

/* Hide old header divs */
#headers_1, #headers_2, #headers_3 {
    display: none;
}

/* Main Content Table */
table[width="100%"] {
    width: 100% !important;
    border-collapse: collapse;
    margin: 15px 0;
}

table[width="100%"] td[width="50%"] {
    vertical-align: top;
    padding: 0;
}

/* Right Column Spotlight */
#homebar2 {
    width: 356px;
    float: right;
}

#spotlight {
    margin-bottom: 20px;
}

#spotlighthead {
    border-bottom: 2px solid #A8A8A8;
    margin-bottom: 12px;
    padding-bottom: 5px;
}

#spotlightcontent {
    border: 1px solid #DBDBDB;
    padding: 15px;
    background: var(--white);
}

.spotlighttext {
    font-size: 11px;
    line-height: 1.5;
}

.spotlighttext h3, .spotlighttext h4 {
    margin: 10px 0;
    color: var(--accent-orange);
    font-size: 14px;
}

/* Video Styles */
video {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 15px auto;
    border: 1px solid var(--border-gray);
}

/* Image Styles */
img {
    border: 0;
    max-width: 100%;
    height: auto;
}

/* Hide spacer images - use CSS instead */
img[src*="spacer.gif"] {
    display: none;
}

/* WOW Slider Compatibility */
#wowslider-container1 {
    margin: 0 auto;
}

.ws_images ul {
    margin: 0;
    padding: 0;
}

/* Footer */
#footer {
    width: 1080px;
    margin: 20px auto;
    text-align: center;
    padding: 20px 0;
    clear: both;
    border-top: 1px solid #ECECEC;
}

#homebar4 {
    padding: 20px;
    margin: 10px 0;
    border: 1px solid #ECECEC;
    background: var(--gray-light);
}

/* Text Content Improvements */
#footer div[align="center"] {
    color: var(--text-dark);
    line-height: 1.8;
    margin: 10px 0;
}

/* ===== MOBILE RESPONSIVE STYLES ===== */
@media (max-width: 1120px) {
    #wrapper, #wrapper_mobile, #wrapper_hosp, #wrapper_barcode, 
    #wrapper_software, #wrapper_inventory, #wrapper_contact, 
    #wrapper_active, #wrapper_route, #wrapper_solutions, 
    #wrapper_about, #wrapper_thank, #wrapper_arms, #footer {
        width: 95%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .header-row, .content-row {
        width: 100%;
        max-width: 538px;
    }
}

@media (max-width: 900px) {
    body {
        font-size: 14px;
    }
    
    .header-container img {
        float: none;
        display: block;
        margin: 0 auto 15px;
    }
    
    #cssmenu {
        float: none;
        text-align: center;
        margin: 0 auto 20px;
    }
    
    #cssmenu li {
        display: inline-block;
        margin: 0 8px 10px;
    }
    
    table[width="100%"] {
        display: block;
    }
    
    table[width="100%"] tr {
        display: block;
        margin-bottom: 20px;
    }
    
    table[width="100%"] td[width="50%"] {
        display: block;
        width: 100% !important;
    }
    
    #homebar2 {
        float: none;
        width: 100%;
        max-width: 356px;
        margin: 0 auto;
    }
    
    .header-row, .content-row {
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* Hide desktop menu, show hamburger */
    #cssmenu {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    #wrapper, #wrapper_mobile, #wrapper_hosp, #wrapper_barcode, 
    #wrapper_software, #wrapper_inventory, #wrapper_contact, 
    #wrapper_active, #wrapper_route, #wrapper_solutions, 
    #wrapper_about, #wrapper_thank, #wrapper_arms {
        padding: 15px;
        margin: 10px auto;
        width: 100%;
        border: 3px solid var(--border-gray);
    }
    
    /* Stack three columns vertically */
    .header-row, .content-row {
        display: block;
        width: 100% !important;
    }
    
    .header-row tr, .content-row tr {
        display: block;
    }
    
    .header-cell, #columns_1, #columns_2, #columns_3, .spacer-cell {
        display: block;
        width: 100% !important;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .spacer-cell {
        display: none;
    }
    
    #columns_1, #columns_2, #columns_3 {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    #footer {
        width: 100%;
        padding: 15px;
    }
    
    /* Adjust font sizes for mobile */
    body {
        font-size: 16px;
    }
    
    /* Mobile menu styles */
    .mobile-menu a {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    #wrapper, #wrapper_mobile, #wrapper_hosp, #wrapper_barcode, 
    #wrapper_software, #wrapper_inventory, #wrapper_contact, 
    #wrapper_active, #wrapper_route, #wrapper_solutions, 
    #wrapper_about, #wrapper_thank, #wrapper_arms {
        padding: 10px;
        margin: 5px auto;
        border: 2px solid var(--border-gray);
    }
    
    .header-container img {
        max-width: 180px;
        height: auto;
    }
    
    .mobile-menu a {
        font-size: 16px;
        padding: 12px;
    }
    
    video {
        width: 100%;
        height: auto;
    }
}

/* Print Styles */
@media print {
    #cssmenu, #homebar2, #homebar4, video, .menu-toggle {
        display: none;
    }
    
    body {
        background: none;
        color: #000;
        font-size: 12pt;
    }
    
    #wrapper {
        border: 1px solid #000;
        width: 100%;
        margin: 0;
        padding: 10px;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}

/* Focus Styles for Accessibility */
a:focus, button:focus {
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
}

/* Loading Optimizations */
img {
    loading: lazy;
}