/* BASE */
.body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;

    scroll-behavior: smooth;

}


/* HEADER */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    z-index: 100;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.50);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 24px;
    padding: 32px 0 34px;
    background-color: #18427c;
}


.header-logo {
    width: 80px;
    height: auto;
    position: absolute;
    padding-bottom: 20px;
    padding-top: 24px;
    left: 90px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 28px;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
}

/* LOGIN */

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #ffffff;
    padding: 28px 32px 32px;
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.modal-overlay.active .modal {
    opacity: 1;
    transform: translateY(0) scale(1);
}


.modal h2 {
    margin-bottom: 16px;
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal input {
    width: 100%;
    padding: 0px 16px;
    height: 52px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    box-sizing: border-box;
    font-size: 15px;
    font-family: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.modal input:focus {
    outline: none;
    border-color: #18427c;
    box-shadow: 0 0 0 3px rgba(24, 66, 124, 0.15);
}


.modal button[type="submit"] {
    margin-top: 10px;
    width: 100%;
    padding: 14px;
    background-color: #18427c;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background-color .2s ease, transform .1s ease;
}

.modal button[type="submit"]:hover {
    background-color: #12325f;
}

.modal button[type="submit"]:active {
    transform: scale(0.98);
}

.close-modal {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    color: #6b7280;
    cursor: pointer;
}

.close-modal:hover {
    color: #000;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

#about,
#services,
#contact {
    scroll-margin-top: 120px;
}

/* Mobile Dropdown */
.nav-dropdown {
    display: none;
}

/* VIDEO */
.hero {
    margin-top: 0;
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 190px;

    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            #ffffff 100%);

    pointer-events: none;
}

.hero-container {
    position: relative;

    height: 100%;
    margin: 0 auto;
}

.hero-video {
    position: absolute;

    inset: 0;
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 24px;
    color: white;
    z-index: 2;
    border-radius: 24px;
    transform: translateY(-160px);
}

.hero-title {
    margin-top: -60px;
    font-size: 42px;
    font-weight: 600;
    letter-spacing: 2.3px;

}

.hero-subtitle {
    font-size: 30px;
    font-weight: 300;
    margin-top: 10px;
    letter-spacing: 2.3px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    color: #fff;
    text-decoration: none;
}

/* dropdown */
.nav-dropdown {
    position: relative;
}

.nav-button {
    background: none;
    border: none;
    color: #fff;
    font: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
}

.nav-arrow {
    transition: transform .25s ease;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 170px;

    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);

    padding: 10px 0;
    margin: 0;
    list-style: none;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .2s ease;

    z-index: 9999;
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: #18427c;
    text-decoration: none;
    font-size: 15px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}



.nav-login {
    background-color: white;
    color: #18427c;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 8px 16px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.nav-login:hover {
    background-color: #f0f4fa;
    transform: translateY(-50%) scale(1.02);
}

.nav-login:active {
    background-color: #f0f4fa;
    transform: translateY(-50%) scale(0.98);
}

/* ===== DESTAQUES (NEWS) ===== 
.news {
    padding: 70px 20px;
    background: linear-gradient(180deg, #18427c 0%, #12325f 100%);
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
}

.news-header {
    text-align: center;
    margin-bottom: 34px;
}

.news-title {
    font-size: 34px;
    color: #fff;
    letter-spacing: .6px;
}

.news-subtitle {
    margin-top: 10px;
    color: rgba(255, 255, 255, .82);
    font-size: 16px;
    line-height: 1.5;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.news-card {
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .20);
    transition: transform .18s ease, box-shadow .18s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}

.news-link {
    display: grid;
    grid-template-rows: auto 1fr;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.news-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e5e7eb;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform .25s ease;
}

.news-card:hover .news-image {
    transform: scale(1.07);
}

.news-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    background: rgba(24, 66, 124, .92);
    color: #fff;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    letter-spacing: .4px;
}

.news-badge--event {
    background: rgba(30, 109, 232, .92);
}

.news-badge--warn {
    background: rgba(234, 67, 53, .92);
}

.news-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 13px;
}

.news-dot {
    opacity: .6;
}

.news-card-title {
    font-size: 18px;
    color: #0f172a;
    line-height: 1.25;
}

.news-excerpt {
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.55em * 3);
}

.news-cta {
    margin-top: auto;
    font-weight: 700;
    color: #18427c;
    font-size: 14px;
}
*/

/* Modal News */

.modal-news {
    max-width: 860px;
    padding: 0;
    overflow: hidden;
}

.modal-news-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #e5e7eb;
}

.modal-news-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-news-media .news-badge {
    position: absolute;
    left: 14px;
    top: 14px;
}

.modal-news-body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-news-body h2 {
    margin: 0;
}

.modal-news-body p {
    margin: 0;
    line-height: 1.7;
    color: #334155;
}

.modal-news-actions {
    margin-top: 8px;
}

.news-modal-link {
    font-weight: 700;
    color: #18427c;
    text-decoration: none;
}




/* ===== RESPONSIVO ===== */
@media (max-width: 980px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news {
        padding: 55px 16px;
    }

    .news-title {
        font-size: 26px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .news-body {
        padding: 16px;
    }
}



/* Serviços */
.services {
    padding: 40px 20px;
    background-color: #fff;
}

.services-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: #18427c;
}

.services-grid {

    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-image {
    width: 148px;
    height: 148px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 16px;
}

.service-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.service-card p {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
}

.service-button {
    margin-top: auto;
    padding: 10px 18px;
    background-color: #1e6de8;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
}


/* Sobre nos */
.about {
    padding: 70px 20px;
    background-color: #f7f9fc;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-text h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
    color: #18427c;
}

.about-text p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
    color: #333;
}

.about-highlights ul {
    list-style: none;
    padding: 0;
    margin: 40px 0 0 0;
}

.about-highlights li {
    font-size: 16px;
    margin-bottom: 14px;
    padding-left: 12px;
    border-left: 3px solid #18427c;
}

/* Contato */

.contact {
    padding: 60px 20px;
    background-color: #f7f9fc;
}

.contact-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: #18427c;
}


.contact-grid {
    /* centraliza e limita largura; grid com 4 colunas para desktop */
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.contact-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    color: #333;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;

    min-height: 180px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
}

.contact-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    flex: 0 0 auto;
    color: #18427c;
}

.contact-icon svg path,
.contact-icon svg circle,
.contact-icon svg rect {
    fill: currentColor;
}

.contact-card h3 {
    margin: 0;
    color: #18427c;
    /* título institucional */
    font-size: 18px;
}

.contact-card p {
    margin: 0;
    font-size: 14px;
    color: #555;
    text-align: center;
}

/* Cores por plataforma: controlam o `currentColor` dos ícones */
.contact-card.whatsapp .contact-icon {
    color: #25D366;
}

.contact-card.instagram .contact-icon {
    color: #C13584;
}

.contact-card.facebook .contact-icon {
    color: #1877F2;
}

.contact-card.maps .contact-icon {
    color: #EA4335;
}


/* FOOTER */
.footer {
    background-color: #18427c;
    padding: 14px;
    text-align: center;
    color: white;
}

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

@media (max-width: 768px) {

    /* HEADER */

    .nav-list {
        display: none;
    }

    .header {
        padding: 48px 20px;
        border-radius: 24px;
        max-width: 300px;
    }

    .dropdown-menu {
        top: calc(100% + 8px);
        left: auto;
        right: 0;
    }

    .header-logo {
        width: 80px;
        height: auto;
        position: absolute;
        padding-bottom: 20px;
        padding-top: 24px;
        left: 40px;
    }

    .nav-mobile {
        display: block;
        position: fixed;
        top: 30px;
        right: 20px;
        z-index: 2000;
    }

    .nav-dropdown {
        display: block;
    }

    .hamburger {
        position: static;
        display: block;
    }


    .hamburger {
        position: absolute;
        right: 16px;
        display: inline-flex;
        top: 50%;
        transform: translateY(-50%);
        z-index: 300;

        width: 44px;
        height: 44px;
        border: none;
        border-radius: 14px;

        background: #18427c;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        cursor: pointer;
    }

    .hamburger:hover {
        background: rgba(255, 255, 255, .26);
    }

    .hamburger:active {
        transform: translateY(-50%) scale(.98);
    }

    .hamburger span {
        position: absolute;
        width: 20px;
        height: 2px;
        background: #fff;
        border-radius: 999px;
        opacity: 1;
    }

    .hamburger span:nth-child(1) {
        transform: translateY(-7px);
    }

    .hamburger span:nth-child(2) {
        transform: translateY(0);
    }

    .hamburger span:nth-child(3) {
        transform: translateY(7px);
    }

    /* HERO */
    .hero {
        height: 60vh;
        margin-top: 0;
    }

    .hero-content {
        transform: none;
        padding: 0 20px;
        font-size: 18px;
    }

    .hero-title {
        font-size: 20px;
    }

    .hero-subtitle {
        font-size: 14px;
        letter-spacing: 1px;
    }

    /* SERVICES */
    .services {
        padding: 50px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* ABOUT */
    .about {
        padding: 60px 20px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-text h2 {
        font-size: 26px;
    }

    .about-highlights ul {
        margin: 0;
    }

    /* CONTACT */
    .contact {
        padding: 50px 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-card {
        min-height: auto;
        padding: 18px;
    }

    /* FOOTER */
    .footer {
        padding: 12px;
        font-size: 14px;
    }

}