/* --- Importação de Fontes e Ícones --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Noto+Serif:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,300,0,0&display=swap');

/* --- Reset e Configurações Globais --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans', sans-serif;
    background-color: #FDFCF9;
    color: #2C3E2E;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Inputs globais em modo claro para evitar fundos brancos */
input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]), 
textarea, 
select {
    background-color: #FDFCF9 !important;
    border-color: rgba(75, 93, 78, 0.15) !important;
    color: #111827 !important;
}

/* Correção de autofill para evitar fundos brancos com textos claros */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px #FDFCF9 inset !important;
    -webkit-text-fill-color: #111827 !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* --- Helpers de Tipografia --- */
.font-display {
    font-family: 'Noto Serif', serif;
}

.font-sans {
    font-family: 'Noto Sans', sans-serif;
}

/* --- Animações --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Estilos para Ícones */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
}

/* --- CARDS COM EFEITO DE GLOW FLUIDO --- */
.glow-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    background: rgba(75, 93, 78, 0.12); /* Borda padrão suave */
    padding: 1.5px; /* Espessura da borda brilhante por padding */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, box-shadow;
}

/* Pseudo-elemento para o gradiente de borda fluido em hover (Hardware Accelerated) */
.glow-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--brand-gradient);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.glow-card-inner {
    position: relative;
    z-index: 2;
    background-color: #F3F0E9;
    border-radius: 14.5px;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Configuração de Cores por Rede Social */
.card-instagram {
    --brand-color: #e1306c;
    --brand-gradient: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7);
    --brand-shadow: rgba(238, 42, 123, 0.18);
    --brand-badge-bg: rgba(225, 48, 108, 0.06);
}

.card-youtube {
    --brand-color: #ff0000;
    --brand-gradient: linear-gradient(135deg, #ff0000, #b31010);
    --brand-shadow: rgba(255, 0, 0, 0.15);
    --brand-badge-bg: rgba(255, 0, 0, 0.06);
}

.card-tiktok {
    --brand-color: #000000;
    --brand-gradient: linear-gradient(135deg, #111111, #00f2fe, #fe0979);
    --brand-shadow: rgba(0, 242, 254, 0.2);
    --brand-badge-bg: rgba(0, 242, 254, 0.08);
}

.card-facebook {
    --brand-color: #1877f2;
    --brand-gradient: linear-gradient(135deg, #1877f2, #0056b3);
    --brand-shadow: rgba(24, 119, 242, 0.15);
    --brand-badge-bg: rgba(24, 119, 242, 0.06);
}

/* Efeitos em Hover / Foco */
.glow-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 35px -10px var(--brand-shadow),
        0 5px 15px -5px rgba(0, 0, 0, 0.05);
}

.glow-card:hover::before {
    opacity: 1; /* Exibe o gradiente de borda suavemente */
}

/* Elementos internos do Card */
.brand-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(75, 93, 78, 0.03);
    border: 1px solid rgba(75, 93, 78, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-color);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glow-card:hover .brand-icon-wrapper {
    background: var(--brand-color);
    color: #ffffff;
    border-color: var(--brand-color);
    box-shadow: 0 4px 12px var(--brand-shadow);
    transform: scale(1.08);
}

.brand-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--brand-color);
    background: rgba(75, 93, 78, 0.02);
    border: 1px solid rgba(75, 93, 78, 0.04);
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glow-card:hover .brand-badge {
    background: var(--brand-badge-bg);
}

.arrow-icon {
    width: 16px;
    height: 16px;
    color: var(--brand-color);
    transform: translateX(0);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glow-card:hover .arrow-icon {
    transform: translateX(4px);
}

/* --- CONTAINER DO FORMULÁRIO COM EFEITO DE BRILHO FLUIDO --- */
.glow-form-container,
.glow-highlight-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(75, 93, 78, 0.1); /* Borda padrão suave */
    padding: 2px; /* Gap para o gradiente de borda por padding */
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 4px 10px -2px rgba(75, 93, 78, 0.03),
        0 15px 30px -10px rgba(75, 93, 78, 0.12),
        0 0 40px -5px rgba(197, 160, 89, 0.06); /* Ambient gold glow */
    will-change: transform, box-shadow;
}

.glow-form-container::before,
.glow-highlight-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #4b5d4e, #C5A059);
    opacity: 0.15; /* Sutilmente visível no estado padrão */
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.glow-form-container-inner,
.glow-highlight-container-inner {
    position: relative;
    z-index: 2;
    background-color: #F3F0E9;
    border-radius: 22px;
    padding: 32px; /* Equivale a p-8 */
    width: 100%;
    transition: background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
    .glow-form-container-inner,
    .glow-highlight-container-inner {
        padding: 40px; /* Equivale a p-10 */
    }
}

.glow-form-container:hover,
.glow-form-container:focus-within,
.glow-highlight-container:hover,
.glow-highlight-container:focus-within {
    transform: translateY(-4px);
    box-shadow: 
        0 20px 40px -15px rgba(75, 93, 78, 0.18),
        0 30px 60px -15px rgba(75, 93, 78, 0.1),
        0 0 50px 8px rgba(197, 160, 89, 0.22); /* Glow dourado e verde forte e luxuoso */
}

.glow-form-container:hover::before,
.glow-form-container:focus-within::before,
.glow-highlight-container:hover::before,
.glow-highlight-container:focus-within::before {
    opacity: 1; /* Exibe o gradiente de borda com intensidade total */
}



/* ============================================================
   DARK MODE — Consciência Simples
   Ativado via [data-theme="dark"] no elemento <html>
   Respeita prefers-color-scheme para novos visitantes
   ============================================================ */

/* --- Transições globais suaves ao trocar tema --- */
body,
header,
footer,
nav,
main,
section,
article,
.glow-card-inner,
.glow-form-container-inner,
.glow-highlight-container-inner {
    transition:
        background-color 0.35s ease,
        color 0.35s ease,
        border-color 0.35s ease;
}

/* --- Botão de Toggle de Tema --- */
.theme-toggle-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(75, 93, 78, 0.2);
    background: rgba(75, 93, 78, 0.06);
    color: #4b5d4e;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, transform 0.2s;
    flex-shrink: 0;
    overflow: hidden;
}

.theme-toggle-btn:hover {
    background: rgba(75, 93, 78, 0.14);
    border-color: rgba(75, 93, 78, 0.4);
    transform: scale(1.08);
}

.theme-toggle-btn .material-symbols-outlined {
    font-size: 20px;
    line-height: 1;
    position: absolute;
    transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Ícones: estado light (padrão) */
.theme-icon-dark  { opacity: 1;  transform: rotate(0deg) scale(1); }
.theme-icon-light { opacity: 0;  transform: rotate(-90deg) scale(0.5); }

/* Ícones: estado dark */
[data-theme="dark"] .theme-icon-dark  { opacity: 0;  transform: rotate(90deg) scale(0.5); }
[data-theme="dark"] .theme-icon-light { opacity: 1;  transform: rotate(0deg) scale(1); }

/* Botão no dark mode */
[data-theme="dark"] .theme-toggle-btn {
    color: #d4b06a;
    border-color: rgba(212, 176, 106, 0.28);
    background: rgba(212, 176, 106, 0.08);
}

[data-theme="dark"] .theme-toggle-btn:hover {
    background: rgba(212, 176, 106, 0.18);
    border-color: rgba(212, 176, 106, 0.5);
}

/* =============================================================
   OVERRIDES DE CORES — Dark Mode
   ============================================================= */

/* Body & fundo da página */
[data-theme="dark"] body {
    background-color: #141918 !important;
    color: #dde8de !important;
}

/* Navbar / Header */
[data-theme="dark"] header {
    background-color: rgba(18, 25, 19, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

/* Mobile Drawer */
[data-theme="dark"] #mobile-menu {
    background-color: #1a2119 !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

/* Textos */
[data-theme="dark"] .text-gray-800 { color: #dde8de !important; }
[data-theme="dark"] .text-gray-700 { color: #c4d5c5 !important; }
[data-theme="dark"] .text-gray-600 { color: #9bb09c !important; }
[data-theme="dark"] .text-gray-500 { color: #829883 !important; }
[data-theme="dark"] .text-gray-400 { color: #697d6a !important; }
[data-theme="dark"] .text-primary  { color: #7aab7e !important; }

/* Logo/nome na navbar */
[data-theme="dark"] span.text-primary.font-bold,
[data-theme="dark"] span.font-display.text-primary {
    color: #a8c9aa !important;
}

/* Bordas */
[data-theme="dark"] .border-gray-100 { border-color: rgba(255,255,255,0.06) !important; }
[data-theme="dark"] .border-gray-200 { border-color: rgba(255,255,255,0.08) !important; }

/* Fundo branco genérico (cards, superfícies) */
[data-theme="dark"] .bg-white {
    background-color: #1e2820 !important;
}

/* Fundo creme */
[data-theme="dark"] .bg-\[\#F3F0E9\],
[data-theme="dark"] .bg-bg-cream {
    background-color: #141918 !important;
}

/* Footer */
[data-theme="dark"] footer {
    background-color: #111614 !important;
    border-color: rgba(255,255,255,0.05) !important;
}

/* Inputs / Textarea */
[data-theme="dark"] input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background-color: #FDFCF9 !important;
    border-color: rgba(75, 93, 78, 0.3) !important;
    color: #111827 !important;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: #6B7280 !important;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus {
    border-color: #4b5d4e !important;
    box-shadow: 0 0 0 2px rgba(75, 93, 78, 0.2) !important;
    outline: none !important;
}

/* Labels */
[data-theme="dark"] label { color: #a8c9aa !important; }

/* Glow cards */
[data-theme="dark"] .glow-card-inner {
    background-color: #1e2820 !important;
}

/* TikTok: --brand-color preto fica invisível no escuro */
[data-theme="dark"] .card-tiktok {
    --brand-color: #d0d0d0;
}

/* Glow form & highlight */
[data-theme="dark"] .glow-form-container-inner,
[data-theme="dark"] .glow-highlight-container-inner {
    background-color: #1a2119 !important;
}

/* Caixas de aviso lateral */
[data-theme="dark"] .border-amber-500 {
    border-color: #9a7a20 !important;
    background-color: #1a2119 !important;
}

/* Divisores / linhas */
[data-theme="dark"] .border-primary\/10 { border-color: rgba(122,171,126,0.12) !important; }
[data-theme="dark"] .bg-primary\/20     { background-color: rgba(122,171,126,0.18) !important; }
[data-theme="dark"] .bg-primary\/10     { background-color: rgba(122,171,126,0.12) !important; }

/* Hover nos cards de limitação de responsabilidade */
[data-theme="dark"] article:hover {
    border-color: rgba(197,160,89,0.35) !important;
}

/* Botão primário (submit) */
[data-theme="dark"] button[type="submit"] {
    background-color: #4b5d4e !important;
}
[data-theme="dark"] button[type="submit"]:hover {
    background-color: #3a4a3d !important;
}

/* Scrollbar no dark */
[data-theme="dark"] {
    scrollbar-color: #2f3e30 #141918;
}

/* ============================================================
   BOTOES & ATALHOS COM EFEITO DE GLOW
   ============================================================ */

.btn-glow-highlight {
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Botão Cheio (bg-primary) */
.btn-glow-highlight.bg-primary:hover {
    background: linear-gradient(135deg, #4b5d4e, #C5A059) !important;
    box-shadow: 0 10px 25px -5px rgba(197, 160, 89, 0.4), 
                0 8px 20px -6px rgba(75, 93, 78, 0.3) !important;
    transform: translateY(-2px) scale(1.03) !important;
}

/* Botão Contorno (border-primary) */
.btn-glow-highlight.border-primary:hover {
    border-color: #C5A059 !important;
    color: #C5A059 !important;
    background-color: rgba(197, 160, 89, 0.05) !important;
    box-shadow: 0 8px 20px -6px rgba(197, 160, 89, 0.25) !important;
    transform: translateY(-2px) scale(1.03) !important;
}

/* Dark Mode para Botões */
[data-theme="dark"] .btn-glow-highlight.bg-primary:hover {
    background: linear-gradient(135deg, #5c7360, #d4b06a) !important;
    box-shadow: 0 10px 25px -5px rgba(212, 176, 106, 0.4), 
                0 8px 20px -6px rgba(122, 171, 126, 0.3) !important;
}

[data-theme="dark"] .btn-glow-highlight.border-primary {
    border-color: rgba(122, 171, 126, 0.3) !important;
    color: #7aab7e !important;
}

[data-theme="dark"] .btn-glow-highlight.border-primary:hover {
    border-color: #d4b06a !important;
    color: #d4b06a !important;
    background-color: rgba(212, 176, 106, 0.08) !important;
    box-shadow: 0 8px 20px -6px rgba(212, 176, 106, 0.3) !important;
}

/* --- BOTÕES DE FILTRO INTERATIVOS (SHELF) --- */
.filter-btn {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Inativo - Hover */
.filter-btn:not(.bg-primary):hover {
    border-color: #C5A059 !important;
    color: #C5A059 !important;
    background-color: rgba(197, 160, 89, 0.05) !important;
    box-shadow: 0 8px 20px -6px rgba(197, 160, 89, 0.25) !important;
    transform: translateY(-2px) scale(1.02) !important;
}

/* Ativo - Estado Base */
.filter-btn.bg-primary.text-white {
    background-color: #4b5d4e !important;
    border-color: #4b5d4e !important;
    box-shadow: 0 4px 12px rgba(75, 93, 78, 0.15) !important;
}

/* Ativo - Hover */
.filter-btn.bg-primary.text-white:hover {
    background: linear-gradient(135deg, #4b5d4e, #C5A059) !important;
    border-color: #C5A059 !important;
    box-shadow: 0 8px 22px -5px rgba(197, 160, 89, 0.45) !important;
    transform: translateY(-2px) scale(1.02) !important;
}

/* --- Dark Mode para Botões de Filtro --- */
[data-theme="dark"] .filter-btn:not(.bg-primary) {
    background-color: #1e2820 !important;
    border-color: rgba(122, 171, 126, 0.2) !important;
    color: #dde8de !important;
}

[data-theme="dark"] .filter-btn:not(.bg-primary):hover {
    border-color: #d4b06a !important;
    color: #d4b06a !important;
    background-color: rgba(212, 176, 106, 0.08) !important;
    box-shadow: 0 8px 20px -6px rgba(212, 176, 106, 0.35) !important;
    transform: translateY(-2px) scale(1.02) !important;
}

[data-theme="dark"] .filter-btn.bg-primary.text-white {
    background-color: #4b5d4e !important;
    border-color: #7aab7e !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(75, 93, 78, 0.3) !important;
}

[data-theme="dark"] .filter-btn.bg-primary.text-white:hover {
    background: linear-gradient(135deg, #4b5d4e, #d4b06a) !important;
    border-color: #d4b06a !important;
    box-shadow: 0 8px 22px -5px rgba(212, 176, 106, 0.5) !important;
    transform: translateY(-2px) scale(1.02) !important;
}

/* ============================================================
   MOBILE MENU DRAWER & FOOTER LAYOUT
   ============================================================ */

/* Mobile Menu Drawer Styling */
.mobile-menu-drawer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    padding-top: 7.5rem !important; /* Pushes the menu items down, below the fixed header */
    background-color: rgba(243, 240, 233, 0.99) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    scrollbar-width: none !important; /* Firefox */
}
.mobile-menu-drawer.hidden {
    display: none !important;
}
.mobile-menu-drawer::-webkit-scrollbar {
    display: none !important; /* Chrome/Safari */
}
[data-theme="dark"] .mobile-menu-drawer {
    background-color: rgba(20, 25, 24, 0.99) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

/* Mobile Navigation Links */
.mobile-link {
    font-size: 1.25rem !important; /* text-xl */
    font-family: 'Noto Serif', serif;
    color: #6a7d6b !important; /* text-gray-500 equivalent in brand green tint */
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}
[data-theme="dark"] .mobile-link {
    color: #8fa090 !important;
}
.mobile-link:hover {
    color: #4b5d4e !important;
    transform: scale(1.05);
}
[data-theme="dark"] .mobile-link:hover {
    color: #7aab7e !important;
}
.mobile-link.active {
    color: #4b5d4e !important;
    font-weight: 600 !important;
}
[data-theme="dark"] .mobile-link.active {
    color: #a8c9aa !important;
}
.mobile-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background-color: #C5A059; /* accent-gold */
    border-radius: 2px;
}

/* Responsive Layout Tweaks for Mobile */
@media (max-width: 1023px) {
    /* Ocultar barra de rolagem na lateral direita no design mobile */
    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        display: none !important;
    }
    html, body {
        -ms-overflow-style: none !important;  /* IE and Edge */
        scrollbar-width: none !important;  /* Firefox */
    }
}

