/* CSS SEO E ACESSIBILIDADE OTIMIZADA - RADION TELECOM */

/* CLASSES PARA ACESSIBILIDADE */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* MELHORIAS PARA FOCO DO TECLADO */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid #ff6600;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.3);
}

/* SKIP LINKS PARA NAVEGAÇÃO POR TECLADO */
.skip-link {
    position: absolute;
    top: -45px;
    left: 6px;
    background: #ff6600;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
    font-weight: bold;
}

.skip-link:focus {
    top: 6px;
}

/* MELHORIAS PARA LEITORES DE TELA */
[aria-hidden="true"] {
    speak: none;
}

/* LOADING E SKELETON PARA PERFORMANCE */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* OTIMIZAÇÕES PARA IMAGENS */
img {
    max-width: 100%;
    height: auto;
    border-style: none;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* RESPONSIVIDADE MELHORADA */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .btn-primary-modern,
    .btn-secondary-modern {
        width: 100%;
        justify-content: center;
        margin-bottom: 1rem;
    }
}

/* MELHORIAS PARA IMPRESSÃO */
@media print {
    .navbar-modern,
    .footer-modern,
    .btn-primary-modern,
    .btn-secondary-modern {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    a::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
}

/* MODO ESCURO */
@media (prefers-color-scheme: dark) {
    .hero-section {
        background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
        color: #fff;
    }
    
    .service-card {
        background: #2a2a2a;
        border: 1px solid #444;
        color: #fff;
    }
    
    .contact-card {
        background: #2a2a2a;
        border: 1px solid #444;
        color: #fff;
    }
}

/* ANIMAÇÕES REDUZIDAS PARA PREFERÊNCIAS DO USUÁRIO */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* MELHORIAS PARA PERFORMANCE */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* LAZY LOADING PLACEHOLDER */
.lazy-placeholder {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #666;
}

/* PROGRESS INDICATOR */
.loading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff6600, #ff8533);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.loading-progress.active {
    transform: translateX(0);
}

/* TOOLTIP MELHORADO PARA ACESSIBILIDADE */
[title]:hover::after {
    content: attr(title);
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1000;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 5px;
}

/* MICROINTERAÇÕES PARA UX */
.hero-cta a {
    transform: scale(1);
    transition: transform 0.2s ease;
}

.hero-cta a:active {
    transform: scale(0.95);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.2);
}

/* OTIMIZAÇÕES FINAIS */
.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}
