/**
 * PROTECTROOF FEATURE SECTION - Seção de destaque para a ProtectRoof
 * Versão: 1.0 - Card centralizado com fundo de imagem
 */

/* ========================================
   SEÇÃO PRINCIPAL - FUNDO COM IMAGEM
   ======================================== */

/* CSS removido - usando inline style no HTML */

/* ========================================
   CARD PRINCIPAL - CENTRALIZADO
   ======================================== */

.protectroof-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 25px;
    padding: 50px 40px;
    max-width: 850px;
    margin: 0 auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    backdrop-filter: blur(8px);
}

.protectroof-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.15);
    border-color: rgba(30, 136, 229, 0.3);
}

/* ========================================
   LOGO BOX - TOPO DO CARD
   ======================================== */

.protectroof-logo-box {
    background: #1a2332;
    border: 3px solid #1E88E5;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.protectroof-logo-box:hover {
    background: #0d1117;
    border-color: #FF9800;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.protectroof-logo {
    max-width: 250px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    filter: brightness(1.1);
    background: transparent;
}

.protectroof-logo:hover {
    transform: scale(1.05);
}

.protectroof-logo-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1E88E5, #FF9800);
    border-radius: 8px;
    color: white;
    font-size: 2rem;
}

/* ========================================
   CONTEÚDO - TÍTULO E DESCRIÇÃO
   ======================================== */

.protectroof-content {
    text-align: center;
}

.protectroof-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1E88E5;
    margin-bottom: 25px;
    text-shadow: 0 2px 8px rgba(30, 136, 229, 0.15);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.protectroof-description {
    font-size: 1.15rem;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 35px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    opacity: 0.9;
}

/* ========================================
   INFO BOX - INFORMAÇÕES DO PARCEIRO
   ======================================== */

.protectroof-info-box {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 16px;
    padding: 30px 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(30, 136, 229, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.protectroof-info-box:hover {
    background: rgba(248, 249, 250, 0.9);
    border-color: rgba(30, 136, 229, 0.2);
    transform: translateY(-2px);
}

.protectroof-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.protectroof-info-item:last-child {
    margin-bottom: 0;
}

.protectroof-info-item:hover {
    transform: translateX(5px);
}

.protectroof-icon {
    font-size: 1.2rem;
    color: #1E88E5;
    margin-right: 15px;
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.protectroof-info-item:hover .protectroof-icon {
    color: #FF9800;
    transform: scale(1.1);
}

.protectroof-info-text {
    font-size: 1rem;
    color: #374151;
    font-weight: 500;
    flex: 1;
}

/* ========================================
   DIVIDER - LINHA SEPARADORA
   ======================================== */

.protectroof-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #1E88E5, #FF9800, transparent);
    margin: 25px 0;
    border-radius: 1px;
}

/* ========================================
   CTA BUTTON - BOTÃO DE AÇÃO
   ======================================== */

.protectroof-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #1E88E5, #FF9800);
    color: white;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(30, 136, 229, 0.25);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.protectroof-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.protectroof-cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(30, 136, 229, 0.35);
    color: white;
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.3);
}

.protectroof-cta-btn:hover::before {
    left: 100%;
}

.protectroof-cta-btn:focus {
    outline: 3px solid rgba(30, 136, 229, 0.5);
    outline-offset: 2px;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

/* Desktop grande (1200px+) */
@media (min-width: 1200px) {
    .protectroof-card {
        padding: 50px;
        max-width: 850px;
    }
    
    .protectroof-title {
        font-size: 3rem;
    }
    
    .protectroof-description {
        font-size: 1.2rem;
    }
}

/* Desktop (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .protectroof-card {
        padding: 45px;
        max-width: 800px;
    }
    
    .protectroof-title {
        font-size: 2.8rem;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .protectroof-feature-section {
        padding: 60px 0;
    }
    
    .protectroof-card {
        padding: 35px;
        max-width: 700px;
    }
    
    .protectroof-title {
        font-size: 2.2rem;
    }
    
    .protectroof-description {
        font-size: 1rem;
    }
}

/* Mobile grande (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .protectroof-feature-section {
        padding: 50px 0;
    }
    
    .protectroof-card {
        padding: 30px;
        max-width: 600px;
    }
    
    .protectroof-title {
        font-size: 2rem;
    }
    
    .protectroof-description {
        font-size: 0.95rem;
    }
    
    .protectroof-logo {
        max-width: 150px;
        max-height: 60px;
    }
    
    .protectroof-logo-placeholder {
        width: 150px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Mobile pequeno (320px - 575px) */
@media (max-width: 575px) {
    .protectroof-feature-section {
        padding: 40px 0;
        background-attachment: scroll; /* Better performance on mobile */
    }
    
    .protectroof-card {
        padding: 35px 25px;
        max-width: 100%;
        margin: 0 20px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
        border-radius: 20px;
    }
    
    .protectroof-title {
        font-size: 2rem;
        line-height: 1.1;
        font-weight: 600;
    }
    
    .protectroof-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
        opacity: 0.9;
    }
    
    .protectroof-logo-box {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .protectroof-logo {
        max-width: 120px;
        max-height: 50px;
    }
    
    .protectroof-logo-placeholder {
        width: 120px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .protectroof-info-box {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .protectroof-info-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .protectroof-icon {
        margin-right: 0;
        margin-bottom: 8px;
        font-size: 1.5rem;
    }
    
    .protectroof-info-text {
        font-size: 0.9rem;
    }
    
    .protectroof-cta-btn {
        padding: 15px 30px;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }
}

/* Mobile landscape optimization */
@media (max-width: 767px) and (orientation: landscape) {
    .protectroof-feature-section {
        padding: 30px 0;
    }
    
    .protectroof-card {
        padding: 20px;
        margin: 0 10px;
    }
    
    .protectroof-title {
        font-size: 2rem;
    }
    
    .protectroof-description {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .protectroof-info-item {
        flex-direction: row;
        text-align: left;
        margin-bottom: 10px;
    }
    
    .protectroof-icon {
        margin-right: 10px;
        margin-bottom: 0;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .protectroof-cta-btn {
        min-height: 44px;
        padding: 15px 30px;
    }
    
    .protectroof-logo-box {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Mobile muito pequeno (até 320px) */
@media (max-width: 320px) {
    .protectroof-card {
        padding: 20px;
        margin: 0 10px;
    }
    
    .protectroof-title {
        font-size: 1.6rem;
    }
    
    .protectroof-description {
        font-size: 0.85rem;
    }
    
    .protectroof-logo {
        max-width: 100px;
        max-height: 40px;
    }
    
    .protectroof-logo-placeholder {
        width: 100px;
        height: 40px;
        font-size: 1rem;
    }
    
    .protectroof-cta-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

/* ========================================
   ACESSIBILIDADE
   ======================================== */

/* Redução de movimento para usuários sensíveis */
@media (prefers-reduced-motion: reduce) {
    .protectroof-card,
    .protectroof-logo-box,
    .protectroof-logo,
    .protectroof-info-item,
    .protectroof-cta-btn {
        transition: none !important;
        transform: none !important;
    }
    
    .protectroof-cta-btn::before {
        display: none;
    }
}

/* Alto contraste para usuários com deficiência visual */
@media (prefers-contrast: high) {
    .protectroof-card {
        border: 2px solid #000;
    }
    
    .protectroof-logo-box {
        border: 2px solid #000;
    }
    
    .protectroof-cta-btn {
        border: 2px solid #000;
    }
}

/* ========================================
   ANIMAÇÕES
   ======================================== */

.protectroof-card {
    animation: fadeInUp 0.8s ease-out;
}

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