/* ==========================================================================
   1. VARIÁVEIS DE COR E IDENTIDADE VISUAL (ENGSAFE)
   ========================================================================== */
:root {
    --brand-grey: #414042;     /* Cinza Escuro */
    --brand-red: #E31E24;      /* Vermelho Alerta */
    --light-bg: #F8FAFC;       /* Fundo claro */
    --white: #FFFFFF;
    --text-dark: #1A202C;
    --text-muted: #4A5568;
}

/* ==========================================================================
   2. CONFIGURAÇÕES GERAIS E TIPOGRAFIA
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, nav a {
    font-family: 'Montserrat', sans-serif;
    color: var(--brand-grey);
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.subtitle {
    color: var(--brand-red);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

/* ==========================================================================
   3. MENU DE NAVEGAÇÃO (HEADER)
   ========================================================================== */
header {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
}

/* ALTERADO: Logo superior aumentada significativamente */
.logo-img {
    height: 85px; 
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--brand-red);
}

.btn-nav {
    background: var(--brand-red);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 4px;
    transition: background 0.3s ease !important;
}

.btn-nav:hover {
    background: #c21a1f;
}

/* ==========================================================================
   4. SEÇÃO PRINCIPAL (HERO) - IMAGEM E BORDA CENTRALIZADAS
   ========================================================================== */
.hero {
    padding: 100px 0;
    background-color: var(--light-bg);
    overflow: hidden;
}

.grid-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 700;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 600px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--brand-red);
    color: var(--white);
    padding: 16px 32px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #c21a1f;
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.3);
}

/* ALTERADO: Centralização perfeita do bloco da foto */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* ALTERADO: Removido o ::before antigo. Borda simétrica e arredondada direto na foto */
.user-photo {
    width: 100%;
    max-width: 380px;
    height: 500px;
    object-fit: cover;
    border-radius: 24px;  /* Cantos suavizados e arredondados modernos */
    border: 5px solid var(--brand-red); /* Borda vermelha marcante e simétrica */
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    background-color: #E2E8F0;
    display: block;
}

/* ==========================================================================
   5. SEÇÃO DE SERVIÇOS
   ========================================================================== */
.services {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.25rem;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}

.section-header h2::after {
    content: "";
    position: absolute;
    width: 50px;
    height: 4px;
    background: var(--brand-red);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

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

.card {
    padding: 45px 35px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: var(--white);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
    border-color: var(--brand-red);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.card i {
    font-size: 2.5rem;
    color: var(--brand-red);
    margin-bottom: 25px;
    display: inline-block;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   6. SEÇÃO SOBRE A ENGSAFE
   ========================================================================== */
.about {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.about h2 {
    font-size: 2.25rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.about p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
    max-width: 900px;
}

.about-badges {
    display: flex;
    gap: 20px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.badge {
    background: var(--white);
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--brand-grey);
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge i {
    color: var(--brand-red);
}

/* ==========================================================================
   7. RODAPÉ (FOOTER)
   ========================================================================== */
footer {
    background: var(--brand-grey);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: flex-start;
    margin-bottom: 60px;
}

/* ALTERADO: Logo do rodapé aumentada proporcionalmente */
.footer-logo-img {
    height: 75px;
    width: auto;
    display: block;
    margin-bottom: 20px;
}

.footer-info p {
    opacity: 0.75;
    max-width: 380px;
    font-size: 0.95rem;
}

.footer-contact h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-contact p {
    opacity: 0.85;
    margin-bottom: 12px;
    font-size: 1rem;
}

.footer-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: var(--white);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.footer-whatsapp:hover {
    background: #1ebd58;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ==========================================================================
   8. RESPONSIVIDADE AJUSTADA E CALIBRADA PARA MOBILE (TABLETS E CELULARES)
   ========================================================================== */

/* Ajustes para Tablets e Notebooks Pequenos (Telas até 992px) */
@media (max-width: 992px) {
    .grid-hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-image-wrapper {
        max-width: 380px;
        margin: 0 auto;
    }
    .about-badges {
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Ajustes específicos para Celulares (Telas até 768px) */
@media (max-width: 768px) {
    /* Menu e Cabeçalho Mobile */
    header {
        position: static; 
        padding: 15px 0;
        border-bottom: 1px solid #E2E8F0;
    }
    .navbar {
        flex-direction: column; 
        gap: 15px;
        width: 100%;
        align-items: center; 
    }
    .logo-img {
        height: 55px; 
        width: auto;
        display: block;
        margin: 0 auto; 
    }
    nav ul {
        flex-direction: column; 
        gap: 12px;
        width: 100%;
        text-align: center;
        align-items: center; 
    }
    nav a {
        font-size: 0.9rem;
        display: block;
        width: 100%;
    }
    .btn-nav {
        display: inline-block;
        padding: 8px 20px;
    }

    /* Seção Principal (Hero) */
    .hero {
        padding: 40px 0;
    }
    .hero-text h1 {
        font-size: 1.75rem; 
        line-height: 1.3;
    }
    .hero-text p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .btn-primary {
        width: 100%; 
        justify-content: center;
        padding: 14px 20px;
    }
    .user-photo {
        max-width: 280px; 
        height: 360px;
        border-width: 4px;
    }

    /* ALTERADO: Força os blocos de serviços a aparecerem UM POR VEZ (coluna única) */
    .grid-services {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .services, .about {
        padding: 50px 0;
    }
    .section-header h2, .about h2 {
        font-size: 1.6rem;
    }
    .card {
        padding: 30px 20px; 
    }
    .card i {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    .badge {
        width: 100%; 
        justify-content: center;
    }

    /* Rodapé */
    footer {
        padding: 40px 0 20px;
        text-align: center;
    }
    .footer-info p {
        margin: 0 auto 20px;
    }
    .footer-whatsapp {
        width: 100%;
        justify-content: center;
    }
}