/* ===== HERO SECTION ===== */
.e2r-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: clamp(40px, 6vh, 0px) 0;
    min-height: 64vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    animation: fadeIn 1s ease-out;
}

.e2r-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(0, 45, 85, 0.85) 0%,
        rgba(0, 0, 0, 0.75) 50%,
        rgba(0, 45, 85, 0.85) 100%);
    z-index: 1;
}

.e2r-hero .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    width: 100%;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero-logo {
    animation: fadeInDown 1s ease;
}

.hero-logo-img {
    max-width: 180px;
    margin-bottom: 16px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hero-brand {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: 4px;
    padding: 8px 24px;
    display: inline-block;
    animation: fadeInUp 1s ease 0.1s both;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    max-width: 700px;
    margin: 0 auto 35px;
    opacity: 0.95;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.3s both;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-btn-primary {
    background: var(--secondary);
    color: white;
    border: 2px solid var(--secondary);
    padding: 14px 32px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
}

.hero-btn-primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 14px 32px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
}

.hero-btn-secondary:hover {
    background: white;
    color: var(--primary);
    border-color: white;
    transform: translateY(-3px);
}

/* ===== SEÇÃO SOLUÇÕES ===== */
.e2r-solutions {
    padding: 40px 0;
    background: linear-gradient(135deg, var(--surface) 0%, var(--muted) 100%);
    position: relative;
    overflow: hidden;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: -20px auto 50px;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.solution-card {
    position: relative;
    border-radius: 24px;
    padding: 0;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    height: 100%;
    min-height: 500px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Imagens de fundo específicas para cada card */
.solution-card:nth-child(1) {
    background-image: url('https://images.pexels.com/photos/8960987/pexels-photo-8960987.jpeg');
    /* EPIs / Capacete */
}

.solution-card:nth-child(2) {
    background-image: url('https://images.pexels.com/photos/8961261/pexels-photo-8961261.jpeg');
    /* Máquinas / Betoneira */
}

.solution-card:nth-child(3) {
    background-image: url('https://images.pexels.com/photos/5974048/pexels-photo-5974048.jpeg');
    /* Ferramentas */
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.7) 0%, 
        rgba(0, 0, 0, 0.85) 100%);
    z-index: 1;
    transition: all 0.3s ease;
}

.solution-card .card-content {
    position: relative;
    z-index: 2;
    padding: 35px 25px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
}

.solution-card .card-icon {
    width: 100px;
    height: 100px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.solution-card:hover .card-icon {
    transform: scale(1.1);
    border-color: white;
}

.solution-card .card-icon i {
    font-size: 3rem;
    color: white;
}

.solution-card h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    width: 100%;
    text-align: center;
}

.solution-card p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    flex: 1;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 100%;
}

.solution-features {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.solution-features li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
}

.solution-features li:last-child {
    border-bottom: none;
}

.solution-features li i {
    color: var(--secondary);
    font-size: 1.1rem;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

.solution-features li span {
    flex: 1;
    text-align: left;
}

/* ===== RESPONSIVIDADE ===== */
@media screen and (max-width: 992px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .solutions-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .solution-card {
        min-height: 480px;
    }
    
    .solution-card .card-icon {
        width: 80px;
        height: 80px;
    }
    
    .solution-card .card-icon i {
        font-size: 2.5rem;
    }
    
    .solution-card h3 {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 576px) {
    .solution-card {
        min-height: 450px;
    }
    
    .solution-card .card-content {
        padding: 25px 20px;
    }
}

/* ===== SEÇÃO PROJETOS ===== */
.e2r-projects {
    padding: 40px 0;
    background: var(--background);
    position: relative;
    overflow: hidden;
}

.e2r-projects .section-subtitle {
    max-width: 800px;
    margin: -20px auto 50px;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.project-card {
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary);
    box-shadow: 0 20px 40px var(--shadow);
}

.project-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.project-tag {
    background: var(--secondary);
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.project-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.project-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.project-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.project-features li i {
    color: var(--secondary);
    font-size: 0.85rem;
}

/* ===== SEÇÃO SEGURANÇA EM CARDS ===== */
.e2r-safety {
    padding: 40px 0;
    background: linear-gradient(135deg, var(--surface) 0%, var(--muted) 100%);
    position: relative;
    overflow: hidden;
}

.e2r-safety::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 95, 172, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.e2r-safety::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233, 113, 19, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.safety-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.2;
    text-align: center;
}

.safety-title span {
    color: var(--secondary);
    position: relative;
    display: inline-block;
}

.safety-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--secondary);
    opacity: 0.2;
    z-index: -1;
}

.safety-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 50px;
    line-height: 1.6;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards de segurança */
.safety-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.safety-card {
    background: var(--background);
    border-radius: 20px;
    padding: 30px 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px var(--shadow);
}

.safety-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary);
    box-shadow: 0 20px 40px var(--shadow);
}

.safety-card:hover::before {
    height: 100%;
}

.card-icon-wrapper {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.safety-card .feature-icon {
    width: 70px;
    height: 70px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.safety-card:hover .feature-icon {
    transform: scale(1.1);
    border-radius: 50%;
}

.safety-card .feature-icon i {
    font-size: 2.2rem;
    color: white;
}

.safety-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.3;
    text-align: center;
}

.safety-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
    text-align: center;
}

/* Badge de destaque */
.safety-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--secondary);
    color: white;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 auto 50px;
    width: fit-content;
}

.safety-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(233, 113, 19, 0.4);
}

.safety-badge i {
    font-size: 1.3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Estatísticas */
.safety-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.safety-stat {
    background: var(--surface);
    border-radius: 20px;
    padding: 35px 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px var(--shadow);
    position: relative;
    overflow: hidden;
}

.safety-stat:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.safety-stat:hover::after {
    transform: scaleX(1);
}

.safety-stat .stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px var(--shadow);
}

.safety-stat .stat-label {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    display: block;
}

/* ===== RESPONSIVIDADE ===== */
@media screen and (max-width: 992px) {
    .safety-features {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .safety-stats {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }
}

@media screen and (max-width: 768px) {
    .safety-features {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .safety-stats {
        grid-template-columns: 1fr;
        max-width: 350px;
        gap: 15px;
    }
    
    .safety-card {
        padding: 25px 20px;
    }
    
    .safety-badge {
        flex-direction: column;
        text-align: center;
        padding: 15px 25px;
        width: 100%;
        max-width: 350px;
    }
}

@media screen and (max-width: 576px) {
    .safety-title {
        font-size: 1.8rem;
    }
    
    .safety-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    .safety-stat .stat-number {
        font-size: 2.2rem;
    }
    
    .safety-stat .stat-label {
        font-size: 0.9rem;
    }
}

/* ===== ANIMAÇÕES ===== */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.safety-badge i {
    animation: pulse 2s ease-in-out infinite;
}

/* Efeito de brilho nos cards */
.safety-card {
    position: relative;
}

.safety-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.safety-card:hover::after {
    opacity: 1;
}

/* ===== SEÇÃO DIFERENCIAIS ===== */
.e2r-differentials {
    padding: 40px 0;
}

.differentials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.differential-card {
    text-align: center;
    padding: 40px 25px;
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    height: 100%;
}

.differential-card:hover {
    transform: translateY(-8px);
}

.differential-card .card-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.differential-card .card-icon i {
    font-size: 3rem;
    color: white;
}

.differential-card h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.differential-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 4px;
}

.footer-tagline {
    color: var(--text-light);
    font-size: 1rem;
    text-align: center;
}

/* ===== RESPONSIVIDADE ===== */
@media screen and (max-width: 992px) {
    .solutions-grid,
    .differentials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .solutions-grid,
    .differentials-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }

    .brand-highlight {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 30px;
    }

    .media-grid {
        max-width: 450px;
        margin: 0 auto 25px;
    }
}

@media screen and (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .solution-card {
        padding: 25px 20px;
    }

    .solution-card h3 {
        font-size: 1.4rem;
    }

    .differential-card {
        padding: 30px 20px;
    }

    .differential-card h3 {
        font-size: 1.3rem;
    }

    .brand-highlight-logo {
        max-height: 60px;
    }
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}