/* Importação das fontes */
@import url('https://fonts.googleapis.com/css?family=Poppins:400,700|Roboto:400,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@300;400;600&display=swap');

:root {
    --primary-color: #015F97; /* Azul principal */
    --hover-color: #5DB3D4;   /* Azul destaque */
    --hover-light-color: #A9D8E5;  /* Azul destaque fraco */
    --highlight-color: #FFA500; /* Laranja para destaque */
    --text-color: #333;
    --background-color: #fff;
    --background-offcolor: #e9e9e9;
}

/* Fontes e Diretrizes */
body {
    font-family: 'Titillium Web', 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    scroll-behavior: smooth;
    font-size: 1rem; /* 16px */
}

.section-title{
    min-height: 100px;
}

.section-title:after{
    content: " ";
    width: 70px;
    height: 2px;
    display: block;
    background: var(--highlight-color);
    position: absolute;
    left: 50%;
    margin-left: -35px;
    margin-top: 15px;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--background-color);
    z-index: 1020;
}
.spinner {
    width: 2.5rem; /* 40px */
    height: 2.5rem; /* 40px */
    margin: 6.25rem auto; /* 100px */
    background-color: var(--primary-color);
    border-radius: 100%;
    animation: spin 1s infinite ease-in-out;
}

@keyframes spin {
    0% { transform: scale(0); }
    100% { transform: scale(1); opacity: 0; }
}



/* Header e Navbar */
header {
    width: 100%;
    position: fixed;
    top: 0;
    background: var(--primary-color);
    z-index: 1000;
}


.navbar {
    display: flex;
    font-family: 'Titillium Web', 'Poppins', sans-serif;
    font-size: 17px;
    text-rendering: optimizelegibility;
    justify-content: space-between;
    align-items: center;
    padding: 0rem 0rem;
    max-height: 100px;
    box-sizing: border-box;
}
.main-logo a {
    font-family: 'Times New Roman', Times, serif;
    font-weight: 1000;
    font-size: 2rem;
    align-items: center;
    color: #fff;
    text-decoration: none;    
    height: 100%;
    margin-top: 0px;
    
}
.logo-img {
    max-height: 100px;
    width: auto;
    overflow: auto;
   
    margin: 0;
    padding: 0;
}
.main-logo a:hover {
    color: var(--background-color);
    text-decoration: none;
}
.nav-links {
    list-style: none;
    display: flex;
}
.nav-links li {
    margin-left: 0;
    display: block;
}

.nav-links a {
    text-decoration: none;
    color: var(--background-color);
    font-weight: 600;
    transition: color 0.3s;
    padding: 2.8rem 0.6rem;
    
}
.nav-links a.active {
    background-color:  var(--hover-light-color);
    color: #222;
}
.nav-links a:hover {
    background-color: var(--hover-color);
    text-decoration: none;
    color: #222;
}

.contact-button a {
    background-color: var(--highlight-color);
    color: #fff;
    padding: 0.6rem 1rem;
    text-decoration: none;
    border-radius: 0.25rem; /* 4px */
}
.contact-button a:hover {
    background-color:var(--highlight-color);
}

/* Mobile Menu */
.mobile-menu-icon {
    display: none; 
    cursor: pointer;
}
.mobile-menu-icon .bar {
    display: block;
    width: 1.5625rem; 
    height: 3px; 
    margin: 5px; 
    background-color: var(--hover-light-color);
}

/* Seção Home */
#home {
    width: 100%;
    height: 100vh;
    position: relative;
}
.slick-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
}

.slick-carousel .slick-prev,
.slick-carousel .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.slick-carousel .slick-prev {
    left: 20px;
}

.slick-carousel .slick-next {
    right: 20px;
}

.slick-carousel .slick-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
}

.slick-carousel .slick-dots li {
    display: inline-block;
    margin: 0 5px;
}

.slick-carousel .slick-dots li button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    text-indent: -9999px;
    cursor: pointer;
}

.slick-carousel .slick-dots li.slick-active button {
    background: #fff;
}

.slick-carousel-item {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
}
.slick-carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--background-color);
    text-align: center;
}
.slick-carousel-content h1 {
    font-size: 3rem; /* 48px */
    margin-bottom: 1.25rem; /* 20px */
    text-shadow: 0.125rem 0.125rem 0.25rem rgba(0,0,0,0.5); /* 2px 2px 4px */
}
.slick-carousel-content .btn {
    margin-top: auto;
    background: var(--primary-color);
    color: var(--background-color);
    padding: 1.25rem 2.5rem; /* 20px 40px */
    text-decoration: none;
    font-size: 1.125rem; /* 18px */
    border-radius: 0.3125rem; /* 5px */
    transition: background 0.3s;
}
.slick-carousel-content .btn:hover {
    background: var(--hover-color);
}

/* Seção Produtos */
#produtos {
    padding: 5rem 3.2rem; 
    text-align: center;
    background-color: #222;
}
#produtos h2 {
    font-family: 'Titillium Web', sans-serif;
    font-size: 2.25rem; 
    margin-bottom: 3.125rem;
    color: var(--background-offcolor);
}
.produtos-container {
    width: 100%;
    margin: 0 auto;
    padding: 2rem 0;
    overflow: visible;
}
.produto-card {
    margin: 0 1rem;
    min-height: 400px;
    perspective: 1000px;
    cursor: pointer;
    overflow: visible;
    padding: 50px;
}

.produto-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    overflow: visible;
}

.produto-card:hover .produto-card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: visible;
    
}

.card-front {
    z-index: 2;
}

.card-front img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.card-front h3 {
    padding: 1rem;
    margin: 0;
    color: var(--text-color);
    font-size: 1.5rem;
}

.card-back {
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 2rem;
}

.card-back p {
    margin: 0;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.5;
}

/* Ajustes para mobile */
@media (max-width: 48rem) {
    .produto-card {
        min-height: 350px;
    }

    .card-front img {
        height: 200px;
    }
}

/* Ajustes do Slick para produtos */
.produtos-container .slick-slide {
    margin: 0 10px;
    height: auto;
}

.produtos-container .slick-track {
    display: flex;
    align-items: stretch;
}

.produtos-container .slick-slide > div {
    height: 100%;
}

.produtos-container .slick-prev,
.produtos-container .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.produtos-container .slick-prev {
    left: -50px;
}

.produtos-container .slick-next {
    right: -50px;
}

.produtos-container .slick-dots {
    bottom: -40px;
}

.produtos-container .slick-dots li button:before {
    font-size: 12px;
    color: var(--primary-color);
}

/* Seção Orçamento */
#orcamento {
    padding: 5rem 1.25rem; /* 80px 20px */
    text-align: center;
    background: var(--background-color);
}
#orcamento h2 {
    font-family: 'Titillium Web', sans-serif;
    font-size: 2.25rem; /* 36px */
    margin-bottom: 3.125rem; /* 50px */
}
#orcamento-form {
    max-width: 37.5rem; /* 600px */
    margin: 0 auto;
}
#orcamento-form input, #orcamento-form textarea {
    width: 100%;
    padding: 0.9375rem; /* 15px */
    margin-bottom: 1.25rem; /* 20px */
    border: 0.0625rem solid var(--background-offcolor);
    border-radius: 0.3125rem; /* 5px */
}
#orcamento-form .btn {
    background: var(--hover-color);
    color: var(--background-color);
    padding: 0.9375rem 1.875rem; /* 15px 30px */
    border: none;
    font-size: 1.125rem; /* 18px */
    border-radius: 0.3125rem; /* 5px */
    transition: background 0.3s;
}
#orcamento-form .btn:hover {
    background: var(--primary-color);
}
.form-mensagem {
    margin-top: 1.25rem; /* 20px */
    font-size: 1.125rem; /* 18px */
    color: green;
}

/* Seção Sobre */
#sobre {
    padding: 5rem 3.125rem; /* 80px 50px */
    text-align: center;
    background: var(--primary-color);
    color: #eee;
}
#sobre h2 {
    font-family: 'Titillium Web', sans-serif;
    font-size: 2.25rem; /* 36px */
    margin-bottom: 1.875rem; /* 30px */
}
#sobre p {
    font-size: 1.125rem; /* 18px */
    margin-bottom: 3.125rem; /* 50px */
}
#sobre h3 {
    font-size: 1.5rem; /* 24px */
    color: var(--hover-light-color);
    transition: transform 0.3s;
    margin-bottom: 1.875rem; /* 30px */
}
#sobre h3:hover {
    transform: scale(1.1);
}

/* Seção Parceiros e Seguradoras */
#parceiros {
    padding: 5rem 0;
    text-align: center;
    background-color: var(--background-color);
}
#parceiros h2 {
    font-family: 'Titillium Web', sans-serif;
    font-size: 2.25rem; /* 36px */
    margin-bottom: 3.125rem; /* 50px */
}

/* Adicione isso junto com os outros estilos do produto-card */
.produto-card-inner.touched {
    transform: rotateY(180deg);
}

/* Estilos para os cards de parceiros */
.parceiro-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.parceiro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.25rem 0.625rem rgba(0,0,0,0.2);
}

.parceiro-logo {
    max-width: 90%;
    height: auto;
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
    object-fit: cover;
}
.parceiro-logo:hover {
    transform: scale(1.10);
}
#parceiros .card {
    border-radius: 1rem; 
    box-shadow: 0 0.2rem 0.4rem rgba(0,0,0,0.1);
    background: var(--background-color);
    overflow: hidden;
    transition: box-shadow 0.3s;
}


.btn-ver-mais {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-ver-mais:hover {
    background: var(--hover-color);
    box-shadow: 0 0.25rem 0.625rem rgba(0,0,0,0.2);
}
/* Modal */
.modal-content {
    border-radius: 0.625rem; 
     z-index: 1050;
}
.modal-header, .modal-footer {
    border: none;
}
.modal-title {
    font-family: 'Poppins', sans-serif;
}
.modal-backdrop {
    z-index: 1040; 
}

/* Estilos para o modal customizado */
.custom-modal .modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.custom-modal .modal-header {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 1.5rem;
}

.custom-modal .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.custom-modal .close {
    color: #fff;
    opacity: 1;
    text-shadow: none;
    transition: transform 0.3s ease;
}

.custom-modal .close:hover {
    transform: rotate(90deg);
}

.custom-modal .modal-body {
    padding: 2rem;
}

.seguradora-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.modal-logo {
    max-width: 200px;
    height: auto;
}

.info-content {
    text-align: left;
    width: 100%;
}

.info-content h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.contato-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.contato-info p {
    margin-bottom: 0.5rem;
}

.contato-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.contato-info a:hover {
    color: var(--hover-color);
}

/* Seção Contato */
#contato {
    padding: 5rem 3.125rem; 
    text-align: center;
    background: var(--background-offcolor);
}

#contato h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.25rem; 
    margin-bottom: 3.125rem; 
}
.contato-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
#contato-form {
    flex: 1;
    min-width: 18.75rem; 
    max-width: 31.25rem; 
    margin: 1.25rem; 
}
#contato-form input, #contato-form textarea {
    width: 100%;
    padding: 0.9375rem;
    margin-bottom: 1.25rem; 
    border: 0.0625rem solid var(--background-offcolor);
    border-radius: 0.3125rem; 
}
#contato-form .btn {
    background: var(--hover-color);
    color:  var(--background-color);
    padding: 1rem 1.8rem;
    border: none;
    font-size: 1.125rem; 
    border-radius: 0.3rem; 
    transition: background 0.3s;
}
#contato-form .btn:hover {
    background: var(--primary-color);
}
.invalid {
    border: 2px solid red;
}
.contato-info {
    flex: 1;
    min-width: 18rem; 
    max-width: 31rem; 
    margin: 1.25rem; 
    text-align: left;
}
.contato-info h3 {
    font-size: 1.5rem; 
    margin-bottom: 0.625rem; 
}
.contato-info p {
    font-size: 1.125rem; 
    margin-bottom: 1.25rem; 
}
.social-icons {
    display: flex;
}
.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    color: #333;
    font-size: 1.5rem; 
    margin-right: 0.9375rem; 
    transition: background-color 0.3s, color 0.3s;
}
.social-icons a:hover {
    background-color: var(--primary-color);
    color: #fff;
    
}

/* Footer */
footer {
    background: var(--text-color);
    color: var(--background-color);
    padding: 3rem 2rem;
}

footer .row {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

footer h2 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
}

footer h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 50px;
    height: 2px;
    background: var(--hover-color);
}

footer li {
    list-style: none;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

footer a {
    color: var(--background-color);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--hover-light-color);
    text-decoration: none;
}

footer .col-sm-2 li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--hover-light-color);
}

@media (max-width: 768px) {
    footer .row {
        flex-direction: column;
        text-align: center;
    }

    footer .col-sm-2,
    footer .col-sm-4 {
        margin-bottom: 2rem;
    }

    footer h2:after {
        left: 50%;
        transform: translateX(-50%);
    }

    footer .menu-list-footer {
        padding: 0;
    }
}

/* Mobile */
@media (max-width: 48rem) { /* 768px */
    
    .nav-links {
        display: none;
        opacity: 0; /* Garante que está completamente invisível */
        visibility: hidden; /* Remove do fluxo de layout */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        padding: 0;
        margin: 0;
    }

    /* Mostra o menu apenas quando ativo */
    .nav-links.active {
        display: block;
        opacity: 1;
        visibility: visible;
        z-index: 1000;
    }

    .logo-img{
        height: 80px;
    }

    /* Mostra o ícone do menu mobile */
    .mobile-menu-icon {
        display: block;
        margin-left: auto;
    }

    /* Ajusta o layout do navbar para mobile */
    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
    }

    /* Remove margens e paddings desnecessários */
    .nav-links li {
        margin: 0;
        padding: 1rem;
        text-align: center;
        border-top: 1px solid var(--hover-light-color);
    }

    .nav-links a {
        padding: 0.5rem 1rem;
        width: 100%;
        display: block;
    }

    .carousel-content h1 {
        font-size: 2rem; 
    }
    .carousel-content .btn {
        padding: 0.625rem 1.25rem; 
        font-size: 1rem; 
    }
    .produtos-container {
        flex-direction: column;
        align-items: center;
        height: auto;
    }
    .produto-card {
        width: 100%;
        margin-bottom: 1.25rem; 
    }
    #orcamento {
        padding: 3.75rem 1.25rem;
    }
    .contato-container {
        flex-direction: column;
    }
    #parceiros .col-md-4 {
        margin-bottom: 1.875rem; 
    }
}

/* Mouseover Interativo nos Botões */
.btn:hover {
    background: var(--hover-color);
    box-shadow: 0 0 0.625rem var(--hover-color); /* 10px */
}



/* Fix mobile menu display */
.nav-links {
    display: flex;
}

.nav-links.active {
    display: block;
    background: var(--primary-color);
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    padding: 1rem 0;
}

.nav-links.active li {
    text-align: center;
    margin: 1rem 0;
}

.nav-links.active a {
    color: var(--background-color);
}


/* Responsividade */
@media (max-width: 768px) {
    .seguradora-info {
        flex-direction: column;
    }
    
    .modal-logo {
        max-width: 150px;
    }
    
    .custom-modal .modal-dialog {
        margin: 1rem;
    }
}
