/* Base Layout */

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

.container {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 0px;
}

/* Navigation Layout */
.main-navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.nav-brand {
    margin-bottom: 2rem;
    text-align: center;
}

.logo-mobile {
    display: none;
    max-width: 200px;
    height: auto;
}

.logo-desktop {
    max-width: 100%;
    height: auto;
}

.nav-menu {
    list-style: none;
    padding: 0;
    /* margin: 2rem 0; */
    flex-grow: 1;
}

/* .nav-item {
    margin: 1rem 0;
} */

.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #ec1c24;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: auto;
    padding: 1rem 0;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
}

.social-link.facebook {
    background: #3b5998;
}

.social-link.email {
    background: #000;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}
/** Positioning CSS **/
#callnowbutton {
    display: none;
}

@media screen and (max-width:650px) {

    #callnowbutton:not(.cnb-displaymode),
    #callnowbutton.cnb-displaymode-mobile-only {
        display: block;
        position: fixed;
        text-decoration: none;
    }

    #callnowbutton.cnb-full.cnb-displaymode-mobile-only {
        display: flex;
    }
}

@media screen and (min-width:650px) {
    #callnowbutton.cnb-displaymode-desktop-only {
        display: block;
        position: fixed;
        text-decoration: none;
    }

    #callnowbutton.cnb-full.cnb-displaymode-desktop-only {
        display: flex;
    }
}

@media screen {
    #callnowbutton.cnb-displaymode-always {
        display: block;
        position: fixed;
        text-decoration: none;
    }

    #callnowbutton.cnb-full.cnb-displaymode-always {
        display: flex;
    }
}

/** Layout CSS **/
#callnowbutton.cnb-full {
    justify-content: center;
    align-items: center;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
    width: 100%;
    left: 0;
    height: 60px;
}

.cnb-full.cnb-full-bottom {
    bottom: 0;
}

.cnb-full.cnb-full-top {
    top: 0;
}

#callnowbutton.cnb-single {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    background-position: center;
    background-size: 35px 35px;
    background-repeat: no-repeat;
}

.cnb-single.cnb-middle {
    bottom: 15px;
    left: 50%;
    margin-left: -28px;
}

.cnb-single.cnb-left {
    bottom: 15px;
    left: 20px;
}

.cnb-single.cnb-right {
    bottom: 5px;
    right: 80px;
}

.cnb-single.cnb-mleft {
    top: 50%;
    margin-top: -28px;
    left: 20px;
}

.cnb-single.cnb-mright {
    top: 50%;
    margin-top: -28px;
    right: 20px;
}

.cnb-single.cnb-tleft {
    top: 15px;
    left: 20px;
}

.cnb-single.cnb-tmiddle {
    top: 15px;
    left: 50%;
    margin-left: -28px;
}

.cnb-single.cnb-tright {
    top: 15px;
    right: 20px;
}

/* Don't show a label with top and bottom middle positions */
#callnowbutton.cnb-single.cnb-middle span,
#callnowbutton.cnb-single.cnb-tmiddle span {
    display: none;
}

.cnb-single.cnb-left span,
.cnb-single.cnb-mleft span,
.cnb-single.cnb-tleft span {
    left: 68px;
}

.cnb-single.cnb-right span,
.cnb-single.cnb-mright span,
.cnb-single.cnb-tright span {
    right: 68px;
}

.cnb-single.cnb-text span {
    -moz-osx-font-smoothing: grayscale;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    display: block;
    width: auto;
    background-color: rgba(70, 70, 70, .9);
    position: absolute;
    border-radius: 2px;
    font-family: helvetica, arial, sans-serif;
    padding: 6px 8px;
    font-size: 13px;
    font-weight: 700;
    color: #ECECEC;
    top: 15px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
    word-break: keep-all;
    line-height: 1em;
    text-overflow: ellipsis;
    /* vertical-align: middle; */
    white-space: nowrap;
}

.cnb-single:not(.cnb-text) span {
    display: none;
}

.cnb-full.cnb-text {
    text-align: center;
    color: #FFF;
    font-weight: 600;
    font-size: 120%;
    overflow: hidden;
    white-space: nowrap;
}

.cnb-full.cnb-zoom-110 img,
.cnb-full.cnb-zoom-120 img,
.cnb-full.cnb-zoom-130 img {
    transform-origin: right;
}

.cnb-single.cnb-zoom-70,
.cnb-full.cnb-zoom-70 img {
    transform: scale(0.7);
}

.cnb-single.cnb-zoom-80,
.cnb-full.cnb-zoom-80 img {
    transform: scale(0.8);
}

.cnb-single.cnb-zoom-90,
.cnb-full.cnb-zoom-90 img {
    transform: scale(0.9);
}

.cnb-single.cnb-zoom-110,
.cnb-full.cnb-zoom-110 img {
    transform: scale(1.1);
}

.cnb-single.cnb-zoom-120,
.cnb-full.cnb-zoom-120 img {
    transform: scale(1.2);
}

.cnb-single.cnb-zoom-130,
.cnb-full.cnb-zoom-130 img {
    transform: scale(1.3);
}

.cnb-full.cnb-zoom-70 span {
    font-size: 70%;
}

.cnb-full.cnb-zoom-80 span {
    font-size: 80%;
}

.cnb-full.cnb-zoom-90 span {
    font-size: 90%;
}

.cnb-full.cnb-zoom-110 span {
    font-size: 110%;
}

.cnb-full.cnb-zoom-120 span {
    font-size: 120%;
}

.cnb-full.cnb-zoom-130 span {
    font-size: 130%;
}

.cnb-zindex-10 {
    z-index: 2147483647;
}

.cnb-zindex-9 {
    z-index: 214748365;
}

.cnb-zindex-8 {
    z-index: 21474836;
}

.cnb-zindex-7 {
    z-index: 2147484;
}

.cnb-zindex-6 {
    z-index: 214748;
}

.cnb-zindex-5 {
    z-index: 21475;
}

.cnb-zindex-4 {
    z-index: 2147;
}

.cnb-zindex-3 {
    z-index: 215;
}

.cnb-zindex-2 {
    z-index: 21;
}

.cnb-zindex-1 {
    z-index: 2;
}
/* Responsive Layout */
@media (max-width: 768px) {
    #callnowbutton.cnb-displaymode-desktop-only {
        display: block;
        position: fixed;
        text-decoration: none;
    }

    #callnowbutton.cnb-full.cnb-displaymode-desktop-only {
        display: flex;
    }
    body {
        padding-left: 0;
        padding-top: 70px; /* Height of mobile nav */
    }

    .main-navigation {
        width: 100%;
        height: auto;
        padding: 1rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .nav-brand {
        margin: 0;
    }

    .logo-mobile {
        display: block;
        max-height: 50px;
        width: auto;
    }

    .logo-desktop {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        margin: 0;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

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

    .social-links {
        display: none;
    }
}

/* Section Layout */
section {
    /* margin-top: 100px; */
    padding: 0 !important;
    width: 100%;
}
section#home {
    margin-top: 0px;
}
section#testimonials {
    margin-top: -20px;
}

.section-header {
    /* padding-top: 3rem; */
    /* margin-bottom: 2rem; */
    text-align: center;
}

.footer-divider {
    border-top: 2px solid #ececec;
    margin-bottom: 2rem;
}

#footer {
    padding: 2.5rem 0 1.5rem 0;
    background: #222;
    color: #fff;
    text-align: center;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
}

/* Contact Form Layout */
#contact {
    padding: 4rem 0;
    background: #f8f9fa;
}

#contact-form {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 1rem;
}

#contact-form > div {
    display: flex;
    flex-direction: column;
}

#contact-form > div:last-child,
#contact-form > div.full-width {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .hero-slider {
        height: 600px;
    }

    .slider-nav {
        width: 50px;
        height: 50px;
    }

    #contact-form {
        grid-template-columns: 1fr;
    }
}
