/* 
* M da C Moreira - Despachante Documental
* CSS Principal
*/

/* ====================== Variáveis e Resets ====================== */
:root {
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: var(--font-primary);
    color: #333;
    background-color: var(--cor-fundo);
    overflow-x: hidden;
}

a {
    color: var(--cor-primaria);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--cor-destaque);
}

/* ====================== Preloader ====================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 70px;
    text-align: center;
}

.spinner > div {
    width: 18px;
    height: 18px;
    background-color: var(--cor-primaria);
    border-radius: 100%;
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;
}

.spinner .bounce1 {
    animation-delay: -0.32s;
}

.spinner .bounce2 {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0);
    } 40% { 
        transform: scale(1.0);
    }
}

/* ====================== Cookie Notice ====================== */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 15px 0;
    z-index: 1000;
    display: none;
}

.cookie-notice p {
    margin-bottom: 0;
    font-size: 14px;
}

.cookie-notice a {
    color: var(--cor-destaque);
    text-decoration: underline;
}

.btn-destaque {
    background-color: var(--cor-destaque);
    color: #fff;
    border: none;
}

.btn-destaque:hover {
    background-color: var(--cor-primaria);
    color: #fff;
}

/* ====================== Menu de Navegação ====================== */
.navbar {
    background-color: var(--cor-primaria);
    padding: 15px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 50px;
    transition: var(--transition);
}

.navbar.scrolled .navbar-brand img {
    height: 40px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 8px 15px;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff;
}

.navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--cor-destaque);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover:after,
.navbar-nav .nav-link.active:after {
    width: 70%;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 500;
}

.btn-outline-light:hover {
    background-color: var(--cor-destaque);
    border-color: var(--cor-destaque);
}

/* Botão WhatsApp flutuante */
.whatsapp-flutuante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
}

.whatsapp-flutuante a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.whatsapp-flutuante a:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

/* ====================== Hero Section ====================== */
.hero-section {
    height: 100vh;
    min-height: 600px;
    background: url('../images/banner.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    color: #fff;
    padding-top: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(41, 50, 65, 0.9), rgba(41, 50, 65, 0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-btns .btn {
    padding: 12px 25px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--cor-destaque);
    border-color: var(--cor-destaque);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: #fff;
    color: #fff;
}

/* Banner Promocional */
.promo-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 0;
    color: #fff;
}

.promo-banner p {
    margin-bottom: 0;
}

/* ====================== Section Geral ====================== */
.section-padding {
    padding: 100px 0;
}

.section-title {
    position: relative;
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--cor-primaria);
    margin-bottom: 20px;
}

.section-divider {
    width: 80px;
    height: 3px;
    background-color: var(--cor-destaque);
    margin: 0 auto 20px;
}

.section-subtitle {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    color: #666;
}

.bg-primary-light {
    background-color: rgba(61, 90, 128, 0.05);
}

.bg-light {
    background-color: #f8f9fa;
}

/* ====================== Sobre Nós ====================== */
.about-img-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: 30px;
    width: 120px;
    height: 120px;
    background-color: var(--cor-destaque);
    color: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.experience-badge .years {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 14px;
    font-weight: 500;
}

.about-content h3 {
    color: var(--cor-primaria);
    font-family: var(--font-secondary);
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 20px;
    color: #555;
}

.feature-box {
    padding: 20px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-box .icon {
    width: 50px;
    height: 50px;
    background-color: var(--cor-destaque);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    font-size: 20px;
}

.feature-box h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--cor-primaria);
}

.feature-box p {
    margin-bottom: 0;
    font-size: 14px;
}

/* Contador */
.counter-section {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.counter-item {
    margin-bottom: 30px;
}

.counter-icon {
    font-size: 40px;
    color: var(--cor-destaque);
    margin-bottom: 15px;
}

.counter-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--cor-primaria);
    margin-bottom: 10px;
}

.counter-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 0;
}

/* ====================== Serviços ====================== */
.service-card {
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: var(--transition);
    border-top: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-top-color: var(--cor-destaque);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(238, 108, 77, 0.1);
    color: var(--cor-destaque);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--cor-primaria);
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.service-features li {
    margin-bottom: 10px;
    color: #555;
    font-size: 14px;
}

.service-features li i {
    color: var(--cor-destaque);
    margin-right: 8px;
}

.cta-box {
    background: linear-gradient(to right, var(--cor-primaria), var(--cor-secundaria));
    color: #fff;
}

.cta-box h3 {
    font-weight: 600;
}

/* ====================== Depoimentos ====================== */
.testimonial-item {
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin: 15px;
}

.testimonial-content .rating {
    color: #FFD700;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
}

.testimonial-author-info {
    display: flex;
    align-items: center;
}

.testimonial-author-img {
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 50%;
    margin-right: 15px;
}

.testimonial-author h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--cor-primaria);
}

.testimonial-author p {
    font-size: 14px;
    color: #777;
    margin-bottom: 0;
}

/* Swiper */
.swiper-button-next, 
.swiper-button-prev {
    color: var(--cor-destaque);
    background-color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.swiper-button-next:after, 
.swiper-button-prev:after {
    font-size: 20px;
}

.swiper-pagination-bullet-active {
    background-color: var(--cor-destaque);
}

.partners-slider {
    padding: 30px 0;
}

.partners-slider img {
    max-height: 80px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.partners-slider img:hover {
    filter: grayscale(0);
    opacity: 1;
}

.partner-name {
    color: var(--cor-primaria);
    font-weight: 600;
    font-size: 18px;
    padding: 15px;
    margin: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.partner-name:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--cor-destaque);
}

/* ====================== Contato ====================== */
.contact-info-box {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.contact-info-box h3 {
    color: var(--cor-primaria);
    font-family: var(--font-secondary);
    margin-bottom: 25px;
    font-weight: 600;
}

.contact-item {
    display: flex;
    margin-bottom: 25px;
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    background-color: rgba(61, 90, 128, 0.1);
    color: var(--cor-primaria);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-size: 18px;
}

.contact-item .content h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--cor-primaria);
}

.contact-item .content p {
    margin-bottom: 0;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.social-links {
    display: flex;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: var(--cor-primaria);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--cor-destaque);
    color: #fff;
    transform: translateY(-3px);
}

.contact-form-box {
    background-color: #fff;
    height: 100%;
}

.contact-form-box h3 {
    color: var(--cor-primaria);
    font-family: var(--font-secondary);
    margin-bottom: 25px;
    font-weight: 600;
}

.form-label {
    font-weight: 500;
    font-size: 14px;
    color: #555;
}

.form-control, .form-select {
    padding: 12px 15px;
    border-color: #e0e0e0;
    border-radius: 8px;
}

.form-control:focus, .form-select:focus {
    box-shadow: none;
    border-color: var(--cor-primaria);
}

/* Mapa */
.map-container {
    overflow: hidden;
    padding-bottom: 450px;
    position: relative;
    height: 0;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ====================== Footer ====================== */
.footer {
    background-color: var(--cor-secundaria);
    color: #fff;
}

.footer-top {
    padding: 80px 0 50px;
}

.footer-logo img {
    height: 60px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 10px;
    position: relative;
}

.footer-widget-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--cor-destaque);
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    position: relative;
    padding-left: 15px;
}

.footer-links a:before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--cor-destaque);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 20px;
}

.footer-contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact-info p i {
    color: var(--cor-destaque);
    margin-right: 10px;
    margin-top: 5px;
}

.footer-social-links a {
    color: #fff;
    margin-right: 15px;
    font-size: 18px;
    transition: var(--transition);
}

.footer-social-links a:hover {
    color: var(--cor-destaque);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    font-size: 14px;
}

/* ====================== Media Queries ====================== */
@media (max-width: 1199px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .service-card {
        padding: 25px;
    }
}

@media (max-width: 991px) {
    .section-padding {
        padding: 80px 0;
    }
    
    .navbar-collapse {
        background-color: var(--cor-primaria);
        padding: 20px;
        border-radius: 5px;
        margin-top: 15px;
    }
    
    .navbar-nav .nav-link:after {
        display: none;
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 5px;
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-img-wrapper {
        margin-bottom: 50px;
    }
    
    .contact-info-box {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-btns .btn {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .experience-badge {
        width: 100px;
        height: 100px;
    }
    
    .experience-badge .years {
        font-size: 30px;
    }
    
    .experience-badge .text {
        font-size: 12px;
    }
    
    .counter-number {
        font-size: 28px;
    }
    
    .footer-top {
        padding: 60px 0 30px;
    }
    
    .footer-widget-title {
        margin-top: 20px;
    }
}

@media (max-width: 575px) {
    .hero-section {
        min-height: 500px;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .navbar-brand img {
        height: 40px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-btns .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .hero-btns .btn:last-child {
        margin-bottom: 0;
    }
    
    .service-card,
    .feature-box {
        padding: 20px;
    }
    
    .testimonial-item {
        padding: 20px;
    }
    
    .contact-form-box,
    .contact-info-box {
        padding: 20px;
    }
} 