/* Custom styles for Vendra Landing Page */
:root {
    --vendra-green: #009a5a;
    --vendra-dark: #181819;
    --vendra-gray: #272729;
    --vendra-light: #475569;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #181819;
    color: white;
    line-height: 1.6;
}

/* Custom Button Styles */
.btn-primary {
    background: transparent;
    border: 2px solid #009a5a;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background: #009a5a;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 154, 90, 0.25);
}

.btn-secondary {
    background: #272729;
    border: 2px solid rgba(71, 85, 105, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: #009a5a;
    color: #009a5a;
}

/* Smooth scrolling for anchor links */
a[href^="#"] {
    scroll-behavior: smooth;
}

/* FAQ Accordion Styles */
.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item:not(.active) .faq-answer {
    display: none;
}

.faq-item.active .faq-answer {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
    }
}

/* Hero section gradient overlay */
.hero-gradient {
    background: linear-gradient(135deg, var(--vendra-dark) 0%, var(--vendra-gray) 50%, var(--vendra-dark) 100%);
}

/* Card hover effects */
.resource-card {
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
}

/* WhatsApp floating button animation */
.whatsapp-btn {
    position: relative;
    overflow: hidden;
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.whatsapp-btn:hover::before {
    left: 100%;
}

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section {
        padding-top: 6rem;
    }
    
    .mobile-menu {
        transition: all 0.3s ease;
    }
}
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding-top: 6rem;
    }
    
    /* Mobile hero content styling */
    #inicio .order-1 {
        position: relative;
        padding-bottom: 1rem;
    }
}

/* Hero section responsive adjustments */
@media (max-width: 1023px) {
    #inicio .grid {
        min-height: auto;
    }
    
    #inicio .order-1 {
        margin-bottom: 2rem;
    }
    
    #inicio .order-2 {
        text-align: center;
    }
    
    #inicio h1 {
        font-size: 1.9rem;
        line-height: 1.1;
    }
    
    #inicio p {
        font-size: 0.95rem;
    }
    
    #inicio button {
        font-size: 0.95rem;
        padding: 0.7rem 1.4rem;
    }
}

/* Ajustes específicos para o conteúdo hero */
@media (min-width: 1024px) {
    #inicio h1 {
        line-height: 1.1;
        letter-spacing: -0.02em;
        font-size: 2.75rem;
    }
    
    #inicio .lg\:col-span-7 {
        max-width: none;
    }
    
    /* Melhor alinhamento vertical do conteúdo hero */
    #inicio .order-1.lg\:order-1 {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        min-height: 720px;
        padding-top: 0;
        padding-bottom: 0;
        position: relative;
        z-index: 10;
    }
    
    /* Centralização perfeita do conteúdo */
    #inicio .max-w-xl {
        transform: translateY(-12px);
        margin: 0;
    }
}

/* Ajustes para telas extra-grandes */
@media (min-width: 1280px) {
    #inicio h1 {
        font-size: 3.3rem;
        line-height: 1.05;
    }
    
    #inicio p {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    #inicio button {
        font-size: 1.1rem;
        padding: 0.85rem 1.65rem;
    }
    
    /* Melhor alinhamento para telas grandes */
    #inicio .max-w-xl {
        transform: translateY(0px);
        max-width: 36rem;
        margin: 0;
    }
}

/* Hero image positioning */
#inicio {
    position: relative;
}

#inicio .absolute.bottom-0 {
    bottom: 0;
    right: 0;
}

#inicio .absolute.bottom-0 img {
    display: block;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Hero section - altura adequada */
#inicio {
    min-height: 600px;
}

/* Layout responsivo melhorado */
@media (min-width: 1024px) {
    #inicio {
        min-height: 720px;
        max-height: 740px;
    }
    
    /* Container da imagem hero */
    #inicio .hidden.lg\:block.absolute {
        width: 40%;
        height: 100%;
        display: flex;
        align-items: flex-end;
        justify-content: flex-start;
        padding-left: 1rem;
        padding-right: 4rem;
        z-index: 5;
    }
    
    /* Imagem hero com proporções mantidas */
    #inicio .absolute img {
        max-height: 630px;
        width: auto;
        object-fit: contain;
        object-position: bottom;
    }
}

@media (min-width: 1280px) {
    #inicio .absolute {
        width: 40%;
        padding-left: 1rem;
        padding-right: 4rem;
    }
    
    #inicio .absolute img {
        max-height: 630px;
    }
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[src*="placeholder"] {
    background-color: var(--vendra-gray);
    border: 2px dashed var(--vendra-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

img[src*="placeholder"]:before {
    content: "Imagem em breve";
    color: var(--vendra-light);
    font-size: 0.875rem;
}

/* Navbar blur effect */
.navbar-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* WhatsApp Floating Button */
.whatsapp-btn {
    width: 60px;
    height: 60px;
    animation: whatsappPulse 2s infinite;
    box-shadow: 0 4px 20px rgba(0, 154, 90, 0.3);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 154, 90, 0.5);
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 4px 20px rgba(0, 154, 90, 0.3);
    }
    50% {
        box-shadow: 0 4px 30px rgba(0, 154, 90, 0.6), 0 0 0 10px rgba(0, 154, 90, 0.1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(0, 154, 90, 0.3);
    }
}

/* Efeito de respiração adicional */
@keyframes breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Animação de entrada bounce */
@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#whatsapp-float {
    animation: breathe 3s ease-in-out infinite;
}

/* Responsividade do botão */
@media (max-width: 768px) {
    .whatsapp-btn {
        width: 55px;
        height: 55px;
    }
    
    #whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
}



/* Performance optimizations */
* {
    box-sizing: border-box;
}

/* Optimize font loading */
@font-display: swap;

/* Critical CSS optimizations */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Optimize animations for performance */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* GPU acceleration for animations */
.btn-primary,
.btn-secondary,
.whatsapp-btn,
.bg-vendra-dark\/80,
.bg-vendra-green {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Optimize images */
img {
    max-width: 100%;
    height: auto;
    image-rendering: optimizeQuality;
}

/* Lazy loading placeholder */
img[loading="lazy"]:not(.loaded) {
    background: linear-gradient(90deg, #272729 25%, #3a3a3c 50%, #272729 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--vendra-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--vendra-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* Animation utilities */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Focus states for accessibility */
button:focus,
a:focus {
    outline: 2px solid var(--vendra-green);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
}
