/* ============================================================
   VARIÁVEIS GLOBAIS
   ============================================================ */
:root {
    --cor-primaria: rgb(31, 84, 124);
    --cor-primaria-escura: rgb(9, 39, 61);
    --cor-primaria-hover: rgb(15, 63, 100);
    --cor-branca: #ffffff;
    --sombra: 0 6px 14px rgba(0, 0, 0, 0.15);
    --icone-cor: rgb(255, 255, 255);
    --font-base: 'Montserrat', sans-serif;
    --gradiente-header: linear-gradient(to bottom, transparent 0%, rgba(12, 47, 73, 0.6) 100%) rgb(31, 84, 124);
}

/* ============================================================
   RESET BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    margin: 0;
    width: 100vw;
    padding: 0;
    font-family: var(--font-base);
    background-color: transparent;
}

/* ============================================================
   LAYOUT PRINCIPAL
   ============================================================ */
#main_div {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#conteudo-geral {
    width: 100%;
    text-align: center;
}

/* ============================================================
   HEADER / NAVEGAÇÃO
   ============================================================ */
#header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: var(--gradiente-header);
    width: 100vw;
    height: 14vh;
}

/* LOGO */
#logo {
    margin-top: 10%;
    width: 30vw;
    height: 70vh;
    background-image: url(img/escudo_ralth_site.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    z-index: 100;
}

/* BOTÃO MENU */
#menu {
    position: absolute;
    right: 50px;
    top: 20px;
    width: 60px;
    height: 60px;
    background-image: url(img/img_menu.png);
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    z-index: 100;
}

/* ================= MENU MOBILE ================= */

/* Esconde os dois blocos originais no mobile */
#menu_opcoes_1,
#menu_opcoes_2 {
    display: none !important;
}

/* Container único do menu mobile */
#menu_mobile_unificado {
    position: absolute;
    top: 14vh;
    left: 0;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--cor-primaria-hover);

    max-height: 0;
    opacity: 0;
    overflow: hidden;

    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;

    z-index: 50;
}

#menu_mobile_unificado.mostrar {
    max-height: 100vh;
    opacity: 1;
    padding: 15px 0;
}

#menu_mobile_unificado a {
    display: block;
    width: 85%;
    padding: 14px;
    margin: 8px 0;

    background: var(--cor-primaria);
    color: var(--cor-branca);

    font-size: 1rem;
    font-weight: bold;

    border-radius: 6px;
    border-bottom: 2px solid white;

    text-align: center;
    text-decoration: none;

    transition: all 0.2s ease;
}

#menu_mobile_unificado a:hover {
    background: var(--cor-primaria-escura);
}

/* BLOQUEIA SCROLL */
body.menu-aberto {
    overflow: hidden;
}

/* ============================================================
   CARROSSEL
   ============================================================ */
.carrossel {
    width: 100%;
    max-width: 100vw;
    height: 35vh;
    margin: auto;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.imgs-swiper {
    background-color: var(--cor-primaria);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 100%;
}

/* Imagens do carrossel — mobile usa contain */
.img1 {
    background-image: url(img/carrossel-1.jpeg);
    background-size: contain;
}

.img2 {
    background-image: url(img/carrossel-2.jpeg);
    background-size: contain;
}

.img3 {
    background-image: url(img/carrossel-3.jpeg);
    background-size: contain;
}

.img4 {
    background-image: url(img/carrossel_4.jpeg);
    background-size: contain;
}

.img5 {
    background-image: url(img/carrossel_5.jpeg);
    background-size: contain;
}

.img6 {
    background-image: url(img/carrossel_6.jpeg);
    background-size: contain;
}

.img7 {
    background-image: url(img/carrossel_7.jpeg);
    background-size: contain;
}

.anterior,
.proximo {
    color: var(--cor-branca);
}

/* ============================================================
   SAUDAÇÃO
   ============================================================ */
.conteudo-saudacao {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 20px;
    background: var(--gradiente-header);
    gap: 10px;
}

.conteudo-saudacao h1 {
    font-size: clamp(1.5rem, 5vw, 3.2rem);
    color: var(--cor-branca);
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.8px;
    text-align: center;
    line-height: 1.2;
}

.conteudo-saudacao p {
    font-size: clamp(0.95rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-weight: 400;
    text-align: center;
}

/* ============================================================
   SEÇÃO QUEM SOMOS
   ============================================================ */
.secao-quem-somos {
    width: 100%;
    background: linear-gradient(135deg, rgba(31, 84, 124, 0.04) 0%, rgba(71, 179, 228, 0.06) 100%);
    padding: 60px 20px;
}

.titulo-secao {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--cor-primaria-escura);
    text-align: center;
    margin: 0 0 40px 0;
    letter-spacing: -0.5px;
}

.conteudo-quem-somos {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.paragrafo-principal,
.paragrafo-secundario {
    color: var(--cor-primaria);
    text-align: justify;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.8;
    font-weight: 400;
    margin: 0;
}

.paragrafo-principal {
    font-weight: 500;
    color: var(--cor-primaria-escura);
}

.paragrafo-secundario {
    font-weight: 400;
}

/* ============================================================
   CONTEÚDO PRINCIPAL (antigo)
   ============================================================ */
#conteudo {
    width: 90%;
    max-width: 800px;
    border-radius: 6px;
    padding: 18px;
}

#conteudo h5 {
    font-size: clamp(20px, 5vw, 34px);
    font-weight: bolder;
    color: var(--cor-primaria);
    text-align: center;
}

#conteudo p {
    color: var(--cor-primaria);
    text-align: justify;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    line-height: 1.6;
    font-weight: normal;
}

h5 {
    font-weight: bolder;
    font-size: 16px;
    color: var(--cor-primaria);
    text-align: center;
}

p {
    font-weight: normal;
    text-indent: 0;
    text-align: justify;
    font-size: 1em;
    line-height: 1.6;
}

/* ============================================================
   SEÇÃO DE VALORES
   ============================================================ */
.titulo-valores {
    color: var(--cor-primaria-escura);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    text-align: center;
    margin: 50px 0 30px 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.valores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    justify-content: center;
    align-items: start;
    width: 100%;
    max-width: 1100px;
    padding: 40px 20px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(31, 84, 124, 0.02) 0%, rgba(71, 179, 228, 0.04) 100%);
    border-radius: 16px;
}

.valor {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(31, 84, 124, 0.08);
}

.valor:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(31, 84, 124, 0.2);
    box-shadow: 0 8px 24px rgba(31, 84, 124, 0.12);
    transform: translateY(-4px);
}

.icone {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-primaria-hover) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(31, 84, 124, 0.25);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.icone svg {
    width: 44px;
    height: 44px;
    display: block;
    fill: var(--icone-cor);
}

.valor .titulo {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: var(--cor-primaria-escura);
    padding: 0;
    line-height: 1.4;
}

.valor:hover .icone {
    transform: scale(1.08) rotateZ(2deg);
    box-shadow: 0 12px 28px rgba(31, 84, 124, 0.35);
}

@media (max-width: 768px) {
    .valores {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 16px;
        padding: 30px 16px;
    }

    .icone {
        width: 75px;
        height: 75px;
    }

    .icone svg {
        width: 38px;
        height: 38px;
    }

    .valor .titulo {
        font-size: 0.9rem;
    }
}

/* ============================================================
   RODAPÉ
   ============================================================ */
#rodape {
    width: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(12, 47, 73, 0.9) 100%) rgb(31, 84, 124);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-around;
    padding: 30px 15px;
    gap: 30px;
    color: #f5f5f5;
    font-family: var(--font-base);
}

.footer-col {
    text-align: center;
    min-width: 250px;
    flex: 1;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-subtitle {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-text {
    font-size: 1rem;
    color: var(--cor-branca);
    font-weight: bold;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

footer a {
    text-decoration: none;
    color: var(--cor-branca);
    font-weight: bold;
}

.contato-icone {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.contato-icone i {
    color: var(--cor-branca);
    font-size: 1.3rem;
}

.contato-icone:hover {
    transform: scale(1.1);
}

/* --- REDES SOCIAIS --- */
.footer-socials {
    display: flex;
    justify-content: center;
}

.footer-socials a {
    margin: 10px;
}

.icone-social {
    width: 55px;
    height: 55px;
    background-color: rgba(70, 65, 65, 0.08);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1.5px solid rgba(155, 155, 155, 0.15);
    transition: transform 0.3s ease, background-color 0.3s ease;
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
}

/* Ícones sociais */
#yout {
    background-image: url('https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/youtube.svg');
}

#wzp {
    background-image: url('https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/whatsapp.svg');
}

#insta {
    background-image: url('https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/instagram.svg');
}

#face {
    background-image: url('https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/facebook.svg');
}

#yout,
#wzp,
#insta,
#face {
    filter: invert(1) brightness(2);
}

#yout:hover,
#wzp:hover,
#insta:hover,
#face:hover {
    transform: scale(1.1);
    background-color: rgba(189, 186, 186, 0.08);
    border-color: rgba(22, 21, 21, 0.42);
}

.link_rs {
    text-decoration: none;
    color: var(--cor-branca);
}

/* ============================================================
   TABLET (>=600px)
   ============================================================ */
@media (min-width: 600px) {
    #logo {
        height: 18vw;
        max-height: 120px;
        margin-left: 38%;
    }

    .conteudo-saudacao {
        padding: 16px;
    }
}

/* ============================================================
   DESKTOP (>=800px)
   ============================================================ */
@media (min-width: 800px) {

    /* Restaura os blocos originais no desktop */
    #menu_opcoes_1,
    #menu_opcoes_2 {
        display: flex !important;
    }

    /* Esconde o container unificado no desktop */
    #menu_mobile_unificado {
        display: none !important;
    }

    /* --- Header desktop --- */
    #opcoes {
        flex-direction: column;
        margin-bottom: 2%;
        background: linear-gradient(to bottom, var(--cor-primaria), var(--cor-primaria));
        box-shadow: 8px 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 50;
    }

    #header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: var(--gradiente-header);
        padding: 10px 30px;
        height: 20vh;
        width: 100vw;
        margin-top: 12vh;
    }

    .menu-lado {
        display: flex;
        gap: 20px;
        flex: 1;
    }

    #logo {
        margin: 2vh auto;
        height: 32vh;
        max-height: none;
        background-size: contain;
        width: 15%;
        flex: none;
    }

    #menu {
        display: none;
    }

    .menu_opcoes_1 {
        justify-content: left;
    }

    .menu_opcoes_2 {
        justify-content: right;
    }

    /* LINKS */
    .menu-lado a {
        font-size: 1.6rem;
        font-weight: bold;
        color: var(--cor-branca);
        text-decoration: none;
        padding: 8px 12px;
        transition: 0.3s;
    }

    .menu-lado a:hover {
        background: var(--cor-branca);
        color: var(--cor-primaria);
        border-radius: 6px;
    }

    #menu_opcoes_1 {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: end;
        justify-content: center;
        background-color: transparent;
        width: 100%;
        max-height: none;
        height: auto;
        opacity: 1;
        margin: 0;
        padding: 10px;
        top: auto;
    }

    #menu_opcoes_1 a {
        font-weight: bold;
        background-color: transparent;
        color: var(--cor-branca);
        border: none;
        width: auto;
        padding: 10px 15px;
        margin: 5px;
        transition: background-color 0.3s, color 0.3s;
        border-radius: 0;
    }

    #menu_opcoes_1 a:hover {
        background-color: var(--cor-branca);
        border-radius: 8px;
        color: var(--cor-primaria);
    }

    #menu_opcoes_2 {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: end;
        justify-content: center;
        background-color: transparent;
        width: 100%;
        max-height: none;
        height: auto;
        opacity: 1;
        margin: 0;
        padding: 10px;
        top: auto;
    }

    #menu_opcoes_2 a {
        font-weight: bold;
        background-color: transparent;
        color: var(--cor-branca);
        border: none;
        width: auto;
        padding: 10px 15px;
        margin: 5px;
        transition: background-color 0.3s, color 0.3s;
        border-radius: 0;
    }

    #menu_opcoes_2 a:hover {
        background-color: var(--cor-branca);
        border-radius: 8px;
        color: var(--cor-primaria);
    }

    /* --- Carrossel desktop --- */
    .carrossel {
        height: 75vh;
        border-radius: 5px;
        box-shadow: 8px 4px 8px rgba(0, 0, 0, 0.2);
        margin-top: -21vh;
        margin-bottom: 10vh;
    }

    .img1,
    .img2,
    .img3,
    .img4,
    .img5,
    .img6,
    .img7,
    .img8,
    .img9,
    .img10 {
        background-size: cover;
    }

    /* --- Saudação desktop --- */
    .conteudo-saudacao {
        margin-top: -11vh;
        height: 30vh;
        padding: 20px;
    }

    /* --- Conteúdo desktop --- */
    #conteudo-geral {
        padding: 5%;
        margin-top: 6vh;
        border-radius: 5px;
    }

    #conteudo {
        width: 55%;
        padding: 20px;
        margin: 2% auto;
    }

    /* --- Rodapé desktop --- */
    .footer-container {
        padding: 40px 20px;
        flex-wrap: nowrap;
    }

    .footer-col {
        min-width: 200px;
    }

    .footer-socials {
        max-width: none;
    }

    .icone-social {
        width: 55px;
        height: 55px;
        background-size: 60%;
    }
}

/* ============================================================
   DESKTOP LARGO (>=1200px)
   ============================================================ */
@media (min-width: 1200px) {
    #menu_opcoes a {
        font-size: 20px;
    }
}