/* ============================================================================
   STYLE.CSS - Lar São Vicente
   Otimizado para acessibilidade, idosos, e tecnologia moderna
   ========================================================================== */

/* --- 1. VARIÁVEIS CSS E TEMAS --- */
:root {
    /* Tipografia */
    --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-family-serif: 'Poppins', sans-serif;
    
    /* Tamanhos de Fonte Base (AUMENTADOS para idosos) */
    --font-size-base: 18px;
    --font-size-sm: 16px;
    --font-size-lg: 20px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;
    --font-size-3xl: 40px;
    --font-size-4xl: 48px;
    
    /* Tema Claro */
    --bg-body: #ffffff;
    --bg-header: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #4a4a4a;
    
    /* Cores da Identidade */
    --color-primary: #2d5d88;
    --color-primary-light: #387db0;
    --color-accent: #5bc0de;
    --color-border: #d0d0d0;
    --color-success: #28a745;
    
    /* Layout */
    --container-width: 1200px;
    --spacing-unit: 8px;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Tema Escuro */
[data-theme="dark"] {
    --bg-body: #0f1419;
    --bg-header: #1a1f2e;
    --text-main: #f5f5f5;
    --text-muted: #b0b0b0;
    --color-primary: #60a5fa;
    --color-primary-light: #3b82f6;
    --color-border: #3a3f4a;
}

/* Filtros de Acessibilidade Visual - Aplicados apenas no conteúdo */
main.filter-contrast {
    filter: contrast(1.5) !important;
}

main.filter-protanopia {
    /* Simula daltonismo vermelho - desatura vermelhos */
    filter: saturate(0.5) hue-rotate(-20deg) !important;
}

main.filter-deuteranopia {
    /* Simula daltonismo verde - desatura verdes */
    filter: saturate(0.5) hue-rotate(20deg) !important;
}

main.filter-achromatopsia {
    /* Escala de cinza total */
    filter: grayscale(100%) !important;
}

/* --- 2. RESET E BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.8;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: var(--font-size-base);
    padding-top: 80px;
    padding-bottom: 120px;
}

/* Acessibilidade: Focus visível em todos os elementos interativos */
*:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-light);
    text-decoration: underline;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-serif);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-main);
}

h1 { font-size: var(--font-size-4xl); margin-bottom: calc(var(--spacing-unit) * 3); }
h2 { font-size: var(--font-size-3xl); margin-bottom: calc(var(--spacing-unit) * 2.5); }
h3 { font-size: var(--font-size-2xl); margin-bottom: calc(var(--spacing-unit) * 2); }
h4 { font-size: var(--font-size-xl); margin-bottom: calc(var(--spacing-unit) * 1.5); }

p {
    margin-bottom: calc(var(--spacing-unit) * 2);
    font-size: var(--font-size-base);
}

/* --- 3. HEADER E NAVEGAÇÃO --- */

/* TOP BAR - Barra de Informações */
.top-bar {
    background: linear-gradient(90deg, #0a1628 0%, #0f172a 50%, #1a2847 100%);
    color: #cbd5e1;
    font-size: var(--font-size-sm);
    padding: calc(var(--spacing-unit) * 1.75) 0;
    border-bottom: 1px solid rgba(91, 192, 222, 0.2);
}

.top-bar__content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: calc(var(--spacing-unit) * 3);
    align-items: center;
}

.top-bar span {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 0.5);
}

.top-bar a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.top-bar a:hover {
    color: #bfdbfe;
    border-bottom-color: #60a5fa;
}

/* MAIN HEADER */
.main-header {
    background: var(--bg-header);
    display: flex;
    align-items: center;
    border-bottom: 3px solid var(--color-accent);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    padding: calc(var(--spacing-unit) * 1.5) 0;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: calc(var(--spacing-unit) * 3);
}

/* LOGO */
.logo {
    font-family: var(--font-family-serif);
    font-weight: 700;
    font-size: 28px;
    color: var(--color-primary);
    white-space: nowrap;
    transition: all 0.3s ease;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.logo:hover {
    color: var(--color-primary-light);
    text-shadow: 0 2px 8px rgba(45, 93, 136, 0.2);
}

/* NAVEGAÇÃO PRINCIPAL */
.nav-menu ul {
    display: flex;
    gap: calc(var(--spacing-unit) * 0.5);
    align-items: center;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-menu li {
    position: relative;
}

.nav-link {
    font-weight: 600;
    font-size: var(--font-size-base);
    color: var(--text-main);
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 2);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: block;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--color-accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

/* AÇÕES DO HEADER */
.header-actions {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1);
    flex-shrink: 0;
}

.divider-vertical {
    width: 1px;
    height: 28px;
    background: linear-gradient(180deg, transparent, var(--color-border), transparent);
    margin: 0 calc(var(--spacing-unit) * 0.5);
}

/* BOTÕES DO HEADER */
.btn-icon-group,
.btn-icon-single,
.font-btn {
    background: transparent;
    border: 2px solid transparent;
    color: var(--text-main);
    padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 1.25);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    width: 44px;
    font-size: var(--font-size-base);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.btn-icon-group:hover,
.btn-icon-single:hover,
.font-btn:hover {
    background: rgba(45, 93, 136, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: scale(1.05);
}

.btn-icon-group:focus-visible,
.btn-icon-single:focus-visible,
.font-btn:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* BOTÃO FALE CONOSCO */
.btn--contact {
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border: 2px solid var(--color-primary);
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2.5);
    width: auto;
    height: 46px;
    box-shadow: 0 4px 12px rgba(45, 93, 136, 0.3);
    border-radius: 8px;
}

.btn--contact:hover {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(45, 93, 136, 0.4);
}

/* GRUPO DE BOTÕES DE FONTE */
.font-control-group {
    display: flex;
    gap: 4px;
    align-items: center;
}

.font-control-group .font-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 6px;
    font-size: 16px;
}

.font-control-group .font-btn:hover {
    background: rgba(91, 192, 222, 0.15);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Dropdown de Visão */
.vision-dropdown-wrapper {
    position: relative;
}

.btn-icon-single {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 56px;
    right: 0;
    background: var(--bg-header);
    color: var(--text-main);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    width: 260px;
    display: none;
    z-index: 200;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.dropdown-menu.show {
    display: block;
    animation: slideDownMenu 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDownMenu {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu li {
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2.5);
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    font-size: var(--font-size-base);
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu li:hover {
    background: linear-gradient(90deg, rgba(45, 93, 136, 0.08), rgba(91, 192, 222, 0.08));
    color: var(--color-primary);
    padding-left: calc(var(--spacing-unit) * 3);
}

/* Ícones Sol/Lua */
[data-theme="light"] .icon-sun { display: block; color: #f59e0b; }
[data-theme="dark"] .icon-moon { display: block; color: #fbbf24; }
.icon-sun, .icon-moon { display: none; }

/* --- 4. SEÇÃO HERO / SLIDER --- */
.slider-section {
    position: relative;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: var(--color-primary);
}

.slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 93, 136, 0.75), rgba(91, 192, 222, 0.75));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.slide-content {
    text-align: center;
    color: white;
    max-width: 800px;
    animation: slideInUp 0.8s ease-out forwards;
}

.slide-title {
    font-size: var(--font-size-4xl);
    color: white;
    margin-bottom: calc(var(--spacing-unit) * 2);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
}

.slide-description {
    color: #f0f0f0;
    font-size: var(--font-size-lg);
    margin-bottom: calc(var(--spacing-unit) * 3);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Controles do Slider */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.25);
    border: none;
    color: white;
    font-size: var(--font-size-2xl);
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 2.5);
    cursor: pointer;
    z-index: 10;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-control:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.slider-control--prev { left: calc(var(--spacing-unit) * 3); }
.slider-control--next { right: calc(var(--spacing-unit) * 3); }

/* Indicadores (Dots) */
.slider-dots {
    position: absolute;
    bottom: calc(var(--spacing-unit) * 3);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: calc(var(--spacing-unit) * 1.5);
    z-index: 10;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    width: 24px;
    border-radius: 8px;
}

/* --- 5. SEÇÕES --- */
.section {
    padding: calc(var(--spacing-unit) * 6) 0;
}

.section-title {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 2);
    font-size: var(--font-size-3xl);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: var(--font-size-lg);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

/* Variantes de Fundo */
.bg-accent {
    background: linear-gradient(135deg, rgba(91, 192, 222, 0.95), rgba(56, 125, 176, 0.95));
    color: white;
}

.bg-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
}

.text-white {
    color: white !important;
}

.bg-accent .section-title,
.bg-primary .section-title,
.bg-accent .section-subtitle,
.bg-primary .section-subtitle {
    color: white;
}

/* --- 6. GRID LAYOUT --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
    margin-top: calc(var(--spacing-unit) * 4);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
}

/* --- 7. CARDS DE PILARES --- */
.pillars-section {
    background: var(--bg-body);
}

.pillar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: calc(var(--spacing-unit) * 3);
    background: white;
    border-radius: 12px;
    border: 2px solid var(--color-border);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

[data-theme="dark"] .pillar-card {
    background: #1f2937;
    border-color: #374151;
}

.icon-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: calc(var(--spacing-unit) * 2);
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 93, 136, 0.3);
}

.pillar-card:hover .icon-circle {
    transform: scale(1.15);
    background: var(--color-primary-light);
}

.pillar-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.pillar-card p {
    font-size: var(--font-size-base);
    color: var(--text-muted);
    line-height: 1.8;
}

.separator-line {
    width: 60px;
    height: 4px;
    background: var(--color-accent);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    border-radius: 2px;
}

.link-more {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 700;
    font-size: var(--font-size-base);
    letter-spacing: 1px;
    margin-top: calc(var(--spacing-unit) * 1.5);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.link-more:hover {
    border-bottom-color: var(--color-primary);
}

/* --- 8. CARDS DE SERVIÇOS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
    margin-top: calc(var(--spacing-unit) * 4);
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: calc(var(--spacing-unit) * 3);
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 48px;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.service-card h3 {
    color: white;
    font-size: var(--font-size-xl);
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.service-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-base);
}

/* --- 9. EQUIPE --- */
.team-section {
    background: var(--bg-body);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
    margin-top: calc(var(--spacing-unit) * 4);
}

.team-member {
    text-align: center;
    padding: calc(var(--spacing-unit) * 2.5);
    border-radius: 12px;
    background: white;
    border: 2px solid var(--color-border);
    transition: all 0.3s ease;
}

[data-theme="dark"] .team-member {
    background: #1f2937;
    border-color: #374151;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.member-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto calc(var(--spacing-unit) * 2);
}

.team-member h3 {
    font-size: var(--font-size-lg);
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.team-member p {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* --- 11. SEÇÃO DE DOAÇÃO --- */
.donation-section {
    background: var(--bg-body);
    position: relative;
    overflow: hidden;
}

.donation-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(91, 192, 222, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.donation-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(45, 93, 136, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.donation-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 6);
    align-items: center;
    margin-top: calc(var(--spacing-unit) * 4);
}

.donation-info {
    background: white;
    border-radius: 16px;
    padding: calc(var(--spacing-unit) * 4);
    border: 2px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

[data-theme="dark"] .donation-info {
    background: #1f2937;
    border-color: #374151;
}

.donation-info:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.donation-info h3 {
    color: var(--color-primary);
    font-size: var(--font-size-xl);
    margin-bottom: calc(var(--spacing-unit) * 2.5);
}

.donation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.donation-list li {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 0.75);
    padding: calc(var(--spacing-unit) * 2);
    border-bottom: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

[data-theme="dark"] .donation-list li {
    border-bottom-color: #374151;
}

.donation-list li:last-child {
    border-bottom: none;
}

.donation-list li:hover {
    background: rgba(91, 192, 222, 0.05);
    padding-left: calc(var(--spacing-unit) * 2.5);
    border-left: 3px solid var(--color-accent);
}

.donation-list strong {
    color: var(--color-primary);
    font-size: var(--font-size-lg);
    font-weight: 700;
}

.donation-list span {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

.donation-methods {
    background: linear-gradient(135deg, rgba(45, 93, 136, 0.05), rgba(91, 192, 222, 0.05));
    border-radius: 16px;
    padding: calc(var(--spacing-unit) * 4);
    border: 2px solid var(--color-accent);
    text-align: center;
}

[data-theme="dark"] .donation-methods {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.08), rgba(59, 130, 246, 0.08));
}

.donation-methods h3 {
    color: var(--color-primary);
    font-size: var(--font-size-xl);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.donation-buttons {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
}

.donation-buttons .btn {
    font-size: var(--font-size-base);
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2);
    height: 48px;
    width: 100%;
}

/* --- 11b. SEÇÃO CTA --- */
.cta-section {
    text-align: center;
    overflow: hidden;
    position: relative;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: var(--font-size-lg);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
    margin-top: calc(var(--spacing-unit) * 4);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: calc(var(--spacing-unit) * 3);
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.contact-card h3 {
    color: white;
    font-size: var(--font-size-lg);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.contact-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-base);
    margin: 0;
}

/* --- 11. BOTÕES --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn--primary {
    background: var(--color-primary-light);
    color: white;
    box-shadow: 0 4px 12px rgba(56, 125, 176, 0.3);
}

.btn--primary:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(56, 125, 176, 0.4);
}

.btn--secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn--secondary:hover {
    background: white;
    color: var(--color-primary);
}

.btn--large {
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
    font-size: var(--font-size-lg);
}

/* --- 12. NAVEGAÇÃO MOBILE (APP-LIKE) --- */
.mobile-bottom-nav {
    display: none !important;
    position: fixed !important;
    bottom: 0 !important;
}

.mobile-toggle {
    display: none !important;
}

.mobile-more-menu {
    display: none !important;
}

@media (max-width: 900px) {
    /* Ocultar elementos desktop */
    .top-bar,
    .header-actions,
    .nav-menu,
    #backToTop {
        display: none !important;
    }

    body {
        padding-bottom: 120px !important;
    }

    /* Header Simples Mobile */
    .main-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 70px !important;
        justify-content: center !important;
        padding: calc(var(--spacing-unit) * 1) 0 !important;
        z-index: 500 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
        background: var(--bg-header) !important;
        border-bottom: 2px solid var(--color-accent) !important;
    }

    .header__container {
        justify-content: center;
        gap: calc(var(--spacing-unit) * 1);
    }

    .logo {
        font-size: 20px;
        letter-spacing: -0.3px;
    }

    /* Main - espaço para header fixo */
    main {
        margin-top: 70px !important;
        padding-top: 0 !important;
    }

    .mobile-toggle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        position: absolute !important;
        pointer-events: none !important;
    }

    /* Navegação Mobile Inferior (App) - SEMPRE VISÍVEL */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        justify-content: space-around !important;
        align-items: flex-end !important;
        height: 90px !important;
        min-height: 90px !important;
        background: var(--bg-header) !important;
        border-top: 3px solid var(--color-border) !important;
        z-index: 9999 !important;
        margin: 0 !important;
        padding: 0 !important;
        padding-bottom: max(env(safe-area-inset-bottom), calc(var(--spacing-unit) * 0.5)) !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        border: none;
        background: transparent;
        color: var(--text-muted);
        font-size: var(--font-size-sm);
        font-weight: 600;
        width: 70px;
        cursor: pointer;
        padding: calc(var(--spacing-unit) * 1) 0;
        transition: all 0.3s ease;
    }

    .mobile-nav-item:hover,
    .mobile-nav-item.active {
        color: var(--color-primary);
    }

    .mobile-nav-item svg {
        width: 28px;
        height: 28px;
        margin-bottom: calc(var(--spacing-unit) * 0.5);
    }

    /* Botão Flutuante Central */
    .mobile-nav-center {
        position: relative;
        top: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        z-index: 1001;
    }

    .btn-doar-mobile {
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        box-shadow: 0 6px 15px rgba(231, 76, 60, 0.3);
        border: 3px solid var(--bg-header);
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        animation: donatePulse 2s infinite;
    }

    .btn-doar-mobile:hover,
    .btn-doar-mobile:focus-visible {
        transform: scale(1.1);
        box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
        animation: none;
    }

    .btn-doar-mobile:active {
        transform: scale(0.95);
    }

    @keyframes donatePulse {
        0% {
            box-shadow: 0 6px 15px rgba(231, 76, 60, 0.3);
        }
        50% {
            box-shadow: 0 6px 15px rgba(231, 76, 60, 0.3), 0 0 0 6px rgba(231, 76, 60, 0.1);
        }
        100% {
            box-shadow: 0 6px 15px rgba(231, 76, 60, 0.3);
        }
    }

    .btn-doar-mobile svg {
        width: 32px;
        height: 32px;
        animation: donateHeart 1.5s ease-in-out infinite;
    }

    @keyframes donateHeart {
        0%, 100% {
            transform: scale(1);
        }
        25% {
            transform: scale(1.1);
        }
        50% {
            transform: scale(1);
        }
    }

    .mobile-nav-center > span {
        margin-top: calc(var(--spacing-unit) * 0.3);
        font-size: var(--font-size-xs);
        font-weight: 700;
        color: var(--color-primary);
    }

    /* Menu Drawer Mobile */
    .mobile-more-menu {
        position: fixed;
        bottom: 100px;
        right: calc(var(--spacing-unit) * 2);
        width: 220px;
        background: var(--bg-header);
        border: 2px solid var(--color-border);
        border-radius: 12px;
        box-shadow: var(--shadow-lg);
        z-index: 999;
        display: none !important;
        animation: popUpMenu 0.3s ease-out;
    }

    .mobile-more-menu.open {
        display: block !important;
    }

    .more-menu-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .more-menu-list li {
        border-bottom: 1px solid var(--color-border);
    }

    .more-menu-list li:last-child {
        border-bottom: none;
    }

    .more-menu-list a,
    .more-menu-list button {
        display: flex;
        align-items: center;
        width: 100%;
        padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2);
        text-decoration: none;
        color: var(--text-main);
        font-size: var(--font-size-base);
        background: transparent;
        border: none;
        text-align: left;
        font-family: var(--font-family-sans);
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .more-menu-list a:hover,
    .more-menu-list button:hover {
        background: var(--color-primary);
        color: white;
    }

    .more-menu-list .icon {
        margin-right: calc(var(--spacing-unit) * 1.5);
        font-size: 20px;
    }

    @keyframes popUpMenu {
        from {
            opacity: 0;
            transform: scale(0.85) translateY(10px);
        }
        to {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }

    /* Ajustes de layout mobile */
    .container {
        width: 95%;
    }

    .slider-container {
        height: 400px;
    }

    .slide-title {
        font-size: var(--font-size-2xl);
    }

    .slide-description {
        font-size: var(--font-size-base);
    }

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: calc(var(--spacing-unit) * 4) 0;
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }

    /* Donation Section Mobile */
    .donation-content {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 4);
    }

    .donation-info,
    .donation-methods {
        padding: calc(var(--spacing-unit) * 2.5);
    }

    .donation-list li {
        padding: calc(var(--spacing-unit) * 1.5);
    }

    .donation-buttons {
        gap: calc(var(--spacing-unit) * 1.5);
    }

    .donation-buttons .btn {
        padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 1.5);
        font-size: var(--font-size-sm);
    }
}

/* --- 13. FOOTER --- */
.site-footer {
    margin-top: auto;
}

.footer-main {
    background: linear-gradient(135deg, #0c1427 0%, #1a2a42 100%);
    color: #e2e8f0;
    padding: calc(var(--spacing-unit) * 6) 0 calc(var(--spacing-unit) * 4);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
}

.footer-title {
    font-size: var(--font-size-lg);
    color: #fff;
    margin-bottom: calc(var(--spacing-unit) * 2);
    font-weight: 600;
}

.footer-title span {
    color: var(--color-accent);
    font-weight: 700;
}

.footer-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--color-accent);
    margin-top: calc(var(--spacing-unit) * 1);
    border-radius: 2px;
}

.footer-text {
    font-size: var(--font-size-base);
    line-height: 1.8;
}

.footer-text p {
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.footer-address {
    font-size: var(--font-size-base);
    line-height: 1.8;
    font-style: normal;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1.5);
    margin-bottom: calc(var(--spacing-unit) * 2);
    font-size: var(--font-size-base);
}

.contact-list a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-list a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.icon-circle-small {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-list li:hover .icon-circle-small {
    background: var(--color-accent);
    color: white;
    transform: rotate(360deg);
}

.footer-bottom {
    background: #ffffff;
    padding: calc(var(--spacing-unit) * 2) 0;
    border-top: 2px solid var(--color-border);
    color: #333;
}

[data-theme="dark"] .footer-bottom {
    background: #1a1f2e;
    border-top-color: #3a3f4a;
    color: #e2e8f0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: calc(var(--spacing-unit) * 2);
}

.logo-dark {
    font-family: var(--font-family-serif);
    font-weight: 700;
    font-size: var(--font-size-lg);
    color: var(--color-primary);
}

.footer-menu {
    display: flex;
    gap: calc(var(--spacing-unit) * 2.5);
    flex-wrap: wrap;
}

.footer-menu a {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .footer-menu a {
    color: #94a3b8;
}

.footer-menu a:hover {
    color: var(--color-primary);
}

.footer-credits {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

[data-theme="dark"] .footer-credits {
    color: #94a3b8;
}

/* --- 14. BOTÃO BACK TO TOP --- */
#backToTop {
    position: fixed;
    bottom: calc(var(--spacing-unit) * 4);
    right: calc(var(--spacing-unit) * 4);
    background: var(--color-accent);
    color: white;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

#backToTop:hover {
    background: #3ba9d4;
    transform: translateY(-3px);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

/* --- 15. ANIMAÇÕES --- */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* --- 16. ACESSIBILIDADE --- */
/* Skip to main content link */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
    text-decoration: none;
    z-index: 100;
}

.skip-to-main:focus {
    top: 0;
}

/* Reduzir movimento para usuários com preferência */
@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;
    }
}

/* ============================================================================
   MENU MOBILE DE ACESSIBILIDADE
   ========================================================================== */

@media (max-width: 900px) {
    .mobile-more-menu {
        position: fixed;
        bottom: 95px;
        right: 10px;
        width: 280px;
        background: var(--bg-header);
        border: 2px solid var(--color-border);
        border-radius: 12px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        z-index: 8000;
        display: none;
        animation: slideUp 0.3s ease-out;
    }

    .mobile-more-menu.open {
        display: block;
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .more-menu-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .more-menu-list li {
        border-bottom: 1px solid var(--color-border);
    }

    .more-menu-list li:last-child {
        border-bottom: none;
    }

    .more-menu-list a,
    .more-menu-list button,
    .more-menu-list span {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 14px 16px;
        background: transparent;
        border: none;
        color: var(--text-main);
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: background-color 0.2s;
        text-align: left;
        text-decoration: none;
        gap: 10px;
    }

    .more-menu-list a:hover,
    .more-menu-list button:hover {
        background-color: rgba(45, 93, 136, 0.1);
    }

    .more-menu-list .divider {
        height: 1px;
        padding: 0 !important;
        margin: 0 !important;
        background: var(--color-border);
    }

    /* Items de Acessibilidade */
    .accessibility-item {
        padding: 0 !important;
    }

    .accessibility-item > span {
        padding: 14px 16px !important;
        border-bottom: 1px solid var(--color-border) !important;
        font-weight: 600;
        cursor: default !important;
    }

    .accessibility-item > span:hover {
        background: transparent !important;
    }

    /* Controle de Fonte Mobile */
    .font-control-mobile {
        display: flex;
        gap: 8px;
        padding: 10px 16px;
        background: rgba(0, 0, 0, 0.02);
    }

    .font-btn-mobile {
        flex: 1;
        padding: 8px 12px;
        background: var(--color-primary);
        color: white;
        border: none;
        border-radius: 6px;
        font-weight: 600;
        cursor: pointer;
        font-size: 14px;
        transition: background 0.2s;
    }

    .font-btn-mobile:hover {
        background: #1f4058;
    }

    /* Controle de Visão Mobile */
    .vision-control-mobile {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 10px 16px;
        background: rgba(0, 0, 0, 0.02);
    }

    .vision-control-mobile .vision-btn-mobile:nth-child(1) {
        grid-column: 1 / -1;
    }

    .vision-btn-mobile {
        padding: 8px 10px;
        background: var(--color-secondary);
        color: var(--text-main);
        border: none;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
    }

    .vision-btn-mobile:hover {
        background: #3db5d0;
    }

    .vision-btn-mobile.active {
        background: var(--color-primary);
        color: white;
    }
}