:root {
    --kry-primary  : hsl(209, 91%, 35%);
    --kry-secondary: hsl(49, 96%, 54%);

    --NotoSans: "Noto Sans", sans-serif;
    --Montserrat: "Montserrat", sans-serif;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;

    .wrapper{
        flex-grow: 1;
    }
}

.btnwhats{
    position: fixed;
    right: 15px;
    bottom: 15px;

    font-size: 40px;
    width: 1.5em;
    height: 1.5em;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    color: #FFF;
    text-decoration: none;
    background: #21a115;

    border-radius: 50%;
    box-shadow: 0 0 1rem rgba(0,0,0,.3);

    transition: background .3s linear;

    &:hover {
        background: #15660d;
        color: #FFF;
    }
}

@media (min-width: 1300px) {
    .container {
        max-width: 1200px;
    }
}

body {
    --bs-body-color: #575757;
    --bs-body-font-family: "Noto Sans", sans-serif;
}

.topo {
    background: var(--bs-body-bg);
    position: sticky;
    top: 0;
    z-index: 998;
}

.topo__fixed {
    box-shadow: 0 0 1rem rgba(0,0,0,.35);
}

.mobile__controls {
    display: grid;
    grid-template-columns: calc(100%  - 80px) 70px;
    grid-gap: 10px;

    height: 70px;
    background: var(--bs-body-bg);

    .logo{
        display: flex;
        align-items: center;

        margin-right: auto;
        padding: 5px 10px;
        max-width: 100%;
        width: 274px;

        img {
            width: auto;
            max-width: 100%;
            height: auto;
            max-height: 70px;
            object-fit: contain;
        }
    }

    .btn {
        --bs-btn-bg: var(--kry-primary);
        --bs-btn-color: var(--kry-secondary);

        --bs-btn-hover-bg: var(--kry-secondary);
        --bs-btn-hover-color: var(--kry-primary);

        --bs-btn-padding-x: 0;
        --bs-btn-padding-y: 0;

        --bs-btn-font-size: 1.25rem;

        aspect-ratio: 1;

        display: flex;
        align-items: center;
        justify-content: center;

        align-self: center;

        margin: 0 10px;
    }

    &.mobile__controls--fixed {
        box-shadow: 0 0 1rem rgba(0,0,0,.5);
    }

    @media (min-width: 992px) {
        display: none;
    }
}


.topo__wrapper{
    --bs-gutter-x: 1.5rem;

    width: 100%;

    @media (max-width: 991.97px) {
        width: 270px;
        height: 100dvh;
        
        position: fixed;
        left: 0;
        top: 0;
        z-index: 1000;

        background: var(--bs-body-bg);

        @supports not(height: 100dvh) {
            height: 100vh;
        }

        &:not(.show) {
            transform: translateX(-100%);
        }

        &.show {
            animation: fadeInLeft .4s linear forwards;
        }

        &.hide {
            animation: fadeOutLeft .4s linear forwards;
        }

        .brand__area {
            padding: 40px 15px 15px;
            text-align: center;
            border-bottom: 1px solid var(--bs-border-color);
        }
    }

    @media (min-width: 992px) {
        padding-left: calc(var(--bs-gutter-x) * .5);
        padding-right: calc(var(--bs-gutter-x) * .5);
        padding-top: 22px;
        padding-bottom: 22px;

        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;

        display: grid;
        grid-template-columns: repeat(12, 1fr);
        grid-gap: 1.5rem;

        .brand__area {
            grid-column: 1/5;
        }

        .menu{
            grid-column: 5/-1;
        }
    }
}

.menu__backdrop {
    background: rgba(0,0,0,.5);
    width: 100%;
    height: 100dvh;

    position: fixed;
    left: 0;
    top: 0;
    z-index: 999;

    animation: fadeIn .4s linear forwards;
    backdrop-filter: blur(4px);

    &.hide {
        animation: fadeOut .4s linear forwards;
    }

    @supports not(height: 100dvh) {
        height: 100vh;
    }
}

.menu {
    padding-left: 0;
    margin-bottom: 0;

    @media (max-width: 991.98px) {
        padding-top: .75rem;
        padding-bottom: .75rem;
    }

    @media (min-width: 992px) {
        display: flex;
        align-items: center;
        justify-content: space-between;

        font-size: 13px;
    }
}

.menu__item {
    list-style: none;

    @media (max-width: 991.98px) {
        padding: 4px;
    }
}

.menu__link {
    text-decoration: none;
    
    @media (max-width: 991.98px) {
        display: block;
        padding: .5rem 1rem;
        border-radius: .5rem;
        color: var(--kry-primary);

        &:not(.menu__link):hover {
            background: var(--bs-gray-400);
        }

        &:is(.menu__link--active) {
            background: var(--kry-primary);
            color: var(--kry-secondary);
        }
    }

    @media (min-width: 992px) {
        color: var(--kry-primary);

        &:hover,
        &.menu__link--active {
            color: var(--kry-secondary);

            &::after{
                transform: scaleX(1);
            }
        }

        &::after{
            content: '';
            display: block;
            width: 1ch;
            height: 3px;
            background: var(--kry-primary);
            border-radius: 6px;
            margin-top: 3px;
            transform: scaleX(0);
            transition: transform .3s linear;
            transform-origin: left center;
        }
    }
}

.banner {
    position: relative;
    z-index: 0;

    picture {
        display: block;
    }

    img {
        width: 100%;
        display: block;
        object-fit: cover;
        clip-path: inset(0 0 0 0 round 12px);
    }

    [data-bs-slide] {
        position: absolute;
        z-index: 5;
        bottom: 10px;
    }

    [data-bs-slide="prev"] {
        left: 10px;
    }

    [data-bs-slide="next"] {
        right: 10px;
    }

    &:has( + .chamadas){
        @media (min-width: 1200px) {
            margin-bottom: -70px;
        }
    }

    & + .chamadas {
        max-width: 1000px;
    }
}

.chamadas {
    position: relative;
    z-index: 2;

    width: 100%;
    margin-left: auto;
    margin-right: auto;
    background: #FFF;
    padding: 11px;

    display: flex;
    justify-content: center;

    @media (max-width: 767.98px) {
        flex-direction: column;

        .chamada + .chamada{
            border-top: 1px solid #F8D333;
        }
    }
}

.chamada {
    padding: clamp(1.25rem, -0.3125rem + 5vw, 2.5rem);
    text-align: center;
    color: #575757;
    font-size: clamp(1rem, 0.8438rem + 0.5vw, 1.125rem);

    @media (min-width: 768px) {
        & + .chamada {
            border-left: 1px solid #F8D333;
        }
    }
}

.chamada__ttl{
    color: #1461B5;
    font-size: clamp(1.875rem, 0.3125rem + 5vw, 3.125rem);
    font-weight: bold;
}

.mb-70 {
    margin-bottom: 70px;
}

.section__sobre {
    font-size: 1rem;
    margin-bottom: 50px;

    h1 {
        font-size: clamp(2rem, -0.1875rem + 7vw, 3.75rem);
        font-weight: bold;
        margin-bottom: 30px;
    }
}

.section__unidades{
    margin-bottom: 40px;

    h2{
        font-size: 39px;
        font-weight: bold;
    }

    .cidade,
    .endereco,
    .whatsapp {
        padding-left: 40px;
        min-height: 35px;
        background-position: left top;
        background-repeat: no-repeat;
        margin-bottom: 1rem;
    }

    .cidade {
        background-image: url(../images/cidade.png);
    }

    .endereco {
        background-image: url(../images/endereco.png);
    }

    .whatsapp {
        background-image: url(../images/whatsapp.png);
    }

    @media (max-width: 991.97px) {
        h2{
            text-align: center;
            margin-bottom: 40px;
        }

        .unidades__ctrl{
            margin-top: 40px;
            text-align: center;
        }
    }

    @media (min-width: 992px) {
        position: relative;

        h2:has( + .carousel-inner > .carousel-item.active > .unidade__data){
            position: absolute;
            left: 0;
            top: 0;
            z-index: 2;
        }

        .unidades__ctrl {
            position: absolute;
            left: 0;
            bottom: 0;
            z-index: inherit;
        }

        .carousel-inner {
            z-index: 0;
        }

        .carousel-item.active {
            display: grid;
            grid-template-columns: repeat(12, 1fr);
            grid-gap: var(--bs-gutter-x);
        }

        .unidade__data{
            padding-top: 118px;
            grid-column: span 5;
            padding-bottom: 75px;
        }

        .unidade__mapa{
            grid-column: span 7;
        }
    }
}

.unidade__mapa{
    position: relative;
    background: #EEE;

    &::before{
        content: '';
        display: block;
        aspect-ratio: 670 / 474;
    }

    iframe{
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
    }
}

.hero {
    background-color: hsl(209, 91%, 35%);
    background-position: center center;
    background-size: cover;
    margin-bottom: 30px;

    color: #FFF;
    font-size: clamp(1.875rem, 0.3125rem + 5vw, 3.125rem);
    font-family: var(--Montserrat);
    line-height: 1;

    .editor__content {
        margin-bottom: 40px;
    }

    .btn {
        --bs-btn-color: var(--kry-primary);
        --bs-btn-hover-color: var(--kry-primary);
        --bs-btn-hover-bg: var(--kry-secondary);

        --bs-btn-padding-y: 12px;
        --bs-btn-padding-x: 24px;
        --bs-btn-font-weight: 700;
        --bs-btn-font-size: clamp(1rem, 0.5313rem + 1.5vw, 1.375rem);

        width: 100%;
        max-width: 370px;
    }

    @media (max-width: 991.98px) {
        text-align: center;
        padding-top: 80px;
        padding-bottom: 80px;
    }

    @media (min-width: 992px) {
        background-image: var(--bg, none);

        .col-lg-7{
            padding-top: 140px;
            padding-bottom: 140px;
        }
    }
}

.rodape{
    border-top: 14px solid #F8D333;
    background: #1461B5;
    padding-bottom: 15px;
    color: #FFF;

    &::before {
        content: '';
        display: block;
        height: 14px;
        background: #DBB202;
        margin-bottom: 55px;
    }

    @media (max-width: 767.98px) {
        text-align: center;
    }

    @media (max-width: 991.98px) {
        h2:has(+ .redes__sociais) {
            text-align: center;
        }
    }

    h2{
        color: var(--kry-secondary);
        font-weight: bold;
        margin-bottom: 30px;
    }

    ul {
        list-style: none;
        padding-left: 0;
        columns: 2;
        gap: var(--bs-gutter-x);
    }

    a{
        color: #FFF;
        text-decoration: none;

        &:hover {
            color: var(--kry-secondary);
        }
    }

    .col-lg-4 {
        margin-bottom: var(--bs-gutter-x);
    }

    .contato {
        .fas {
            color: var(--kry-secondary);
        }

        .d-flex {
            margin-bottom: 1rem;

            @media (max-width: 767.98px) {
                flex-direction: column;
                align-items: center;
            }
        }
    }

    .redes__sociais {
        font-size: 32px;
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        margin-bottom: 30px;

        @media (max-width: 991.98px) {
            justify-content: center;

            & + img {
                margin-left: auto;
                margin-right: auto;
                display: block;
            }
        }
    }

    .creditos{
        margin-top: 40px;
        display: flex;
        gap: var(--bs-gutter-x);

        @media (max-width: 991.98px) {
            flex-direction: column;
            text-align: center;
        }

        @media (min-width: 992px) {
            justify-content: space-between;
            align-items: center;
        }
    }

    .autor {
        img {
            vertical-align: bottom;
            margin-left: 1ch;
        }
    }
}

.unidade__prev,
.unidade__next{
    width: 58px;
    height: 55px;
    padding: 0;
    border: none;
    border-color: transparent;
    background: none;

    &:hover {
        background: none;
        filter: brightness(1.2);
    }

    &::before {
        content: '';
        display: block;
        width: 58px;
        height: 55px;
        filter: drop-shadow(-2px 2px #000);
        background-size: contain;
        background-repeat: no-repeat;
    }
}

.unidade__prev::before{
    background-image: url(../images/prev.png);
}

.unidade__next::before{
    background-image: url(../images/next.png);
}

.banners{
    display: flex;
    gap: 10px;

    @media (max-width: 767.98px) {
        flex-direction: column;

        img {
            width: 100%;
        }
    }

    @media (min-width: 768px) and (max-width: 991.98px) {
        overflow: auto;

        .banners__item {
            width: 100%;
            max-width: 370px;
            flex-shrink: 0;
        }
    }

    @media (min-width: 992px) {
        justify-content: center;

        .banners__item{
            flex-grow: 1;

            &:nth-child(1) {
                border-top-right-radius: var(--banners__item-radius);
                border-bottom-right-radius: var(--banners__item-radius);
            }

            &:nth-child(2) {
                max-width: initial;
                border-radius: var(--banners__item-radius);
            }

            &:nth-child(3) {
                border-top-left-radius: var(--banners__item-radius);
                border-bottom-left-radius: var(--banners__item-radius);
            }

            &:nth-child(3) {
                .banners__caption {
                    max-width: 370px;
                }
            }
        }
    }
}

.banners__item{
    --banners__item-radius: 10px;

    position: relative;
    display: flex;
    overflow: hidden;

    a{
        display: flex;
        width: 100%;
    }

    img {
        width: 100%;
        min-height: 100%;
        object-fit: cover;
    }
}

.banners__caption{
    position: absolute;
    left: 0;
    bottom: 15px;
    perspective: 3px;

    width: calc(100% - 80px);
    padding: 1rem 2rem 1rem;

    display: flex;
    align-items: flex-end;
    flex-direction: column;

    color: #FFF;
    font-weight: bold;
    font-size: 20px;

    &::before {
        content: '';

        position: absolute;
        left: 0;
        top: 0;
        z-index: -1;

        width: 100%;
        height: 100%;
        
        background-color: hsla(209, 91%, 35%, .69);
        backdrop-filter: blur(4px);

        clip-path: polygon(
            0% 0%,
            calc(100% - 1rem) 0%,
            100% 100%,
            0% 100%
        );
    }

    & > * {
        width: 100%;
        max-width: 270px;
    }
}

.banners__title{
    color: var(--kry-secondary);
    font-size: clamp(0.75rem, 0.125rem + 2vw, 1.25rem);
}

.banners__text {
    color: #FFF;
    font-size: clamp(1.125rem, -0.5938rem + 5.5vw, 2.5rem);
}

.page__header {
    background-size: cover;
    background-position: center 0;
    background-repeat: no-repeat;
    
    position: relative;
    perspective: 3px;
    color: #FFF;
    
    display: flex;
    align-items: center;
    min-height: 269px;
    margin-bottom: 50px;

    padding: 80px 0;

    &::before{
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        z-index: -1;
        width: 67.91%;
        height: 100%;
        background-image: linear-gradient(to right, #1461B5, transparent);
    }

    h1{
        font-weight: bold;
        font-size: 45px;
    }

}

.editor__content {
    img {
        max-width: 100%;
    }

    &::after {
        content: '';
        display: table;
        clear: both;
    }

}

.alignleft,
.alignright {
    margin: 0 1rem 1rem;
}

.alignleft {
    margin-left: 0;
    float: left;
}

.alignright {
    margin-right: 0;
    float: right;
}

.aligncenter {
    display: block;
    margin: 1rem auto;
}

.diferenciais{
    gap: var(--bs-gutter-x);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 70px;

    --columns: 2;

    @media (min-width: 768px) {
        --columns: 3;
    }

    @media (min-width: 992px) {
        --columns: 4;
    }

    @media (min-width: 1200px) {
        --columns: 5;
    }
}

.diferencial {
    display: flex;
    flex-direction: column;
    gap: 10px;

    width: 100%;
    max-width: calc(
        (
            100% - (
                (var(--columns) - 1) * var(--bs-gutter-x)
            )
        ) / var(--columns)
    );

    text-align: center;
}

.diferencial__title {
    font-size: 1.25rem;
    color: var(--kry-primary);
    font-weight: 700;
}

.unidades{
    --gap: var(--bs-gutter-x);
    --columns: 1;

    display: flex;
    gap: var(--gap);
    flex-wrap: wrap;

    margin-bottom: 70px;

    @media(min-width: 600px) {
        --columns: 2;
    }

    @media(min-width: 768px) {
        --columns: 3;
    }

    @media(min-width: 992px) {
        --columns: 4;
    }
}

.unidade{
    --unidade-padding: 10px;

    width: 100%;
    max-width: calc(
        (
            100% - (
                (var(--columns) - 1) * var(--bs-gutter-x)
            )
        ) / var(--columns)
    );
    padding: var(--unidade-padding);
    background: #FFF;
    box-shadow: 3px 4px rgba(0,0,0,.35);

    display: flex;
    flex-direction: column;
    gap: 10px;
}

.unidade__cidade{
    font-weight: bold;
    color: var(--kry-primary);
    font-size: 20px;

    display: flex;
    align-items: center;
    gap: 1ch;

    .fas {
        color: var(--kry-secondary);
    }
    
}

.unidade__ctl{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;

    .btn {
        flex-grow: 1;
    }
}

.btn-whatsapp {
    --bs-btn-bg: #29A71A;
    --bs-btn-color: #FFF;
    
    --bs-btn-hover-bg: #208415;
    --bs-btn-hover-color: #FFF;
}

.btn-maps {
    --bs-btn-bg: #1461B5;
    --bs-btn-color: #FFF;
    
    --bs-btn-hover-bg: hsl(211, 80%, 30%);
    --bs-btn-hover-color: #FFF;
}

.form{
    --bs-border-color: #9F9F9F;
    --bs-border-radius: 0;

    .form-group {
        margin-bottom: var(--bs-gutter-x);
    }

    .form-control {
        padding: 0.625rem .75rem;
    }

    textarea.form-control {
        height: 104px;
    }

    .btn {
        --bs-btn-font-size: 1.125rem;
        --bs-btn-padding-y: 1.125rem;
        --bs-btn-font-weight: bold;

        --bs-btn-bg: var(--kry-primary);
        --bs-btn-color: #FFF;

        --bs-btn-hover-bg: var(--kry-secondary);
        --bs-btn-hover-color: var(--kry-primary);
    }
}

.produto__servico{
    text-align: center;
    font-weight: bold;

    a{
        text-decoration: none;
        color: inherit;
    }

    color: var(--kry-primary);
}

.produto__servico__nome{
    font-size: 30px;
}

.produto__servico__descricao{
    font-size: 20px;
}

.produto__servico__img {
    margin-bottom: 10px;
}

.btn-contato {
    --bs-btn-font-size: 1.125rem;
    --bs-btn-padding-y: 1.125rem;
    --bs-btn-font-weight: bold;

    --bs-btn-bg: var(--kry-primary);
    --bs-btn-color: #FFF;

    --bs-btn-hover-bg: var(--kry-secondary);
    --bs-btn-hover-color: var(--kry-primary);

    width: 100%;
    max-width: 370px;
}

.mapa__contato{
    position: relative;
    height: 386px;

    iframe {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
    }
}

.contato__textarea{
    

    .d-flex {
        .fas {
            color: var(--kry-secondary);
        }
    }

    .redes__sociais {
        font-size: 32px;
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        margin-bottom: 30px;

        a{
            color: var(--kry-primary);
        }

        @media (max-width: 991.98px) {
            justify-content: center;

            & + img {
                margin-left: auto;
                margin-right: auto;
                display: block;
            }
        }
    }
}