/* =========================================
   STYLE.CSS - GRUPO METROPOLITANA
   Arquitetura: Mobile-First
   ========================================= */

/* --- Variáveis Globais (Cores e Fontes) --- */
:root {
    --primary-color: #022753; /* Azul Marinho */
    --accent-color: #AE9369;  /* Dourado/Bege */
    --bg-light: #FFFFFF;
    --bg-secondary: #e9e9e9;
    --text-dark: #333;
    --text-light: #FFFFFF;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
    
    --navbar-height: 90px;
}

/* --- Reset Básico e Estilos Globais --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 60px 0;
}

/* --- Botões CTA (Call-to-Action) --- */
.cta-button {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--accent-color);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.cta-button:hover {
    background-color: #c5a97e;
    color: var(--text-light);
    transform: translateY(-2px);
}

.cta-secondary {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}
.cta-secondary:hover {
    background-color: var(--accent-color);
    color: var(--text-light);
}

/* --- 1. Navbar --- */
.navbar {
    width: 100%;
    height: var(--navbar-height);
    background-color: var(--bg-light);
    border-bottom: 1px solid #ddd;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-img {
    max-height: 30px;
    margin-left: 30px;
    max-width: 100%; /* <-- ADICIONE ISSO (previne overflow da logo) */
    object-fit: contain; /* <-- ADICIONE ISSO (garante a proporção) */
}

.navbar-menu {
    display: none; /* Escondido em mobile */
}

.navbar-links {
    list-style: none;
    display: flex;
}

.navbar-links li {
    margin-left: 20px;
}

.navbar-links a {
    color: var(--primary-color);
    font-weight: 500;
    padding: 5px 10px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

.navbar-links a:hover {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

.navbar-cta {
    display: none; /* Escondido em mobile */
}

.navbar-toggle {
    display: block; /* Visível em mobile */
    font-size: 1.5rem;
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: pointer;
}

/* Menu Mobile (quando ativo) */
@media (max-width: 991px) {
    .navbar-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--navbar-height);
        left: -100%; /* Escondido fora da tela */
        width: 100%;
        background-color: var(--bg-light);
        border-bottom: 1px solid #ddd;
        transition: left 0.3s ease-in-out;
    }

    .navbar-menu.active {
        left: 0;
    }

    .navbar-links {
        flex-direction: column;
        width: 100%;
    }

    .navbar-links li {
        margin: 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .navbar-links a {
        display: block;
        padding: 15px;
    }
    
    .navbar-links a:hover {
        border-bottom: none;
        background-color: var(--bg-secondary);
    }
}

/* --- 2. Seção Hero --- */
.hero {
    position: relative;
    min-height: 80vh; 
    display: flex;
    align-items: center;
    
    /* MUDANÇA: Alinhar conteúdo à esquerda (antes era 'center') */
    justify-content: flex-start; 
    /* MUDANÇA: Alinhar texto à esquerda (antes era 'center') */
    text-align: left; 

    padding-top: var(--navbar-height);
    
    /* MUDANÇA: Aplicar sua nova imagem */
    background-image: url('image/hero-atendente.png'); 
    
    background-size: cover;
    
    /* MUDANÇA: Posicionar a atendente à direita */
    background-position: center right; 
    
    color: var(--text-light);
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* MUDANÇA: De cor sólida para Gradiente */
    background: linear-gradient(to right, 
        rgba(2, 39, 83, 0.95) 15%, /* Começa 95% escuro à esquerda */
        rgba(2, 39, 83, 0.5) 50%,  /* Meio-tom no centro */
        rgba(2, 39, 83, 0.0) 80%   /* Transparente à direita */
    );
    
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.cta-hero {
    font-size: 1.1rem;
    padding: 15px 35px;
}

/* --- 3. Seção Serviços --- */
.services {
    background-color: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 coluna em mobile */
    gap: 25px;
}

.service-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.service-card i.fas, .service-card i.fa-brands {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 0.5rem;
}
/* REGRA ATUALIZADA */
.service-card .cta-link {
    font-weight: 700;
    font-family: var(--font-heading);
    
    /* --- AJUSTES DE ALINHAMENTO --- */
    display: inline-flex;  /* Ativa o Flexbox no link */
    align-items: center;   /* Centraliza verticalmente o texto e o ícone */
    gap: 6px;              /* Cria um espaço de 6px entre o texto e a seta */
}
/* REGRA ATUALIZADA - Ajuste fino de posição */
.service-card .cta-link i {
    font-size: 0.9em; 
    transition: transform 0.5s ease;

    /* --- AJUSTE FINO DE ALINHAMENTO --- */
    position: relative;  /* Ativa o posicionamento relativo */
    top: 8px;            /* Desce o ícone 2 pixels */
}

/* Efeito de hover (bônus) */
.service-card .cta-link:hover i {
    transform: translateX(4px); /* Move a seta 4px para a direita ao passar o mouse */
}
.service-card.highlight-card {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.service-card.highlight-card h3,
.service-card.highlight-card i {
    color: var(--text-light)
}

.service-card.highlight-card p {
    color: #f0f0f0;
    margin-bottom: 1.5rem;
}


/* --- 4. Seção Sobre Nós --- */
.about {
    background-color: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    padding: 20px;
    border-left: 4px solid var(--accent-color);
}

/* --- 5. Seção Contato --- */
.contact {
    background-color: var(--bg-secondary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-form h3, .contact-info h3 {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(2, 39, 83, 0.3);
}
#map-embed {
    width: 100%;
    height: 300px;
    background-color: #f0f0f0;
    border-radius: 5px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
}
#map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 5px;
}

#form-status {
    margin-top: 1rem;
    font-weight: 500;
}

/* --- 6. Rodapé (Footer) --- */
.footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 40px 0 20px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer h4 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.footer p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.footer-logo .logo-img {
    max-height: 70px;
    margin-bottom: 1rem;
}

.footer-contact i {
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid #3a5b82;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* --- 7. Botão Flutuante WhatsApp --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #FFF;
}


/* =========================================
   MEDIA QUERIES (Desktop)
   ========================================= */

@media (min-width: 768px) {
    h2 {
        font-size: 2.5rem;
    }

    /* --- Navbar (Desktop) --- */
    .navbar-toggle {
        display: none;
    }
    .navbar-menu {
        display: flex;
    }
    .navbar-cta {
        display: inline-block;
    }
    .navbar .logo-img {
        max-height: 75px; /* Aumentado de 50px */
    }

    /* --- Hero (Desktop) --- */
    .hero {
        min-height: 90vh;
        justify-content: flex-start;
        text-align: left;
        
        /* MUDANÇA: Posição da imagem otimizada para desktop */
        background-position: center 40%; /* Centraliza, mas puxa um pouco para cima */
    }
    .hero-content {
        max-width: 60%;
    }
    .hero h1 {
        font-size: 3.5rem;
    }
    .hero p {
        margin-left: 0;
        margin-right: 0;
    }

    /* --- Serviços (Desktop) --- */
    .services-grid {
        /* Cria 3 colunas, mas o item destacado ocupa 2 */
        grid-template-columns: repeat(3, 1fr);
    }
    
    .service-card.highlight-card {
        grid-column: 1 / -1; /* Mágica: Faz o item ir da 1ª à última coluna */
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        text-align: left;
        padding: 40px;
    }
    
    .service-card.highlight-card .cta-button {
        grid-row: 2;
        grid-column: 2;
        justify-self: end;
        align-self: end;
    }

    /* --- Sobre (Desktop) --- */
    .about-content {
        grid-template-columns: repeat(3, 1fr);
    }

    /* --- Contato (Desktop) --- */
    .contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    background: var(--bg-light);
    /* Ajustado: 30px vertical, 20px horizontal */
    padding: 30px 20px; /* <-- MODIFIQUE ESSA LINHA */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

    /* --- Rodapé (Desktop) --- */
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
    .footer-contact p {
        display: flex;
        align-items: center;
        gap: 10px; /* Adiciona espaço entre o ícone e o texto */
        white-space: nowrap; /* Impede que o e-mail quebre a linha */
    }
    .footer-logo .logo-img {
        max-height: 100px; /* Aumentado de 50px */
    }
}