* {
    box-sizing: border-box;
}

html {
    font-size: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Tipografia fluida */
h1 {
    font-size: clamp(1.5rem, 2vw + 1rem, 2.5rem);
}

p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Navegação (mobile) */
nav ul {
    display: flex;
    gap: .75rem;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
}

a {
    text-decoration: none;
}

/* Modal de contato */
.modal-contato {
    position: fixed;
    inset: 0;
    /* top:0; right:0; bottom:0; left:0; */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.766);
    z-index: 9999;
    padding: 1.25rem;
    overflow-y: hidden;
}

.modal-conteudo {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.modal-fechar {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: #cc6333;
    cursor: pointer;
}

.modal-conteudo h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #cc6333;
    text-align: center;
}

.modal-conteudo label {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.3rem;
    font-weight: bold;
}

.modal-conteudo input,
.modal-conteudo textarea {
    width: 100%;
    padding: .3rem;
    border: 1px solid #ccc;
    border-radius: .3rem;
    font-size: 1rem;
}

.modal-conteudo input::placeholder,
.modal-conteudo textarea::placeholder {
    color: initial;
    opacity: .3;
}

.modal-conteudo button[type="submit"] {
    display: block;
    margin: 1rem auto 0;
    background-color: #cc6333;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: .5rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-conteudo button[type="submit"]:hover {
    background-color: #ff531a;
}

body.modal-aberto {
    position: fixed;
    width: 100%;
    overflow: hidden;
}

/* para telas < 768px */
@media (max-width: 48rem) {
    nav ul {
        justify-content: center;
        overflow: visible;
    }

    .header {
        display: flex;
        flex-direction: column;
        position: relative;
        z-index: 1;
        min-height: 100vh;
        overflow: hidden;
    }

    .header img {
        width: 80%;
        max-width: 15rem;
        height: auto;
        margin: 0 auto;
        position: relative;
        z-index: 1;
        overflow: hidden;
        aspect-ratio: 16/9;
    }

    .header-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        background-color: #401000;
    }

    .header-menu {
        color: #ffffff;
        font-size: 1.3rem;
        margin-top: 1rem;
        margin-bottom: 1rem;

    }

    .header-menu a,
    .header-menu a:visited,
    .header-menu a:hover,
    .header-menu a:active {
        color: inherit;
    }

    .bg-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: -1;
        filter: brightness(0.7);
        will-change: auto;
        transform: translateZ(0);
    }

    .header-conteudo {
        color: #ffffff;
        text-align: center;
        margin-top: 1rem;
        padding: 1rem;
        position: relative;
        z-index: 1;
    }

    .header-conteudo h1 {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }

    .header-conteudo p {
        font-size: 1.125rem;
        margin-bottom: 4.5rem;
    }

    .header-conteudo button {
        background-color: #cc6333;
        color: #ffffff;
        border: none;
        padding: 1.2rem 2rem;
        font-size: 1.3rem;
        border-radius: 2rem;
        transition: background-color 0.3s ease;
        cursor: pointer;
    }

    .main-sobre {
        padding: 2rem 1.5rem 5rem;
    }

    .main-sobre h2,
    .main-servicos h2,
    .main-clientes h2 {
        font-size: 2.5rem;
        margin-top: 0;
        margin-bottom: 2rem;
        text-align: center;
    }

    .main-sobre p,
    .main-servicos p,
    .main-clientes p {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        text-align: left;
    }

    .main-sobre img {
        margin-top: 5rem;
        border-radius: 1rem;
        width: 100%;
        height: auto;
        aspect-ratio: 4/3;
    }

    .main-clientes-foto-brunch,
    .main-clientes-logos {
        margin-top: 2rem;
        margin-bottom: 5rem;
        border-radius: 1rem;
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        height: auto;
        max-width: 600px;
    }

    .main-clientes {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        padding: 2rem 1.5rem;
    }

    .main-servicos {
        padding: 2rem 1.5rem 2rem;
        background-color: #ffeacc;
    }

    .main-servicos a {
        display: inline-block;
        background-color: #cc6333;
        color: #ffffff;
        border: none;
        padding: 1rem 1.5rem;
        font-size: 1.3rem;
        border-radius: 0.5rem;
        text-align: center;
        transition: background-color 0.3s ease;
        margin-top: 2rem;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }

    .main-clientes {
        padding: 3rem 1.5rem 0;
    }

    .footer {
        position: relative;
        background-color: #401000;
        color: #ffffff;
        text-align: center;
        padding: 5rem 1.5rem 1rem 1.5rem;
    }

    .footer-pedido {
        position: absolute;
        left: 50%;
        transform: translate(-50%, -145%);
        padding: 1rem 1rem;
        gap: 3rem;
        background-color: #FACE7F;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0;
        border-radius: 0.3rem;
        z-index: 2;
    }

    .footer-pedido h2 {
        font-size: 1.3rem;
        margin: 0;
        white-space: nowrap;
    }

    .footer-pedido button {
        background-color: #cc6333;
        color: #ffffff;
        border: none;
        padding: 0.8rem 1rem;
        font-size: 1rem;
        border-radius: 0.3rem;
        transition: background-color 0.3s ease;
        white-space: nowrap;
        cursor: pointer;
    }

    .footer-contato {
        display: flex;
        flex-direction: column;
        align-items: start;
    }

    .footer-contato p {
        margin: 0.2rem 0;
        font-size: 0.8rem;
    }

    .footer-contato h2,
    .footer-redes h2 {
        font-size: 1.2rem;
        margin: 0.3rem 0;
    }

    .footer-direitos {
        font-size: 0.7rem;
        margin-top: 2rem;
    }

    .footer-section {
        display: flex;
        justify-content: space-around;
    }

    .footer-redes {
        display: grid;
        grid-template-columns: repeat(2, auto);
        grid-template-rows: auto auto auto;
        gap: 0.3rem 1rem;
        justify-items: center;
        align-items: center;
    }

    .footer-redes h2 {
        grid-column: 1 / -1;
        margin: 0.3rem 0;
        font-size: 1.2rem;
        justify-self: center;
    }

    .footer-redes .bi {
        font-size: 1.3rem;
        margin: 0;
    }

    .footer-redes a,
    .footer-redes a:visited,
    .footer-redes a:hover {
        color: #ffffff;
    }
}

/* para telas < 1024px */
@media (max-width: 64rem) {}

