/* ========================================
   CONFIGURAÇÕES GERAIS
======================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --azul-escuro: #102f40;
    --azul: #176078;
    --azul-claro: #eaf3f6;
    --branco: #ffffff;
    --cinza: #f4f7f8;
    --texto: #263943;
    --borda: #d5dce0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}

body {
    width: 100%;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--texto);
    background: var(--branco);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--azul);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.container,
.conteudo {
    width: min(1120px, 92%);
    margin: 0 auto;
}

section {
    padding: 60px 0;
}

h1,
h2,
h3 {
    color: var(--azul-escuro);
    line-height: 1.25;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
}

h2 {
    margin-bottom: 24px;
    font-size: clamp(1.6rem, 4vw, 2.3rem);
}

h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

p {
    margin-bottom: 16px;
}


/* ========================================
   CABEÇALHO
======================================== */

header {
    width: 100%;
    padding: 20px 4%;
    background: var(--branco);
    border-bottom: 1px solid var(--borda);
    text-align: center;
}

header .logo,
.logo {
    width: 110px;
    max-height: 110px;
    object-fit: contain;
    margin: 0 auto 10px;
}

header h1 {
    margin-bottom: 8px;
    font-size: clamp(1.5rem, 4vw, 2.4rem);
}

header p {
    margin-bottom: 10px;
    color: #526671;
}


/* ========================================
   IDIOMAS E BANDEIRAS
======================================== */

.seletor-idioma {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px auto;
    flex-wrap: wrap;
}

.icone-idioma {
    font-size: 20px;
    line-height: 1;
}

.bandeira-idioma {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--borda);
    border-radius: 6px;
    background: var(--branco);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.bandeira-idioma:hover {
    background: var(--azul-claro);
    transform: translateY(-2px);
}

.bandeira-idioma:focus-visible {
    outline: 2px solid var(--azul);
    outline-offset: 2px;
}


/* ========================================
   NAVEGAÇÃO
======================================== */

nav {
    max-width: 100%;
}

.menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 18px;
}

.menu a {
    color: var(--azul-escuro);
    font-weight: bold;
}


/* ========================================
   BOTÕES
======================================== */

.botao,
.btn,
button[type="submit"] {
    display: inline-block;
    padding: 12px 22px;
    border: none;
    border-radius: 6px;
    background: var(--azul);
    color: var(--branco);
    font-weight: bold;
    text-align: center;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.botao:hover,
.btn:hover,
button[type="submit"]:hover {
    background: var(--azul-escuro);
    color: var(--branco);
    text-decoration: none;
    transform: translateY(-2px);
}


/* ========================================
   DESTAQUE PRINCIPAL
======================================== */

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 70px 5%;
    background:
        linear-gradient(
            rgba(9, 39, 55, 0.76),
            rgba(9, 39, 55, 0.76)
        ),
        url("../imagens/fundo.jpg") center / cover no-repeat;
    color: var(--branco);
    text-align: center;
}

.hero h1,
.hero h2,
.hero h3 {
    color: var(--branco);
}

.hero p {
    max-width: 760px;
    margin: 20px auto;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.hero .botao,
.hero .btn {
    margin-top: 12px;
    background: #ffffff;
    color: var(--azul-escuro);
}

.hero .botao:hover,
.hero .btn:hover {
    background: var(--azul-claro);
}


/* ========================================
   TEXTOS E SEÇÕES
======================================== */

.texto-centralizado {
    text-align: center;
}

.introducao {
    max-width: 850px;
    margin: 0 auto 30px;
    text-align: center;
}

.fundo-claro {
    background: var(--cinza);
}


/* ========================================
   CARDS DE PÚBLICO E OPORTUNIDADES
======================================== */

.cards,
.grade-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 30px;
}

.card {
    height: 100%;
    padding: 25px;
    border: 1px solid var(--borda);
    border-radius: 10px;
    background: var(--branco);
    box-shadow: 0 4px 14px rgba(16, 47, 64, 0.06);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(16, 47, 64, 0.12);
}

.card p:last-child {
    margin-bottom: 0;
}


/* ========================================
   PROJETO E PARCERIAS
======================================== */

.sobre,
.projeto,
.parcerias {
    max-width: 100%;
}

.sobre p,
.projeto p,
.parcerias p {
    max-width: 900px;
}

.parcerias {
    background: var(--azul-claro);
}

.parcerias .card {
    border-color: #c9dfe7;
}


/* ========================================
   LOCALIZAÇÃO E MAPA
======================================== */

.localizacao {
    text-align: center;
}

.localizacao figure {
    width: min(900px, 100%);
    margin: 25px auto 0;
}

.localizacao img,
.mapa {
    width: 100%;
    max-height: 550px;
    object-fit: contain;
    border-radius: 8px;
}

.localizacao figcaption {
    margin-top: 10px;
    color: #526671;
    font-size: 0.95rem;
}


/* ========================================
   FORMULÁRIO DE CONTATO
======================================== */

.contato {
    background: var(--cinza);
}

.formulario,
#formContato {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: min(650px, 100%);
    margin: 0 auto;
    padding: 25px;
    border: 1px solid var(--borda);
    border-radius: 10px;
    background: var(--branco);
}

#formContato label {
    display: block;
    margin-bottom: 5px;
    color: var(--azul-escuro);
    font-weight: bold;
}

#formContato input,
#formContato select,
#formContato textarea {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid #bccbd2;
    border-radius: 6px;
    background: var(--branco);
    color: var(--texto);
}

#formContato input:focus,
#formContato select:focus,
#formContato textarea:focus {
    border-color: var(--azul);
    outline: 2px solid rgba(23, 96, 120, 0.15);
}

#formContato textarea {
    min-height: 120px;
    resize: vertical;
}

#formContato button[type="submit"] {
    width: 100%;
    margin-top: 5px;
}

#formContato button:disabled {
    cursor: wait;
    opacity: 0.7;
}


/* ========================================
   SELO E IMAGENS
======================================== */

.selo {
    display: block;
    width: min(180px, 60%);
    margin: 30px auto;
    object-fit: contain;
}

.imagem-responsiva {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}


/* ========================================
   RODAPÉ
======================================== */

footer {
    padding: 25px 4%;
    background: var(--azul-escuro);
    color: var(--branco);
    text-align: center;
}

footer p {
    margin: 0;
}

footer a {
    color: var(--branco);
}


/* ========================================
   RESPONSIVIDADE
======================================== */

@media (max-width: 700px) {
    section {
        padding: 42px 0;
    }

    header {
        padding: 18px 4%;
    }

    header .logo,
    .logo {
        width: 90px;
        max-height: 90px;
    }

    .hero {
        min-height: 340px;
        padding: 48px 5%;
    }

    .cards,
    .grade-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card {
        padding: 20px;
    }

    .menu {
        gap: 10px 16px;
    }

    #formContato,
    .formulario {
        padding: 18px;
    }

    .bandeira-idioma {
        width: 42px;
        height: 34px;
    }
}

@media (max-width: 380px) {
    body {
        font-size: 15px;
    }

    .seletor-idioma {
        gap: 6px;
    }

    .hero {
        min-height: 300px;
    }

    #formContato,
    .formulario {
        padding: 14px;
    }
}

/* ========================================
   CORREÇÕES ESPECÍFICAS — PESCADO RIO E MAR
======================================== */

/* Seletor de idiomas */
.seletor-idioma {
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 8px 12px;
    gap: 10px;
}

.seletor-idioma .bandeira-idioma {
    flex: 0 0 42px;
    padding: 0;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
}

/* Cabeçalho e logotipo */
.cabecalho {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 4%;
    text-align: center;
}

.cabecalho .logo {
    width: 105px;
    height: 105px;
    max-width: none;
    max-height: none;
    margin: 0 auto;
    flex-shrink: 0;
    object-fit: contain;
}

.cabecalho > div {
    width: 100%;
}

.cabecalho h1 {
    margin-bottom: 8px;
}

.cabecalho p {
    margin-bottom: 0;
}

/* Destaque principal: classes que existem no index.php */
.destaque {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 48px 5%;
    background:
        linear-gradient(rgba(9, 39, 55, 0.78), rgba(9, 39, 55, 0.78)),
        url("../imagens/fundo.jpg") center / cover no-repeat;
    color: #fff;
    text-align: center;
}

.conteudo-destaque {
    width: min(900px, 100%);
    margin: 0 auto;
}

.conteudo-destaque h2,
.conteudo-destaque p {
    color: #fff;
}

.conteudo-destaque p {
    margin: 16px auto;
    max-width: 760px;
}

.conteudo-destaque center {
    margin-top: 20px;
}

.conteudo-destaque .botao {
    color: #fff;
    background: var(--azul);
}

/* Cartões de oportunidades */
.oportunidades {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.cartoes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 30px;
}

.cartao {
    min-width: 0;
    height: 100%;
    padding: 24px;
    border: 1px solid var(--borda);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(16, 47, 64, 0.06);
}

.cartao p:last-child {
    margin-bottom: 0;
}

/* Seções de conteúdo */
.sobre,
.localizacao {
    padding: 48px 4%;
}

.sobre > *,
.localizacao > * {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.localizacao figure {
    width: min(900px, 100%);
}

/* Selo: evita depender do alinhamento de <center> */
body > center {
    margin: 24px auto;
}

body > center img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto;
}

/* Layout em telas pequenas */
@media (max-width: 700px) {
    .cabecalho {
        padding: 18px 4%;
    }

    .cabecalho .logo {
        width: 90px;
        height: 90px;
    }

    .destaque {
        min-height: 280px;
        padding: 40px 5%;
    }

    .cartoes {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cartao {
        padding: 20px;
    }

    .sobre,
    .localizacao {
        padding: 36px 4%;
    }
}

/* Bandeiras e barcos dos idiomas */
.seletor-idioma {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 18px;
    margin: 12px auto;
}

.seletor-idioma .idioma {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    padding: 5px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.seletor-idioma .idioma:hover {
    background: var(--azul-claro);
}

.seletor-idioma .bandeira-idioma {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 34px;
    border: 1px solid var(--borda);
    border-radius: 6px;
    background: white;
    font-size: 22px;
}

.seletor-idioma .barco {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
    transition: transform 0.6s ease;
    transform: rotateY(0deg);
}

/* Barco que começa de frente */
.seletor-idioma .barco.frente {
    transform: rotateY(180deg);
}

.seletor-idioma .idioma:focus-visible {
    outline: 2px solid var(--azul);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .seletor-idioma .barco {
        transition: none;
    }
}
