/* Final Mile - Custom CSS */
/* Based on Divi Theme Styles */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif;
    font-size: 14px;
    line-height: 1.7em;
    color: #666;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 300;
    color: #333;
    line-height: 1.4em;
    margin: 0 0 20px;
}

h1 { font-size: 30px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ab0000;
}

p {
    margin: 0 0 1em;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 30px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Header */
#main-header {
    background-color: #111111;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    transition: all 0.4s ease;
}

#main-header.et-fixed-header {
    padding: 10px 0;
}

.et_menu_container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.logo_container {
    display: flex;
    align-items: center;
}

#logo {
    max-height: 50px;
    width: auto;
}

/* Navigation */
#et-top-navigation {
    display: flex;
    align-items: center;
}

#top-menu-nav {
    display: block;
}

#top-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

#top-menu > li {
    position: relative;
    padding: 0 20px;
}

#top-menu > li > a {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 20px 0;
    display: block;
    transition: opacity 0.3s ease;
}

#top-menu > li > a:hover,
#top-menu > li.current-menu-item > a {
    opacity: 0.7;
}

/* Dropdown Menu */
.sub-menu {
    list-style: none;
    margin: 0;
    padding: 20px 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #111111;
    min-width: 240px;
    display: none;
    z-index: 9999;
    border-top: 3px solid #ab0000;
}

.sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: #ffffff;
    font-size: 13px;
    transition: all 0.3s ease;
}

.sub-menu li a:hover {
    background-color: #ab0000;
    color: #fff;
}

.menu-item-has-children:hover .sub-menu {
    display: block;
}

/* Mobile Menu */
#et_mobile_nav_menu {
    display: none;
}

.mobile_menu_bar_toggle {
    cursor: pointer;
    padding: 10px;
    font-size: 32px;
    color: #ffffff;
}

.mobile_menu_bar_toggle::before {
    content: "\2630";
}

#mobile_menu {
    display: none;
    position: fixed;
    top: 66px;
    right: 0;
    width: 300px;
    height: calc(100vh - 66px);
    background-color: #ab0000;
    padding: 20px;
    list-style: none;
    margin: 0;
    overflow-y: auto;
}

#mobile_menu li {
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

#mobile_menu li a {
    display: block;
    padding: 15px 10px;
    color: #ffffff;
    font-size: 14px;
}

/* Sections */
.et_pb_section {
    padding: 54px 0;
    position: relative;
}

.et_pb_fullwidth_section {
    padding: 0;
}

.et_pb_row {
    max-width: 1080px;
    margin: 0 auto;
    padding: 27px 15px;
}

.et_pb_column {
    float: left;
}

.et_pb_column_4_4 { width: 100%; }
.et_pb_column_1_2 { width: 50%; padding: 0 15px; }
.et_pb_column_1_3 { width: 33.333%; padding: 0 15px; }

/* Slider */
.et_pb_slider {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    width: 100%;
}

.et_pb_slides {
    position: relative;
    height: 100vh;
    width: 100%;
}

.et_pb_slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.et_pb_slide.et-pb-active-slide {
    position: relative;
    opacity: 1;
    height: 100vh;
}

.et_parallax_bg_wrap {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.et_parallax_bg {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.et_pb_slide_overlay_container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1;
}

.et_pb_container {
    position: relative;
    z-index: 2;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 30px;
}

.et_pb_slide_description {
    text-align: center;
    padding: 20px;
}

.et_pb_slide_title {
    color: #ffffff;
    font-size: 46px;
    font-weight: 600;
    margin-bottom: 20px;
}

.et_pb_slide_content {
    color: #ffffff;
    font-size: 16px;
}

/* Full Height Section */
.full-height-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Text Modules */
.et_pb_text {
    margin-bottom: 30px;
}

.et_pb_text_align_center {
    text-align: center;
}

.et_pb_bg_layout_dark,
.et_pb_bg_layout_dark h1,
.et_pb_bg_layout_dark h2,
.et_pb_bg_layout_dark h3,
.et_pb_bg_layout_dark h4,
.et_pb_bg_layout_dark p {
    color: #ffffff;
}

/* Blurb Module (Service Boxes) */
.et_pb_blurb {
    text-align: center;
    margin-bottom: 30px;
}

.et_pb_main_blurb_image {
    margin-bottom: 20px;
}

.service-icon {
    font-size: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #232323;
    border: 3px solid #ffffff;
    color: #ffffff;
    transition: all 0.3s ease;
}

.et_pb_blurb:hover .service-icon {
    background-color: #ab0000;
    transform: scale(1.05);
}

.et_pb_module_header {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
}

.et_pb_module_header a {
    color: inherit;
}

.et_pb_blurb_description {
    line-height: 1.5em;
}

.et_pb_blurb_description p {
    margin: 0 0 5px;
}

/* CTA / Promo */
.et_pb_promo {
    padding: 40px;
    text-align: center;
}

.et_pb_button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    border: 2px solid #ffffff;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.et_pb_button:hover {
    background: #ffffff;
    color: #ab0000;
}

/* Section Backgrounds */
.section-red {
    background: radial-gradient(ellipse at center, rgba(171,0,0,1) 0%, rgba(102,2,2,1) 100%);
}

.section-black {
    background: radial-gradient(ellipse at center, rgba(43,43,43,1) 0%, rgba(0,0,0,1) 100%);
}

/* Page Header with Background */
.page-header-section {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: 66px;
}

.page-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0,0,0,0.73);
}

.page-header-content h1 {
    color: #ffffff;
    font-size: 34px;
    line-height: 1.6em;
    margin-bottom: 20px;
}

.page-header-content p {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.8em;
}

/* Footer */
#main-footer {
    margin-top: auto;
}

#footer-bottom {
    background-color: #000000;
    padding: 30px 0;
}

#footer-info {
    color: #b7b7b7;
    font-size: 12px;
    text-align: center;
}

#footer-info a {
    color: #b7b7b7;
}

#footer-info a:hover {
    color: #ffffff;
}

/* Contact CTA Section */
.contact-cta-section {
    background-color: #ab0000;
    padding: 60px 0;
    text-align: center;
}

.contact-cta-section h2 {
    color: #ffffff;
    font-size: 26px;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Services Grid */
.services-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.services-row .et_pb_blurb {
    padding: 15px;
}

.services-row .col-3 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.services-row .col-2 {
    flex: 0 0 50%;
    max-width: 50%;
}

/* Main Content Area - Add padding for fixed header */
.home #main-content {
    padding-top: 0;
}

#main-content {
    padding-top: 66px;
}

/* Responsive */
@media (max-width: 980px) {
    #top-menu-nav {
        display: none;
    }

    #et_mobile_nav_menu {
        display: block;
    }

    .et_pb_column_1_2,
    .et_pb_column_1_3 {
        width: 100%;
        padding: 0;
        margin-bottom: 30px;
        float: none;
    }

    .services-row .col-3,
    .services-row .col-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .full-height-section {
        min-height: auto;
        padding: 80px 20px;
    }

    .et_pb_slide_title {
        font-size: 28px;
    }

    .et_pb_slider {
        min-height: 70vh;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 15px;
    }

    h1 { font-size: 24px; }
    h2 { font-size: 20px; }

    .et_pb_slide_title {
        font-size: 22px;
    }

    .page-header-content h1 {
        font-size: 24px;
    }

    .page-header-content {
        padding: 20px;
    }
}

/* Custom Scrollbar */
body::-webkit-scrollbar {
    width: 0.5em;
}

body::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}

body::-webkit-scrollbar-thumb {
    background-color: #ab0000;
    outline: 1px solid slategrey;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-white { color: #ffffff; }
.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
