/* Configurações do Tailwind */
@import url('https://cdn.tailwindcss.com');

/* Prevenir rolagem horizontal */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Configuração de cores personalizadas */
:root {
    --primary-red: #dc2626;
    --red-dark: #b91c1c;
    --red-light: #ef4444;
    --black: #000000;
    --black-soft: #1a1a1a;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray-medium: #6b7280;
    --gray-dark: #374151;
}

/* Header transparente por padrão */
header {
    background: transparent;
    transition: all 0.3s ease;
}

/* Header com fundo quando scrolled */
header.scrolled {
    background: var(--white);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid var(--primary-red);
}

/* Cores padrão (transparente) */
header h1 {
    color: var(--red-light);
    transition: color 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

header p {
    color: var(--white);
    transition: color 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

header nav a {
    color: var(--white);
    transition: color 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

header nav a:hover {
    color: var(--red-light);
    text-shadow: none;
}

header button {
    color: var(--white);
    transition: color 0.3s ease;
}

header button:hover {
    color: var(--red-light);
}

/* Cores quando scrolled */
header.scrolled h1 {
    color: var(--primary-red);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

header.scrolled p {
    color: var(--gray-dark);
    text-shadow: none;
}

header.scrolled nav a {
    color: var(--black);
    text-shadow: none;
}

header.scrolled nav a:hover {
    color: var(--primary-red);
}

header.scrolled button {
    color: var(--black);
}

header.scrolled button:hover {
    color: var(--primary-red);
}

/* Estilos para o vídeo background */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Overlay para melhor legibilidade do texto sobre o vídeo */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(220, 38, 38, 0.3));
    z-index: 10;
}

/* Conteúdo do hero sobre o vídeo */
.hero-content {
    position: relative;
    z-index: 20;
}

/* Animações suaves para transições */
.transition-smooth {
    transition: all 0.3s ease;
}

/* Estilos para cards com hover effect */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Estilos para botões CTA */
.cta-button {
    background: var(--white);
    color: var(--primary-red);
    transition: all 0.3s ease;
    border: 2px solid var(--primary-red);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.cta-button:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(220, 38, 38, 0.4);
    border-color: var(--red-light);
}

/* Estilos para seções com espaçamento consistente */
.section-padding {
    padding: 5rem 0;
}

/* Estilos para títulos de seção */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--red-light));
    border-radius: 2px;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

/* Estilos para subtítulos de seção */
.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-dark);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* Estilos para ícones de benefícios */
.benefit-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-red), var(--red-dark));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
}

.benefit-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 25px rgba(220, 38, 38, 0.4);
}

/* Estilos para depoimentos */
.testimonial-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

/* Estilos para o footer */
.footer-section {
    background: var(--black);
    color: var(--white);
    padding: 4rem 0;
    border-top: 4px solid var(--primary-red);
}

.footer-link {
    color: var(--gray-light);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--red-light);
}

/* Estilos para responsividade */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.125rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    /* Header mobile */
    header {
        padding: 0 1rem;
    }
    
    header h1 {
        font-size: 1.5rem;
        color: var(--red-light);
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }
    
    header.scrolled h1 {
        color: var(--primary-red);
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }
    
    header p {
        font-size: 0.75rem;
    }
    
    /* Menu mobile responsivo */
    #mobile-menu {
        transition: all 0.3s ease;
        width: 100vw !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    #mobile-menu .px-4 {
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }
}

/* Desktop - esconder menu mobile completamente */
@media (min-width: 768px) {
    #mobile-menu {
        display: none !important;
    }
    
    /* Hero section mobile */
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        background: var(--white);
        color: var(--primary-red);
        border: 2px solid var(--primary-red);
    }
    
    .cta-button:hover {
        background: var(--primary-red);
        color: var(--white);
    }
    
    /* Cards mobile */
    .card-hover {
        padding: 1.5rem;
    }
    
    .card-hover h3 {
        font-size: 1.125rem;
    }
    
    .card-hover p {
        font-size: 0.875rem;
    }
    
    /* Grid mobile */
    .grid {
        gap: 1rem;
    }
    
    /* Footer mobile */
    .footer-section {
        padding: 2rem 0;
    }
    
    .footer-section h3 {
        font-size: 1.5rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
    
    /* Estatísticas mobile */
    .flex.items-center.space-x-4 {
        flex-direction: column;
        gap: 1rem;
    }
    
    .flex.items-center.space-x-4 > div {
        width: 100%;
        text-align: center;
    }
}

/* Mobile extra small */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .card-hover {
        padding: 1rem;
    }
    
    .cta-button {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
    
    /* Ajustar padding geral */
    .px-4 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .px-8 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Estilos para scroll suave */
html {
    scroll-behavior: smooth;
}

/* Melhorias gerais de responsividade */
@media (max-width: 1024px) {
    .max-w-7xl {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .grid-cols-3 {
        grid-template-columns: 1fr;
    }
    
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    /* Ajustar espaçamentos */
    .space-y-8 > * + * {
        margin-top: 1.5rem;
    }
    
    .space-y-4 > * + * {
        margin-top: 1rem;
    }
    
    /* Texto responsivo */
    .text-4xl {
        font-size: 2rem;
    }
    
    .text-3xl {
        font-size: 1.75rem;
    }
    
    .text-2xl {
        font-size: 1.5rem;
    }
    
    .text-xl {
        font-size: 1.25rem;
    }
    
    /* Padding responsivo */
    .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .py-16 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .py-12 {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .card-hover {
        padding: 0.75rem;
    }
    
    .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Menu mobile para telas muito pequenas */
    #mobile-menu {
        width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    #mobile-menu .px-3 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Ajustes para seção Sobre em telas muito pequenas */
    #sobre .grid-cols-1 {
        gap: 1rem;
    }
    
    #sobre .text-2xl {
        font-size: 1.25rem;
    }
    
    #sobre .text-lg {
        font-size: 0.875rem;
    }
    
    #sobre .bg-red-600 {
        padding: 0.75rem;
    }
    
    #sobre .text-2xl.font-bold {
        font-size: 1.5rem;
    }
}

/* Ajustes específicos para seção Sobre */
@media (max-width: 768px) {
    #sobre .grid-cols-1 {
        gap: 2rem;
    }
    
    #sobre .mb-16 {
        margin-bottom: 2rem;
    }
    
    #sobre .text-4xl {
        font-size: 2rem;
    }
    
    #sobre .text-lg {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    #sobre .grid-cols-3 {
        gap: 0.75rem;
    }
    
    #sobre .bg-red-600 {
        padding: 1rem;
    }
    
    #sobre .text-2xl.font-bold {
        font-size: 1.5rem;
    }
    
    #sobre .text-sm {
        font-size: 0.75rem;
    }
}

@media (max-width: 640px) {
    #sobre .grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    #sobre .bg-red-600 {
        padding: 1.25rem;
    }
    
    #sobre .text-2xl.font-bold {
        font-size: 1.75rem;
    }
    
    #sobre .text-sm {
        font-size: 0.875rem;
    }
}

/* Estilos para focus states (acessibilidade) */
a:focus,
button:focus {
    outline: 2px solid var(--navy);
    outline-offset: 2px;
}

/* Estilos para loading do vídeo */
.video-loading {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Classes de animação para scroll */
.scroll-animate {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate.animate-fade-in {
    opacity: 1;
    animation: fadeIn 0.8s ease-out forwards;
}

.scroll-animate.animate-slide-in-left {
    opacity: 1;
    animation: slideInLeft 0.8s ease-out forwards;
}

.scroll-animate.animate-slide-in-right {
    opacity: 1;
    animation: slideInRight 0.8s ease-out forwards;
}

.scroll-animate.animate-slide-in-up {
    opacity: 1;
    animation: slideInUp 0.8s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Delays para animações escalonadas */
.scroll-animate.delay-100 {
    animation-delay: 0.1s;
}

.scroll-animate.delay-200 {
    animation-delay: 0.2s;
}

.scroll-animate.delay-300 {
    animation-delay: 0.3s;
}

.scroll-animate.delay-400 {
    animation-delay: 0.4s;
}

.scroll-animate.delay-500 {
    animation-delay: 0.5s;
}

/* Estilos para tooltips */
.tooltip {
    background: #1f2937;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

/* Estilos para modais */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
}

.modal-close:hover {
    color: #374151;
}

/* Estilos para formulários */
input.error,
textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Estilos para indicador de progresso de scroll */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--navy), var(--navy-light));
    z-index: 1000;
    transition: width 0.3s ease;
}

/* Estilos para preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid var(--navy);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos para contadores */
.counter {
    font-size: 2rem;
    font-weight: bold;
    color: var(--navy);
}

/* Estilos para tema escuro (se implementado) */
.dark-theme {
    background-color: #111827;
    color: #f9fafb;
}

.dark-theme .card-hover {
    background-color: #1f2937;
    color: #f9fafb;
}

.dark-theme .section-title {
    color: #f9fafb;
}

/* Estilos para banner de cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1f2937;
    color: white;
    padding: 1rem;
    text-align: center;
    z-index: 1000;
}

.accept-cookies {
    background: var(--navy);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    margin-left: 1rem;
}

.accept-cookies:hover {
    background: var(--navy-light);
}

/* Estilos para lazy loading de imagens */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazy.loaded {
    opacity: 1;
}

/* Estilos para links ativos no menu */
nav a.active {
    color: var(--navy);
    font-weight: 600;
}

/* Estilos para botões com efeito de clique */
.cta-button:active {
    transform: scale(0.95);
}

/* Estilos para cards com animação de entrada */
.card-hover {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.card-hover.animate-fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos para responsividade adicional */
@media (max-width: 640px) {
    .modal-content {
        margin: 1rem;
        padding: 1rem;
    }
    
    .tooltip {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}
