/* RESET */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: Arial, Helvetica, sans-serif;
    background-color: lightyellow;
}

body {
    background-color: beige; /* laterais */
    padding: 30px 0;
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;
    background-color: lightyellow;
    border-radius: 20px;
}

/* NAV */
nav {
    background-color: #f5f5f0;
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 0;
    padding: 20px 40px;
}

nav ul li a {
    color: #666;
    font-weight: bold;
    font-size: 1.4rem;
    text-decoration: none;
    display: inline-block;
}

/* LINKS GERAIS */
a {
    color: black;
    text-decoration: none;
    font-weight: 400;
    font-size: 20px;
}

/* HEADER */
header {
    text-align: center;
    background-color: #FFEB3B;
    padding: 20px 0;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.5);
}

header nav a {
    display: inline-block;
    margin: 0 15px;
    padding: 10px 20px;
    background-color: #333;
    color: #FFEB3B;
    font-weight: bold;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, background-color 0.2s;
}

header nav a:hover {
    transform: scale(1.1);
    background-color: #FFF176;
}

/* UTILITÁRIOS */
.center {
    text-align: center;
    font-weight: 800;
    font-size: 70px;
}

/* IMAGENS */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.img-topo {
    position: relative;
    right: -10px;
    top: 20px;
    width: 90px;
    max-width: 100%;
    margin: 0 auto 20px;
}

/* TOPO */
.topo {
    position: relative;
    width: 100%;
    min-height: 500px;
    background-image:
        linear-gradient(
            rgba(255, 255, 224, 0.85),
            rgba(255, 255, 224, 0.85)
        ),
        url("./img/mapa.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 24px;
    margin: clamp(30px, 8vw, 120px) 0 20px;
    padding: 80px 20px;
    text-align: center;
}

.topo h2 {
    font-weight: 800;
    font-size: 70px;
    margin: 0;
    line-height: 1.2;
}

/* MAIN */
.main {
    text-align: left;
}

.section {
    margin: 40px 0;
}

/* TÍTULOS */
h3 {
    font-size: 30px;
    margin-bottom: 15px;
    line-height: 1.4;
    max-width: 600px;
    position: relative;
}

/* IMAGENS DECORATIVAS */
.pato-section {
    position: absolute;
    right: 20px;
    max-width: 200px;
}

.cachorro-section {
    max-width: 200px;
    margin-top: 10px;
}

/* TEXTO */
p {
    font-size: 16px;
    line-height: 1.7;
}

.texto-2,
.texto-3 {
    padding-left: 0;
}

/* SECTIONS */
section {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 25px;
    border-radius: 15px;
    margin-top: 40px;
}

.caixa-texto {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.caixa-texto p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.conteudo-texto {
    flex: 1;
    max-width: 650px;
}

.pato-caixa {
    width: 300px;
    max-width: 100%;
}

section p {
    margin-top: 20px;
    line-height: 1.8;
    font-size: 18px;
    padding: 10px;
    margin-bottom: 15px;
    margin-right: 10px;
}

section h3 {
    margin-bottom: 15px;
    font-size: 30px;
    margin-right: 10px;
}

/* FOOTER */
footer {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid white;
    background-color: white;
    font-size: 14px;
    color: #333;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 -5px 10px rgba(0,0,0,0.5);
}

footer p {
    font-size: 20px;
    color: black;
    font-family: Arial, Helvetica, sans-serif;
}

/* CENTRALIZAÇÃO GERAL */
section, main, header, footer {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* TEXTO MOBILE / DESKTOP */
.texto-mobile {
    display: none !important;
}

.texto-desktop {
    display: block !important;
}

/* RESPONSIVO */
@media (max-width: 768px) {

    body {
        padding: 15px 0;
    }

    .container {
        width: 95%;
        padding: 0 15px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 20px 10px;
    }

    nav ul li a {
        font-size: 1.1rem;
        text-align: center;
    }

    a {
        font-size: 16px;
    }

    .center {
        font-size: 38px;
        line-height: 1.2;
    }

    .topo {
        min-height: auto;
        padding: 50px 15px;
        margin-top: 30px;
    }

    .topo h2 {
        font-size: 34px;
        line-height: 1.2;
    }

    .img-topo {
        width: 70px;
        top: 10px;
        right: 0;
    }

    .caixa-texto {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 10px;
    }

    .conteudo-texto {
        max-width: 100%;
    }

    .texto-2,
    .texto-3 {
        padding-left: 0;
    }

    .cachorro-section {
        position: static;
        max-width: 150px;
        margin: 10px auto;
    }

    .pato-section {
        position: static;
        max-width: 140px;
        margin: 10px auto;
    }

    .pato-caixa {
        width: 200px;
        margin-top: 20px;
    }

    section {
        padding: 15px;
        margin-top: 20px;
        margin-bottom: 10px;
        min-height: auto;
    }

    section h3 {
        font-size: 22px;
        margin-bottom: 10px;
        max-width: 100%;
        text-align: center;
    }

    section p,
    .caixa-texto p,
    p {
        font-size: 16px;
        padding: 8px;
        line-height: 1.7;
        margin-bottom: 10px;
        text-align: center;
    }

    .texto-desktop {
        display: none !important;
    }

    .texto-mobile {
        display: block !important;
    }
}