/* ==========================================
   M&A FREIGHT FORWARDER - CSS STYLES
   ========================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-blue: #003366;
    --gold2: #b6930c;
    --gold: #b6930c/*#D4AF37*/;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-gray: #333333;
    --text-gray: #666666;
    --cotacao: #2c8abb;
    --gold-new: #a87c17;

    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    
    /* Spacing */
    --section-padding: 50px 0;
    --container-padding: 0 20px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.2;
}

.gold-text {
    color: var(--gold);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--gold));
    margin: 0 auto 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn-primary,
.btn-hero-primary,
.btn-hero-secondary,
.btn-submit,
.btn-hero-new {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background: var(--cotacao);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--gold2);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 51, 102, 0.2);
}

.btn-hero-primary {
    background: var(--white);
    color: var(--primary-blue);
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-hero-primary:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--cotacao);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 15px 40px;
    font-size: 1.1rem;
    box-shadow: 0 0 30px var(--cotacao);
}

.btn-hero-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.btn-hero-new {
    background: var(--gold-new);
    color: var(--white);
    border: 2px solid var(--white);
    padding: 15px 40px;
    font-size: 1.1rem;
    box-shadow: 0 0 30px var(--cotacao);
}
.btn-hero-new:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* Transição aplicada especificamente ao fundo e altura */
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    
    /* ESTADO ORIGINAL (No topo): Fundo Branco */
    background-color: var(--white); 
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* ESTADO ROLAGEM (Quando desce a página) */
#header.header-scrolled {
    /* Fundo Azul */
    background-color: var(--primary-blue);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar {
    padding: 0px 0;
    transition: padding 0.4s ease;
}

#header.header-scrolled .navbar {
    padding: 0px 0;
}
#header.header-scrolled .logo {
    background-size: 90%;
    background-repeat: no-repeat;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- LOGO --- */
.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    transition: color 0.3s ease;
    
    /* Original: Azul */
    color: var(--primary-blue);
}

/* Logo quando rola: Branco */
#header.header-scrolled .logo h1 {
    color: var(--white);
}

.logo {
    background-image: url('../favicon3.png');
    background-position: center;
    background-size: cover;
    height: 85px;
    width: 160px;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

/* --- LINKS DO MENU --- */
.nav-link {
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    
    /* Original: Azul */
    color: var(--primary-blue);
}

/* Link quando rola: Branco */
#header.header-scrolled .nav-menu .nav-link {
    color: var(--white);
}

/* Efeito Hover (passar o mouse) */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--gold) !important; /* Garante o dourado no hover em qualquer situação */
}

/* --- BOTÕES DE IDIOMA E OUTROS --- */
.lang-btn {
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px 10px;
    transition: color 0.3s ease;
    
    /* Original: Azul */
    color: var(--primary-blue);
}

/* Botão idioma quando rola: Branco */
#header.header-scrolled .lang-btn {
    color: var(--white);
}

.lang-btn:hover {
    color: var(--gold) !important;
}

.lang-separator {
    transition: color 0.3s ease;
    color: var(--primary-blue);
}

#header.header-scrolled .lang-separator {
    color: var(--white);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    transition: background-color 0.3s ease;
    
    /* Original: Azul */
    background-color: var(--primary-blue);
}

#header.header-scrolled .hamburger span {
    background-color: var(--white);
}

/* ==========================================
   CORREÇÃO DO MENU MOBILE
   ========================================== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--primary-blue);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 0;
        transition: left 0.3s ease; /* Transição corrigida */
        gap: 20px;
    }
    
    /* Força link branco no menu mobile SEMPRE */
    .nav-menu .nav-link {
        color: var(--white) !important; 
        font-size: 1.2rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
}


/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #004080 80%);
    background-image: url('../bg1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 64, 128, 0.85) 100%);

}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: var(--gold);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% {
        top: 10px;
        opacity: 1;
    }
    50% {
        top: 25px;
        opacity: 0.5;
    }
}

/* ==========================================
   ABOUT SECTION
   ========================================== */

.about-section {
    padding: var(--section-padding);
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 10px;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.about-image {
    height: 100%;
    min-height: 400px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background-image: url('../equipe.png');
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.image-placeholder i {
    font-size: 5rem;
    margin-bottom: 20px;
}

/* ==========================================
   MISSION VISION VALUES
   ========================================== */

.mvv-section {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mvv-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.mvv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 51, 102, 0.15);
}

.mvv-card-wide {
    grid-column: span 3;
}

.mvv-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 2rem;
}

.mvv-title {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.mvv-text {
    color: var(--text-gray);
    line-height: 1.8;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 10px;
    transition: var(--transition);
}

.value-item:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.value-item i {
    color: var(--gold);
    font-size: 1.5rem;
}

.value-item:hover i {
    color: var(--white);
}

/* ==========================================
   SERVICES SECTION
   ========================================== */

.services-section {
    padding: var(--section-padding);
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    border: 2px solid var(--medium-gray);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    border-color: var(--gold);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
}

.service-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-blue), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--white);
    font-size: 2.5rem;
}

.service-title {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.service-description {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 25px;
}

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    padding: 10px 0;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features i {
    color: var(--gold);
}

/* ==========================================
   WORKFLOW SECTION
   ========================================== */

.workflow-section {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.workflow-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 30px;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 40px;
    top: 80px;
    width: 2px;
    height: calc(100% + 20px);
    background: linear-gradient(180deg, var(--gold), var(--primary-blue));
}

.timeline-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.timeline-content {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.15);
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 20px;
    float: left;
    margin-right: 5px;
}

.timeline-title {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    padding: 15px;    
}

.timeline-description {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */

.contact-section {
    padding: var(--section-padding);
    /*background: var(--white);*/
    background-image: url('../bg-contact2.png');
    background-repeat: no-repeat;
    background-size: 60%;
    background-position: -20vw +45vh;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
   
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
   
}

.contact-card {
    background: var(--light-gray);
    padding: 25px;
    border-radius: 15px;
    transition: var(--transition);
}

.contact-card:hover {
/*    background: var(--primary-blue);
    color: var(--white);
    transform: translateX(10px);*/
}
.contact{
    margin-top: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 15px;
    float: left;
}

.contact-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.contact-card a,
.contact-card p {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--gold);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 15px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-blue);
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-submit {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-submit:hover {
    background: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 20px 0 15px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 10px;
}

.footer-col h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--gold);
}

.footer-col p {
    line-height: 1.8;
    opacity: 0.9;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.9;
}

.footer-col ul li a:hover {
    color: var(--gold);
    opacity: 1;
}

.footer-col ul li i {
    color: var(--gold);
    margin-right: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================
   WHATSAPP BUTTON
   ========================================== */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1024px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .services-grid,
    .mvv-grid {
        grid-template-columns: 1fr;
    }
    
    .mvv-card-wide {
        grid-column: span 1;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--primary-blue);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 0;
        transition: var(--transition);
        gap: 20px;
    }
    
    /* IMPORTANTE: Força os links a serem brancos no mobile 
       (já que o fundo do menu mobile é azul) */
    .nav-menu .nav-link {
        color: var(--white) !important;
        font-size: 1.2rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .nav-cta {
        margin-left: 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        grid-template-columns: 60px 1fr;
        gap: 20px;
    }
    
    .timeline-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .timeline-item:not(:last-child)::after {
        left: 30px;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .contact-form-wrapper {
        padding: 20px;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/*  apenas para suavidade geral: */
a, button {
    transition: all 0.3s ease;
}