/* ==========================================================================
   1. CONFIGURAÇÕES GERAIS E VARIÁVEIS
   ========================================================================== */
:root {
    --primary: #715d32;
    --secondary: #e5decf;
    --font-main: Arial, Helvetica, sans-serif;
    --white-transp: rgba(255, 255, 255, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    font-size: 14px;
    background-color: var(--secondary);
    color: var(--primary);
    min-height: 100vh;
    padding-top: 80px; 
    padding-bottom: 60px;
    
    /* LOGO NO BACKGROUND */
    background-image: url('./common/image/logoAd.png');
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    background-size: 250px;
}

/* ==========================================================================
   2. HEADER E NAVEGAÇÃO
   ========================================================================== */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--primary);
    color: var(--secondary);
    z-index: 1000;
    padding: 0 5%;
}

#hrdr {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    justify-content: space-between;
}

header h1 {
    font-size: 20px;
    margin-left: 15px;
    flex-grow: 1;
}

header img {
    height: 50px;
    width: auto;
    border-radius: 10px; /* Ajustado de 20px para um visual mais sutil */
}

/* Navbar */
.menu-checkbox {
    display: none !important; /* Esconde o quadradinho do checkbox em qualquer tela */
}

/* Ícone de hambúrguer escondido por padrão (Desktop) */
.menu-icon {
    display: none; 
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.7;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3vw;
    padding: 40px 20px;
    min-height: calc(100vh - 140px);
}
/* ==========================================================================
   3. DISTRIBUIÇÃO DAS DIVS (MAIN)
   ========================================================================== */

fieldset{
        display:flex;
        flex-direction:column;
        justify-content:space-around;
        gap:3vw;
    
}
    
    

.cntnr1 {
    border: var(--primary) solid 2px;
    background-color: var(--white-transp);
    backdrop-filter: blur(2px);
    
    flex: 0 1 22vw;
    aspect-ratio: 1 / 1;
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    overflow:hidden;
    border-radius: 10px;
    transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.cntnr1:hover {
    transform: translateY(-5px);
    background-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.cntnr1 h7 {
    font-size: 1.1rem;
    line-height: 1.4;
}

.cntnr1 p {
    max-width: 80%; 
    word-wrap: 
    hyphens: auto;
}
    
main img{
    width:70px;
    height:70px;
}    
    
.accessLocador {
    text-decoration: none; /* Remove o sublinhado azul padrão */
    color: inherit;        /* Usa a cor (var--primary) que já definimos */
    width: 100%;
    height: 100%;
    display: flex;         /* Permite centralizar o texto novamente */
    flex-direction:column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}


/* ==========================================================================
   4. RESPONSIVIDADE (MOBILE)
   ========================================================================== */

@media (max-width: 991px) { /* Ajustado para cobrir tablets e celulares */
    main {
        display:flex;
        flex-direction: column;
        padding-top: 40px;
        gap: 30px;
    }

    .cntnr1 {
        flex: 0 1 65vw;
        width: 65vw;
    }

    .menu-icon {
        display: flex; /* Aparece apenas no mobile/tablet */
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .menu-icon span {
        width: 25px;
        height: 3px;
        background-color: white;
    }

    .nav-menu {
        display: none; /* Esconde o menu de texto */
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--primary);
        padding: 20px;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }

    /* Mostra o menu quando o checkbox estiver marcado */
    .menu-checkbox:checked ~ .nav-menu {
        display: flex;
    }
}

/* Ajuste para Desktop */
@media (min-width: 992px) {
    header h1 {
        font-size: 24px;
    }
    
    .cntnr1 {
        flex: 0 1 250px; /* Tamanho fixo máximo para não deformar em telas 4K */
    }

    /* Garante que o menu esteja sempre visível no Desktop */
    .nav-menu {
        display: flex !important;
    }
    
    fieldset{
        display:flex;
        flex-direction:row;
        gap:3vw;
        min-width:100%;
        max-height:100%;
    }
}