/**
 * FOUNDER SECTION - DAILTON
 * Layout centralizado com cards retangulares altos
 * Versão: 5.0 - Estrutura corrigida para animação
 */

/* ========================================
   CONTAINER PRINCIPAL - CENTRALIZADO
   ======================================== */

.founder-section {
    background: linear-gradient(135deg, #f0f2f5 0%, #e0e5ec 100%);
    padding: 80px 0;
    overflow: hidden;
}

.founder-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* ========================================
   IMAGEM DO DAILTON - CENTRALIZADA
   ======================================== */

.founder-image-wrapper {
    margin-bottom: 40px;
    position: relative;
}

.founder-photo {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 auto;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.founder-photo:hover {
    transform: scale(1.05);
}

.founder-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1E88E5, #FF9800);
    border-radius: 50%;
    color: white;
    font-size: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* ========================================
   CONTEÚDO - CENTRALIZADO
   ======================================== */

.founder-content {
    margin-bottom: 60px;
}

.founder-name {
    font-size: 3.5rem;
    font-weight: 900;
    color: #2c3e50;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.1;
}

.founder-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.founder-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #FF9800);
    border-radius: 2px;
}

.founder-description {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* ========================================
   CARDS DE ANIMAÇÃO - RETÂNGULOS ALTOS
   ======================================== */

.founder-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 24px;
    justify-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.stat {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px 30px;
    min-height: 160px;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    gap: 12px;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    z-index: 1;
}

.stat:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1);
}

.count {
    font-size: 4rem;
    font-weight: 900;
    color: #1E88E5;
    text-shadow: 0 2px 4px rgba(30, 136, 229, 0.2);
    line-height: 1;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.stat:hover .count {
    color: #FF9800;
    transform: scale(1.05);
}

.label {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.3;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    text-align: center;
}

.stat:hover .label {
    color: #1E88E5;
}

/* ========================================
   RESPONSIVIDADE - CARDS ADAPTÁVEIS
   ======================================== */

/* Desktop grande (1200px+) - 3 colunas */
@media (min-width: 1200px) {
    .founder-container {
        max-width: 1200px;
    }
    
    .founder-name {
        font-size: 4rem;
    }
    
    .founder-description {
        font-size: 1.3rem;
    }
    
    .founder-stats {
        grid-template-columns: repeat(3, minmax(280px, 1fr));
        gap: 28px;
    }
    
    .stat {
        min-height: 170px;
        padding: 45px 35px;
    }
    
    .count {
        font-size: 4.5rem;
    }
}

/* Desktop (1024px - 1199px) - 3 colunas */
@media (max-width: 1199px) and (min-width: 1024px) {
    .founder-stats {
        grid-template-columns: repeat(3, minmax(260px, 1fr));
        gap: 24px;
    }
    
    .stat {
        min-height: 160px;
        padding: 40px 30px;
    }
    
    .count {
        font-size: 4rem;
    }
}

/* Tablet (900px - 1023px) - 2 colunas */
@media (max-width: 1023px) and (min-width: 900px) {
    .founder-stats {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
        gap: 24px;
        max-width: 600px;
    }
    
    .stat {
        min-height: 150px;
        padding: 35px 25px;
    }
    
    .count {
        font-size: 3.5rem;
    }
}

/* Mobile grande (560px - 899px) - 2 colunas */
@media (max-width: 899px) and (min-width: 560px) {
    .founder-container {
        padding: 0 15px;
    }
    
    .founder-photo {
        width: 180px;
        height: 180px;
    }
    
    .founder-placeholder {
        width: 180px;
        height: 180px;
        font-size: 2.5rem;
    }
    
    .founder-name {
        font-size: 3rem;
    }
    
    .founder-title {
        font-size: 1.2rem;
    }
    
    .founder-description {
        font-size: 1.1rem;
    }
    
    .founder-stats {
        grid-template-columns: repeat(2, minmax(250px, 1fr));
        gap: 20px;
        max-width: 520px;
    }
    
    .stat {
        min-height: 140px;
        padding: 30px 20px;
    }
    
    .count {
        font-size: 3rem;
    }
    
    .label {
        font-size: 0.9rem;
    }
}

/* Mobile pequeno (320px - 559px) - 1 coluna */
@media (max-width: 559px) {
    .founder-section {
        padding: 60px 0;
    }
    
    .founder-container {
        padding: 0 15px;
    }
    
    .founder-photo {
        width: 160px;
        height: 160px;
    }
    
    .founder-placeholder {
        width: 160px;
        height: 160px;
        font-size: 2rem;
    }
    
    .founder-name {
        font-size: 2.5rem;
    }
    
    .founder-title {
        font-size: 1.1rem;
        letter-spacing: 1.5px;
    }
    
    .founder-description {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .founder-stats {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 300px;
    }
    
    .stat {
        min-height: 130px;
        padding: 25px 20px;
    }
    
    .count {
        font-size: 2.5rem;
    }
    
    .label {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
}

/* Mobile muito pequeno (até 320px) - 1 coluna */
@media (max-width: 320px) {
    .founder-container {
        padding: 0 10px;
    }
    
    .founder-photo {
        width: 140px;
        height: 140px;
    }
    
    .founder-placeholder {
        width: 140px;
        height: 140px;
        font-size: 1.8rem;
    }
    
    .founder-name {
        font-size: 2.2rem;
    }
    
    .founder-description {
        font-size: 0.95rem;
    }
    
    .stat {
        min-height: 120px;
        padding: 20px 15px;
    }
    
    .count {
        font-size: 2.2rem;
    }
    
    .label {
        font-size: 0.75rem;
    }
}

/* ========================================
   ANIMAÇÕES E TRANSIÇÕES
   ======================================== */

.founder-section * {
    transition: all 0.3s ease;
}

.stat {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   ACESSIBILIDADE E CONTRASTE
   ======================================== */

/* Garantir contraste adequado */
.stat {
    color: #2c3e50;
}

.count {
    color: #1E88E5;
}

.label {
    color: #2c3e50;
}

/* Focus states para acessibilidade */
.stat:focus-within {
    outline: 2px solid #1E88E5;
    outline-offset: 2px;
}

/* ========================================
   MOBILE OPTIMIZATIONS - ANDROID & iOS
   ======================================== */

/* Mobile landscape optimization */
@media (max-width: 767px) and (orientation: landscape) {
    .founder-section {
        padding: 40px 0;
    }
    
    .founder-container {
        padding: 0 15px;
    }
    
    .founder-photo {
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
    }
    
    .founder-name {
        font-size: 2rem;
        margin-bottom: 5px;
    }
    
    .founder-title {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .founder-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .founder-stats {
        flex-direction: row;
        gap: 10px;
        justify-content: center;
    }
    
    .stat {
        padding: 10px 8px;
        flex: 1;
    }
    
    .count {
        font-size: 1.2rem;
    }
    
    .label {
        font-size: 0.6rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .founder-photo {
        transform: none;
    }
    
    .founder-photo:hover {
        transform: none;
    }
    
    .stat {
        min-height: 44px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}

/* Redução de movimento para usuários sensíveis */
@media (prefers-reduced-motion: reduce) {
    .founder-section * {
        animation: none !important;
        transition: none !important;
    }
    
    .stat:hover {
        transform: none;
    }
    
    .founder-photo:hover {
        transform: none;
    }
}