
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* ==============================
   CORES DO PROJETO
============================== */

:root {
    --azul: #17364B;
    --azul-claro: #365A70;
    --areia: #F4E5C9;
    --areia-clara: #FFF4E1;
    --marrom: #927451;
    --texto: #344B58;
}

/* ==============================
   CONFIGURAÇÕES GERAIS
============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    color: var(--azul);
    font-family: 'Montserrat', sans-serif;
    background-color: var(--areia);

    background-image:
        radial-gradient(
            ellipse at 20% 30%,
            rgba(255,255,255,.65),
            transparent 55%
        ),
        radial-gradient(
            ellipse at 80% 70%,
            rgba(180,145,100,.12),
            transparent 55%
        ),
        repeating-linear-gradient(
            35deg,
            rgba(120,95,65,.035) 0px,
            rgba(120,95,65,.035) 1px,
            transparent 1px,
            transparent 4px
        );

    overflow-x: hidden;
}

/* ==============================
   CABEÇALHO
============================== */

.cabecalho {
    min-height: 85px;
    padding: 15px 7%;

    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;

    border-bottom: 1px solid var(--azul);
    background: rgba(244,229,201,.95);

    position: relative;
    z-index: 10;
}

/* LOGO */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;
    color: var(--azul);

    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* TARTARUGA PEQUENA DO CABEÇALHO */

.logo img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    display: block;
}

/* MENU */

nav {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

nav button {
    background: none;
    border: none;
    cursor: pointer;

    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;

    color: var(--azul);
    padding: 12px 0;

    position: relative;
}

nav button::after {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 0;

    width: 0;
    height: 2px;

    background: var(--azul);
    transition: .3s;
}

nav button:hover::after {
    width: 100%;
}

/* ==============================
   ONDAS
============================== */

.ondas {
    height: 85px;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.ondas svg {
    width: 200%;
    height: 100%;
    animation: ondas 15s linear infinite;
}

.ondas path {
    fill: none;
    stroke: var(--azul);
    stroke-width: 2;
    stroke-linecap: round;
}

@keyframes ondas {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ==============================
   CENÁRIO MARINHO
============================== */

.cenario {
    position: fixed;
    inset: 85px 0 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.alga,
.coral {
    position: absolute;
    bottom: 0;
    width: 140px;
    opacity: .85;
}

.esquerda {
    left: -15px;
    transform-origin: bottom;
    animation: balanco 6s ease-in-out infinite;
}

.direita {
    right: -15px;
    width: 155px;
    transform-origin: bottom;
    animation: balanco 7s ease-in-out infinite reverse;
}

@keyframes balanco {
    0%,100% {
        transform: rotate(-3deg);
    }

    50% {
        transform: rotate(3deg);
    }
}

/* ==============================
   BOLHAS
============================== */

.bolha {
    position: absolute;
    bottom: -30px;

    border: 1.5px solid var(--azul);
    border-radius: 50%;

    opacity: .5;
    animation: subir 10s linear infinite;
}

.b1 {
    left: 15%;
    width: 13px;
    height: 13px;
}

.b2 {
    left: 35%;
    width: 9px;
    height: 9px;
    animation-delay: 3s;
}

.b3 {
    right: 20%;
    width: 17px;
    height: 17px;
    animation-delay: 5s;
}

.b4 {
    right: 40%;
    width: 11px;
    height: 11px;
    animation-delay: 7s;
}

.b5 {
    left: 25%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
}

.b6 {
    left: 50%;
    width: 10px;
    height: 10px;
    animation-delay: 4s;
}

.b7 {
    right: 10%;
    width: 12px;
    height: 12px;
    animation-delay: 6s;
}

.b8 {
    right: 30%;
    width: 8px;
    height: 8px;
    animation-delay: 8s;
}

.b9 {
    left: 65%;
    width: 14px;
    height: 14px;
    animation-delay: 1s;
}

.b10 {
    left: 80%;
    width: 10px;
    height: 10px;
    animation-delay: 5s;
}

.b11 {
    left: 45%;
    width: 16px;
    height: 16px;
    animation-delay: 7s;
}

.b12 {
    right: 5%;
    width: 9px;
    height: 9px;
    animation-delay: 9s;
}

@keyframes subir {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    20% {
        opacity: .5;
    }

    100% {
        transform: translateY(-80vh);
        opacity: 0;
    }
}

/* ==============================
   PÁGINAS
============================== */

.pagina {
    display: none;
    min-height: 75vh;
    padding: 35px 8% 70px;

    position: relative;
    z-index: 2;

    animation: aparecer .5s ease;
}

.pagina.ativa {
    display: block;
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================
   PÁGINA INICIAL
============================== */

.hero {
    min-height: 530px;
    max-width: 1200px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.hero-texto {
    max-width: 610px;
}

.subtitulo {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--marrom);
    margin-bottom: 18px;
}

.hero h1,
.conteudo h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(40px,5vw,68px);
    line-height: 1.05;
    margin-bottom: 25px;
}

.hero p,
.texto p {
    color: var(--texto);
    font-size: 14px;
    line-height: 2;
    margin-bottom: 28px;
}

/* BOTÃO PRINCIPAL */

.botao-principal {
    background: var(--azul);
    border: 1px solid var(--azul);
    color: var(--areia-clara);

    padding: 17px 26px;

    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;

    cursor: pointer;
    transition: .3s;
}

.botao-principal:hover {
    background: transparent;
    color: var(--azul);
}

/* ==============================
   TARTARUGA GRANDE DO CORPO
============================== */

.tartaruga-animada {
    width: min(45%, 500px);
    max-width: 500px;
    flex: 0 1 500px;

    animation: nadar 5s ease-in-out infinite;
}

.tartaruga-animada img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;

    filter: drop-shadow(
        4px 8px 5px rgba(23,54,75,.15)
    );
}

/* ANIMAÇÃO DA TARTARUGA */

@keyframes nadar {
    0%,100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-18px) rotate(2deg);
    }
}

/* ==============================
   CONTEÚDO
============================== */

.conteudo {
    max-width: 1050px;
    margin: 20px auto;
}

.conteudo h1 {
    font-size: clamp(38px,5vw,55px);
}

.descricao {
    color: var(--texto);
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.texto {
    max-width: 850px;
    padding: 35px 0;
}

.texto p {
    text-align: justify;
    font-size: 15px;
}

/* ==============================
   BOTÕES DE MONITORAMENTO
============================== */

.botoes {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
    margin: 30px 0;
}

.botao-dado {
    background: rgba(255,244,225,.8);
    border: 1px solid rgba(23,54,75,.5);
    color: var(--azul);

    padding: 20px 10px;

    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;

    cursor: pointer;
    transition: .3s;
}

.botao-dado span {
    display: block;
    font-size: 25px;
    margin-bottom: 10px;
}

.botao-dado:hover,
.botao-dado.ativo {
    background: var(--azul);
    color: var(--areia-clara);
    transform: translateY(-3px);
}

/* ==============================
   CARTÕES
============================== */

.cartao {
    padding: 30px;
    margin-top: 20px;

    background: rgba(255,244,225,.82);
    border: 1px solid rgba(23,54,75,.4);

    box-shadow: 0 8px 25px rgba(23,54,75,.07);
}

.cartao-cabecalho {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cartao h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
}

.status {
    padding: 9px 12px;
    border: 1px solid #78977D;
    color: #456B50;
    font-size: 10px;
}

.ponto {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4C985A;
    margin-right: 5px;
}

/* VALORES */

.valor {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 25px 0;
}

.valor strong {
    font-family: 'Cormorant Garamond', serif;
    font-size: 65px;
}

.valor span {
    font-size: 20px;
}

/* GRÁFICO */

#grafico {
    display: block;
    width: 100%;
    height: 230px;
}

#mensagem-dados,
#mensagem-mapa {
    font-size: 12px;
    color: var(--marrom);
    margin-top: 15px;
}

#ultima-atualizacao {
    display: block;
    font-size: 10px;
    margin-top: 12px;
    color: #777;
}

/* ELEMENTOS ESCONDIDOS */

.escondido {
    display: none !important;
}

/* ==============================
   MAPA
============================== */

.coordenadas {
    display: flex;
    gap: 45px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.coordenadas div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.coordenadas span {
    color: var(--marrom);
    font-size: 12px;
}

.coordenadas strong {
    font-size: 17px;
}

#mapa {
    display: block;
    width: 100%;
    height: 380px;
    border: 2px solid var(--azul);
}

/* ==============================
   HISTÓRICO
============================== */

.tabela-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

th,
td {
    padding: 15px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(23,54,75,.2);
}

th {
    background: var(--azul);
    color: var(--areia-clara);
}

tr:nth-child(even) {
    background: rgba(216,193,157,.2);
}

/* ==============================
   DISPOSITIVOS
============================== */

.dispositivos {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
    margin-top: 35px;
}

.dispositivos article {
    background: rgba(255,244,225,.8);
    border: 1px solid rgba(23,54,75,.4);
    padding: 25px;
}

.dispositivos article > span {
    font-size: 30px;
}

.dispositivos h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    margin: 12px 0;
}

.dispositivos p {
    font-size: 12px;
    line-height: 1.8;
    color: var(--texto);
}

/* ==============================
   RODAPÉ
============================== */

.rodape-monitoramento {
    text-align: center;
    font-size: 10px;
    margin-top: 20px;
    color: var(--marrom);
}

footer {
    position: relative;
    z-index: 2;
    padding: 25px;
    text-align: center;
    background: var(--azul);
    color: var(--areia-clara);
    font-size: 11px;
    letter-spacing: 1px;
}

footer span {
    display: block;
    margin-top: 8px;
    opacity: .75;
}

/* ==============================
   RESPONSIVIDADE - TABLETS
============================== */

@media(max-width:800px) {

    .cabecalho {
        justify-content: center;
    }

    nav {
        justify-content: center;
        gap: 16px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 35px 0;
    }

    .tartaruga-animada {
        width: min(90%, 400px);
        max-width: 400px;
        flex-basis: auto;
        margin: 0 auto;
    }

    .botoes {
        grid-template-columns: repeat(2,1fr);
    }

    .dispositivos {
        grid-template-columns: 1fr;
    }
}

/* ==============================
   RESPONSIVIDADE - CELULARES
============================== */

@media(max-width:450px) {

    .pagina {
        padding: 25px 5%;
    }

    .logo {
        font-size: 13px;
    }

    .logo img {
        width: 45px;
        height: 45px;
    }

    nav {
        gap: 12px;
    }

    nav button {
        font-size: 10px;
    }

    .cartao {
        padding: 18px;
    }

    #mapa {
        height: 280px;
    }

    .tartaruga-animada {
        width: min(85%, 300px);
    }
}
