/**
 * Estilos Customizados - AthosMed Theme
 *
 * @package AthosMed
 */

/* ==========================================================================
   0. Cores e Variáveis
   ========================================================================== */

:root {
    --athos-blue: #0C1E33;
    --athos-red: #E2272B;
    --blue-900: #1e3a8a;
}

/* Backgrounds com cores customizadas - FALLBACK para garantir que apareçam */
.bg-athos-blue {
    background-color: var(--athos-blue) !important;
}

.bg-athos-red {
    background-color: var(--athos-red) !important;
}

.text-athos-blue {
    color: var(--athos-blue) !important;
}

.text-athos-red {
    color: var(--athos-red) !important;
}

.border-athos-blue {
    border-color: var(--athos-blue) !important;
}

.border-athos-red {
    border-color: var(--athos-red) !important;
}

/* Hover states */
.hover\:bg-red-700:hover {
    background-color: #c21f22 !important;
}

.hover\:bg-red-600:hover {
    background-color: #dc2626 !important;
}

.hover\:text-athos-red:hover {
    color: var(--athos-red) !important;
}

.hover\:text-athos-blue:hover {
    color: var(--athos-blue) !important;
}

/* Hero Section - Degradê Azul - Suporte para todas as variações */
.bg-gradient-to-br,
.bg-gradient-to-br.from-athos-blue,
section.bg-gradient-to-br {
    background: linear-gradient(to bottom right, var(--athos-blue), var(--blue-900), var(--athos-blue)) !important;
}

.bg-gradient-to-r,
.bg-gradient-to-r.from-athos-blue,
section.bg-gradient-to-r {
    background: linear-gradient(to right, var(--athos-blue), var(--blue-900)) !important;
}

/* Garantir que ícones com cor athos também funcionem */
.text-athos-red i,
i.text-athos-red {
    color: var(--athos-red) !important;
}

.text-athos-blue i,
i.text-athos-blue {
    color: var(--athos-blue) !important;
}

/* ==========================================================================
   1. Utilitários e Helpers
   ========================================================================== */

.container {
    max-width: 1280px;
}

/* ==========================================================================
   2. Navegação
   ========================================================================== */

.custom-logo {
    max-height: 60px;
    width: auto;
}

.site-header.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Menu item ativo */
nav a.current-menu-item,
nav a.current_page_item,
nav li.current-menu-item > a,
nav li.current_page_item > a {
    font-weight: 700 !important;
    color: var(--athos-red) !important;
}

nav a.current-menu-item:hover,
nav a.current_page_item:hover,
nav li.current-menu-item > a:hover,
nav li.current_page_item > a:hover {
    color: var(--athos-blue) !important;
}

/* ==========================================================================
   3. Hero Section
   ========================================================================== */

.hero-slide {
    min-height: 400px;
}

/* Ajuste de altura do hero na página inicial */
section.hero-section {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* ==========================================================================
   4. Cards e Boxes
   ========================================================================== */

.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(226, 39, 43, 0.1) 0%, transparent 70%);
    transition: all 0.6s ease;
    opacity: 0;
}

.stat-card:hover::before {
    opacity: 1;
    transform: scale(1.1);
}

/* ==========================================================================
   5. Botões
   ========================================================================== */

.btn-primary {
    background-color: #E2272B;
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #c21f22;
    transform: scale(1.05);
}

.btn-secondary {
    background-color: #0C1E33;
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: #1a3a5c;
    transform: scale(1.05);
}

/* ==========================================================================
   6. Formulários
   ========================================================================== */

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #E2272B;
    box-shadow: 0 0 0 3px rgba(226, 39, 43, 0.1);
}

.form-control.error {
    border-color: #ef4444;
}

/* ==========================================================================
   7. Posts e Blog
   ========================================================================== */

.post-card {
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: #0C1E33;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.post-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.post-content ul,
.post-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.post-content blockquote {
    border-left: 4px solid #E2272B;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6b7280;
}

/* ==========================================================================
   8. Widgets
   ========================================================================== */

.widget {
    margin-bottom: 2rem;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #6b7280;
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: #E2272B;
}

/* ==========================================================================
   9. Paginação
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination .page-numbers {
    padding: 0.5rem 1rem;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    color: #0C1E33;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: #E2272B;
    color: white;
    border-color: #E2272B;
}

/* ==========================================================================
   10. Breadcrumbs
   ========================================================================== */

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: #0C1E33;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #E2272B;
}

.breadcrumb span {
    color: #9ca3af;
}

/* ==========================================================================
   11. Sidebar
   ========================================================================== */

.sidebar {
    position: sticky;
    top: 100px;
}

/* ==========================================================================
   12. Footer
   ========================================================================== */

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   13. Animações
   ========================================================================== */

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

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

@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

/* ==========================================================================
   14. Utilitários de Responsividade
   ========================================================================== */

@media (max-width: 768px) {
    .hero-slide {
        min-height: 400px;
    }
    
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ==========================================================================
   15. Print Styles
   ========================================================================== */

@media print {
    header,
    footer,
    .sidebar,
    .btn-primary,
    .btn-secondary {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
    
    a {
        text-decoration: underline;
    }
}

/* ==========================================================================
   16. Acessibilidade
   ========================================================================== */

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

:focus-visible {
    outline: 2px solid #E2272B;
    outline-offset: 2px;
}

/* ==========================================================================
   17. Customizações WordPress
   ========================================================================== */

.wp-block-image {
    margin: 2rem 0;
}

.wp-block-quote {
    border-left: 4px solid #E2272B;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
}

.wp-block-button__link {
    background-color: #E2272B !important;
    border-radius: 9999px !important;
    padding: 1rem 2rem !important;
}

.wp-block-button__link:hover {
    background-color: #c21f22 !important;
}
