/* =========================================
   RESET E GERAL
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

/* Cores da marca */
:root {
    --primary-orange: #ff6600;
    --primary-black: #000000;
    --primary-gray: #4a4a4a;
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --border-color: #ddd;
}

/* =========================================
   HEADER & NAVEGAÇÃO
   ========================================= */
.header {
    background-color: var(--primary-black);
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

/* =========================================
   LOGO (IMAGEM)
   ========================================= */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
    padding: 0;
}

.logo img {
    height: 65px;
    width: auto; /* Mantém proporção */
    max-width: 250px;
    object-fit: contain;
    /* Correção CLS: Definir proporção (estimada para logo retangular) */
    aspect-ratio: 250/65; 
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-orange);
}

.cta-buttons {
    display: flex;
}

/* Botões Gerais */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #e55a00;
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none; 
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    z-index: 1002;
    padding: 5px;
}

/* =========================================
   HERO SECTION (BANNER)
   ========================================= */
.hero {
    background-image: url('../images/galpao_logistico_hero.webp');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    width: 100%;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.80) 50%,
        rgba(255, 255, 255, 0.60) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #000000 !important;
    text-shadow: none !important;
}

.hero .highlight {
    color: #ff6600 !important;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #333333 !important;
    font-weight: 500;
}

/* =========================================
   SEÇÕES GERAIS
   ========================================= */
.section {
    padding: 80px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--primary-black);
    font-weight: 700;
}

.section-title .highlight {
    color: var(--primary-orange);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 102, 0, 0.1);
    color: var(--primary-orange);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-black);
}

.service-card p {
    color: var(--primary-gray);
    font-size: 0.95rem;
}

.about {
    background-color: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto; /* Garante que a altura se ajuste */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    /* Correção CLS: Define uma proporção padrão (ex: 4:3 ou 16:9) */
    aspect-ratio: 4/3; 
    object-fit: cover;
}

/* =========================================
   FORMULÁRIOS
   ========================================= */
.wordpress-form {
    width: 100%;
    box-sizing: border-box;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-black);
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #333;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.form-group input[type="file"] {
    display: block;
    width: 100%;
    padding: 10px;
    background: #f9f9f9;
    border: 1px dashed var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.form-group input[type="file"]:hover {
    background: #f0f0f0;
    border-color: var(--primary-gray);
}

/* =========================================
   TIMELINE (TRAJETÓRIA)
   ========================================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #e9ecef;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    z-index: 1;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -12px;
    background-color: var(--primary-orange);
    border: 4px solid var(--white);
    top: 30px;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.2);
    transition: all 0.3s ease;
}

.timeline-item:hover::after {
    transform: scale(1.2);
    box-shadow: 0 0 0 5px rgba(255, 102, 0, 0.3);
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 50px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 50px;
}

.timeline-item:nth-child(even)::after {
    left: -12px;
}

.timeline-content {
    padding: 25px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-top: 4px solid var(--primary-orange);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--primary-orange);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.timeline-content p {
    margin-bottom: 0;
    color: var(--primary-gray);
    font-size: 1rem;
    line-height: 1.5;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: var(--primary-black);
    color: #ccc;
    padding: 4rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3, .footer-section h4 {
    color: var(--white);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

/* =========================================
   MAPA
   ========================================= */
.map-container {
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    max-width: 100%;
    height: 350px;
    display: block;
    border-radius: 8px;
}

/* =========================================
   RESPONSIVIDADE (MOBILE 100% AJUSTADO)
   ========================================= */
@media (max-width: 768px) {
    
    .header {
        height: 70px;
        padding: 0;
    }

    .logo img {
        height: 50px !important;
        max-width: 190px;
        width: auto;
    }

    .nav-container {
        padding: 0 1.5rem;
    }

    .mobile-menu-toggle {
        display: block;
        z-index: 1002;
    }

    .cta-buttons {
        display: none;
    }

    /* MENU GAVETA */
    .nav-menu {
        position: fixed;
        top: 70px;
        right: 0;
        left: auto;
        width: 75%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background-color: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-start;
        padding-top: 2rem;
        padding-right: 2rem;
        gap: 1.5rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu.active {
        display: flex;
        transform: translateX(0);
    }
    
    .nav-menu li {
        width: 100%;
        text-align: right;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 0.5rem;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu li a {
        font-size: 1.2rem;
        display: block;
        padding: 5px 0;
        color: rgba(255,255,255,0.9);
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .hero {
        padding: 120px 0 60px;
    }
    
    .hero::after {
        background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.85) 50%,
            rgba(255, 255, 255, 0.70) 100%
        ) !important;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline::after {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 0;
        margin-bottom: 2rem;
    }

    /* ALTURA MÍNIMA IGUALADA NO MOBILE */
    .timeline-content {
        min-height: 200px !important; 
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    .timeline-item::after {
        left: 18px;
        right: auto;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
        padding-left: 80px;
    }
    
    .timeline-item:nth-child(even)::after {
        left: 18px;
    }

    .timeline-content h3 {
        font-size: 1.5rem;
    }

    .map-container iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .service-card {
        padding: 1.5rem;
    }
}