/* --- Reset Básico e Variáveis de Cor --- */
:root {
    --blue: #11314c;
    --green: #9ee700;
    --dark-gray: #333;
    --gray: #f4f4f4;
    --white: #ffffff;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Estilos Gerais --- */
body {
    font-family: var(--font-family);
    color: var(--dark-gray);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 600;
    color: var(--blue);
}

h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

/* --- Componentes Reutilizáveis (Botões) --- */
.btn {
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--green);
    color: var(--blue);
}

.btn-primary:hover {
    background-color: #89c900;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--blue);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #0b2133;
}

/* --- Layout Principal (Cabeçalho e Rodapé) --- */
.main-header {
    background: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.main-nav a {
    color: var(--dark-gray);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--green);
}
.main-nav a.active {
    color: var(--green);
    font-weight: 600;
}
.main-footer {
    background: var(--blue);
    color: var(--white);
    padding: 40px 0;
    font-size: 0.9rem;
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.main-footer a {
    color: var(--white);
    text-decoration: none;
    margin-left: 15px;
}

.main-footer a:hover {
    text-decoration: underline;
}

/* --- Seções da Página Inicial --- */
.hero-section {
    background: var(--white);
    padding: 60px 0;
}

.hero-container {
    display: flex;
    align-items: center;
    /*justify-content: center; /* Adicione esta linha para centralizar */
    gap: 40px;
}

.hero-text {
    flex: 1;
    text-align: center; /* CORREÇÃO: Padrão alinhamento centralizado */
}

.hero-text p {
    font-size: 1.1rem;
    color: #555;
}

.hero-image {
    flex: 1;
    height: 400px;
    /*background: url('https://images.unsplash.com/photo-1622396481328-9b1b78cdd9fd?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;*/
    border-radius: 8px;
}

.tracking-section {
    background-color: var(--gray);
    padding: 40px 0;
}

.tracking-form {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.tracking-form input[type="text"] {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.features-section {
    padding: 80px 0;
}

.features-section .container {
    display: flex;
    justify-content: space-between;
    text-align: center;
    gap: 30px;
}

.feature-item {
    flex: 1;
}

.feature-icon {
    margin-bottom: 1rem;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-icon img {
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}


/* --- Seções da Página de Serviços --- */
.page-title-section {
    background-color: var(--gray);
    padding: 30px 0;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.page-title-section h1 {
    font-size: 2.5rem;
}

.service-detail-section {
    padding: 60px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

.service-carousel {
    width: 100%;
    position: relative;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-slides .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slides .slide.active {
    opacity: 1;
}

.carousel-slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-dots {
    text-align: center;
    margin-top: 15px;
}

.carousel-dots .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
}

.carousel-dots .dot.active {
    background-color: var(--green);
}

.service-description h2 {
    color: var(--blue);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-description h3 {
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--green);
    padding-left: 10px;
}

.service-description ul {
    list-style: none;
    padding-left: 0;
}

.service-description ul li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
}

.service-description ul li::before {
    content: '✔';
    color: var(--green);
    position: absolute;
    left: 0;
    font-weight: bold;
}


/* --- Seções da Página de Contato --- */
.contact-section {
    padding: 60px 0;
}

.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--blue);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green);
}

.form-group textarea {
    resize: vertical;
}

.contact-form-container button[type="submit"] {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.status-container {
    max-width: 600px;
    margin: 100px auto;
    padding: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.msg-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.msg-error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.msg-error ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

/* --- Menu Mobile (Escondido em Telas Grandes) --- */
.hamburger-menu {
    display: none;
    cursor: pointer;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: var(--blue);
    margin: 5px 0;
    transition: 0.4s;
}

/* ======================================================= */
/* --- SEÇÃO RESPONSIVA --- */
/* ======================================================= */

/* --- Estilos para Telas Grandes (Desktop) --- */
@media (min-width: 769px) {
    .btn-quote {
        display: inline-block;
    }
}

/* --- Estilos para Telas Pequenas (Mobile) --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    /* --- Menu Mobile --- */
    .hamburger-menu {
        display: block;
    }

    .btn-quote {
        display: none; 
    }
    
    .main-nav {
        position: absolute;
        top: 65px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out;
    }

    .main-nav.active {
        max-height: 300px;
    }

    .main-nav a {
        display: block;
        text-align: center;
        padding: 15px 20px;
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .hamburger-menu.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* --- Ajustes Gerais de Layout Mobile --- */
    .hero-text {
        text-align: center; /* CORREÇÃO: Centraliza o texto no mobile */
    }
    
    .hero-container,
    .features-section .container,
    .main-footer .container,
    .tracking-form {
        flex-direction: column;
    }
    
    .hero-image {
        height: 250px;
        width: 100%;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-description h2 {
        font-size: 1.8rem;
    }
}