﻿/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {
    --green: #037864;
    --green-dark: #03211f;
    --orange: #EA5D1D;
    --gold: #e3c98e;
    --white: #ffffff;
    --text: #3D3D3D;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: relative;
    width: 100%;
    z-index: 9999;
    padding: 15px 0;
    background: rgba(3, 120, 100, 1);
    backdrop-filter: blur(12px);
    transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    display: block;
    flex-shrink: 0;
}

    .logo img {
        display: block;
        width: 180px;
        height: auto;
    }


/* =========================================================
   MENU
========================================================= */

.menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 55px;
    list-style: none;
    margin: 0;
    padding: 0;
}


.menu-item {
    position: relative;
}


    .menu-item > a {
        position: relative;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 20px 0;
        color: var(--white);
        text-decoration: none;
        font-family: 'Inter', sans-serif;
        font-size: 13px;
        letter-spacing: .5px;
        transition: color .3s ease;
    }


    .menu-item:hover > a {
        color: var(--orange);
    }


    .menu-item.active > a {
        color: var(--orange);
    }


        /* =========================================================
   LINHA DO ITEM ATIVO
========================================================= */

        .menu-item.active > a::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 5px;
            width: 100%;
            height: 3px;
            background: var(--orange);
            border-radius: 20px;
        }


/* =========================================================
   SETA
========================================================= */

.arrow {
    font-size: 12px;
    transition: transform .3s ease;
}


.menu-item:hover .arrow {
    transform: rotate(180deg);
}


/* =========================================================
   BOT�O HEADER
========================================================= */

.btn-header {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--orange);
    color: var(--green-dark);
    text-decoration: none;
    padding: 18px 25px;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}


    .btn-header:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(197, 106, 27, .35);
        background: #64B980;
    }


/* =========================================================
   MEGA MENU DESKTOP
========================================================= */

.mega-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    width: min(1050px, 90vw);
    transform: translateX(-50%) translateY(20px);
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 30px;
    background: var(--white);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}


/* =========================================================
   ABRIR MEGA MENU DESKTOP
========================================================= */

.menu-item.has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}


/* =========================================================
   TRI�NGULO
========================================================= */

.mega-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    width: 22px;
    height: 22px;
    background: var(--white);
    transform: translateX(-50%) rotate(45deg);
}


/* =========================================================
   COLUNAS
========================================================= */

.menu-column {
    flex: 1;
    min-width: 0;
    padding: 0 15px;
    border-right: 1px solid var(--gold);
}


    .menu-column:last-child {
        border-right: none;
    }


/* =========================================================
   �CONE
========================================================= */

.icon-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: var(--white);
}


    .icon-circle img {
        display: block;
        width: 60px;
        height: auto;
    }


/* =========================================================
   T�TULO DA COLUNA
========================================================= */

.menu-column h3 {
    margin-bottom: 25px;
    min-height: 75px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
    font-weight: 700;
}


    .menu-column h3 hr {
        border: 0;
        border-top: 1px solid var(--gold);
    }


/* =========================================================
   LINKS DO MEGA MENU
========================================================= */

.menu-column h2 {
    margin: 0 0 15px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
}


    .menu-column h2 a {
        color: var(--text);
        text-decoration: none;
        transition: color .3s ease, padding-left .3s ease;
    }


        .menu-column h2 a:hover {
            color: var(--orange);
            padding-left: 4px;
        }


/* =========================================================
   BOT�O MOBILE
========================================================= */

.mobile-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--white);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 5px;
}


/* =========================================================
   TABLETS
========================================================= */

@media (max-width: 1200px) {

    .menu {
        gap: 30px;
    }

    .btn-header {
        padding: 16px 18px;
        font-size: 12px;
    }

    .logo img {
        width: 160px;
    }
}


/* =========================================================
   MOBILE / TABLET
========================================================= */

@media (max-width: 992px) {

    .header {
        padding: 12px 0;
    }


    .navbar {
        min-height: 60px;
    }


    /* LOGO */

    .logo img {
        width: 155px;
    }


    /* BOT�O */

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }


    /* BOT�O DESKTOP */

    .btn-header {
        display: none;
    }


    /* =====================================================
       MENU MOBILE
    ===================================================== */

    .menu {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        width: 100%;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 12px;
        margin: 0;
        background: linear-gradient( 135deg, #021f1d 0%, #063937 100% );
        border-radius: 18px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, .3);
    }


        /* MENU ABERTO */

        .menu.active {
            display: flex;
        }


    /* =====================================================
       ITEM
    ===================================================== */

    .menu-item {
        width: 100%;
    }


        .menu-item > a {
            width: 100%;
            min-height: 50px;
            padding: 15px 10px;
            justify-content: space-between;
            color: var(--white);
            font-size: 15px;
        }


        .menu-item.active > a::after {
            display: none;
        }


    /* =====================================================
       MEGA MENU MOBILE
    ===================================================== */

    .mega-menu {
        position: relative;
        width: 100%;
        max-height: none;
        overflow: visible;
        display: none;
        flex-direction: column;
        gap: 20px;
        padding: 15px;
        margin: 0 0 10px;
        background: var(--white);
        border-radius: 15px;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }


    /*
       IMPORTANTE:
       remove o comportamento de hover
       no celular
    */

    .menu-item.has-mega:hover .mega-menu {
        display: none;
    }


    /*
       Abre somente quando o JS
       adiciona .mega-open
    */

    .menu-item.has-mega.mega-open .mega-menu {
        display: flex;
    }


    /* TRI�NGULO */

    .mega-menu::before {
        display: none;
    }


    /* =====================================================
       COLUNAS MOBILE
    ===================================================== */

    .menu-column {
        width: 100%;
        padding: 0 0 20px;
        border-right: none;
        border-bottom: 1px solid var(--gold);
    }


        .menu-column:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }


    .icon-circle {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }


        .icon-circle img {
            width: 42px;
        }


    .menu-column h3 {
        min-height: auto;
        margin-bottom: 15px;
        font-size: 15px;
    }


    .menu-column h2 {
        margin-bottom: 12px;
        font-size: 13px;
    }


        .menu-column h2 a {
            font-size: 14px;
        }
}


/* =========================================================
   SMARTPHONES
========================================================= */

@media (max-width: 576px) {

    .header {
        padding: 10px 0;
    }


        .header .container {
            width: 100%;
            padding-left: 15px;
            padding-right: 15px;
        }


    .logo img {
        width: 140px;
    }


    .mobile-toggle {
        font-size: 30px;
    }


    .menu {
        top: calc(100% + 8px);
        padding: 10px;
        border-radius: 14px;
        max-height: calc(100vh - 85px);
    }


    .menu-item > a {
        font-size: 14px;
        padding: 13px 8px;
    }


    .mega-menu {
        padding: 12px;
        gap: 15px;
    }


    .menu-column {
        padding-bottom: 18px;
    }


    .icon-circle {
        width: 65px;
        height: 65px;
    }


        .icon-circle img {
            width: 38px;
        }


    .menu-column h3 {
        font-size: 14px;
    }


    .menu-column h2 a {
        font-size: 13px;
    }
}





/* =========================================
ANIMAÇÃO GLOBAL DAS SEÇÕES
========================================= */

section {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s ease, transform 1s ease;
}


    section.show {
        opacity: 1;
        transform: translateY(0);
    }
