/* ==========================================================================
   1. RESET E VARIÁVEIS GLOBAIS
   ========================================================================== */
:root {
    --primary-blue: #004376; /* Cor aproximada do header na sua imagem */
    --accent-orange: #ff8300; /* Cor da Logo */
    --text-white: #ffffff;
    --font-main: 'Montserrat', sans-serif;
    --transition-smooth: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: #f4f4f4;
}

/* Container para centralizar conteúdo */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   2. HEADER E NAVEGAÇÃO
   ========================================================================== */
.main-header {
    background-color: var(--primary-blue);
    padding: 15px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Alinha logo e menu ao centro verticalmente */
}

.logo-img {
    max-width: 250px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 20px;
    margin-top: 5px;
}

.nav-list a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.nav-list a:hover {
    color: var(--accent-orange);
}

/* Área de Contato (Lado direito do menu) */
.contact-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-contact {
    color: var(--primary-blue);
    background-color: var(--text-white);
    padding: 5px 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 8px;
    transition: var(--transition-smooth);
}

.btn-contact:hover {
    background-color: var(--accent-orange);
    color: var(--text-white);
}

.sub-links {
    list-style: none;
}

.sub-links a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.7rem;
    display: block;
    line-height: 1.4;
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.sub-links a:hover {
    opacity: 1;
    color: var(--accent-orange);
}

.mobile-menu-btn {
    display: none; /* Escondido no Desktop */
}

/* ==========================================================================
   3. HERO SECTION (CARROSSEL)
   ========================================================================== */
.hero-section {
    position: relative;
    height: 80vh; /* Ocupa 80% da altura da tela */
    min-height: 600px;
    overflow: hidden;
    background-color: #222;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out; /* Transição suave de UX */
    display: flex;
    align-items: center; /* Centraliza verticalmente o texto */
}

.hero-slide.active {
    opacity: 1;
    z-index: 10;
}

/* Película escura para garantir leitura do texto, mesmo com fotos claras */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2; /* Fica acima da película */
    color: var(--text-white);
}

.welcome-text {
    font-size: 1.2rem;
    letter-spacing: 5px;
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
}

.slide-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Sombra para UX de leitura */
}

/* Indicadores (Barrinhas brancas no fundo) */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 15px;
}

.dot {
    width: 40px;
    height: 5px;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active, .dot:hover {
    background-color: var(--text-white);
}

/* ==========================================================================
   4. SESSÃO CHECKERBOARD (MISSÃO, SERVIÇOS E EQUIPE)
   ========================================================================== */
.split-layout-section {
    width: 100%;
    background-color: var(--text-white);
}

.split-row {
    display: flex;
    flex-direction: row; /* Padrão: Texto na Esquerda, Imagem na Direita */
    width: 100%;
    min-height: 600px;
}

/* A CLASSE MÁGICA: Inverte a ordem no Desktop (Imagem Esquerda, Texto Direita) */
.split-row.reverse-row {
    flex-direction: row-reverse;
}

.split-content {
    flex: 0 0 50%;
    max-width: 50%; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.img-block {
    background-size: cover;
    background-position: center;
    min-height: 400px; /* Altura mínima de segurança */
}

.text-block {
    padding: 60px 10%; /* Espaçamento interno chique */
}

.text-inner {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

/* Alinhamentos Específicos do Design */
.align-right-headers .subtitle,
.align-right-headers .title,
.align-right-headers .btn-outline-right {
    text-align: right;
    display: block;
}

.subtitle {
    color: var(--primary-blue);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.title {
    color: var(--primary-blue);
    font-size: 1.8rem;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.text-paragraphs p {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

/* Botões com borda (Outline) */
.btn-outline-right, .btn-outline-left {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    transition: var(--transition-smooth);
    margin-top: 10px;
}

.btn-outline-right { float: right; }
.btn-outline-left { float: left; }

.btn-outline-right:hover, .btn-outline-left:hover {
    background-color: var(--primary-blue);
    color: var(--text-white);
}

/* --- TABS (O QUE OFERECEMOS) --- */
.services-tabs {
    margin-bottom: 30px;
}

.tabs-header {
    display: flex;
    border: 1px solid #ccc;
    border-bottom: none;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    border-right: 1px solid #ccc;
    padding: 12px 5px;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.75rem;
    color: #888;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tab-btn:last-child { border-right: none; }

.tab-btn.active {
    background-color: var(--primary-blue);
    color: var(--text-white);
}

.tabs-body {
    border: 1px solid var(--primary-blue);
    padding: 30px 20px;
    min-height: 150px;
}

.tab-content {
    display: none; /* Esconde todas as abas inicialmente */
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block; /* Mostra apenas a ativa */
}

.tab-content p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   5. INSPIRATION GALLERY
   ========================================================================== */
.inspiration-section {
    padding: 80px 0;
    background-color: var(--text-white);
}

.text-center {
    text-align: center;
}

.section-title {
    color: var(--primary-blue);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 50px;
    letter-spacing: 4px; /* Espaçamento maravilhoso nas letras */
}

/* O Segredo do Layout Colado Sênior */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Divide em 4 fatias perfeitamente iguais */
    width: 100%;
}

.gallery-item {
    position: relative;
    overflow: hidden; /* Esconde o excesso da imagem quando fizermos o zoom */
    aspect-ratio: 3/4; /* Mantém um formato de "Retrato" elegante */
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Faz a imagem preencher o espaço sem distorcer */
    transition: transform 0.6s ease; /* Transição suave de navegação */
}

/* Hover Sênior (Passar o Mouse) */
.gallery-item:hover img {
    transform: scale(1.1); /* Zoom in de 10% */
}

/* Película Azul que aparece no Hover */
.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 67, 118, 0.7); /* Azul primário com transparência */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Escondido por padrão */
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1; /* Revela a película */
}

.gallery-overlay span {
    color: var(--text-white);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transform: translateY(20px); /* Começa um pouco para baixo */
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0); /* Sobe suavemente para o centro */
}

/* Espaçamento e Botão Centralizado */
.mt-4 {
    margin-top: 50px;
}

.btn-outline-center {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.btn-outline-center:hover {
    background-color: var(--primary-blue);
    color: var(--text-white);
}

/* ==========================================================================
   6. CUSTOMER REVIEWS
   ========================================================================== */
.reviews-section {
    padding: 80px 0;
    background-color: var(--text-white);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px; /* Espaçamento fino entre as imagens */
    width: 100%;
    padding: 0 15px; /* Para não colar totalmente na beirada da tela */
}

.review-card {
    position: relative;
    aspect-ratio: 3/4; /* Mantém a proporção vertical (retangular) */
    background-size: cover;
    background-position: center;
    border-bottom: 6px solid var(--accent-orange); /* A borda laranja no fundo */
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

/* Transição Sênior: O card levanta suavemente ao passar o mouse */
.review-card:hover {
    transform: translateY(-10px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* O Gradiente que vem de baixo para cima */
.review-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 67, 118, 0.95) 0%, rgba(0, 67, 118, 0.6) 40%, rgba(0, 67, 118, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Joga o texto para o fundo */
    padding: 30px 20px;
    color: var(--text-white);
}

.quote-icon {
    color: var(--accent-orange);
    font-size: 4.5rem;
    font-family: Georgia, serif; /* Fonte clássica para fazer as aspas bonitas */
    line-height: 0;
    margin-bottom: 25px; /* Espaço por causa do tamanho gigante da aspa */
}

.reviewer-name {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.review-text {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.95;
}

/* ==========================================================================
   7. INSTAGRAM SECTION
   ========================================================================== */
.instagram-section {
    padding: 80px 0;
    background-color: var(--text-white);
}

.ig-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    padding: 0 15px;
}

.ig-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background-color: #eef1f4; /* Cor cinza clara do rodapé da postagem */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ig-card:hover {
    transform: translateY(-5px); /* Efeito flutuante suave */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.ig-image {
    width: 100%;
    aspect-ratio: 4/5; /* Formato de retrato clássico do Instagram */
    background-size: cover;
    background-position: center;
}

.ig-footer {
    display: flex;
    align-items: center;
    height: 50px;
}

.ig-brand-icon {
    background-color: var(--primary-blue);
    width: 50px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ig-brand-icon img {
    width: 25px; /* Tamanho do ícone do tatu */
    height: auto;
}

.ig-handle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding-left: 15px; /* Afasta o texto do quadrado azul */
}

/* ==========================================================================
   8. FOOTER - PARTE 1 (NEWSLETTER E CONTACT TOP)
   ========================================================================== */
.main-footer {
    background-color: #2b486a;
    color: var(--text-white);
    padding: 70px 0 0 0;
    font-family: var(--font-main);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 5px;
    margin-bottom: 20px;
}

.mt-large {
    margin-top: 70px; /* Dá aquele respiro entre a newsletter e o contato */
}

.footer-subtitle {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 50px;
    opacity: 0.9;
}

.newsletter-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
    max-width: 750px;
    margin: 0 auto 30px auto;
}

.newsletter-desc strong {
    opacity: 1;
}

/* --- FORMULÁRIO DE NEWSLETTER --- */
.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left; /* Mantém a label EMAIL alinhada à esquerda da caixa */
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.input-row {
    display: flex;
    height: 45px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.input-row input {
    flex: 1;
    padding: 0 15px;
    border: none;
    outline: none;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: #333;
    transition: var(--transition-smooth);
}

.input-row input:focus {
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
}

.btn-send {
    background-color: var(--accent-orange);
    color: var(--text-white);
    border: none;
    padding: 0 30px;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: var(--font-main);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-send:hover {
    background-color: #d16b00;
}

.footer-badges {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: 40px;
}

.badge {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2px;
}

.badge p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* --- PARTE 3: CONTACT GRID --- */
.footer-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr 1.2fr; /* 4 colunas proporcionais */
    gap: 30px;
    margin-top: 60px;
    margin-bottom: 60px;
    align-items: start;
}

.footer-logo {
    max-width: 180px;
    height: auto;
}

.col-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: var(--text-white);
}

.col-list {
    list-style: none;
    padding: 0;
}

.col-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 600; /* Letra mais gordinha igual ao design */
}

.col-list a {
    color: var(--text-white);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.col-list a:hover {
    color: var(--accent-orange);
    transform: translateX(5px); /* Efeito Sênior: o texto desliza suavemente para a direita ao passar o mouse */
    display: inline-block;
}

.icon-orange {
    color: var(--accent-orange);
    width: 18px; /* Tamanho padronizado para todos os ícones */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-top: 2px;
}

.icon-orange svg {
    width: 100%;
    height: auto;
}

.mt-3 {
    margin-top: 15px;
}

/* --- PARTE 4: COMMUNITY + MISSION --- */
.footer-community {
    padding: 40px 0 60px 0;
    border-top: 1px solid rgba(255,255,255,0.1); /* Uma linha super sutil para separar as sessões */
}

.community-text {
    font-size: 0.85rem;
    line-height: 1.6;
    opacity: 0.8;
    max-width: 800px;
    margin: 0 auto;
}

.underline-link {
    color: var(--text-white);
    text-decoration: underline;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.underline-link:hover {
    color: var(--accent-orange);
}

/* --- PARTE 5: BOTTOM LINKS --- */
.footer-bottom {
    padding-bottom: 40px;
}

.bottom-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
}

.bottom-links a {
    color: var(--text-white);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.bottom-links a:hover {
    color: var(--accent-orange);
}

.bg-white-link {
    background-color: var(--text-white);
    color: var(--primary-blue) !important;
    padding: 5px 15px;
    transition: var(--transition-smooth);
}

.bg-white-link:hover {
    background-color: var(--accent-orange);
    color: var(--text-white) !important;
}

.sub-bottom-links {
    font-size: 0.7rem; /* Letras de Privacidade e Termos um pouco menores */
    opacity: 0.8;
}

.divider {
    opacity: 0.5;
}

/* --- PARTE 6: COPYRIGHT (BARRA LARANJA) --- */
.footer-copyright {
    background-color: var(--accent-orange);
    padding: 25px 0;
    color: var(--text-white);
    font-family: var(--font-main);
    font-size: 0.75rem;
}

.copyright-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-left {
    text-align: left;
    line-height: 1.6;
    font-weight: 500;
}

.copyright-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.heart {
    color: var(--text-white); /* Coração branquinho */
    font-size: 1rem;
}

.agency-link {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.agency-link:hover {
    transform: scale(1.05); 
}

.agency-logo {
    height: 22px;
    width: auto;
}

/* ==========================================================================
   FINAL DO ARQUIVO - RESPONSIVIDADE (MOBILE UX)
   ========================================================================== */
@media (max-width: 992px) {
    /* Menu Mobile */
    .main-nav { display: none; }
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
    }
    .mobile-menu-btn span {
        display: block;
        width: 30px;
        height: 3px;
        background-color: var(--text-white);
        margin: 6px 0;
    }
    .slide-title { font-size: 2.5rem; }

    .split-row, .split-row.reverse-row {
        flex-direction: column;
    }
    
    .split-content {
        flex: 0 0 100%; 
        max-width: 100%;
    }

    .split-row .text-block, 
    .split-row.reverse-row .text-block {
        order: 1;
        padding: 50px 20px;
    }
    
    .split-row .img-block, 
    .split-row.reverse-row .img-block {
        order: 2;
        min-height: 350px;
    }
    
    .align-right-headers .subtitle,
    .align-right-headers .title {
        text-align: left; 
    }
    .btn-outline-right { float: none; display: inline-block; }
    
    .gallery-grid,
    .reviews-grid,
    .ig-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px; 
    }
    
    .footer-badges {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .badge {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 10px;
    }

    .newsletter-desc {
        padding: 0 15px;
    }
    
    .footer-contact-grid {
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
    }
    
    .col-list li {
        justify-content: center;
    }

    .col-list a:hover {
        transform: none;
    }

    .bottom-links {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .copyright-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .copyright-left {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .gallery-grid,
    .reviews-grid,
    .ig-grid,
    .footer-contact-grid {
        grid-template-columns: 1fr;
    }
}