/* ========================================
   SEÇÃO SOBRE - LAYOUT FIXO E BONITO
   ======================================== */

#sobre {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
    padding: var(--space-20) 0;
}

/* Decoração de fundo */
#sobre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(94, 234, 212, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(240, 171, 252, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
    position: relative;
    z-index: 2;
}

/* Coluna de texto */
.about-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.about-story,
.about-mission {
    background: var(--neutral-white);
    padding: var(--space-6);
    border-radius: var(--radius-2xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--mint-400);
    position: relative;
    transition: all 0.3s ease;
}

.about-story:hover,
.about-mission:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Stats rápidas */
.about-quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    margin: var(--space-6) 0;
}

.quick-stat {
    text-align: center;
    padding: var(--space-4);
    background: linear-gradient(135deg, rgba(94, 234, 212, 0.1), rgba(240, 171, 252, 0.05));
    border-radius: var(--radius-xl);
    border: 1px solid rgba(94, 234, 212, 0.2);
    transition: all 0.3s ease;
}

.quick-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(94, 234, 212, 0.15);
    border-color: var(--mint-300);
}

.quick-stat-number {
    display: block;
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--mint-600);
    font-family: var(--font-heading);
}

.quick-stat-label {
    font-size: var(--text-sm);
    color: var(--neutral-gray);
    font-weight: 600;
    margin-top: 0.25rem;
}

/* NOVA GALERIA VISUAL - LAYOUT MASONRY BONITO */
.about-visual-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: var(--space-4);
    height: 600px;
}

/* Layout das fotos - mais harmonioso */
.gallery-item {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: var(--neutral-white);
}

.gallery-item:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

/* FOTO PRINCIPAL DA CAROLINE - Hero */
.gallery-item.main-photo {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    background: linear-gradient(135deg, var(--mint-100), var(--lilac-100));
}

/* EQUIPAMENTO SENSORIAL - Destaque */
.gallery-item.equipment-1 {
    grid-column: 3;
    grid-row: 1 / 2;
}

/* ATIVIDADE TERAPÊUTICA */
.gallery-item.equipment-2 {
    grid-column: 3;
    grid-row: 2 / 3;
}

/* PROCESSO CLASI - Linha inferior esquerda */
.gallery-item.practice-1 {
    grid-column: 1;
    grid-row: 3 / 4;
}

/* ATENDIMENTO INDIVIDUAL - Centro inferior */
.gallery-item.practice-2 {
    grid-column: 2;
    grid-row: 3 / 4;
}

/* AMBIENTE LÚDICO - Direita inferior */
.gallery-item.practice-3 {
    grid-column: 3;
    grid-row: 3 / 4;
}

/* CONSULTORIA PROFISSIONAL - Linha final */
.gallery-item.practice-4 {
    grid-column: 1 / 3;
    grid-row: 4 / 5;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: brightness(1) contrast(1.05) saturate(1.1);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.05) contrast(1.1) saturate(1.15);
}

/* Overlay com gradiente bonito */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: white;
    padding: var(--space-5);
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-2);
    line-height: 1.3;
}

.gallery-description {
    font-size: var(--text-sm);
    opacity: 0.95;
    line-height: 1.5;
    max-width: 90%;
}

/* Badge de especialização melhorado */
.gallery-badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: linear-gradient(135deg, var(--mint-500), var(--mint-600));
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* Badges personalizados por tipo */
.main-photo .gallery-badge {
    background: linear-gradient(135deg, var(--lilac-500), var(--lilac-600));
    box-shadow: 0 4px 15px rgba(192, 38, 211, 0.4);
}

.equipment-1 .gallery-badge,
.equipment-2 .gallery-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.practice-1 .gallery-badge,
.practice-2 .gallery-badge,
.practice-3 .gallery-badge {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.practice-4 .gallery-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* Valores melhorados */
.about-values {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.value-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--neutral-white);
    border-radius: var(--radius-xl);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(94, 234, 212, 0.1);
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--mint-300);
}

.value-icon {
    font-size: var(--text-2xl);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--mint-400), var(--mint-500));
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.25);
    flex-shrink: 0;
}

.value-text h4 {
    margin: 0 0 var(--space-1) 0;
    font-size: var(--text-lg);
    color: var(--neutral-dark);
    font-weight: 700;
}

.value-text p {
    margin: 0;
    color: var(--neutral-gray);
    font-size: var(--text-sm);
    line-height: 1.5;
}

/* Floating elements decorativos */
.about-floating-element {
    position: absolute;
    pointer-events: none;
    opacity: 0.08;
    animation: float 8s ease-in-out infinite;
    color: var(--mint-400);
}

.about-floating-element:nth-child(1) {
    top: 10%;
    right: 5%;
    animation-delay: 0s;
}

.about-floating-element:nth-child(2) {
    bottom: 15%;
    left: 5%;
    animation-delay: 4s;
}

/* Responsivo inteligente */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }
    
    .about-visual-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 140px);
        height: auto;
        gap: var(--space-3);
    }
    
    .gallery-item.main-photo {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }
    
    .gallery-item.equipment-1 {
        grid-column: 1;
        grid-row: 2;
    }
    
    .gallery-item.equipment-2 {
        grid-column: 2;
        grid-row: 2;
    }
    
    .gallery-item.practice-1 {
        grid-column: 1;
        grid-row: 3;
    }
    
    .gallery-item.practice-2 {
        grid-column: 2;
        grid-row: 3;
    }
    
    .gallery-item.practice-3 {
        grid-column: 1;
        grid-row: 4;
    }
    
    .gallery-item.practice-4 {
        grid-column: 2;
        grid-row: 4;
    }
}

@media (max-width: 768px) {
    .about-visual-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(7, 160px);
        gap: var(--space-3);
    }
    
    .gallery-item {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
    
    .about-quick-stats {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .value-item {
        flex-direction: column;
        text-align: center;
        padding: var(--space-4);
    }
}

/* Animações suaves */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.08;
    }
    50% {
        transform: translateY(-15px) rotate(180deg);
        opacity: 0.12;
    }
}

/* Entrada escalonada */
.gallery-item {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    animation: gallery-entrance 0.6s ease forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }

@keyframes gallery-entrance {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Loading elegante */
.gallery-item.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}