@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

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

html {
    scroll-behavior: smooth;
}

#Home,
#Equipe,
#About,
#Service,
#Contato {
    scroll-margin-top: 100px;
}

body {
    font-family: "Montserrat", sans-serif;
    line-height: 1.5;
    background-color: #fff;
    color: #111;
}

:root {
    --color-primary: #00294b;
    --color-secondary: #ff5b00;
    --color-background: #fff;
    --color-muted: #ddd;
    --color-white: #fff;

    --font-base: 16px;
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 32px;
    --space-xl: 64px;
}

/* layout.css - Container, Grid e Flex */

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.container-fluid {
    width: 100%;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -8px;
    margin-right: -8px;
}

.col {
    padding: 0 8px;
    flex: 1;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.col-9 {
    flex: 0 0 75%;
    max-width: 75%;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-4 {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
}

.col-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.col-1 {
    flex: 0 0 12.5%;
    max-width: 12.5%;
}

@media (max-width: 768px) {
    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-1 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* components.css - Botões, Navbar, Dropdown, Accordion, Modal, Tabs */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10000;
    background-color: var(--color-primary);
    color: #fff;
}

.navbar .container {
    padding: 16px;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.navbrand {
    font-weight: bold;
    color: #fff;
    flex: 0 0 auto;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.menu {
    display: flex;
    list-style: none;
    gap: 16px;
    padding: 0;
    margin: 0;
    flex: 1;
    justify-content: flex-end;
    transition: max-height 0.4s ease;
}

.menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    transition: all 0.25s ease 0s;
    position: relative;
}

.menu li a:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-secondary);
    visibility: hidden;
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;
}

.menu li a:hover {
    color: var(--color-secondary) !important;
}

.menu li a:hover:after {

    visibility: visible;
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
}

.logo-group .menu-toggle {
    display: none;
}

main {
    position: relative;
    top: 100px;
}

img {
    height: auto;
    max-width: 100%;
}

.nav-tab {
    display: flex;
    border-bottom: 1px solid var(--color-muted);
    gap: var(--space-md);
}

.nav-tab a {
    padding: var(--space-sm) var(--space-md);
    text-decoration: none;
    color: var(--color-primary);
    border-bottom: 2px solid transparent;
}

.nav-tab a.active {
    border-color: var(--color-primary);
}

.btn {
    padding: var(--space-sm) var(--space-md);
    background-color: var(--color-primary);
    color: var(--color-background);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #000;
}

.btn-contato {
    position: relative;
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 300;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    overflow: hidden;
    /* oculta o ::before e ::after fora do botão */
    z-index: 1;
}

.btn-contato:hover {
    background-color: var(--color-primary);
    color: #fff;
}

/* Elemento decorativo superior */
.btn-contato::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 40%;
    height: 100%;
    background: #212B3C;
    transform: translateX(-50%);
    clip-path: polygon(0 0, 100% 0, 91% 10%, 8% 10%, 0 0, 0 0);
    transition: 0.6s ease;
    z-index: 0;
}

/* Elemento decorativo inferior */
.btn-contato::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 40%;
    height: 100%;
    background: #212B3C;
    transform: translateX(-50%);
    clip-path: polygon(0 100%, 100% 100%, 91% 90%, 8% 90%, 0 100%, 0 100%);
    z-index: 0;
}

.btn-group {
    display: inline-flex;
}

.btn-group .btn {
    border-right: 1px solid var(--color-background);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: var(--color-background);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.accordion {
    border: 1px solid var(--color-muted);
}

.accordion-item {
    border-bottom: 1px solid var(--color-muted);
}

.accordion-header {
    background: var(--color-muted);
    padding: var(--space-sm);
    cursor: pointer;
}

.accordion-content {
    display: none;
    padding: var(--space-sm);
}

.accordion-item.open .accordion-content {
    display: block;
}

.text-secondary {
    color: var(--color-secondary);
}

.text-primary {
    color: var(--color-primary);
}

.text-white {
    color: var(--color-white);
}

.bg-primary {
    background-color: var(--color-primary);
}

.bg-primary h1,
.bg-primary h3 {
    color: var(--color-secondary);
    text-align: center;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: var(--color-background);
    padding: var(--space-md);
}

.modal.show {
    display: flex;
}

/* utilities.css - Textos, Alinhamentos, Espaçamentos */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: var(--space-sm);
    font-weight: bold;
    color: var(--color-primary);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.4rem;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    font-size: .9rem;
    margin-bottom: var(--space-sm);
    font-weight: 400;
}

.text-equipe {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3em;
}

.equipe {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.equipe-col {
    position: relative;
    text-align: center;
    transition: all 0.3s ease;
}

.equipe-img {
    border-radius: 16px;
    transition: all 0.3s ease;
}

/* Esconde os cargos inicialmente */
.equipe-cargo {
    opacity: 0;
    transition: opacity 0.4s ease;
    color: #ccc;
    margin-top: 8px;
}

/* Quando hover em qualquer col */
.equipe:hover .equipe-col {
    opacity: 0.3;
}

/* Ativa o item em hover */
.equipe-col:hover {
    opacity: 1 !important;
}

.equipe-col:hover .equipe-cargo {
    opacity: 1;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.p-1 {
    padding: var(--space-sm);
}

.p-2 {
    padding: var(--space-md);
}

.p-3 {
    padding: var(--space-lg);
}

.m-1 {
    margin: var(--space-sm);
}

.m-2 {
    margin: var(--space-md);
}

.m-3 {
    margin: var(--space-lg);
}

.wave-divider {
    position: relative;
    background-color: #f4f4f4;
    height: 60px;
    overflow: hidden;
}

.wave-divider svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: block;
}

.icon-down {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    color: #0d47d9;
    font-size: 20px;
    font-weight: bold;
    background: #f4f4f4;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-conter {
    margin-top: 16px;
    border-radius: 20px;
    box-shadow: 0 0 20px 1px rgba(0, 0, 0, .1);
    background-color: var(--color-primary);
}

.counter-container {
    text-align: center;
    padding: 20px;
    border-radius: 16px;
    background: #0575E6;
    /* fallback for old browsers */
    background: -webkit-linear-gradient(left, #0082a6, #0575E6);
    background: -moz-linear-gradient(left, #0082a6, #0575E6);
    background: -o-linear-gradient(left, #0082a6, #0575E6);
    background: linear-gradient(to right, #0082a6, #0575E6);
}

.counter-container h3 {
    font-size: 48px;
    color: var(--color-white);
    font-weight: 700;
}

.counter-item p {
    font-size: 14px;
    color: var(--color-white);
    font-weight: 300;
}

.counter-item h3 {
    font-size: 48px;
    color: var(--color-white);
    font-weight: 700;
}

.section {
    margin: 4rem 0 8rem;
}

.title__page {
    background-color: var(--color-secondary) !important;
    text-align: center;
    padding: 4rem 0;
    margin-top: 5rem;
    position: relative;
}

.title__page h1 {
    color: #f1f1f1 !important;
    font-size: 2.8rem;
}

.card-content {
    background: #fff;
    border-radius: 26px;
    padding: 12px 16px;
    margin: 12px;
    height: auto;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s ease, transform 1s ease;
    will-change: opacity, transform;
}

.card-content.active {
    opacity: 1;
    transform: translateY(0);
}

.card-content.exit {
    opacity: 0;
    transform: translateY(60px);
}

.card-content p {
    color: var(--color-primary) !important;
    font-size: 14px;
}

.card-content ul {
    color: var(--color-primary) !important;
    font-size: 14px;
    list-style-type: circle;
    padding: 0 1rem;
}

.form-contato {
    max-width: 500px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.form-group input,
.form-group select {
    padding: 10px;
    border: 1px solid var(--color-muted);
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--color-primary);
    outline: none;
}


footer {
    padding: 2.6rem 0;
    background-color: var(--color-primary);
}

footer h4 {
    color: var(--color-secondary) !important;
}

footer ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

footer ul li a {
    text-decoration: none;
    font-size: var(--space-md);
    color: var(--color-white);
    transition: all 0.25s ease 0s;
}

footer ul li a:hover {
    color: var(--color-secondary);
}

footer p {
    font-size: var(--space-md) !important;
    color: var(--color-white) !important;
}

.footer__social {
    display: flex;
    column-gap: 1.5rem;
    margin-bottom: 3rem;
}

.footer__social-link {
    font-size: var(--space-lg) !important;
    text-decoration: none;
    color: var(--color-white) !important;
    transition: all 0.25s ease 0s;
}

.footer__social-link:hover {
    color: var(--color-secondary) !important;
}

.footer__social-link i {
    display: block;
}

.box-a {
    order: 1;
}

.box-b {
    order: 2;
}

.carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
}

.carousel-slide img {
    width: 100%;
    display: block;
}

.carousel-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.carousel-buttons button {
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    padding: 10px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .navbar-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu {
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
    }

    .menu.open {
        max-height: 300px;
    }

    .menu-toggle {
        display: block !important;
        font-size: 48px;
        color: #fff;
        cursor: pointer;
        margin-left: auto;
    }

    .navbrand {
        margin-bottom: 0;
    }

    .logo-group {
        width: 100%;
        justify-content: space-between;
        margin-bottom: 8px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    h4 {
        font-size: 1rem;
    }

    p {
        font-size: .75rem;
        margin-bottom: var(--space-sm);
        font-weight: 400;
    }

    .btn-contato {
        padding: 12px 24px !important;
    }

    .box-a {
        order: 2;
    }

    .box-b {
        order: 1;
    }
}