/* =================================== */
/* CONFIGURAÇÕES GLOBAIS E VARIÁVEIS
/* =================================== */

:root {
    --font-family: 'Inter', sans-serif;
    
    /* CORES */
    --primary-color: #231256;       /* Azul Escuro */
    --accent-color: #A38E66;        /* Bege/Dourado */
    --bright-blue: #007bff;         /* Azul brilhante */
    --dark-blue: #1A2540;           /* Texto Escuro */
    --text-gray: #5A6482;           /* Texto Cinza */
    --light-gray-bg: #F7F9FC;       /* Fundo Claro */
    --white: #FFFFFF;
    --gradient: linear-gradient(90deg, #231256 0%, #170b3a 100%); 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-gray);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Tipografia */
h1, h2, h3, h4 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p {
    margin-bottom: 1rem;
}

/* =================================== */
/* HEADER & NAVEGAÇÃO
/* =================================== */
.navbar {
    background-color: var(--white);
    padding: 0.8rem 0; 
    border-bottom: 1px solid #eef1f6;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    gap: 0.5rem; 
    width: 100%;
}

.navbar .logo img {
    height: 45px; 
}

.navbar-title {
    color: var(--primary-color); 
    font-size: 1.4rem; 
    font-weight: 700; 
    margin: 0; 
    line-height: 1;
    white-space: nowrap; 
    margin-right: auto; 
}

.navbar .nav-links {
    display: flex;
    gap: 1.5rem; 
}

.navbar .nav-links a {
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.9rem; 
    transition: color 0.3s ease;
}

.navbar .nav-links a:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    margin-left: auto; 
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--primary-color);
}

/* =================================== */
/* CLASSES UTILITÁRIAS
/* =================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 900px;
    margin: -1rem auto 2.5rem auto;
    text-align: center;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
}
.btn-light:hover {
    background-color: #f0f0f0;
}

.btn-outline-light {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* =================================== */
/* SEÇÃO HERO (Vídeo)
/* =================================== */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

#video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    object-fit: cover; 
}

.hero-overlay {
    display: none;
}

/* =================================== */
/* SEÇÃO ÁREAS DE ATUAÇÃO
/* =================================== */
#areas {
    background-color: var(--light-gray-bg);
    text-align: center;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.area-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

.area-card img {
    width: 40px;
    height: 40px;
    margin-bottom: 1.5rem;
}

.area-card h3 {
    margin-bottom: 0.5rem;
}

.area-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* =================================== */
/* SEÇÃO SOBRE
/* =================================== */
#sobre h2 {
    color: var(--primary-color);
    animation: color-change 3s infinite alternate;
}

#sobre .about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center; /* Mantém o alinhamento vertical centralizado como base */
}

/* --- AQUI ESTÁ A MUDANÇA --- */
/* Adicionamos uma margem negativa para puxar a imagem para cima */
.about-image {
    margin-top: -6rem; /* Aumente ou diminua este valor para ajustar a altura */
}

.about-image img {
    border-radius: 12px;
    width: 100%;
    height: auto;
}

.about-list {
    margin-top: 2rem;
}

.about-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--dark-blue);
}

.about-list li:last-child {
    margin-bottom: 0;
}

.about-list li .list-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    flex-shrink: 0;
}

/* =================================== */
/* SEÇÃO NOSSA EQUIPE
/* =================================== */
#equipe {
    background-color: var(--white);
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 1.5rem;
    margin-top: 3rem;
}

.member-card {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
}

.member-photo {
    width: 100%;       
    aspect-ratio: 1 / 1;
    height: auto;      
    object-fit: cover;
    object-position: top;
    border-radius: 0;
    margin-bottom: 1rem;
    background-color: #007bff; 
}

.member-card h3 {
    margin-bottom: 0.25rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.member-card .role {
    font-size: 0.9rem;
    color: #4A90E2;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* =================================== */
/* SEÇÃO DEPOIMENTOS
/* =================================== */
#depoimentos {
    background-color: var(--light-gray-bg);
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-card .stars {
    color: #FFC107;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--dark-blue);
    font-weight: 500;
}

.client-info {
    border-top: 1px solid #ddd;
    padding-top: 1rem;
    margin-top: auto;
}

.client-info h4 { margin-bottom: 0; }
.client-info span { font-size: 0.9rem; color: var(--text-gray); }

/* =================================== */
/* SEÇÃO CTA (CHAMADA PARA AÇÃO)
/* =================================== */
#cta {
    background-image: var(--gradient);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

#cta h2, #cta h3, #cta p {
    color: var(--white);
}

#cta .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* =================================== */
/* RODAPÉ (FOOTER)
/* =================================== */
#footer {
    background-color: #0E162B;
    color: #a8b2cc;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-col p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-col a {
    color: #a8b2cc;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid #2a344a;
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* =================================== */
/* RESPONSIVIDADE (MOBILE & TABLET)
/* =================================== */

/* Tablet (até 992px) */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .navbar-title {
        font-size: 1.2rem;
    }

    .areas-grid, .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #sobre .about-container { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }

    /* Reseta a margem negativa no mobile para a imagem não subir e cortar */
    .about-image {
        margin-top: 0; 
    }

    .about-image img { 
        margin: 0 auto; 
    }

    .about-list { 
        display: inline-block; 
        text-align: left; 
    }

    .testimonials-grid, 
    .footer-grid { 
        grid-template-columns: 1fr; 
    }
}

/* Celular (até 768px) */
@media (max-width: 768px) {
    .navbar-title {
        display: none;
    }

    .navbar .container {
        justify-content: space-between; 
        gap: 0;
    }
    
    .hamburger {
        display: block;
        z-index: 1001;
        margin-left: 0; 
    }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .navbar .nav-links {
        position: fixed;
        left: -100%;
        top: 60px; 
        gap: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding-bottom: 20px;
        padding-top: 10px;
        margin-left: 0; 
    }

    .navbar .nav-links.active {
        left: 0;
    }

    .navbar .nav-links li {
        margin: 16px 0;
    }
    
    .navbar .nav-links a {
        font-size: 1.1rem; 
    }
    
    .areas-grid, 
    .team-grid { 
        grid-template-columns: 1fr; 
    }

    .cta-features, 
    .cta-buttons { 
        flex-direction: column; 
        gap: 1.5rem; 
    }

    .btn { 
        width: 100%; 
    }
}

@keyframes color-change {
    0% { color: var(--primary-color); }
    50% { color: var(--accent-color); }
    100% { color: var(--primary-color); }
}