/* Custom Corporate Styles */
body {
    color: #2d2d2c;
    font-family: 'Open Sans', Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: #2d2d2c;
}

/* Header Text Color Update */
.header .header-navigation > ul > li > a {
    color: #2d2d2c;
    font-weight: 600;
}

/* Footer Background Override */
.pre-footer {
    background-color: #2d2d2c;
    color: #f0f0f0;
}

.pre-footer h2 {
    color: #ffffff;
}

.footer {
    background-color: #1a1a19;
    color: #a0a0a0;
}

/* Base link color fallback if not covered by red.css */
a {
    color: #e6400c;
}
a:hover {
    color: #cc2000;
}

/* Make top bar fit all items on one line */
.pre-header .container {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    text-align: center;
}

.pre-header .additional-shop-info ul li {
    font-size: 11px;
    margin-right: 8px;
}

.pre-header .additional-shop-info ul li:last-child {
    margin-right: 0;
}

@media (max-width: 767px) {
    .pre-header {
        display: none !important;
    }
}

/* Mobile Footer (Pre-Footer) Optimizations */
@media (max-width: 767px) {
    .pre-footer .col-sm-6 {
        text-align: center;
        margin-bottom: 40px !important;
    }
    .pre-footer h4 {
        border-left: none !important; /* Remove the left-line on mobile */
        border-bottom: 2px solid; /* Keep the color from the inline style or set it */
        display: inline-block;
        padding-left: 0 !important;
        padding-bottom: 5px;
        margin-bottom: 15px !important;
    }
    /* Set specific colors for each office's bottom border on mobile to match desktop design */
    .pre-footer .col-sm-6:nth-child(1) h4 { border-bottom-color: #e6400c; }
    .pre-footer .col-sm-6:nth-child(2) h4 { border-bottom-color: #de2910; }
    .pre-footer .col-sm-6:nth-child(3) h4 { border-bottom-color: #ff0000; }
    .pre-footer .col-sm-6:nth-child(4) h4 { border-bottom-color: #2d2a4a; }

    .pre-footer .list-inline {
        text-align: center;
    }
    .pre-footer .list-inline li {
        display: block !important;
        margin: 10px 0 !important;
        padding: 0;
    }
    .pre-footer hr {
        margin: 20px 0 !important;
    }
}

/* Constrain slider to 1350px to match image width */
.page-slider {
    max-width: 1350px;
    margin: 0 auto;
}

/* Constrain slider subtitle text width for better readability without forcing alignment */
.carousel-slider .carousel-subtitle-v7 {
    max-width: 650px;
    white-space: normal;
}

/* Fix multiple active highlights in navigation sub-menus */
.header-navigation .dropdown-menu > li.active > a {
    background: transparent !important;
    color: #e6400c !important;
    font-weight: 700;
}

.header-navigation .dropdown-menu > li > a:hover {
    background: #e6400c !important;
    color: #fff !important;
}