.custom-video {
    object-fit: cover;
}

.videoWrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.header-shadow {
    text-shadow: 1px 1px 2px #000000;
}

.text-shadow {
    text-shadow: 1px 1px 1px #000000;
    font-size: larger;
}

.services .features-card .icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: color-mix(in srgb, var(--accent-color), transparent 85%);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.services .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.services .features-card {
    position: relative;
    /*background-color: var(--surface-color);*/
    background-color: color-mix(in srgb, var(--surface-color), transparent 10%);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    padding: 60px;
    scroll-margin-top: 100px;
}

.services .features-card:hover .icon-wrapper {
    background-color: var(--accent-color);
    color: var(--contrast-color);
}

.services .features-card .icon-wrapper i {
    font-size: 28px;
    transition: ease-in-out 0.3s;
}

.services .features-card p {
    padding-top: 15px;
    padding-bottom: 30px;
    font-weight: bold;
}

.services .features-card .features-list .feature-item i {
    color: var(--accent-color);
    font-size: 16px;
    margin-right: 10px;
}

.services .features-card .features-list .feature-item {
    margin-bottom: 20px;
    font-size: 14px;
    /*font-weight: bold;*/
    display: flex;
    justify-content: flex-start;
}

.services .features-card .features-list {
    margin-bottom: 40px;
}

.services .service-item .icon i
Specificity: (0,3,1) {
    font-size: 28px;
    transition: ease-in-out 0.3s;
}

.services .features-card .btn-feature, .btn-feature:focus {
    margin-top: 40px;
    color: var(--default-color);
    font-size: 14px;
    padding: 8px 16px;
    margin-right:0px;
    margin-left: auto;
    margin-bottom: 0px;
    margin-top: auto;
    border-radius: 4px;
    transition: 0.3s;
    border: 2px solid var(--accent-color);
    text-align:right;
}

.services .features-card .btn-feature:hover {
    background-color: var(--accent-color);
}

.alt-background {
    background-color: var(--alt-background-color) !important;
}

.commercial {
    position: relative;
    isolation: isolate;
    padding: 4rem 2rem;
}

.commercial::before {
    content: "";
    position: absolute;
    inset: 0; 
    background-image: url('../img/Commercial-Services-01.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.9;
    z-index: -1; 
}

.residential {
    position: relative;
    isolation: isolate;
    padding: 4rem 2rem;
}

.residential::before {
    content: "";
    position: absolute;
    inset: 0; 
    background-image: url('../img/Residential-background-03.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.65;
    z-index: -1; 
}

.monitoring {
    position: relative;
    isolation: isolate;
    padding: 4rem 2rem;
}

.monitoring::before {
    content: "";
    position: absolute;
    inset: 0; 
    background-image: url('../img/Monitoring-background-02.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.9;
    z-index: -1; 
}

.cta-formatting {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
}

.cta-formatting h3 {
    margin-top:auto; 
    margin-bottom:auto;
}

.commSections p {
    padding-bottom: 30px;
}

.commSections h3 {
    padding-bottom: 25px;
    color: black;
}

.commSections h4 {
    text-shadow: 1px 1px 1px lightgray;
}

.commSections .feature-title {
    font-size: 20px;
    font-weight: bold;
    padding-bottom: 25px;
}

.features-item p {
    font-weight: bold;
}

.features-fire {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: left
}

.features-fire ul {
    list-style-type: none;
}

.features-fire ul li i {
    color: var(--accent-color);
    font-size: 20px;
    margin-right: 10px !important;
}

.comm-cta-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.commSections .cta-btn {
    font-family: var(--heading-font);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 1px;
    display: inline-block;
    padding: 12px 40px;
    border-radius: 5px;
    transition: 0.5s;
    margin: 10px;
    border: 2px solid var(--accent-color);
    color: var(--default-color);
    margin-top:25px;
}

.commSections .cta-btn:hover {
    background: var(--accent-color);
    color: var(--background-color);
    border: 2px solid var(--accent-color);
}

.commSections > .container > p {
    font-size: clamp(1.05rem, 1rem + 0.2vw, 1.25rem);
    max-width: 780px;
}

.features-access {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: left
}

.features-access ul {
    list-style-type: none;
}

.features-access ul li {
    margin-bottom: 20px;
}

.features-access ul li i {
    color: var(--accent-color);
    font-size: 20px;
    margin-right: 10px !important;
}

/* Shared, responsive replacement for the old fixed-width (33%/50%) inline-style
   column layouts used on the Fire/Access/Environmental pages. Columns wrap
   automatically on narrow screens instead of staying locked at a fixed width. */
.feature-list-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.feature-list-columns > div {
    flex: 1 1 220px;
}

.check-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.check-list li {
    margin-bottom: 12px;
}

.check-list li i {
    color: var(--accent-color);
    font-size: 18px;
    margin-right: 10px;
}

.check-list-label {
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 15px;
}

/* Two-column bulleted list for the manufacturer/brand list on the Fire page. */
.brand-list-columns {
    columns: 2;
    column-gap: 30px;
    padding-left: 20px;
    margin-top: 20px;
    margin-bottom: 0;
    list-style: disc;
    margin-left: 30px;
}

.brand-list-columns li {
    break-inside: avoid;
    margin-bottom: 8px;
}

.about p {
    font-size: 1.1rem;
}

.about ul li span {
    font-size: 1.1rem;
}

.navmenu .active-sub, .navmenu .active-sub:focus, .navmenu .active-sub:hover {
    color: var(--nav-hover-color) !important;
    background-color: var(--nav-dropdown-background-color) !important;
}

.footer-imagecols {
    display: flex;
    justify-content: center;
    margin-top: 0px !important;
}

.footer-images-small {
    margin-left: auto;
    margin-right: auto;
    margin-top:15px;
    margin-bottom: 15px;
    height: 80px;
}

.footer-images-large {
    margin-left: auto;
    margin-right: auto;
    width:247px;
}

.cfs-footer {
    padding-bottom:0px !important;
}

.cfs-footer h4 {
    color: var(--accent-color) !important;
}

.cfs-copyright {
    padding-top: 0px !important;
}

.footer-bottom-hr {
    margin-top: 25px;
    margin-bottom: 25px;
}

.quote-button {
    position: fixed;
    right: 15px !important;
    bottom: 15px !important;
    z-index: 99999;
    background-color: var(--accent-color);
    width: 160px;
    height: 60px;
    color: black;
    border-radius: 4px;
    border: 1px solid var(--accent-color);
    transition: all 0.4s;
}

.quote-button:hover {
    background-color: color-mix(in srgb, white 30%, var(--accent-color));
    border-color: var(--accent-color);
    color: black;
    border-radius: 4px;
    border: 1px solid var(--accent-color);
    transition: all 0.4s;
}

.aoe-menu {
    display: flex;
    justify-content:center;
    /*width:100%;*/
    /*margin-left:20px;*/
}

.aoe-menu-right {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left:0px;
    max-height: 400px;
    min-width: 350px !important;
    margin-top: 0px !important;
}

 /*.aoe-menu-right img {
     max-height: 400px;
 }*/
    .aoe-menu-right img {
        max-height: 400px;
        min-height: 100%;
        min-width: 550px;
    }

.aoe-menu-left {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    max-width: 500px;
    max-height: 400px;
    margin-left: 10px;
    background: white;
}

.aoe-button {
    background-color: var(--alt-background);
    height: 40px;
    width: 120px;
    color: black;
    transition: all 0.4s;
    display:flex;
    justify-content:flex-end;
    padding-right: 10px;
}

.aoe-button:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transition: all 0.4s;
}

@media (max-width: 1023px) {
    .aoe-menu-left {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        max-width: 350px;
        max-height: 400px;
        margin-left: 10px;
        background: white;
    }
}

@media (width > 1600px) {
    .blog .row {
        --bs-gutter-x: 1.4rem;
        --bs-gutter-y: 0;
        display: flex;
        flex-wrap: wrap;
        margin-top: 0px;
        margin-right: calc(-.5 * var(--bs-gutter-x));
        margin-left: calc(-.5 * var(--bs-gutter-x));
    }

    .features .features-image img {
        position: absolute;
        inset: 0;
        display: flex;
        width: 100%;
        height: 100% !important;
        object-fit: cover;
        z-index: 1;
        flex-direction: column;
        justify-content: start;
        min-height: 300px !important;
        font-size: 1.4rem !important;
    }

    .blog .container .col-lg-6 {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        min-height: 300px !important;
    }

}

@media (min-width: 1201px) and (max-width: 1599px){

    .blog .row {
        --bs-gutter-x: 1.25rem;
        --bs-gutter-y: 0;
        display: flex;
        flex-wrap: wrap;
        margin-top: 0px;
        margin-right: calc(-.5 * var(--bs-gutter-x));
        margin-left: calc(-.5 * var(--bs-gutter-x));
    }

    .features .features-image img {
        position: absolute;
        inset: 0;
        display: flex;
        width: 100%;
        height: 100% !important;
        object-fit: cover;
        z-index: 1;
        flex-direction: column;
        justify-content: start;
        min-height: 300px !important;
        font-size: 1.25rem !important;
    }

    .blog .container .col-lg-6 {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        min-height: 300px !important;
    }

}

@media (max-width: 1023px) {
    .aoe-menu-left {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        max-width: 140px;
        max-height: 400px;
        margin-left: 10px;
        background: white;
    }
}

@media (max-width: 770px) {
    .aoe-menu-right {
        display: none;
        width:100%;
    }

    .aoe-button {
        background-color: var(--alt-background);
        height: 40px;
        width: 100%;
        color: black;
        transition: all 0.4s;
        display: flex;
        justify-content: center;
    }

    .aoe-menu-left {
        display: flex;
        align-items: center;
        justify-content: center;
        width:100%;
        max-width: 1000px;
        max-height: 400px;
        margin-top: auto;
        margin-bottom: auto;
    }

    .aoe-menu-left ul {
        margin-bottom: 0px;
        padding-left:0px;
        margin-top: 10px;
        margin-bottom:10px;
        width:100%;
    }
}

.aoe-suffolk:hover {
    .aoe-map {
        content: url('assets/img/Suffolk-Long-Island.jpg');
    }
}

.blog-featured-post {
    color: color-mix(in srgb, white 40%, var(--accent-color)) !important;
    text-shadow: 1px 1px 3px #000000;
}

.post-summary:hover {
    color:var(--accent-color);
}

h4 {
    color: var(--contrast-color) !important;
}

.blog-emphasis-box {
    display: flex;
    justify-content: start;
    flex-direction: column;
    border-left: 2px solid var(--contrast-color);

    padding-top: 3px;
    padding-bottom: 3px;
    padding-left: 25px;
    padding-right:25px;
    margin-bottom: 25px;
    margin-top: 10px;
    margin-left: 10px;
    margin-right: 10px;
}

.blog-emphasis-box p {
    margin-bottom:0px; 
    font-style:italic;
    font-weight: bold;
    padding-bottom: 0px !important;
}

.features .blog-image {
    position: relative;
    min-height: 250px;
}

.blog {
    font-size: clamp(1.05rem, 1rem + 0.2vw, 1.25rem);
}

.commSections .blog {
    max-width: 780px;
}

.blog p {
    padding-bottom: 10px;
}

.blog hr {
    padding-bottom: 15px;
}

.blog ul {
    padding-bottom: 10px;
}

.blog-accent-box {
    display: flex;
    justify-content: start;
    flex-direction: column;
    padding: 25px;
    border-left: 2px solid var(--contrast-color);
}

.blog-accent-box p {
    padding-bottom: 0px !important;
    margin-bottom: 0px !important;
}

.blog .container .col-lg-6 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 300px !important;
}

.blog .container .features-image .col-lg-6 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 300px !important;
}

.aoe-box {
    display:flex;
    justify-content:start !important;
    flex-direction:column;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 28px 24px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
    height:100%;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--accent-color);
}

.services-overview {
    padding: 60px 0;
    /*background-color: var(--background-color, #fff);*/
    background-color: var(--alt-background-color) !important;
}

    .services-overview .section-title h2 {
        color: var(--heading-color, #222);
        font-weight: 700;
    }

    .services-overview .services-group-title {
        color: var(--heading-color, #222);
        font-weight: 600;
    }

.service-tile-link {
    text-decoration: none;
    display: block;
}

.service-tile {
    background: var(--surface-color, #f7f8fa);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid lightgray;
    border-radius: 8px;
}

    .service-tile:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    }

    .service-tile i {
        font-size: 40px;
        color: var(--accent-color, #0d6efd);
        margin-bottom: 15px;
        display: inline-block;
    }

    .service-tile h4 {
        font-size: 18px;
        color: var(--heading-color, #222);
        margin-bottom: 10px;
    }

    .service-tile p {
        font-size: 14px;
        color: var(--default-color, #555);
        margin-bottom: 0;
    }

/* Photo-background variant for the Commercial Services tiles. Each tile sets
   its own image inline via background-image, layered under a dark navy
   tint (added in the same background-image value) so the photo reads at
   roughly 30% opacity and the text on top stays clearly readable. */
.service-tile-photo {
    background-size: cover;
    background-position: center;
}

    .service-tile-photo h4 {
        color: #ffffff;
    }

    .service-tile-photo p {
        color: #ffffff;
    }

    .service-tile-photo i {
        color: #ffffff;
    }

.service-tile-headding {
    color: white !important;
    /*text-shadow: 1px 1px 3px black;*/
}

.form-cfscontrol {
    display: none;
}