/*
  LANDING PAGE AFROTUNDE (v22 - Final Completo e Alinhado)
  Cliente: Karla (Afrotunde)
  Desenvolvedor: Pablo Rosa Gomes
  Foco: Santuário Ori (Elegância, Afro, Espiritual)
  Objetivo: Captação de Clientes (Conversão)
*/

/* ======== 1. IMPORTAÇÃO DAS FONTES ======== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600&family=Inter:wght@400;500&display=swap');

/* ======== 2. RESET BÁSICO ======== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

/* ======== 3. VARIÁVEIS DE COR E FONTES (O MENU) - PALETA TERROSA ======== */
:root {
    /* (NOVAS CORES) TEMA TERROSO (KARLA) */
    --cor-fundo-base: #fcfaf5; /* Bege/Areia (Off-white) */
    --cor-fundo-destaque: #e8f0e8; /* Verde Claro (Para a seção de depoimentos) */
    --cor-texto-principal: #3f3a34; /* Marrom-Escuro (Para legibilidade) */
    --cor-texto-secundario: #7a736a; /* Marrom-Médio (Para o disclaimer) */
    --cor-destaque-ori: #b78972; /* Terracota (O novo "ouro") */
    --cor-acento-secundario: #f0b8aa; /* Rosa Salmão (Para o hover/ação) */
    
    /* Cor Dourada forçada para o botão de tema */
    --cor-tema-toggle: #D4AF37; 

    /* Cor da Borda (Notificação) e do Logo Hero */
    --cor-borda-notificacao: #4a5c4a; /* Verde Oliva Sutil */

    /* Cor da Navbar semi-transparente */
    --cor-fundo-navbar: rgba(252, 250, 245, 0.85); /* Bege com 85% de opacidade */
    
    /* FONTES */
    --font-titulo: 'Cormorant Garamond', serif;
    --font-texto: 'Inter', sans-serif;
}

[data-theme="dark"] {
    --cor-fundo-base: #1a1820; 
    --cor-fundo-destaque: #2a2730; 
    --cor-texto-principal: #f0f0f0; 
    --cor-texto-secundario: #a0a0a0; 
    --cor-destaque-ori: #D4AF37; /* Dourado */
    --cor-acento-secundario: #f0b8aa; 
    --cor-fundo-navbar: rgba(26, 24, 32, 0.85);

    /* Cor Dourada forçada para o botão de tema */
    --cor-tema-toggle: #D4AF37;

    /* Cor da Borda (Notificação) - Tema Escuro */
    --cor-borda-notificacao: #8FBC8F; /* Verde Sutil (Dark Sea Green) */
}

/* ======== 4. CONFIGURAÇÕES GLOBAIS ======== */
html {
    scroll-behavior: smooth; 
    font-size: 16px; 
}

body {
    font-family: var(--font-texto);
    background-color: var(--cor-fundo-base); 
    color: var(--cor-texto-principal); 
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease; 
}

body.no-scroll {
    overflow: hidden;
}

/* ======== 5. ESTRUTURA E UTILITÁRIOS ======== */
.container {
    width: 90%; 
    max-width: 1100px; 
    margin: 0 auto;
    padding: 20px 0;
}

.section {
    padding: 60px 0; 
    background-color: var(--cor-fundo-base); 
    transition: background-color 0.3s ease;
    
    /* (Ajuste de Scroll Desktop - Final) */
    scroll-margin-top: 75px; 
}

.section.destaque {
    background-color: var(--cor-fundo-destaque); 
    border-top: 1px solid var(--cor-destaque-ori); 
    border-bottom: 1px solid var(--cor-destaque-ori); 
    transition: background-color 0.3s ease;
}

.hero-watermark {
    display: none; 
}

/* ======== 6. TIPOGRAFIA (Títulos e Textos) ======== */
h1, h2, h3, h4 {
    font-family: var(--font-titulo);
    color: var(--cor-destaque-ori); 
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section h2 {
    text-align: center;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--cor-texto-principal); 
}

a {
    color: var(--cor-destaque-ori); 
    transition: all 0.3s ease;
}

a:hover {
    color: var(--cor-acento-secundario); 
    opacity: 1; 
}

/* ======== 7. COMPONENTES PRINCIPAIS ======== */

/* LINK DE ACESSIBILIDADE "PULAR CONTEÚDO" */
.skip-link {
    position: absolute;
    top: -40px; 
    left: 0;
    background-color: var(--cor-destaque-ori);
    color: var(--cor-fundo-base);
    padding: 10px 15px;
    z-index: 9999; 
    transition: top 0.3s ease;
    font-weight: 600;
    border-bottom-right-radius: 8px;
}
.skip-link:focus {
    top: 0; 
}

/* ESTILO DE FOCO CUSTOMIZADO (A11Y) */
:focus-visible {
    outline: 2px dashed var(--cor-destaque-ori);
    outline-offset: 4px; 
    border-radius: 4px; 
}
.skip-link:focus,
.skip-link:focus-visible {
    outline: none; 
    outline-offset: 0;
}
[data-theme="dark"] :focus-visible {
     outline-color: var(--cor-destaque-ori); 
}


/* (HEADER / NAVBAR) */
.navbar {
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--cor-fundo-navbar); 
    border-bottom: 1px solid var(--cor-destaque-ori); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); 
    position: relative;
}

/* BARRA DE PROGRESSO DE SCROLL */
.scroll-progress-bar {
    position: absolute;
    bottom: -1px; 
    left: 0;
    height: 4px; 
    background-color: var(--cor-acento-secundario); 
    width: 0%; 
    z-index: 1001;
}


.navbar .container {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 0; 
    position: relative;
}
.logo {
    font-family: var(--font-titulo);
    font-size: 2.5rem; 
    font-weight: 600;
    line-height: 1; 
    transition: all 0.3s ease;
    color: var(--cor-destaque-ori); 
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem; 
}
.nav-menu a {
    font-size: 1rem;
    margin-left: 0; 
    font-weight: 500;
    color: var(--cor-destaque-ori); 
    position: relative;
    padding-bottom: 4px; 
}

.nav-menu a:hover {
    color: var(--cor-acento-secundario); 
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--cor-acento-secundario);
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-menu a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-menu a.active {
    color: var(--cor-acento-secundario); 
}
.nav-menu a.active::after {
    background-color: var(--cor-acento-secundario);
    opacity: 1;
    transform: scaleX(1); 
}


/* (BOTÃO DE TEMA - DESKTOP) */
#theme-toggle-desktop {
    background: none;
    border: none;
    cursor: pointer;
    width: 24px; 
    height: 24px;
    padding: 0;
    display: flex; 
    justify-content: center;
    align-items: center;
    overflow: hidden; 
    transition: transform 0.3s ease;
}

#theme-toggle-desktop svg {
    width: 100%;
    height: 100%;
    transition: stroke 0.3s ease, fill 0.3s ease;
}
/* Ícone da LUA (Tema Claro) - Cor forçada */
#theme-toggle-desktop .icon-moon {
    stroke: #D4AF37 !important; 
    fill: none;
}
/* Ícone do SOL (Tema Escuro) - Cor forçada */
#theme-toggle-desktop .icon-sun {
    display: none; 
    stroke: #D4AF37 !important; 
    fill: #D4AF37 !important;   
}

#theme-toggle-desktop:hover svg {
    stroke: var(--cor-acento-secundario) !important;
    fill: var(--cor-acento-secundario) !important; 
}
#theme-toggle-desktop:hover .icon-moon {
    fill: none !important; 
}

[data-theme="dark"] #theme-toggle-desktop .icon-moon { display: none; }
[data-theme="dark"] #theme-toggle-desktop .icon-sun { 
    display: block; 
    stroke: #D4AF37 !important; 
    fill: #D4AF37 !important;   
}
[data-theme="dark"] #theme-toggle-desktop:hover .icon-sun {
    stroke: var(--cor-acento-secundario) !important; 
    fill: var(--cor-acento-secundario) !important; 
}

/* (BOTÃO DE TEMA - MOBILE) */
#theme-toggle-mobile {
    display: none; 
}


/* (ESTILOS DO HAMBURGER) */
.hamburger-menu {
    display: none; 
    cursor: pointer;
}
.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--cor-destaque-ori); 
    transition: all 0.3s ease-in-out;
}

/* (ESTILO DO LOGO NA HERO - FOLHA SAGRADA) */
.hero-logo {
    width: 60px;
    height: 60px; 
    
    background-color: var(--cor-borda-notificacao); /* Verde Oliva Sutil */
    mask-image: url('assets/img/folha-sagrada.svg');
    -webkit-mask-image: url('assets/img/folha-sagrada.svg');
    
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;

    margin: 0 auto 2.5rem auto; 
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .hero-logo {
    background-color: var(--cor-borda-notificacao); 
}


/* (HERO SECTION) */
.hero {
    min-height: 80vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 60px 0; 
    position: relative;
    z-index: 1; 
    overflow: hidden; 
}
.hero.section {
    background-color: var(--cor-fundo-base); 
}

.hero-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0; 
    pointer-events: none; 
    max-width: 90%;
}

.hero-watermark img {
    width: 400px; 
    height: 400px;
    object-fit: contain; 
    filter: none;
    opacity: 0.1;
    animation: pulse 8s infinite ease-in-out;
}

@keyframes pulse {
    0% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.15; transform: scale(1.03); }
    100% { opacity: 0.1; transform: scale(1); }
}

[data-theme="dark"] .hero-watermark img {
    filter: brightness(0.6); 
    opacity: 0.15; 
}


.hero .subtitulo {
    font-size: 1.2rem;
    color: var(--cor-texto-secundario); 
    margin-bottom: 2rem;
}
.hero .frase-orgulho {
    font-family: var(--font-titulo);
    font-size: 1.2rem;
    color: var(--cor-destaque-ori); 
    font-weight: 600;
    margin-top: 2rem;
}

/* (BOTÃO CTA PRINCIPAL) */
.cta-button {
    font-family: var(--font-texto);
    background-color: var(--cor-destaque-ori); 
    color: var(--cor-fundo-base); 
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    display: inline-block;
    border: 2px solid var(--cor-destaque-ori); 
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    
    min-width: 150px; 
    min-height: 45px; 
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem; 
}

.cta-button:hover {
    background-color: var(--cor-acento-secundario); 
    border-color: var(--cor-acento-secundario); 
    color: var(--cor-fundo-base); 
    opacity: 1;
}

/* SPINNER DE CARREGAMENTO */
.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3); 
    border-top-color: var(--cor-fundo-base); 
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

[data-theme="dark"] .spinner {
    border-color: rgba(240, 240, 240, 0.3); 
    border-top-color: var(--cor-fundo-base); 
}

.cta-button.is-loading {
    opacity: 0.8; 
    pointer-events: none; 
}
.cta-button.is-loading .btn-text {
    display: none; 
}
.cta-button.is-loading .spinner {
    display: block; 
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ESTILOS DA SEÇÃO SOBRE */
.sobre-container {
    display: flex;
    align-items: center;
    gap: 3rem; 
    flex-wrap: wrap; 
}
.sobre-imagem {
    flex: 1; 
    min-width: 280px; 
}
.sobre-imagem img {
    width: 100%;
    height: auto;
    max-height: 500px; 
    object-fit: cover; 
    object-position: center; 
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    
    border: 4px solid var(--cor-fundo-destaque);
    
    outline: 2px solid var(--cor-destaque-ori);
    outline-offset: 8px; 
    transition: all 0.3s ease;
}

.sobre-imagem img:hover {
    outline-color: var(--cor-acento-secundario);
    transform: scale(1.02);
}

.sobre-texto {
    flex: 1.5; 
    min-width: 300px;
}
.sobre-texto h2 {
    text-align: left; 
    margin-bottom: 0.5rem;
}
.sobre-texto h3 {
    font-family: var(--font-texto); 
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--cor-texto-secundario);
    margin-bottom: 1.5rem;
}
.sobre-texto p {
    font-size: 1.05rem; 
    text-align: justify;
}
.frase-orgulho-sobre {
    font-family: var(--font-titulo);
    font-size: 1.3rem;
    color: var(--cor-destaque-ori); 
    font-weight: 600;
    margin-top: 1.5rem;
}


/* (GALERIA) */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 1.5rem;
}
.card-servico {
    background-color: var(--cor-fundo-destaque); 
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer; 
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    
    /* (NOVO) Flexbox para alinhar o rodapé do card */
    display: flex;
    flex-direction: column;
    height: 100%; 
}
.card-servico:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    filter: saturate(1.1);
}

/* (THUMBNAIL DA GALERIA) */
.card-video-thumb {
    width: 100%;
    height: 250px; 
    position: relative; 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; 
    background-color: #dbe6db; 
}
.galeria-imagem {
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    display: block;
    transition: transform 0.3s ease;
}

[data-theme="dark"] .card-video-thumb {
    background-color: #3e4a3e; 
}

/* Ícone de "Play" sobreposto */
.icon-play-overlay {
    position: absolute;
    width: 50px;
    height: 50px;
    stroke: rgba(255, 255, 255, 0.9);
    fill: none;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
    pointer-events: none; 
}

.card-servico.is-image .icon-play-overlay {
  display: none;
}

.card-servico:hover .icon-play-overlay {
    transform: scale(1.1);
}

.card-servico h4 {
    padding: 1rem 1rem 0.5rem 1rem; 
    margin: 0;
    /* O título cresce se precisar, mas não empurra o rodapé errado */
    flex-grow: 1; 
}

.card-servico .disclaimer {
    font-size: 0.85rem;
    color: var(--cor-texto-secundario); 
    padding: 0 1rem 1rem 1rem; 
    /* (O SEGREDO) Empurra para o fundo */
    margin-top: auto; 
}

/* (FRASES DE ORGULHO) */
.frase-orgulho {
    font-family: var(--font-titulo);
    font-size: 1.5rem;
    color: var(--cor-destaque-ori); 
    text-align: center;
    padding: 2rem 0;
    font-weight: 600;
}

/* SEÇÃO DE CONTADORES (STATS) */
.stats-section {
    background-color: var(--cor-fundo-base); 
    padding-bottom: 40px; 
}
.stats-container {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-around; 
    gap: 1.5rem;
    text-align: center;
    padding-top: 1rem; 
}
.stat-item {
    flex-basis: 150px; 
}
.stat-number {
    font-family: var(--font-titulo);
    font-size: 3rem; 
    color: var(--cor-destaque-ori); 
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}
.stat-label {
    font-size: 1rem;
    color: var(--cor-texto-secundario); 
    margin: 0;
}


/* (DEPOIMENTOS) */
.depoimentos-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 1.5rem;
}
.card-depoimento {
    background-color: var(--cor-fundo-base); 
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 5px solid var(--cor-destaque-ori); 
    transition: background-color 0.3s ease;
}
.card-depoimento p {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--cor-texto-principal); 
}
.card-depoimento span {
    font-weight: 500;
    color: var(--cor-texto-secundario); 
    margin-top: 1rem;
    display: block;
}

/* (CONTATO) */
.texto-localizacao {
    text-align: center;
    font-size: 1.1rem;
    color: var(--cor-texto-secundario); 
    max-width: 600px;
    margin: 0 auto 2rem auto;
}
.botoes-contato {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap; 
}

/* ESTILOS DO "CLICK TO COPY" (PIX) */
.pix-copy-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem; 
    background-color: var(--cor-fundo-destaque); 
    border: 1px dashed var(--cor-destaque-ori); 
    padding: 1rem;
    border-radius: 8px;
    max-width: 400px;
    margin: 0 auto 2rem auto; 
    text-align: center;
    position: relative; 
}
.pix-text {
    font-size: 1rem;
    color: var(--cor-texto-secundario);
}
#pix-key {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cor-texto-principal);
}
#copy-pix-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.2s ease;
    
    position: relative; 
}
#copy-pix-btn svg {
    width: 20px; 
    height: 20px;
    stroke: var(--cor-destaque-ori); 
    fill: none; 
    transition: stroke 0.2s ease;
}
#copy-pix-btn:hover {
    background-color: rgba(0,0,0,0.05); 
}
#copy-pix-btn:hover svg {
    stroke: var(--cor-acento-secundario); 
}
/* O balão "Copiado!" (Tooltip) */
.tooltip-copy {
    position: absolute;
    bottom: -30px; 
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--cor-texto-principal); 
    color: var(--cor-fundo-base); 
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    white-space: nowrap; 
}
.tooltip-copy.is-visible {
    opacity: 1;
    visibility: visible;
}


/* (BARRA DE NOTIFICAÇÃO) */
.notification-bar {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto 2rem auto;
    padding: 1rem;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    
    background-color: var(--cor-destaque-ori); 
    color: var(--cor-fundo-base); 
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);

    transition: all 0.5s ease; 

    border: 2px solid var(--cor-borda-notificacao);
}
.notification-bar p {
    color: var(--cor-fundo-base); 
    margin: 0;
    font-weight: 500;
}
.close-notification {
    background: none;
    border: none;
    font-size: 1.5rem; 
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    padding: 0; 
    display: flex; 
    align-items: center;
    justify-content: center;
}
.close-notification svg {
    width: 24px; 
    height: 24px;
    stroke: var(--cor-fundo-base); 
    fill: none;
}
.close-notification:hover {
    opacity: 1;
}
/* Classe que o JS vai adicionar */
.notification-bar.is-hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    padding: 0 1rem;
    margin: 0 auto;
    border: none;
}


/* (FOOTER) */
.footer {
    border-top: 1px solid var(--cor-destaque-ori); 
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--cor-texto-secundario); 
    background-color: var(--cor-fundo-base); 
    transition: background-color 0.3s ease;
}

/* (NAVEGAÇÃO DO RODAPÉ) */
.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    gap: 1rem 1.5rem; 
    margin-bottom: 1.5rem;
}
.footer-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--cor-texto-secundario); 
}
.footer-nav a:hover {
    color: var(--cor-acento-secundario); 
    opacity: 1;
}


.footer p {
    font-size: 0.9rem;
    color: var(--cor-texto-secundario); 
    margin: 0.25rem 0;
}

.footer .desenvolvido-por {
    font-style: normal; 
    margin: 0.25rem 0;
}

.footer .desenvolvido-por a {
    color: var(--cor-destaque-ori); 
    font-weight: 600;
    display: inline-flex; 
    align-items: center;
    gap: 0.3rem; 
}

.footer .desenvolvido-por a:hover {
    color: var(--cor-acento-secundario); 
}

/* Ícone do Instagram agora usa a cor do link (currentColor) */
.footer .desenvolvido-por .icon-instagram { 
    width: 18px; 
    height: 18px;
    stroke: currentColor; 
    fill: none;
    position: relative;
    top: -1px; 
    vertical-align: middle;
    transition: stroke 0.3s ease;
}

.footer .desenvolvido-por a:hover .icon-instagram {
    stroke: currentColor; 
}


/* ======== 7.5. ÍCONES (A11y) ======== */
.icon-external {
    width: 16px;
    height: 16px;
    stroke: currentColor; 
    fill: none;
    margin-left: 2px; 
    transition: transform 0.2s ease;
}

.cta-button:hover .icon-external,
.desenvolvido-por a:hover .icon-external {
    transform: scale(1.1);
}
.desenvolvido-por a:hover .icon-external {
    stroke: var(--cor-acento-secundario);
}


/* ======== 8. EFEITOS (O TOQUE MESTRE) ======== */

/* (EFEITO BRILHO BOTÃO) */
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; 
    width: 100%;
    height: 100%;
    z-index: -1; 
    background: linear-gradient(
        60deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent
    );
    transition: left 0.7s ease-in-out;
}
.cta-button:hover::before {
    left: 100%; 
}

/* ANIMAÇÃO DE FADE-IN NO SCROLL */
.fade-in {
    opacity: 0; 
    transform: translateY(20px); 
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible {
    opacity: 1; 
    transform: translateY(0); 
}

/* ======== 8.5. OTIMIZAÇÃO DE PERFORMANCE ======== */
#sobre,
#catalogo,
#stats,
#depoimentos,
#faq, 
#contato {
  content-visibility: auto;
  contain-intrinsic-size: 500px; 
}


/* ======== 8.6. ESTILOS DO FAQ (ACORDEÃO) ======== */

.subtitulo-faq {
    text-align: center;
    font-size: 1.1rem;
    color: var(--cor-texto-secundario);
    max-width: 600px;
    margin: -0.5rem auto 2rem auto; 
}

.faq-container {
    max-width: 800px; 
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: var(--cor-fundo-destaque);
    border: 1px solid var(--cor-fundo-destaque);
    border-left: 4px solid var(--cor-destaque-ori);
    border-radius: 8px;
    overflow: hidden; 
    transition: background-color 0.3s ease;
}

.faq-item[open] {
    background-color: var(--cor-fundo-base);
    border-color: var(--cor-destaque-ori);
}

.faq-item summary {
    font-family: var(--font-titulo);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--cor-texto-principal);
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    list-style: none; 
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-family: var(--font-texto); 
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--cor-destaque-ori);
    
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item[open] summary::after {
    content: '\00d7'; 
    transform: translateY(-50%) rotate(180deg);
    color: var(--cor-acento-secundario);
}

.faq-item summary:hover {
    color: var(--cor-destaque-ori);
}
.faq-item summary:hover::after {
    color: var(--cor-acento-secundario);
}

.faq-item[open] summary,
.faq-item[open] summary:hover {
    color: var(--cor-acento-secundario);
}

.faq-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    animation: fadeInFaq 0.4s ease-out;
}
.faq-content p {
    color: var(--cor-texto-secundario);
    font-size: 1rem;
    margin: 0;
    text-align: justify;
}

@keyframes fadeInFaq {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ======== 9. MEDIA QUERIES ======== */
@media (max-width: 768px) {
    
    /* (Ajuste de Scroll Mobile - Final) */
    .section {
        scroll-margin-top: 70px; 
    }
    
    .navbar .container {
        justify-content: space-between; 
    }
    
    #theme-toggle-desktop {
        display: none;
    }

    .hamburger-menu {
        display: block; 
        position: relative; 
        right: auto; 
        top: auto;
        transform: none;
        z-index: 1002; 
    }
    .nav-menu {
        position: fixed;
        left: -100%; 
        top: 0;
        width: 100%;
        height: 100vh; 
        background-color: var(--cor-fundo-base); 
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.4s ease-in-out;
        z-index: 1001; 
        gap: 0; 
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-menu a {
        font-family: var(--font-titulo); 
        font-size: 2rem; 
        margin: 1.2rem 0; 
        font-weight: 600;
        transition: transform 0.2s ease, color 0.2s ease; 
        
        padding-bottom: 0.5rem; 
    }

    .nav-menu a::after {
        display: none;
    }
    
    .nav-menu a.active {
        color: var(--cor-acento-secundario);
    }
    .nav-menu a:hover::after {
        display: none;
    }
    
    .nav-menu a:active {
        transform: scale(1.1); 
        color: var(--cor-acento-secundario); 
    }
    
    #theme-toggle-mobile {
        display: flex; 
        justify-content: center;
        align-items: center;
        font-size: 1rem; 
        font-weight: normal;
        color: inherit;
        background-color: transparent; 
        padding: 0;
        border: none;
        border-radius: 0;
        margin-top: 0; 
        margin-bottom: 2rem; 
        width: 40px;  
        height: 40px; 
        cursor: pointer;
    }
    #theme-toggle-mobile svg {
        width: 100%;
        height: 100%;
        /* Cor forçada */
        stroke: #D4AF37 !important;
    }
    #theme-toggle-mobile:hover {
        background-color: transparent; 
    }
    #theme-toggle-mobile:hover svg {
         stroke: var(--cor-acento-secundario);
    }
    [data-theme="dark"] #theme-toggle-mobile .icon-sun {
        /* Cor forçada */
        stroke: #D4AF37 !important;
        fill: #D4AF37 !important;  
    }
    [data-theme="dark"] #theme-toggle-mobile:hover .icon-sun {
        stroke: var(--cor-acento-secundario); 
        fill: var(--cor-acento-secundario); 
    }

    #theme-toggle-mobile .icon-sun { display: none; }
    [data-theme="dark"] #theme-toggle-mobile .icon-moon { display: none; }
    [data-theme="dark"] #theme-toggle-mobile .icon-sun { display: block; }
    
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0; 
    }
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    .depoimentos-wrapper {
        position: relative;
        -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
        mask-image: linear-gradient(to right, black 90%, transparent 100%);
        transition: -webkit-mask-image 0.3s ease, mask-image 0.3s ease;
    }
    
    .depoimentos-wrapper.is-scrolled-to-end {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .depoimentos-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        scrollbar-width: none; 
        -ms-overflow-style: none;  
    }
    .depoimentos-grid::-webkit-scrollbar {
        display: none; 
    }

    .card-depoimento {
        flex: 0 0 90%; 
        scroll-snap-align: start;
    }

    .pix-copy-wrapper {
        flex-direction: column; 
        gap: 0.25rem;
    }
    .pix-text {
        font-size: 0.9rem;
    }
    #pix-key {
        font-size: 1rem;
    }
    
    .stats-container {
        gap: 2rem; 
    }
    .stat-number {
        font-size: 2.5rem; 
    }
    .stat-label {
        font-size: 0.9rem;
    }

    .notification-bar {
        text-align: left; 
        gap: 0.5rem; 
    }
    .notification-bar p {
        font-size: 0.9rem;
    }
    .close-notification {
        padding: 5px; 
    }

    .sobre-container {
        gap: 2rem; 
        display: flex;
        flex-direction: column-reverse; 
    }
    .sobre-texto h2 {
        text-align: center; 
    }
    .sobre-texto h3 {
        text-align: center; 
    }

    .hero-watermark img {
        width: 300px;
        height: 300px;
    }

    .faq-item summary {
        font-size: 1.15rem;
        padding: 1rem 1.25rem;
    }
    .faq-item summary::after {
        right: 1.25rem;
    }
    .faq-content {
        padding: 0 1.25rem 1.25rem 1.25rem;
    }

}

/* (A11Y) MEDIA QUERY DE MOVIMENTO REDUZIDO */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }
    
    .cta-button:hover::before {
        display: none;
    }
    
    .card-servico:hover .galeria-imagem,
    .card-servico:hover .icon-play-overlay {
        transform: none;
    }
    
    .card-servico:hover {
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        filter: none;
    }

    .sobre-imagem img:hover {
        outline-color: var(--cor-destaque-ori);
        transform: none;
    }

    .hero-watermark img {
        animation: none;
        opacity: 0.1; 
    }

    .faq-content {
        animation: none;
    }
    
    .depoimentos-wrapper {
        -webkit-mask-image: none;
        mask-image: none;
    }
}


/* ======== 10. LIGHTBOX ======== */

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; 
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    width: 90vw; 
    max-width: 1000px; 
    max-height: 90vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    
    transform: scale(0.8); 
    transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1); 
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    display: block; 
    border-radius: 8px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    flex-shrink: 1;
    min-height: 0; 
}

.lightbox-video-placeholder {
    display: none; 
    width: 100%; 
    aspect-ratio: 16 / 9; 
    background-color: var(--cor-fundo-destaque);
    border-radius: 8px;
    position: relative;
    overflow: hidden; 
    display: flex; 
    justify-content: center;
    align-items: center;
    flex-shrink: 1;
    min-height: 0;
}
.lightbox-video-placeholder svg { 
    width: 128px; 
    height: 128px;
    stroke: var(--cor-destaque-ori); 
    fill: none;
}

.lightbox-video-placeholder iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px; 
}

.lightbox-caption {
    font-family: var(--font-titulo);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cor-destaque-ori);
    text-align: center;
    padding: 1rem 0 0 0;
    margin: 0;
    line-height: 1.3;
}
[data-theme="dark"] .lightbox-caption {
     color: var(--cor-destaque-ori);
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: var(--cor-destaque-ori); 
    font-size: 40px; 
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0,0,0,0.7); 
    background: none; 
    border: none; 
    padding: 0; 
    line-height: 1;
    width: 40px; 
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.lightbox-close svg {
    width: 30px; 
    height: 30px;
    stroke: var(--cor-destaque-ori); 
    fill: none;
    transition: stroke 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover svg {
    stroke: var(--cor-acento-secundario); 
    transform: scale(1.1);
}

/* ======== 11. MODAL DE CONFIRMAÇÃO (WHATSAPP) ======== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; 
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--cor-fundo-base);
    color: var(--cor-texto-principal);
    padding: 2.5rem 2rem 2rem 2rem; 
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9); 
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content h3 {
    font-family: var(--font-titulo);
    color: var(--cor-destaque-ori);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.modal-content p {
    color: var(--cor-texto-secundario);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    padding: 0;
}
.modal-close svg {
    width: 100%;
    height: 100%;
    stroke: var(--cor-texto-secundario); 
    transition: all 0.2s ease;
}
.modal-close:hover svg {
    stroke: var(--cor-destaque-ori);
    transform: scale(1.1);
}

.modal-botoes {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap; 
}

/* Botão "Cancelar" */
.cta-button.secondary {
    background-color: transparent;
    color: var(--cor-destaque-ori);
    border: 2px solid var(--cor-fundo-destaque); 
}
.cta-button.secondary:hover {
    background-color: var(--cor-fundo-destaque); 
    color: var(--cor-texto-principal);
    border-color: var(--cor-fundo-destaque);
}

/* ======== 12. BOTÃO VOLTAR AO TOPO ======== */
.voltar-ao-topo {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999; 
    background-color: var(--cor-destaque-ori); 
    color: var(--cor-fundo-base); 
    width: 45px;
    height: 45px;
    border-radius: 50%; 
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.voltar-ao-topo.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.voltar-ao-topo svg {
    width: 24px; 
    height: 24px;
    stroke: var(--cor-fundo-base); 
    fill: none;
}

.voltar-ao-topo:hover {
    background-color: var(--cor-acento-secundario); 
    color: var(--cor-fundo-base); 
    opacity: 1;
}

/* ======== 13. ESTILOS DE IMPRESSÃO (A11y/UX) ======== */

@media print {
    * {
        background-color: #ffffff !important;
        color: #000000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
        border-color: #dddddd !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .navbar, 
    .hero, 
    #stats, 
    #catalogo, 
    #depoimentos, 
    #contato, 
    .notification-bar, 
    .footer, 
    .voltar-ao-topo, 
    .lightbox-overlay, 
    .modal-overlay,
    .sobre-imagem { 
        display: none !important;
    }

    main,
    .section,
    #sobre,
    #faq,
    .sobre-texto,
    .faq-container {
        display: block !important;
        padding: 0 !important;
        margin: 0 0 1.5rem 0 !important;
    }
    
    .container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .faq-item {
        page-break-inside: avoid; 
    }
    
    .faq-item details {
        display: block !important;
        page-break-inside: avoid;
    }
    
    .faq-item details[open] {
        display: block !important;
    }

    .faq-item summary {
        font-weight: bold;
    }
    
    .faq-item summary::after {
        display: none !important;
    }
    
    .faq-content {
        display: block !important;
        padding: 0 1rem 1rem 1rem !important;
        animation: none !important;
    }

    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
    a[href^="http"]:not([href*="afrotunde"])::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
    }
}
