/* --- CONFIGURAÇÕES GERAIS E CORES --- */
:root {
    --cor-principal-azul: #2b3952;
    --cor-destaque-dourado: #c7a355;
    --cor-destaque-dourado-hover: #ab8c49;
    --cor-verde-whatsapp: #25D366; /* Adicionado para consistência */
    --cor-verde-whatsapp-hover: #128C7E; /* Adicionado para consistência */
    --cor-verde-ligar: #28a745; /* Adicionado para consistência */
    --cor-verde-ligar-hover: #218838; /* Adicionado para consistência */
}

/* --- RESET BÁSICO E CONFIGURAÇÕES GLOBAIS --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', Arial, sans-serif; /* Sugestão: Usar uma fonte mais moderna como Montserrat */
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

/* --- 1. CABEÇALHO E NAVEGAÇÃO --- */
header {
    background: var(--cor-principal-azul);
    color: #ffffff;
    padding-top: 10px;
    padding-bottom: 10px;
    min-height: 70px;
    border-bottom: var(--cor-destaque-dourado) 4px solid;
    position: relative;
    transition: background 0.3s ease;
    z-index: 1000;
}

header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--cor-principal-azul);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: top 0.3s ease-in-out;
}

/* Ajuste o padding-top de main para acomodar o header fixo */
main {
    padding-top: 94px; /* Altura do header (70px) + padding vertical (20px) + borda (4px) */
}


header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

header .logo-container {
    margin-top: 0;
    padding: 0;
    background-color: transparent;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    box-shadow: none;
    transition: all 0.3s ease;
}

header .logo-container img {
    height: 60px;
    width: auto;
    display: block;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    top: 25px;
    right: 5%;
    z-index: 1001;
    transition: color 0.3s ease;
}
.hamburger-menu:hover {
    color: var(--cor-destaque-dourado);
}

header .main-nav {
    margin-top: 0;
}

header .main-nav ul {
    list-style: none;
}

header .main-nav li {
    display: inline;
    padding: 0 20px;
}

header .main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

header .main-nav a:hover {
    color: var(--cor-destaque-dourado);
    font-weight: bold;
}

/* --- BOTÃO (CALL TO ACTION) --- */
.cta-button {
    display: inline-block;
    background: var(--cor-destaque-dourado);
    color: #ffffff;
    padding: 12px 25px;
    font-size: 18px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 25px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background: var(--cor-destaque-dourado-hover);
    transform: translateY(-2px);
}

.cta-button i {
    margin-right: 8px; /* Espaçamento padrão para ícones em botões */
}

/* --- SECÇÕES DE CONTEÚDO --- */
section {
    padding: 40px 0;
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

section h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 25px;
    color: var(--cor-principal-azul);
}

/* --- SECÇÃO HERO (Banner Inicial) --- */
#hero {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('images/fundo-hero.png');
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    text-align: center;
    padding: 60px 0;
    color: #ffffff;
}

#hero h1 {
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 15px;
}

#hero p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* NOVO: Estilo para o destaque na seção Hero (Seguradoras e Parcelamento) */
.hero-highlight {
    font-size: 1.4em; /* Um pouco maior para chamar atenção */
    font-weight: bold;
    color: var(--cor-destaque-dourado);
    margin: 30px auto; /* Centraliza e adiciona mais espaçamento */
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6); /* Fundo mais escuro para maior contraste */
    padding: 15px 25px;
    border-radius: 8px;
    display: table; /* Para o background pegar apenas o tamanho do texto e centralizar melhor */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 2px solid var(--cor-destaque-dourado); /* Borda para realçar */
}

/* NOVO: Estilo para o novo botão de Ligar Agora na seção Hero */
.cta-phone {
    background-color: var(--cor-verde-ligar);
    color: #ffffff;
    border: 2px solid var(--cor-verde-ligar-hover);
    margin-top: 15px;
    display: inline-block; /* Alinha com o botão principal do WhatsApp */
    width: auto;
    margin-left: 10px; /* Espaço entre os botões */
    margin-right: 10px;
    padding: 12px 30px;
    font-size: 1.1em;
}

.cta-phone:hover {
    background-color: var(--cor-verde-ligar-hover);
    transform: translateY(-2px);
}

/* --- LISTA DE SERVIÇOS --- */
#servicos ul {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
    padding: 0; /* Garante que o padding não atrapalhe os ícones */
}

#servicos ul li {
    list-style: none; /* Remove a bolinha padrão */
    position: relative;
    padding: 12px 0 12px 35px; /* Espaço para o ícone */
    border-bottom: 1px dashed #ccc;
    font-size: 1.1em;
    text-align: left;
    color: #333;
}

#servicos ul li:last-child {
    border-bottom: none; /* Remove a borda do último item */
}

#servicos ul li::before {
    content: '\2705'; /* Símbolo de check mark (✓) */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%); /* Centraliza verticalmente */
    color: var(--cor-destaque-dourado); /* Cor dourada para o check */
    font-weight: bold;
    font-size: 1.4em;
    margin-right: 10px;
}

#servicos ul li strong {
    color: var(--cor-principal-azul); /* Cor azul marinho para o texto forte */
}

/* --- SECÇÃO GALERIA --- */
#galeria {
    background: #f4f4f4;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.gallery-item {
    width: 350px;
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: var(--item-delay);
}

.gallery-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-caption {
    font-size: 16px;
    font-weight: bold;
    padding: 15px;
    color: var(--cor-principal-azul);
}

/* --- SECÇÃO CTA INSTAGRAM --- */
#instagram-cta {
    background-color: var(--cor-principal-azul);
    color: #ffffff;
    padding: 60px 0;
    text-align: center;
}

#instagram-cta h2 {
    color: #ffffff;
    font-size: 36px;
    margin-bottom: 20px;
}

#instagram-cta p {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.instagram-mockup {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    margin: 0 auto 50px auto;
    overflow: hidden;
}

.instagram-header {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: #333;
    font-weight: bold;
    font-size: 1.1em;
}

.instagram-profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    border: 1px solid #ddd;
}

.instagram-follow-button {
    background-color: #0095f6;
    color: #ffffff;
    padding: 6px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: bold;
    margin-left: auto;
    transition: background-color 0.3s ease;
}

.instagram-follow-button:hover {
    background-color: #007acb;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 5px;
    padding: 5px;
}

.instagram-grid img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
    border-radius: 3px;
}

.cta-button.instagram-button-final {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 1.3em;
    padding: 15px 30px;
    margin-top: 30px;
}

.cta-button.instagram-button-final:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.cta-button.instagram-button-final i {
    margin-right: 10px;
    font-size: 1.2em;
}

/* --- LOCALIZAÇÃO E CONTATO --- */
#localizacao, #contato {
    text-align: center;
}

/* --- MAPA --- */
.mapa-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin-top: 20px;
    border: 5px solid var(--cor-principal-azul);
    border-radius: 5px;
}

.mapa-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- BOTÃO WHATSAPP (na seção de contato) --- */
.whatsapp-button {
    background: var(--cor-verde-whatsapp);
    transition: background 0.3s ease, transform 0.2s ease;
}

.whatsapp-button:hover {
    background: var(--cor-verde-whatsapp-hover);
    transform: translateY(-2px);
}

/* --- Estilos para Informações de Contato (Telefone/Email) --- */
.contact-info {
    font-size: 1.2em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cor-principal-azul);
    font-weight: bold;
}

.contact-info i {
    color: var(--cor-destaque-dourado);
    margin-right: 10px;
    font-size: 1.5em;
}

.contact-info a {
    color: var(--cor-principal-azul);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--cor-destaque-dourado);
}

/* --- RODAPÉ --- */
footer {
    padding: 30px;
    background: var(--cor-principal-azul);
    color: #ffffff;
    text-align: center;
    margin-top: -1px;
}

.social-link {
    color: var(--cor-destaque-dourado);
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    display: block;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #ffffff;
}

footer .copyright {
    font-size: 14px;
    color: #ccc;
    margin: 0;
}

/* --- NOVO: BOTÃO "VOLTAR AO TOPO" --- */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--cor-destaque-dourado);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 18px;
    z-index: 999;
    text-decoration: none;
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--cor-destaque-dourado-hover);
}

/* --- NOVO: BOTÃO WHATSAPP FIXO/FLUTUANTE (ADICIONADO NO FOOTER) --- */
.whatsapp-fixed-cta {
    position: fixed;
    bottom: 20px;
    right: 20px; /* Posição padrão para desktop e mobile */
    background-color: var(--cor-verde-whatsapp);
    color: white;
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 1010; /* Acima de tudo, incluindo o header e back-to-top */
    transition: background-color 0.3s ease, transform 0.3s ease, padding 0.3s ease;
}

.whatsapp-fixed-cta:hover {
    background-color: var(--cor-verde-whatsapp-hover);
    transform: scale(1.05);
}

.whatsapp-fixed-cta i {
    margin-right: 10px;
    font-size: 1.5em;
}


/* --- MEDIA QUERIES PARA DISPOSITIVOS MÓVEIS --- */
@media screen and (max-width: 768px) {
    
    .container {
        width: 90%;
        padding: 15px 0;
    }

    /* Otimização: O padding-top de 'main' deve ser menor no mobile */
    main {
        padding-top: 79px; /* Altura do header mobile (50px + 20px padding + 4px border) */
    }
    
    header .container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 5%;
        width: 100%;
    }

    header .logo-container {
        margin-top: 0;
        padding: 0;
        background-color: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    header .logo-container img {
        height: 50px;
    }

    .hamburger-menu {
        display: block;
        position: static;
    }

    header .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--cor-principal-azul);
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        z-index: 1000;
        padding-bottom: 10px;
        float: none;
        margin-top: 0;
    }

    header .main-nav.nav-open {
        display: block;
    }

    header .main-nav ul {
        list-style: none;
        width: 100%;
        text-align: center;
        padding: 0;
    }

    header .main-nav li {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid #4a5c7a;
    }
    
    header .main-nav li:last-child {
        border-bottom: none;
    }

    header .main-nav a {
        font-size: 19px;
        display: block;
        color: #ffffff;
    }

    header .main-nav a:hover {
        background: var(--cor-destaque-dourado);
        color: #ffffff;
    }

    /* Ajustes de Fonte e Layout Mobile */
    #hero {
        padding-top: 40px;
        min-height: auto;
    }
    
    #hero h1 {
        font-size: 28px;
    }
    
    #hero p {
        font-size: 16px;
    }

    /* NOVO: Ajuste do hero-highlight para mobile */
    .hero-highlight {
        font-size: 1.1em; /* Menor no mobile */
        padding: 10px 15px;
        margin: 20px auto;
    }

    /* NOVO: Ajuste dos botões CTA na Hero para mobile (empilhar) */
    #hero .cta-button {
        display: block; /* Cada botão em uma linha */
        margin: 15px auto; /* Centraliza e espaça */
        width: 90%; /* Ocupa quase a largura total */
        max-width: 300px; /* Limita para não ficar gigante */
        font-size: 1.1em;
    }
    
    .cta-phone {
        margin-top: 0 !important; /* Remove margem superior extra se empilhados */
    }


    section h2 {
        font-size: 24px;
    }

    .gallery-grid {
        gap: 15px;
    }
    
    .gallery-item {
        width: 100%;
    }

    #servicos ul {
        width: 100%;
        padding: 0 5%;
    }
    
    #servicos ul li {
        font-size: 1em;
        padding-left: 30px; /* Ajusta o padding para o ícone */
    }

    #servicos ul li::before {
        font-size: 1.2em; /* Ícone um pouco menor */
    }

    footer {
        padding: 20px;
    }

    .social-link {
        font-size: 16px;
    }

    /* NOVO: Ajuste do botão flutuante para mobile */
    .whatsapp-fixed-cta {
        padding: 10px 15px; /* Menor padding */
        font-size: 1em; /* Menor fonte */
        bottom: 15px; /* Mais próximo da borda */
        right: 15px;
    }
    .whatsapp-fixed-cta span {
        display: none; /* Esconde o texto "Orçamento Rápido", deixando só o ícone */
    }
    .whatsapp-fixed-cta i {
        margin-right: 0; /* Remove a margem do ícone quando o texto sumir */
    }
}