/*
Theme Name:
Author: Lamb Agency
Version: 1.0
*/

/**
/ Small Works Scope edits (April 2026)
*/

:root {
    --neutral-2: #282828;
    --neutral-4: #d4d4d4;
    --neutral-5: #f4f4f4;
    --primary-1: #a72219;
    --primary-2: #e5281a;
    --primary-4: #f5837b;
    --primary-5: #fac1bd;
}
input[type="tel"] {
    background: #fff;
    border: none;
    padding: 15px;
    font-size: 16px;
    color: #303b41;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
}

.body-3 {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}

body {
    overflow-x: initial;
    font-size: 1rem;
    line-height: 1.5;
}

header {
    .header-logo {
        padding-top: 25px;
        padding-bottom: 25px;

        a .logo {
            width: auto;
            max-height: 44px;
        }
    }

    .menu-wrap nav {
        .menu-container {
            > ul {
                display: flex;
                flex-wrap: nowrap;
                justify-content: end;

                > li:hover > a {
                    text-decoration-color: var(--primary-2);
                    border: none;

                    &::after {
                        background-color: var(--primary-2);
                    }
                }
            }

            .menu > li > a {
                line-height: 1.5;
                width: 100%;
                height: 100%;
                display: flex;
                flex-direction: column;
                justify-content: center;
                overflow: visible;
                text-decoration: underline;
                text-decoration-color: transparent;
                text-decoration-thickness: 2px;
                text-underline-offset: 5px;
                border: none;
                padding: 0 20px;
                transition: all 0.25s ease;
            }

            li:hover > a {
                background-color: transparent;
            }

            > .menu > li {
                &.menu-item-has-children > a {
                    padding-right: 35px;

                    + .sub-menu-toggle {
                        right: 5px;
                        background: none;
                        border: none;

                        &:after {
                            content: "keyboard_arrow_down";
                            text-transform: none;
                            position: absolute;
                            right: 0;
                            top: 50%;
                            transform: translateY(-50%);
                            color: var(--primary-2);
                            font-family: "Material Symbols Outlined";
                            font-weight: 500;
                            font-size: 20px;
                            line-height: 1;
                        }
                    }
                }

                &:hover > a + .sub-menu-toggle:after,
                &.open > a + .sub-menu-toggle:after {
                    content: "keyboard_arrow_up";
                }
            }
        }

        .menu {
            .menu-item-has-children .sub-menu {
                top: 94px;
                padding: 64px !important;
                width: auto;
                background-color: white;
                box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.08);
            }

            .mega-menu {
                &.menu-item-has-children .sub-menu {
                    display: flex;
                    column-gap: 24px;
                    width: 60vw;
                }

                .sub-menu > li > ul > li > a:before {
                    content: none;
                }
            }

            .sub-menu > li,
            .mega-menu .sub-menu > li {
                background-color: white;
                display: block;
                box-shadow: none;
                flex: 1 0 0;

                > a {
                    padding: 24px 30px 24px 0;
                }
            }
            .mega-menu .sub-menu > li {
                border: none;
            }
        }

        .sub-menu li {
            border-bottom: solid 1px var(--neutral-4);

            @media (min-width: 1025px) {
                &:first-child {
                    border-top: solid 1px var(--neutral-4);
                }
            }

            > a {
                background-color: white;
                padding: 24px 30px 24px 0;
            }
        }
    }

    .header-bottom {
        height: 94px;
        padding-left: 60px;
        padding-right: 0;
        border-bottom: 8px solid var(--primary-5);

        .search-nav-wrap {
            padding-right: 70px;

            .search-wrap {
                top: 50%;
                transform: translateY(-50%);
                right: 0;
            }
        }
    }

    .header-btn {
        background-color: var(--primary-2);
        color: white;
        border-radius: 4px;
        transition: background-color 0.25s ease;
        max-width: 200px;
        font-size: 0.875rem;
        margin: 0;

        &:hover {
            background-color: #ff584c;
        }
    }

    .mobile-menu-toggle {
        top: 50%;
        transform: translateY(-50%);
        background: none !important;
        border: none !important;
        box-shadow: none !important;

        &.active {
            transform: translateY(-50%) rotate(90deg);

            span:before,
            span:after {
                background: var(--neutral-2);
            }
        }
    }
}

.header-fixed.compact-header-a {
    .menu-wrap nav .menu-container .menu > li > a {
        line-height: 1;
    }

    header .header-bottom .search-nav-wrap .search-wrap {
        top: 50%;
    }
}

@media (max-width: 1024px) {
    header {
        .menu-wrap nav {
            overflow: auto;
            padding-top: 150px;

            .search {
                &:before {
                    color: var(--neutral-2);
                }
                input {
                    background-color: var(--neutral-5);
                    border-radius: 4px;
                    padding: 16px 20px;
                    padding-left: 40px;
                }
            }
            .menu-container {
                > ul {
                    display: block;
                }

                .menu > li > a {
                    padding-left: 0;
                    position: relative;
                }

                .menu > li:not(.menu-item-has-children) > a:after {
                    content: "arrow_forward";
                    text-transform: none;
                    position: absolute;
                    right: 0;
                    top: 50%;
                    transform: translateY(-50%);
                    color: var(--primary-2);
                    font-family: "Material Symbols Outlined";
                    font-weight: 500;
                    font-size: 20px;
                    line-height: 1;
                    border: none;
                    padding: 0;
                    display: initial;
                    width: auto;
                    height: auto;
                    transition: none;
                    background: none;
                    left: auto;
                    bottom: auto;
                    margin-top: 0;
                }

                > .menu > li {
                    padding-top: 16px;
                    padding-bottom: 16px;
                }
            }

            .menu {
                .menu-item-has-children .sub-menu,
                .mega-menu.menu-item-has-children .sub-menu {
                    width: 100%;
                    padding: 0 !important;
                    padding-left: 15px !important;

                    .menu-item a {
                        position: relative;

                        &:after {
                            content: "arrow_forward";
                            text-transform: none;
                            position: absolute;
                            right: 0;
                            top: 50%;
                            transform: translateY(-50%);
                            color: var(--primary-2);
                            font-family: "Material Symbols Outlined";
                            font-weight: 500;
                            font-size: 20px;
                            line-height: 1;
                            border: none;
                            padding: 0;
                            display: initial;
                            width: auto;
                            height: auto;
                            transition: none;
                            background: none;
                            left: auto;
                            bottom: auto;
                            margin-top: 0;
                        }
                    }

                    > .menu-item > a {
                        padding: 12px 24px 12px 0;
                    }
                    > .menu-item {
                        margin-top: 20px;
                    }
                }

                .menu-item-has-children .sub-menu {
                    box-shadow: none;
                }

                .mega-menu {
                    &.menu-item-has-children {
                        .sub-menu {
                            display: block;
                            max-height: 0;
                            overflow: hidden;
                        }

                        &.open .sub-menu {
                            max-height: 100vh;
                        }
                    }
                }

                .sub-menu > li,
                .mega-menu .sub-menu > li {
                    margin-top: 0;

                    > ul {
                        margin-left: 15px;

                        > .menu-item {
                            border-top: none;

                            > a {
                                background: none;
                                border: none;
                            }
                        }
                    }

                    > a {
                        background: none;
                        padding-left: 5px !important;
                    }
                }
            }
        }

        .header-bottom {
            padding-left: 12px;
            padding-right: 0;

            .search-nav-wrap {
                padding-right: 0;
            }
        }
        .header-btn-wrap {
            right: 70px;
            z-index: 999;

            button {
                padding: 14px 18px;
                font-size: 12px;
            }
        }
    }
}

@media (min-width: 1025px) {
    header {
        .menu-wrap nav {
            .menu .mega-menu .sub-menu > li a {
                padding: 24px 30px 24px 0;
            }
        }

        .sub-menu > .menu-item > a,
        .menu-wrap nav .menu .mega-menu .sub-menu > li > ul > li > a {
            padding-left: 0;
            padding-right: 25px;
            position: relative;

            &:after {
                content: "arrow_forward";
                text-transform: none;
                position: absolute;
                right: 0;
                top: 50%;
                transform: translateY(-50%);
                color: var(--primary-2);
                font-family: "Material Symbols Outlined";
                font-weight: 500;
                font-size: 20px;
                line-height: 1;
                transition: right 0.25s ease;
            }

            &:hover:after {
                right: -5px;
            }
        }
        .menu-wrap nav .menu-container .menu > li > a {
            &:after {
                content: "";
                position: absolute;
                left: 0;
                bottom: -8px;
                width: 100%;
                height: 8px;
                background-color: transparent;
                transition: background-color 0.25s ease;
            }
        }
        .btn-wrap {
            margin-right: 0;
            .header-btn {
                width: 200px;
                height: 86px;
                border-radius: 0;
            }
        }
        .btn-wrap-2 {
            padding-right: 0;
        }
    }
}

@media screen and (max-width: 1024px) {
    header .menu-wrap nav .menu-container {
        .menu-main li > a:after {
            content: none;
        }

        height: auto;
    }
}

footer {
    color: white;
    background-color: #303b41;
    padding: 64px 60px;
    text-align: initial;

    @media (max-width: 1024px) {
        padding-left: 12px;
        padding-right: 12px;
    }

    h4 {
        font-size: 20px;
    }

    .row > section {
        padding: 0 24px;
        border-right: solid 1px #949fa5;

        &:first-child,
        &:last-child {
            border-right: none;
        }

        @media (max-width: 1024px) {
            padding: 24px 0;
            border-right: none;
            border-bottom: solid 1px #949fa5;

            &:last-child {
                border-bottom: none;
            }
        }
    }

    ul.menu {
        color: white;
        list-style: none;
        margin: 0;
        padding: 0;

        > li:not(.no-link) {
            padding-left: 5px;

            a {
                color: white;
                font-size: 15px;
                line-height: 1.5;
                text-decoration: underline;
                text-underline-offset: 5px;
                transition: opacity 0.25s ease;

                &:hover {
                    opacity: 0.75;
                }
            }
        }

        .no-link {
            pointer-events: none;
            a {
                color: white;
                font-size: 20px;
                line-height: 1.5;
            }
        }

        .sub-menu {
            list-style: none;
            padding: 0;
            margin-top: 15px;

            > li {
                padding-left: 5px;
            }
        }
    }

    .social-link {
        transition: opacity 0.25s ease;

        &:hover {
            opacity: 0.75;
        }
    }

    .copy {
        margin-top: -20px;

        p {
            font-size: 15px;
            line-height: 1.5;
        }
    }

    .images-wrap {
        margin-left: -18px;
        margin-right: -18px;
        margin-bottom: 20px;

        .image-col {
            padding-left: 18px;
            padding-right: 18px;
            border-right: solid 1px white;

            &:last-child {
                border: none;
            }
        }
    }
}

body {
    padding-top: 94px;
}

.mod-prompt-banner {
    margin-top: 0;
}

.breadcrumbs {
    .layoutwidth {
        > span {
            display: flex;
            flex-wrap: wrap;
        }

        > span > span {
            &:first-child {
                margin-top: -7px;
                @media screen and (max-width: 768px) {
                    margin-left: -20px;
                }
            }

            &:not(:first-child) > a {
                width: 90px;
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
                padding: 0 10px;

                &:before {
                    content: none;
                }
            }
        }
    }
    @media screen and (max-width: 768px) {
        padding: 25px 0 0 !important;
        .layoutwidth {
            display: block;
            padding-left: 40px;
        }
    }
}

.mod-carousel .carousel-card-details {
    min-height: none !important;
}
.slick-track {
    display: flex;
    align-items: stretch;
    padding-bottom: 10px;
}
.slick-slide {
    float: none;
    height: auto;
}
.mod-carousel .carousel-card {
    height: 100%;
}

.module .module-bg {
    background-position: 50% 50%;
    &:after {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        background-color: rgba(0, 0, 0, 0.25);
    }
}


/* Accessibility contrast tweaks (target 2.0)
*/
.module .date,
[class*="mod-"] .date {
  color: #6e7376 !important;
}
.page-title {
    background-color: #6d9caa;
}
.mod-tabs .tab.open .tab-title, .mod-tabs .tab:hover .tab-title {
    color: #dd2719 !important;
}
a {
    color: #da2d20;
}
.mod-notification .gfield.attachment>label, .mod-notification .gfield.radio>label {
    color: #6e7376;
}