:root {
    --slate: #40596A;
    --dark: #263B49;
    --red: #F20D12;
    --soft: #F5F7F8;
    --ink: #17232C
}

html {
    scroll-behavior: smooth
}

body {
    font-family: Inter,sans-serif;
    color: var(--ink)
}

h1, h2, h3, h4, h5, .brand {
    font-family: "Barlow Condensed",sans-serif;
    font-weight: 700
}

section {
    scroll-margin-top: 75px
}

.pad {
    padding: 90px 0
}

.kicker {
    color: var(--red);
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-size: .78rem
}

.title {
    font-size: clamp(2.2rem,4vw,3.5rem);
    line-height: 1
}

.red {
    color: var(--red)
}

.btn-red {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    font-weight: 700;
    padding: .8rem 1.3rem
}

    .btn-red:hover {
        background: #cf0b10;
        color: #fff
    }

.navbar {
    background: rgba(255,255,255,.97);
    box-shadow: 0 2px 18px #17232c1a
}

    .navbar .nav-link {
        color: var(--dark);
        font-weight: 600
    }

        .navbar .nav-link:hover,
        .navbar .nav-link:focus {
            color: var(--red)
        }

.brand {
    font-size: 1.45rem
}

.brand-logo {
    height: 56px;
    width: auto
}

.footer-logo {
    height: 90px;
    width: auto
}

.hero .carousel-item {
    height: 90vh;
    min-height: 650px;
    background-size: cover;
    background-position: center;
    position: relative
}

    .hero .carousel-item:before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg,rgba(19,34,44,.94),rgba(31,52,66,.7),rgba(31,52,66,.15))
    }

.hero .carousel-caption {
    top: 50%;
    bottom: auto;
    transform: translateY(-45%);
    left: 0;
    right: 0;
    text-align: left
}

.hero-copy {
    max-width: 780px
}

.hero h1 {
    font-size: clamp(3.4rem,7vw,6.5rem);
    line-height: .88;
    text-transform: uppercase
}

.hero p {
    max-width: 680px;
    font-size: 1.08rem;
    color: #e8edef
}

.eyebrow {
    display: inline-block;
    border-left: 3px solid var(--red);
    padding: .45rem .8rem;
    background: #ffffff16;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em
}

.trust {
    margin-top: -45px;
    position: relative;
    z-index: 4;
    background: #fff;
    box-shadow: 0 10px 35px #0002
}

    .trust > div {
        padding: 25px;
        border-right: 1px solid #eee
    }

    .trust i, .icon {
        color: var(--red)
    }

.about-img {
    height: 520px;
    background: url('../img/m7.jpeg') center/cover
}

.service {
    height: 100%;
    padding: 30px;
    background: #fff;
    border: 1px solid #e4e9ec;
    transition: .2s
}

    .service:hover {
        transform: translateY(-4px);
        box-shadow: 0 15px 35px #263b491c
    }

    .service .ico {
        width: 52px;
        height: 52px;
        display: grid;
        place-items: center;
        background: var(--soft);
        color: var(--slate);
        font-size: 1.3rem;
        margin-bottom: 20px
    }

.values {
    background: linear-gradient(#263b49ef,#263b49ef),url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1800&q=85') center/cover;
    color: #fff
}

.value {
    height: 100%;
    padding: 25px;
    border-top: 3px solid var(--red);
    background: #ffffff10
}

.works-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, 250px);
    gap: 12px
}

.works-tile {
    position: relative;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: var(--dark);
    cursor: pointer
}

    .works-tile:first-child {
        grid-row: span 2
    }

    .works-tile img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .4s
    }

    .works-tile:hover img,
    .works-tile:focus-visible img {
        transform: scale(1.06)
    }

    .works-tile:focus-visible {
        outline: 3px solid var(--red);
        outline-offset: 2px
    }

.works-zoom {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: #17283280;
    color: #fff;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity .3s
}

.works-tile:hover .works-zoom,
.works-tile:focus-visible .works-zoom {
    opacity: 1
}

.works-more {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #172832c4;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .8rem;
    transition: background .3s
}

    .works-more span {
        font-family: "Barlow Condensed",sans-serif;
        font-size: 2.6rem;
        letter-spacing: 0;
        line-height: 1
    }

.works-tile:hover .works-more {
    background: #f20d12d9
}

.gallery-modal .modal-content {
    background: #0f1a21;
    color: #fff
}

.gallery-counter {
    font-family: "Barlow Condensed",sans-serif;
    font-size: 1.2rem;
    letter-spacing: .08em
}

.gallery-modal .carousel {
    min-height: 0
}

.gallery-modal .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.gallery-modal .carousel-control-prev,
.gallery-modal .carousel-control-next {
    width: 8%;
    opacity: 1
}

.gallery-arrow {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: #ffffff1f;
    border-radius: 50%;
    transition: background .2s
}

.gallery-modal .carousel-control-prev:hover .gallery-arrow,
.gallery-modal .carousel-control-next:hover .gallery-arrow {
    background: var(--red)
}

.gallery-thumbs {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 14px;
    scroll-behavior: smooth;
    scrollbar-width: thin
}

    .gallery-thumbs button {
        flex: 0 0 auto;
        width: 96px;
        height: 68px;
        padding: 0;
        border: 2px solid transparent;
        background: none;
        opacity: .5;
        transition: opacity .2s, border-color .2s
    }

        .gallery-thumbs button:hover {
            opacity: .85
        }

        .gallery-thumbs button.active {
            border-color: var(--red);
            opacity: 1
        }

    .gallery-thumbs img {
        width: 100%;
        height: 100%;
        object-fit: cover
    }

.cta {
    background: var(--red);
    color: #fff
}

.contact-info {
    background: var(--dark);
    color: #fff;
    padding: 42px;
    height: 100%
}

.contact-row {
    display: flex;
    gap: 15px;
    margin: 22px 0
}

    .contact-row i {
        color: var(--red);
        margin-top: 4px
    }

.form-control, .form-select {
    border-radius: 2px;
    padding: .8rem
}

.honeypot-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.captcha-field {
    background: var(--soft);
    border-left: 3px solid var(--red);
    padding: 1rem
}

    .captcha-field label {
        font-weight: 600;
        color: var(--dark)
    }

.accordion-button:not(.collapsed) {
    background: #f6f8f9;
    color: var(--dark)
}

footer {
    background: var(--soft);
    color: var(--slate);
    border-top: 3px solid var(--red)
}

    footer h5 {
        color: var(--dark)
    }

    footer a {
        color: var(--slate);
        text-decoration: none
    }

        footer a:hover {
            color: var(--red)
        }

    footer a.footer-credit {
        color: var(--red)
    }

        footer a.footer-credit:hover {
            color: #cf0b10
        }

    footer .footer-bottom {
        border-top: 1px solid #dde3e7
    }

@media(max-width:991px) {
    .hero .carousel-item {
        min-height: 700px
    }

        .hero .carousel-item:before {
            background: #172832c9
        }

    .trust {
        margin-top: 0
    }

        .trust > div {
            border-right: 0;
            border-bottom: 1px solid #eee
        }

    .pad {
        padding: 70px 0
    }

    .about-img {
        height: 380px
    }

    .works-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 280px repeat(2, 170px)
    }

        .works-tile:first-child {
            grid-column: span 2;
            grid-row: auto
        }
}
