/**
 * CSS adicional do tema Embarcaê
 * Animações, responsividade e melhorias
 */

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

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

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

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

/* Classes de animação */
.fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

.fadeIn {
    animation: fadeIn 0.6s ease-out forwards;
}

.slideInLeft {
    animation: slideInLeft 0.6s ease-out forwards;
}

.slideInRight {
    animation: slideInRight 0.6s ease-out forwards;
}

/* Header com scroll */
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Menu mobile */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Mensagens do formulário */
.form-message {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-weight: 500;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Melhorias nos cards */
.card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
}

/* Estrelas preenchidas */
.star.filled {
    color: #fbbf24;
}

/* Melhorias no hero */
.hero-section {
    background-attachment: fixed;
}

.hero-content {
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* Botões com efeitos */
.btn {
    position: relative;
    overflow: hidden;
}

.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;
}

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

/* Responsividade aprimorada */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    /* Header mobile */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Logo mobile */
    .custom-logo {
        height: 50px !important;
        max-width: 180px;
    }
    
    .header-content {
        padding: 0.5rem 0;
    }
    
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: var(--shadow);
        flex-direction: column;
        padding: 1rem;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .main-navigation.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Hero mobile */
    .hero-section {
        background-attachment: scroll;
        height: 80vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    /* Seções mobile */
    .section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    /* Grid mobile */
    .grid-cols-2,
    .grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* About mobile */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-images {
        grid-template-columns: 1fr;
        order: -1;
    }
    
    .about-images img:last-child {
        margin-top: 0;
    }
    
    /* Contact mobile */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    /* Badges mobile */
    .badges {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    /* Logo extra pequeno */
    .custom-logo {
        height: 45px !important;
        max-width: 150px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .card-header,
    .card-content {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .hero-content {
        padding: 0 0.5rem;
    }
}

/* Melhorias de acessibilidade */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states */
.btn:focus,
.form-control:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .btn,
    #contact {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
        height: auto !important;
        padding: 2rem 0;
    }
    
    .hero-overlay {
        display: none;
    }
    
    .section {
        padding: 1rem 0;
        break-inside: avoid;
    }
}


/* Remover menu lateral/mobile toggle (solicitado) */
.mobile-menu-toggle{display:none!important;}
