* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    color: #111;
    line-height: 1.5;
}

img {
    max-width: 100%;
}

.site-header {
    background-color: #000;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.site-header h1 {
    margin: 0;
    font-size: 1.6rem;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

nav a:hover,
nav a:focus-visible,
nav a[aria-current="page"] {
    color: #ff6600;
}

.banner {
    background-color: #ff6600;
    color: #fff;
    text-align: center;
    padding: 3rem 1rem;
}

.banner h2 {
    margin-top: 0;
}

.banner p {
    margin-bottom: 0;
}

.secao {
    padding: 3rem 1.25rem;
}

h2 {
    text-align: center;
}

.sobre-nos-container {
    max-width: 1050px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    flex: 0 0 auto;
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.texto-container {
    max-width: 900px;
    margin-top: 1.5rem;
    text-align: justify;
}

.texto-container h2 {
    margin-top: 0;
}

.servicos {
    background-color: #f9f9f9;
}

.titulo-servicos {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 2rem;
}

.servicos-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.servico {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.servico img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    margin-bottom: 0.75rem;
}

.servico h3 {
    margin: 0;
    font-size: 1.1rem;
}

.fale-conosco {
    padding: 3rem 1.25rem;
    background-color: #fff;
    text-align: center;
    border-top: 2px solid #ddd;
}

.fale-conosco h2 {
    margin-top: 0;
}

.fale-conosco p {
    font-size: 1.05rem;
}

.fale-conosco a {
    color: #d95200;
    text-decoration: none;
    font-weight: bold;
}

.fale-conosco a:hover,
.fale-conosco a:focus-visible {
    text-decoration: underline;
}

.contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact a {
    display: block;
    width: 50px;
    height: 50px;
}

.contact img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.contact img:hover {
    transform: scale(1.08);
}

.portfolio-gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
}

.portfolio-gallery img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 1rem 5rem 1rem 1rem;
}

footer p {
    margin: 0;
}

@media (min-width: 800px) {
    .sobre-nos-container {
        flex-direction: row;
        align-items: flex-start;
        gap: 2.5rem;
    }

    .texto-container {
        margin-top: 0;
        flex: 1;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }

    .site-header h1 {
        font-size: 1.35rem;
    }

    nav ul {
        gap: 0.75rem 1rem;
    }

    .banner {
        padding: 2.25rem 1rem;
    }

    .texto-container {
        text-align: left;
    }

    .portfolio-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    .portfolio-gallery img {
        height: 190px;
    }

    .contact {
        right: 12px;
        bottom: 12px;
    }

    .contact a,
    .contact img {
        width: 44px;
        height: 44px;
    }

    footer {
        padding-right: 4.5rem;
        font-size: 0.9rem;
    }
}
