/**
 * Theme CSS
 * Estilos adicionais ao Tailwind
 *
 * @package SW_Sites_Institucional
 */

/* ========================================
   CSS Variables
======================================== */
:root {
    --color-primary-50: #eff6ff;
    --color-primary-100: #dbeafe;
    --color-primary-200: #bfdbfe;
    --color-primary-300: #93c5fd;
    --color-primary-400: #60a5fa;
    --color-primary-500: #3b82f6;
    --color-primary-600: #2563eb;
    --color-primary-700: #1d4ed8;
    --color-primary-800: #1e40af;
    --color-primary-900: #1e3a8a;
}

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

/* ========================================
   Selecao de Texto
======================================== */
::selection {
    background-color: var(--color-primary-500);
    color: white;
}

/* ========================================
   Focus Visible
======================================== */
:focus-visible {
    outline: 2px solid var(--color-primary-500);
    outline-offset: 2px;
}

/* ========================================
   Container
======================================== */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1536px;
    }
}

/* ========================================
   Menu WordPress
======================================== */
.menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item {
    position: relative;
}

.menu-item a {
    display: block;
    text-decoration: none;
    transition: color 0.2s ease;
}

.menu-item.current-menu-item a,
.menu-item.current_page_item a {
    color: var(--color-primary-600);
    font-weight: 600;
}

/* ========================================
   Menu Mobile
======================================== */
#mobile-menu .menu {
    flex-direction: column;
    gap: 1rem;
}

#mobile-menu .menu-item a {
    padding: 0.5rem 0;
    font-size: 1.125rem;
    color: #374151;
}

#mobile-menu .menu-item a:hover {
    color: var(--color-primary-600);
}

/* ========================================
   Logo Customizado
======================================== */
.custom-logo {
    max-height: 3rem;
    width: auto;
}

@media (min-width: 1024px) {
    .custom-logo {
        max-height: 3.5rem;
    }
}

/* ========================================
   Skip Link (Acessibilidade)
======================================== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-primary-600);
    color: white;
    text-decoration: none;
    border-radius: 0 0 0.5rem 0.5rem;
    font-weight: 500;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* ========================================
   Botao WhatsApp Flutuante
======================================== */
.fixed a[href*="wa.me"] {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(34, 197, 94, 0);
    }
}

/* ========================================
   Animacoes
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ========================================
   Banner/Slider CSS Nativo
======================================== */
.slider-container {
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-slide {
    flex: 0 0 100%;
    min-width: 100%;
}

.slider-nav {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d1d5db;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.slider-dot.active {
    background-color: var(--color-primary-500);
}

/* ========================================
   Screen Reader Only
======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   Lazy Loading
======================================== */
.lazyload,
.lazyloading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazyloaded {
    opacity: 1;
}