/**
 * custom.css - Estilos Modernos e Design System E.B. Xavier
 * Desenvolvido por: Codeline Solutions - https://codelinesolutions.com.br/
 * Versão: 2.0.0
 */

:root {
    --primary: #15803d;
    --primary-dark: #0f5c2b;
    --primary-light: #22c55e;
    --primary-glow: rgba(21, 128, 61, 0.25);
    --secondary: #1e3a8a;
    --accent: #f59e0b;
    --dark: #0f172a;
    --dark-surface: #1e293b;
    --light-bg: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.07);
    --shadow-lg: 0 16px 36px rgba(0,0,0,0.12);
    --shadow-primary: 0 10px 25px rgba(21, 128, 61, 0.3);
}

/* Títulos do site em Playfair Display */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* Transições focadas e de alta performance (sem travar o navegador) */
a, button, .interactive-card, .btn {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.2s ease, 
                color 0.2s ease,
                border-color 0.2s ease;
}

/* Acessibilidade WCAG - foco visual nítido */
:focus-visible {
    outline: 3px solid var(--primary-light) !important;
    outline-offset: 3px !important;
}

/* Efeito de Vidro Fosco (Glassmorphism) */
.glass-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-md);
}

/* Hero Section Ultra Moderna */
.hero-wrapper {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(21, 128, 61, 0.82) 100%), 
                url('../../images/banner4.png') center/cover no-repeat;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(21, 128, 61, 0.82) 100%), 
                image-set(url('../../images/banner4.webp') type('image/webp'), url('../../images/banner4.png') type('image/png')) center/cover no-repeat;
    color: #ffffff;
    min-height: 580px;
    display: flex;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* Botões Modernos com Gradiente e Efeitos */
.btn-modern-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff !important;
    padding: 0.85rem 1.85rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-primary);
    border: none;
    cursor: pointer;
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(21, 128, 61, 0.4);
    color: #ffffff !important;
}

.btn-modern-outline {
    background: transparent;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.85);
    padding: 0.8rem 1.85rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    backdrop-filter: blur(4px);
}

.btn-modern-outline:hover {
    background: #ffffff;
    color: var(--text-primary) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Cards Interativos */
.interactive-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.interactive-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(21, 128, 61, 0.3);
}

/* Card de Produto */
.product-image-container {
    height: 240px;
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.interactive-card:hover .product-image-container img {
    transform: scale(1.06);
}

/* Botão Flutuante de WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-whatsapp:hover {
    transform: scale(1.1) rotate(6deg);
    color: #ffffff;
}

.floating-whatsapp::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    z-index: -1;
    animation: pulse-wave 2s infinite;
}

@keyframes pulse-wave {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Indicador de Seção */
.section-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: rgba(21, 128, 61, 0.1);
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

/* Animação suave de entrada ao rolar (ativa via JS; respeita movimento reduzido) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(26px);
        transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
        will-change: opacity, transform;
    }
    .reveal.visible {
        opacity: 1;
        transform: none;
    }
}

/* Rodapé Elegante */
.footer-modern {
    background-color: #0b111e;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-link {
    color: #cbd5e1;
    display: inline-block;
    padding: 0.3rem 0;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
    color: #ffffff;
    transform: translateX(4px);
}
