/* =============================================================================
   STYLE.CSS - v1.5.6 PERFORMANCE & ACCESSIBILITY EDITION
   - Ajustes para LCP com img no hero, contraste do rodapé e performance de animações.
   ============================================================================= */

/* 1. DESIGN SYSTEM (VARIÁVEIS)
   ========================================================================== */
:root {
    /* Tipografia de Luxo */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-weight-body: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 600;
    --font-weight-heading: 700;

    /* Escala de Espaçamento */
    --s-1: 0.25rem;
    --s-2: 0.5rem;
    --s-3: 1rem;
    --s-4: 2rem;
    --s-5: 4rem;
    --s-6: 8rem;

    /* Raio da Borda */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;

    /* Transições */
    --transition-fast: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-medium: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Sombras Sutis */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);

    /* Paleta de Cores (Modo Claro) */
    --color-brand: #A32A55;
    --color-brand-light: #D44E7E;
    --color-accent: #E5A12D;
    --color-text: #1a1a1a;
    --color-text-muted: #666;
    --color-background: #FDFCFB;
    --color-surface: #FFFFFF;
    --color-border: #EAEAEA;
    --color-overlay: rgba(0, 0, 0, 0.5);
    --hero-overlay: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 100%);
}

[data-theme="dark"] {
    --color-brand: #D44E7E;
    --color-brand-light: #E875A1;
    --color-accent: #FFC75F;
    --color-text: #F5F5F5;
    --color-text-muted: #999;
    --color-background: #121212;
    --color-surface: #1E1E1E;
    --color-border: #2f2f2f;
    --color-overlay: rgba(0, 0, 0, 0.7);
    --hero-overlay: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%);
}

/* ==========================================================================
   CRITICAL CSS - OTIMIZAÇÃO DE CARREGAMENTO (Prioridade Máxima)
   ========================================================================== */
/* Aplicação imediata para visibilidade e evitar FOUC (Flash of Unstyled Content) */
.hero, .hdr, .brand, .menu-btn {
    opacity: 1 !important;
    transform: none !important;
}

/* Preload para fontes críticas */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

/* 2. RESET E ESTILOS GLOBAIS
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: var(--font-weight-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

body,
a,
button,
[role="button"],
label {
    cursor: none; /* Cursor customizado ativado via JS */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-brand);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-brand-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-heading);
    margin: 0 0 var(--s-3);
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
p { margin: 0 0 var(--s-3); }

.wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--s-3);
}

.wrap.wide {
    max-width: 1600px;
    padding: 0 var(--s-4);
}

main {
    padding-top: var(--s-4);
    padding-bottom: var(--s-5);
}

/* 3. COMPONENTES REFINADOS
   ========================================================================== */

/* Botões */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: var(--font-weight-bold);
    font-size: 1rem;
    text-align: center;
    white-space: nowrap;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    padding: 0.8rem 2rem;
    transition: all var(--transition-fast);
    background-color: var(--color-brand);
    color: white;
}

.btn:hover {
    background-color: var(--color-brand-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn.ghost,
.btn.alt {
    background-color: transparent;
    border-color: var(--color-border);
    color: var(--color-text);
}

.btn.ghost:hover,
.btn.alt:hover {
    background-color: var(--color-brand);
    border-color: var(--color-brand);
    color: white;
}

/* Cards de Produto */
.card {
    display: block;
    background: var(--color-surface);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background-color: white;
    padding: var(--s-2);
}

.card .p {
    padding: var(--s-3);
}

.card .card-title {
    font-family: var(--font-body);
    font-weight: var(--font-weight-bold);
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: var(--s-2);
    min-height: 4.2em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card .price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-brand);
    margin-bottom: var(--s-2);
}

.card .brand {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--s-4);
    padding-top: var(--s-4);
}

/* Cabeçalho (Header) */
.hdr {
    padding: var(--s-3) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-surface-alpha, rgba(253, 252, 251, 0.8));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: background-color var(--transition-fast);
}

[data-theme="dark"] .hdr {
    --color-surface-alpha: rgba(30, 30, 30, 0.8);
}

.hdr .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-3);
}

.hdr .brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: var(--font-weight-heading);
    color: var(--color-brand);
    text-decoration: none;
    white-space: nowrap;
    margin-right: 0;
}

.hdr .brand:hover {
    color: var(--color-brand);
}

.brand-logo {
    height: 40px;
    width: 40px;
    display: block;
}

.hdr .nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.hdr .nav a {
    padding: 0.5rem 1.25rem;
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radius-sm);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.hdr .nav a:hover {
    background-color: #f0f0f0;
    color: var(--color-brand);
}

[data-theme="dark"] .hdr .nav a:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* Seção Hero */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: var(--s-5) 0;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: var(--s-5);
}

.hero-static-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.6s ease-out;
}

.hero:hover .hero-static-bg {
    transform: scale(1.05);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    max-width: 600px;
    padding: 0 var(--s-4);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero .muted {
    color: white;
    opacity: 0.9;
    font-size: 1.2rem;
}

.hero .hero-cta {
    margin-top: var(--s-4);
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
}

.hero .btn.ghost {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.hero .btn.ghost:hover {
    background-color: white;
    color: var(--color-text);
}

/* Responsividade do Hero (Original) */
@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
    }
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero .muted {
        font-size: 1rem;
    }
    .hero-cta {
        justify-content: center;
    }
}

/* Seções e Conteúdo da Página */
.section {
    padding: var(--s-5) 0;
}

.section .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--s-4);
    gap: var(--s-3);
}

.page-title {
    text-align: center;
    margin-bottom: var(--s-2);
}

.page-desc {
    text-align: center;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto var(--s-5);
}

.page-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--s-5);
    align-items: start;
}

.page-content-grid.single-col {
    grid-template-columns: 1fr;
}

.page-content-grid .text-block {
    max-width: 75ch;
}

.page-content-grid .side-block {
    background: var(--color-surface);
    padding: var(--s-4);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
}

/* Página de Produto */
.prod {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-5);
    align-items: start;
}

.prod > .prod-left {
    min-width: 0;
}

.gallery-main img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: var(--border-radius-lg);
    background: white;
    border: 1px solid var(--color-border);
    transition: opacity 0.3s ease-in-out;
}

.thumbs .th {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--color-border);
    opacity: 0.6;
    transition: all var(--transition-fast);
    background-color: white;
    padding: var(--s-1);
}

.thumbs .th.is-active,
.thumbs .th:hover {
    opacity: 1;
    border-color: var(--color-brand);
    transform: scale(1.05);
}

.price-lg {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin: var(--s-3) 0;
    color: var(--color-brand);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    margin: var(--s-4) 0;
}

.chip {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-fast);
}

.chip:hover {
    border-color: var(--color-brand);
    color: var(--color-brand);
}

.chip.on {
    background: var(--color-brand);
    color: white;
    border-color: var(--color-brand);
}

/* ==========================================================================
   CARROSSÉIS - VERSÃO FINAL (SEPARANDO MINIATURAS E PADRÃO)
   ========================================================================== */

/* 1. ESTILOS COMUNS PARA TODOS OS CARROSSÉIS E SETAS */
.scroller-wrap {
    position: relative;
}

.scroller-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    font-size: 1.5rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    /* ATUALIZADO: Evita animar 'color' para melhor performance */
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), 
                background-color var(--transition-fast), border-color var(--transition-fast), 
                opacity var(--transition-fast);
}

.scroller-wrap:hover .scroller-arrow {
    opacity: 1;
}

.scroller-arrow:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

/* 2. ESTILOS PARA CARROSSÉIS PADRÃO (Homepage, Relacionados) - SEM PADDING */
.scroller-wrap:not(.thumbs-wrap) .scroller-arrow.prev {
    left: 0;
}
.scroller-wrap:not(.thumbs-wrap) .scroller-arrow.next {
    right: 0;
}
/* Adiciona uma leve transparência para ver o card atrás */
.scroller-wrap:not(.thumbs-wrap) .scroller-arrow {
    background: rgba(253, 252, 251, 0.9);
}
[data-theme="dark"] .scroller-wrap:not(.thumbs-wrap) .scroller-arrow {
    background: rgba(30, 30, 30, 0.9);
}


/* 3. ESTILOS APENAS PARA O CARROSSEL DE MINIATURAS (PÁGINA DE PRODUTO) - COM PADDING */
.thumbs-wrap {
    margin-top: var(--s-3);
    padding: 0 50px; /* O padding que corrige a sobreposição */
}

.thumbs-wrap .scroller-arrow.prev {
    left: 5px; /* Posiciona a seta dentro do padding */
}

.thumbs-wrap .scroller-arrow.next {
    right: 5px; /* Posiciona a seta dentro do padding */
}


/* 4. O CONTAINER QUE ROLA (REGRAS COMUNS) */
.scroller, .thumbs {
    display: flex;
    gap: var(--s-2);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding: var(--s-1);
}
.scroller::-webkit-scrollbar, .thumbs::-webkit-scrollbar { display: none; }

.scroller > *, .thumbs > * {
    scroll-snap-align: start;
    flex: 0 0 280px;
}


/* 4. ANIMAÇÕES E EFEITOS ESPECIAIS
   ========================================================================== */
.custom-cursor {
    position: fixed;
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-text);
    border-radius: 50%;
    left: 0;
    top: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
    z-index: 9999;
}

.custom-cursor.hovered {
    width: 50px;
    height: 50px;
    background-color: var(--color-brand);
    border-color: transparent;
    opacity: 0.3;
}

.reveal {
    opacity: 1;
    transform: translateY(0);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background-color: var(--color-overlay);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-medium), visibility var(--transition-medium);
}

.lightbox.open {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
    transform: scale(0.9);
    transition: transform var(--transition-medium);
}

.lightbox.open img {
    transform: scale(1);
}

.lightbox .close {
    position: absolute;
    top: var(--s-4);
    right: var(--s-4);
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    opacity: 0.8;
}

.lightbox .close:hover {
    opacity: 1;
}

/* 5. MENU MOBILE E RESPONSIVIDADE
   ========================================================================== */
.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 0;
    width: 25px;
    height: 25px;
    z-index: 101;
}

.menu-btn .bar {
    width: 25px;
    height: 3px;
    background: var(--color-text);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
    transform-origin: center;
}

.menu-open .menu-btn .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-btn .bar:nth-child(2) { opacity: 0; }
.menu-open .menu-btn .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.search-btn {
    display: none;
    background: transparent;
    border: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    align-items: center;
    justify-content: center;
    color: inherit;
    cursor: pointer;
}

.search-btn svg {
    width: 22px;
    height: 22px;
    display: block;
}

.mobile-search-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateY(100%);
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: transform 0.3s ease;
    padding: 1rem;
}

html.search-open .mobile-search-panel {
    transform: translateY(0);
}

.mobile-search-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}

html.search-open .mobile-search-backdrop {
    display: block;
}

.mobile-search-panel form {
    display: flex;
    gap: 10px;
}

.mobile-search-panel input[type="search"] {
    flex: 1;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 16px;
}

.mobile-search-panel .btn {
    padding: 0.8rem 1.2rem;
}


/* Media Queries */
@media (hover: none) {
    .custom-cursor { display: none; }
    body, a, button, [role="button"], label { cursor: initial; }
    .scroller-arrow { opacity: 1; }
}

@media (max-width: 1024px) {
    .menu-btn { display: flex; }
    .hdr .search { display: none; }
    .hdr .nav { display: none; }
    .search-btn { display: inline-flex; }

    html.menu-open,
    html.search-open {
        overflow: hidden;
    }

    .menu-open .nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: var(--color-background);
        padding: var(--s-4);
        z-index: 100;
        transform: translateX(0);
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    html:not(.menu-open) .nav {
        display: none;
    }

    .menu-open .nav a {
        font-size: 1.75rem;
        padding: var(--s-2) 0;
    }

    .prod { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--s-3);
    }
    .hero { min-height: 70vh; }
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    .hero-title { font-size: 2.2rem; }
    .hero .muted { font-size: 1rem; }
    .scroller > * { flex-basis: 250px; }
    .page-content-grid { grid-template-columns: 1fr; }
    .kanban-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .card .card-title {
        font-size: 0.9rem;
        height: 3.2em;
    }
    .card .price { font-size: 1.2rem; }
    .wrap, .wrap.wide { padding: 0 var(--s-3); }
    .hero-cta { justify-content: center; }
    .scroller > * { flex-basis: 45vw; }
    .thumbs .th {
        width: 60px;
        height: 60px;
    }
}


/* 6. COMPONENTES ADICIONAIS
   ========================================================================== */
/* Botão Flutuante (FAB) para WhatsApp */
.fab {
    position: fixed;
    bottom: var(--s-3);
    right: var(--s-3);
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 99;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.fab:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: var(--shadow-lg);
    color: white;
}

.fab svg {
    display: block;
}

/* Modais Genéricos */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--color-overlay);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--s-3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-card {
    background: var(--color-surface);
    border-radius: var(--border-radius-lg);
    padding: var(--s-4);
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    animation: modal-fade-in 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes modal-fade-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-card h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
}

.modal-card .muted {
    margin-bottom: var(--s-4);
}

.modal-card label {
    display: block;
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--s-2);
}

.modal-card input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    background: var(--color-background);
    color: var(--color-text);
    font-size: 1rem;
    margin-bottom: var(--s-3);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.modal-card input:focus {
    outline: none;
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px rgba(163, 42, 85, 0.2);
}

.modal-actions {
    margin-top: var(--s-4);
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
    align-items: center;
}

/* Modal de Lead (Formulário) */
.lead-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lead-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: saturate(150%) blur(4px);
}

.lead-modal__card {
    position: relative;
    max-width: 420px;
    width: 100%;
    margin: 1rem;
    background: var(--color-surface);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    color: var(--color-text);
}

.lead-modal__close {
    position: absolute;
    right: 10px;
    top: 10px;
    border: 0;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    color: var(--color-text-muted);
    line-height: 1;
}

.lead-modal h3 {
    margin: 0 0 8px;
}

.lead-modal p {
    margin: 0 0 16px;
    color: var(--color-text-muted);
}

#leadForm {
    display: grid;
    gap: 14px;
}

#leadForm label {
    display: grid;
    gap: 6px;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
}

#leadForm input {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    background: var(--color-background);
    color: var(--color-text);
    width: 100%;
    box-sizing: border-box;
}

/* Seção CTA "Seja um Consultor" */
.cta-consultor-section {
    background: linear-gradient(45deg, #A32A55, #822144);
    color: #ffffff;
    text-align: center;
    padding: 50px 30px;
    margin: 60px 0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.cta-consultor-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 15px;
}

.cta-consultor-section p {
    max-width: 550px;
    margin: 0 auto 30px auto;
    opacity: 0.9;
    font-size: 1.1rem;
}

.cta-consultor-section .btn-cta {
    background-color: #E5A12D;
    color: #1a1a1a;
    font-weight: bold;
    text-transform: uppercase;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}

.cta-consultor-section .btn-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Componentes de Admin (Exemplo) */
.admin-nav .chip { text-decoration: none; }
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--s-3);
    margin: var(--s-4) 0;
}

.kpi-card {
    background: var(--color-background);
    padding: var(--s-3);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    text-align: center;
}

.kpi-top {
    font-weight: var(--font-weight-medium);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--s-2);
}

.kpi-num {
    font-size: 2rem;
    font-weight: var(--font-weight-heading);
    font-family: var(--font-heading);
    color: var(--color-brand);
}

.table-wrap { overflow-x: auto; }
.table-wrap table {
    width: 100%;
    min-width: 800px;
}

.kanban-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--s-3);
    overflow-x: auto;
    padding-bottom: var(--s-3);
}

.kan-col {
    background: var(--color-background);
    padding: var(--s-2);
    border-radius: var(--border-radius);
}

.kan-title {
    font-weight: bold;
    padding: var(--s-2);
    border-bottom: 2px solid var(--color-border);
    margin-bottom: var(--s-3);
}

.kan-list {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}

.kan-card {
    background: var(--color-surface);
    padding: var(--s-2);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
}

/* Interruptor de Tema (Dark/Light) */
.theme-switch {
    display: flex;
    align-items: center;
    position: relative;
    width: 50px;
    height: 26px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-switch .icon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 0.9rem;
    color: var(--color-text);
}

.theme-switch .sun {
    left: 5px;
    opacity: 1;
}

.theme-switch .moon {
    right: 5px;
    opacity: 0;
}

[data-theme="dark"] .theme-switch .sun { opacity: 0; }
[data-theme="dark"] .theme-switch .moon { opacity: 1; }

.theme-switch::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--color-border);
    border-radius: 13px;
    transition: background-color var(--transition-fast);
}

.theme-switch::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.theme-switch input:checked ~ ::before {
    background: var(--color-brand);
}

.theme-switch input:checked ~ ::after {
    transform: translateX(24px);
}

/* ==========================================================================
   CORREÇÃO FINAL: Posicionamento do Botão de Tema no Cabeçalho
   ========================================================================== */

/* Cria um grupo à direita para busca e tema */
.hdr .right-actions {
    display: flex;
    align-items: center;
    gap: var(--s-3); /* Espaço entre o botão de tema e a busca */
}

/* Reorganiza os itens na barra superior usando 'order' */
.hdr .brand { order: 1; }
.hdr .nav { order: 2; }
.hdr .right-actions { order: 3; }
.hdr .menu-btn, .hdr .search-btn { order: 4; } /* Botões mobile vão para o final */


/* ==========================================================================
   DESIGN ELEGANTE PARA PÁGINAS ESTÁTICAS
   ========================================================================== */

/* 1. Container principal para o conteúdo da página */
.page-container {
    max-width: 960px; /* Limita a largura para melhor legibilidade */
    margin: var(--s-4) auto 0 auto; /* Centraliza e adiciona espaço do topo */
    background: var(--color-surface);
    border-radius: var(--border-radius-lg);
    padding: var(--s-5); /* Espaçamento interno generoso */
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

/* 2. Garante que os títulos e subtítulos também fiquem centralizados e alinhados */
.page-title {
    margin-bottom: var(--s-2);
}
.page-desc {
    max-width: 65ch; /* Limita a largura da descrição */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--s-4);
}

/* 3. Melhora a aparência das listas com ícones */
.styled-list {
    list-style: none;
    padding-left: 0;
    margin: var(--s-4) 0;
}
.styled-list li {
    position: relative;
    padding-left: 2.5em; /* Espaço para o ícone */
    margin-bottom: var(--s-3);
    font-size: 1.05rem;
    line-height: 1.6;
}
.styled-list li::before {
    content: '✓'; /* Ícone padrão */
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.5em;
    line-height: 1;
    color: var(--color-accent); /* Cor de destaque (dourado) */
}

/* Ícones específicos para cada tipo de lista */
.styled-list.list-privacy li::before { content: '🛡️'; }
.styled-list.list-terms li::before { content: '⚖️'; }
.styled-list.list-delivery li::before { content: '🚚'; }
.styled-list.list-about li::before { content: '✨'; }

/* 4. Aprimora o layout de duas colunas */
.page-content-grid {
    gap: var(--s-5);
}

.page-content-grid .text-block h2 {
    margin-top: 0;
    color: var(--color-brand);
}
.page-content-grid .text-block p {
    color: var(--color-text-muted);
}
.page-content-grid .text-block p strong {
    color: var(--color-text);
    font-weight: var(--font-weight-medium);
}

/* Card lateral mais destacado */
.side-block {
    background-color: var(--color-background);
    padding: var(--s-4);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
}

/* 5. Card de Contato mais robusto */
.contact-card {
    max-width: 700px; /* Maior e mais imponente */
    border: none;
    box-shadow: none;
}
.contact-card .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ==========================================================================
   7. RODAPÉ (FOOTER) - AJUSTES DE CONTRASTE
   ========================================================================== */
footer {
    padding: var(--s-4) 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
    margin-top: var(--s-5);
    color: var(--color-text-muted);
}

footer a {
    color: var(--color-text); /* Cor de texto principal para garantir contraste */
    text-decoration: underline;
    font-weight: var(--font-weight-medium);
}

footer a:hover {
    color: var(--color-brand);
}

footer .muted {
    opacity: 0.9; /* Garante que o texto não seja muito claro */
}


/* ==========================================================================
   AJUSTES RESPONSIVOS PARA PÁGINAS ESTÁTICAS (MOBILE)
   ========================================================================== */

@media (max-width: 768px) {

    /* 1. Remove o efeito de "card" em telas pequenas */
    .page-container {
        background: transparent; /* Fundo transparente, sem card branco */
        border: none;            /* Remove a borda */
        box-shadow: none;        /* Remove a sombra */
        padding: var(--s-4) 0;   /* Ajusta o espaçamento vertical, remove o horizontal */
    }

    /* 2. Empilha as colunas de conteúdo (ex: na página "Sobre") */
    .page-content-grid {
        grid-template-columns: 1fr; /* Força uma única coluna */
        gap: var(--s-4);            /* Reduz o espaço entre os blocos empilhados */
    }

    /* 3. Ajusta o espaçamento interno do card lateral quando empilhado */
    .side-block {
        padding: var(--s-3);
    }
    
    /* 4. Melhora a legibilidade e alinhamento das listas com ícones */
    .styled-list li {
        font-size: 1rem;       /* Tamanho de fonte mais padrão para mobile */
        padding-left: 2.2em;   /* Reduz o recuo do texto */
    }

    .styled-list li::before {
        font-size: 1.3em;      /* Ícone um pouco menor */
        top: 0;                /* Alinha melhor o ícone com o texto */
    }

}


/* ============================================================================
   ANIMAÇÕES E EFEITOS ADICIONAIS
   ========================================================================== */

/* Otimização de Imagens (Placeholder durante o carregamento) */
.card img,
.gallery-main img {
    background-color: white;
}

/* Lazy loading styles */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

img[loading="lazy"].loaded {
    opacity: 1;
}