/*
 * Protefor EAD Custom - Estilos Customizados
 * Cores Institucionais: Azul (#04566D), Amarelo (#FAD062)
 */

:root {
    --protefor-blue: #04566D;
    --protefor-blue-dark: #033f50;
    --protefor-blue-light: #067290;
    --protefor-blue-rgba: rgba(4, 86, 109, 0.08);
    --protefor-blue-rgba-soft: rgba(4, 86, 109, 0.03);
    --protefor-yellow: #FAD062;
    --protefor-yellow-dark: #e5be52;
    --protefor-yellow-rgba: rgba(250, 208, 98, 0.15);
    --protefor-dark: #1e293b;
    --protefor-dark-light: #334155;
    --protefor-gray: #64748b;
    --protefor-light-gray: #f8fafc;
    --protefor-white: #ffffff;
    --protefor-border: #e2e8f0;
    --protefor-radius: 16px;
    --protefor-radius-sm: 8px;
    --protefor-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --protefor-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --protefor-shadow-hover: 0 20px 25px -5px rgba(4, 86, 109, 0.1), 0 8px 10px -6px rgba(4, 86, 109, 0.1);
}

/* Base Wrapper to prevent layout bleed */
.protefor-ead-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--protefor-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--protefor-white);
}

.protefor-ead-wrapper *,
.protefor-ead-wrapper *::before,
.protefor-ead-wrapper *::after {
    box-sizing: border-box;
}

/* HERO SECTION */
.protefor-hero {
    position: relative;
    background: linear-gradient(135deg, var(--protefor-blue-dark) 0%, var(--protefor-blue) 100%);
    padding: 100px 20px;
    text-align: center;
    color: var(--protefor-white);
    overflow: hidden;
}

/* Hero Background Element Details */
.protefor-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(250, 208, 98, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.protefor-hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(4, 86, 109, 0.4) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.protefor-hero-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
}

.protefor-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--protefor-white);
}

.protefor-hero-title span {
    color: var(--protefor-yellow);
    position: relative;
    display: inline-block;
}

.protefor-hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.protefor-btn {
    display: inline-block;
    background-color: var(--protefor-yellow);
    color: var(--protefor-dark) !important;
    font-size: 1.125rem;
    font-weight: 700;
    padding: 16px 40px;
    border-radius: var(--protefor-radius);
    text-decoration: none !important;
    transition: var(--protefor-transition);
    box-shadow: 0 4px 14px rgba(250, 208, 98, 0.4);
    border: 2px solid transparent;
}

.protefor-btn:hover {
    background-color: var(--protefor-white);
    color: var(--protefor-blue) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* SECTION STRUCTURE */
.protefor-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.protefor-section-bg {
    background-color: var(--protefor-light-gray);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.protefor-section-bg .protefor-section {
    max-width: 1200px;
    margin: 0 auto;
}

.protefor-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.protefor-section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--protefor-blue);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.protefor-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--protefor-yellow);
    border-radius: 2px;
}

.protefor-section-subtitle {
    font-size: 1.125rem;
    color: var(--protefor-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* CATEGORIES SECTION */
.protefor-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.protefor-category-card {
    background-color: var(--protefor-white);
    border: 1px solid var(--protefor-border);
    border-radius: var(--protefor-radius);
    padding: 30px 24px;
    text-align: center;
    transition: var(--protefor-transition);
    box-shadow: var(--protefor-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
}

.protefor-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: transparent;
    transition: var(--protefor-transition);
}

.protefor-category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--protefor-shadow-hover);
    border-color: rgba(4, 86, 109, 0.2);
}

.protefor-category-card:hover::before {
    background-color: var(--protefor-yellow);
}

.protefor-category-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--protefor-blue-rgba);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--protefor-transition);
}

.protefor-category-card:hover .protefor-category-icon-wrapper {
    background-color: var(--protefor-yellow-rgba);
    transform: scale(1.1);
}

.protefor-category-icon-wrapper svg {
    width: 36px;
    height: 36px;
    fill: var(--protefor-blue);
    transition: var(--protefor-transition);
}

.protefor-category-card:hover .protefor-category-icon-wrapper svg {
    fill: var(--protefor-blue-dark);
}

.protefor-category-info {
    flex-grow: 1;
}

.protefor-category-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--protefor-blue);
    margin-bottom: 10px;
}

.protefor-category-desc {
    font-size: 0.9rem;
    color: var(--protefor-gray);
    margin-bottom: 20px;
}

.protefor-category-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--protefor-blue);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--protefor-transition);
}

.protefor-category-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: var(--protefor-transition);
}

.protefor-category-card:hover .protefor-category-link {
    color: var(--protefor-yellow-dark);
}

.protefor-category-card:hover .protefor-category-link svg {
    transform: translateX(4px);
}

/* DIFFERENTIALS SECTION */
.protefor-differentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.protefor-differential-card {
    background-color: var(--protefor-white);
    border-radius: var(--protefor-radius);
    padding: 35px 25px;
    transition: var(--protefor-transition);
    border: 1px solid var(--protefor-border);
    box-shadow: var(--protefor-shadow);
    text-align: left;
    height: 100%;
}

.protefor-differential-card:hover {
    box-shadow: var(--protefor-shadow-hover);
    border-color: rgba(250, 208, 98, 0.3);
    background-color: var(--protefor-blue-rgba-soft);
}

.protefor-diff-icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: var(--protefor-radius-sm);
    background-color: var(--protefor-blue-rgba);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--protefor-transition);
}

.protefor-differential-card:hover .protefor-diff-icon-wrapper {
    background-color: var(--protefor-yellow);
}

.protefor-diff-icon-wrapper svg {
    width: 28px;
    height: 28px;
    fill: var(--protefor-blue);
    transition: var(--protefor-transition);
}

.protefor-differential-card:hover .protefor-diff-icon-wrapper svg {
    fill: var(--protefor-blue-dark);
}

.protefor-diff-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--protefor-blue);
    margin-bottom: 12px;
}

.protefor-diff-desc {
    font-size: 0.95rem;
    color: var(--protefor-gray);
    line-height: 1.5;
}

/* CTA B2B (EMPRESAS) SECTION */
.protefor-cta-b2b-section {
    background: linear-gradient(135deg, var(--protefor-blue) 0%, var(--protefor-blue-dark) 100%);
    border-radius: var(--protefor-radius);
    padding: 60px 40px;
    color: var(--protefor-white);
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(4, 86, 109, 0.2);
    position: relative;
    overflow: hidden;
}

.protefor-cta-b2b-section::before {
    content: '';
    position: absolute;
    right: -10%;
    top: -50%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(250, 208, 98, 0.1) 0%, transparent 65%);
    pointer-events: none;
}

.protefor-cta-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.protefor-cta-content {
    flex: 1;
    max-width: 650px;
}

.protefor-cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--protefor-yellow);
    margin-bottom: 15px;
}

.protefor-cta-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.protefor-cta-actions {
    flex-shrink: 0;
}

.protefor-btn-alt {
    background-color: var(--protefor-yellow);
    color: var(--protefor-dark) !important;
}

.protefor-btn-alt:hover {
    background-color: var(--protefor-white);
    color: var(--protefor-blue) !important;
}

/* FOOTER CUSTOM */
.protefor-custom-footer {
    border-top: 1px solid var(--protefor-border);
    padding: 40px 20px;
    margin-top: 60px;
    text-align: center;
    background-color: var(--protefor-white);
}

.protefor-footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.protefor-footer-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--protefor-blue);
    margin-bottom: 10px;
}

.protefor-footer-logo span {
    color: var(--protefor-yellow-dark);
}

.protefor-footer-text {
    font-size: 0.9rem;
    color: var(--protefor-gray);
    margin-bottom: 0;
}

/* RESPONSIVENESS */
@media (max-width: 991px) {
    .protefor-cta-grid {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .protefor-cta-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .protefor-hero {
        padding: 70px 20px;
    }
    .protefor-hero-title {
        font-size: 2.5rem;
    }
    .protefor-hero-subtitle {
        font-size: 1.2rem;
    }
    .protefor-section {
        padding: 50px 20px;
    }
    .protefor-section-title {
        font-size: 1.75rem;
    }
    .protefor-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    .protefor-differentials-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    .protefor-cta-b2b-section {
        padding: 40px 25px;
    }
    .protefor-cta-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .protefor-hero-title {
        font-size: 2rem;
    }
    .protefor-btn {
        width: 100%;
        padding: 14px 20px;
    }
}
