/* ============================================
   VITA — Socorro & Ambulância Particular 24h
   Design System & Custom Styles
   ============================================ */

/* --- DESIGN TOKENS --- */
:root {
    scroll-behavior: smooth;
    --color-primary: #b91c1c;
    --color-primary-hover: #991b1b;
    --color-accent: #dc2626;
    --color-accent-hover: #b91c1c;
    --color-text: #111827;
    --color-muted: #4b5563;
    --color-bg-light: #ffffff;
    --color-bg-dark: #fee2e2;
    --color-whatsapp: #25D366;
    --color-whatsapp-hover: #1fa951;
}

/* --- FUNDO DEGRADÊ GLOBAL --- */
#main-bg {
    background: linear-gradient(145deg, #ffffff 0%, #fff5f5 35%, #fef2f2 70%, #fee2e2 100%);
}

/* --- GLASSMORPHISM --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px -5px rgba(185, 28, 28, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

.glass-panel-highlight {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(254, 202, 202, 0.6);
    box-shadow: 0 16px 36px -6px rgba(185, 28, 28, 0.08);
}

.glass-header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(254, 226, 226, 0.8);
}

/* --- BODY --- */
body {
    color: var(--color-text);
}

/* --- ANIMAÇÕES --- */

/* Entrada da ambulância */
@keyframes ambulanceEnter {
    0% {
        opacity: 0;
        transform: translate(-25px, -25px);
    }
    100% {
        opacity: 1;
        transform: translate(0px, 0px);
    }
}

.animate-ambulance {
    animation: ambulanceEnter 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Blobs decorativos */
@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.08); }
    66% { transform: translate(-25px, 20px) scale(0.95); }
    100% { transform: translate(0px, 0px) scale(1); }
}

/* Sirene glow */
@keyframes sirenPulse {
    0%, 100% { opacity: 0.9; filter: drop-shadow(0 0 12px rgba(220, 38, 38, 0.8)); }
    50% { opacity: 0.4; filter: drop-shadow(0 0 4px rgba(37, 99, 235, 0.6)); }
}

/* --- FAQ ACCORDION --- */
details.faq-item > summary {
    list-style: none;
    outline: none;
}
details.faq-item > summary::-webkit-details-marker {
    display: none;
}
.faq-collapse {
    overflow: hidden;
    transition: height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-arrow {
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* --- ACESSIBILIDADE --- */

/* Skip navigation link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    z-index: 9999;
    border-radius: 0 0 0.5rem 0;
    transition: top 0.2s ease;
}

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

/* Focus visible para navegação por teclado */
:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Respeitar preferência de movimento reduzido */
@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;
    }

    .animate-ambulance,
    .animate-ping,
    .animate-pulse,
    .animate-blob {
        animation: none !important;
    }
}

/* --- SCROLL SUAVE para âncoras --- */
html {
    scroll-padding-top: 120px; /* Compensa header fixo */
}

/* --- SELEÇÃO DE TEXTO --- */
::selection {
    background-color: rgba(220, 38, 38, 0.9);
    color: white;
}
