/* ============================================
   MV Operador Logístico - Main Stylesheet
   Modern Design Inspired by Loggi
   ============================================ */

/* ============ Variables ============ */
:root {
    /* Colors */
    --primary-color: #003DA5;
    --secondary-color: #003DA5; /* Mudado de laranja para azul para evitar excesso */
    --accent-color: #FF6B35; /* Laranja agora é apenas um detalhe de destaque */
    --dark-bg: #001F54;
    --light-bg: #F8F9FA;
    --text-dark: #1A1A1A;
    --text-light: #666666;
    --border-color: #E0E0E0;
    --success-color: #4CAF50;
    --error-color: #F44336;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

/* ============ Reset & Base ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* ============ Typography ============ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
}

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

a:hover {
    color: var(--accent-color);
}

/* ============ Container ============ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ============ Header & Navigation ============ */
.header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.navbar {
    padding: var(--spacing-md) 0;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
    flex: 1;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-color);
}

.mobile-only {
    display: none;
}

.cta-button {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-button:hover {
    background: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============ Menu Toggle (Hamburger) ============ */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============ Hero Section ============ */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 31, 84, 0.85) 0%, rgba(0, 61, 165, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    color: white;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* ============ Buttons ============ */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-xxl);
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* ============ Sections ============ */
section {
    padding: var(--spacing-xxl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.section-header h2 {
    margin-bottom: var(--spacing-md);
}

.section-header p {
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ============ Services Section ============ */
.services-section {
    background: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.service-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--light-bg);
}

.service-image img,
.service-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card h3 {
    padding: var(--spacing-lg) var(--spacing-lg) 0;
    margin-bottom: var(--spacing-md);
}

.service-card p {
    padding: 0 var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.service-features {
    list-style: none;
    padding: 0 var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.service-features li {
    padding: var(--spacing-xs) 0;
    color: var(--text-light);
}

.service-features li::before {
    content: '';
}

/* ============ Why Us Section ============ */
.why-us-section {
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.benefit-item {
    text-align: center;
    padding: var(--spacing-lg);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color), var(--dark-bg));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.benefit-icon svg {
    width: 40px;
    height: 40px;
}

.benefit-item h3 {
    margin-bottom: var(--spacing-md);
}

/* ============ CTA Section ============ */
.cta-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-color) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
    font-size: 1.1rem;
}

/* ============ Page Header ============ */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-bg) 100%);
    color: white;
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* ============ Services Detailed ============ */
.services-detailed {
    background: white;
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
    margin-bottom: var(--spacing-xxl);
}

.service-detail:nth-child(even) {
    direction: rtl;
}

.service-detail:nth-child(even) > * {
    direction: ltr;
}

.service-detail-image {
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.service-detail-image img,
.service-detail-image svg {
    width: 100%;
    height: auto;
    display: block;
}

.service-detail-content h2 {
    margin-bottom: var(--spacing-lg);
}

.service-detail-content h3 {
    font-size: 1.25rem;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.service-list {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.service-list li {
    padding: var(--spacing-sm) 0;
    padding-left: var(--spacing-lg);
    position: relative;
    color: var(--text-light);
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

/* ============ Process Section ============ */
.process-section {
    background: var(--light-bg);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.process-step {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.process-step:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.process-step h3 {
    margin-bottom: var(--spacing-md);
}

/* ============ About Section ============ */
.about-section {
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

.about-text h2 {
    margin-bottom: var(--spacing-lg);
}

.about-text p {
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.stat {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--light-bg);
    border-radius: var(--radius-lg);
}

.stat h3 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.stat p {
    color: var(--text-light);
    margin: 0;
}

/* ============ Values Section ============ */
.values-section {
    background: var(--light-bg);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.value-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.value-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color), var(--dark-bg));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.value-icon svg {
    width: 30px;
    height: 30px;
}

.value-card h3 {
    margin-bottom: var(--spacing-md);
}

/* ============ Team Section ============ */
.team-section {
    background: white;
}

.team-info {
    max-width: 800px;
    margin: 0 auto;
}

.team-info p {
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.team-info h3 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.team-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.team-list li {
    padding: var(--spacing-md);
    background: var(--light-bg);
    border-radius: var(--radius-md);
    color: var(--text-light);
}

/* ============ Why Us Extended ============ */
.why-us-extended {
    background: var(--light-bg);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.reason-item {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.reason-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.reason-item h3 {
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

/* ============ Contact Section ============ */
.contact-section {
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
}

.contact-form-wrapper h2,
.contact-info-wrapper h2 {
    margin-bottom: var(--spacing-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

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

.form-group label {
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 61, 165, 0.1);
}

.contact-info-item {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-item h3 {
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.contact-link {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: var(--spacing-sm);
}

.contact-cta {
    margin-top: var(--spacing-lg);
}

/* ============ FAQ Section ============ */
.faq-section {
    background: var(--light-bg);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.faq-item {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.faq-item h3 {
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

/* ============ Footer ============ */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.social-link {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-color);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* ============ WhatsApp Button ============ */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 999;
    animation: pulse 2s infinite;
    padding: 0;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    animation: none;
}

.whatsapp-button img {
    display: block;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ============ Responsive Design ============ */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .navbar-content {
        flex-direction: row;
        gap: var(--spacing-md);
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .menu-toggle {
        display: flex;
        order: 3; /* Garantir que o botão de menu fique no final */
    }
    
    .navbar-content .logo {
        order: 1;
    }

    .navbar-content > .cta-button {
        display: none; /* Esconde o botão original no mobile para não vazar */
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: var(--spacing-md);
        width: 100%;
        padding: 0;
        border-bottom: 1px solid var(--border-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: var(--shadow-md);
        z-index: 99;
    }
    
    .nav-menu.active {
        max-height: 100vh;
        padding: var(--spacing-lg);
    }

    .mobile-only {
        display: block;
        width: 100%;
        margin-top: var(--spacing-md);
    }
    
    .mobile-only .cta-button {
        display: block;
        width: 100%;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .service-detail {
        grid-template-columns: 1fr;
    }
    
    .service-detail:nth-child(even) {
        direction: ltr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-button {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-button svg {
        width: 30px;
        height: 30px;
    }
    
    section {
        padding: var(--spacing-xl) 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    .hero {
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .services-grid,
    .benefits-grid,
    .process-steps,
    .values-grid,
    .reasons-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
}
