:root {
    --primary: #E31E24;
    --secondary: #111111;
    --dark: #000000;
    --white: #FFFFFF;
    --yellow: #FFD100;
    --grey: #F4F4F4;
}

* { box-sizing: border-box; margin: 0; padding: 0; scroll-behavior: smooth; }
body { font-family: 'Outfit', sans-serif; background-color: var(--grey); color: var(--secondary); line-height: 1.6; padding-bottom: 70px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Scroll Reveal */
.scroll-reveal { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: 1s cubic-bezier(0.5, 0, 0, 1);
    will-change: transform, opacity;
}
.scroll-reveal.revealed { opacity: 1; transform: translateY(0); }

/* Header & Nav */
.sticky-header { background: var(--dark); color: white; padding: 12px 0; position: sticky; top: 0; z-index: 1000; border-bottom: 2px solid #222; }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -1px; }
.logo span { color: var(--primary); }

.header-nav { display: flex; gap: 20px; }
.header-nav a { color: white; text-decoration: none; font-weight: 600; font-size: 0.9rem; opacity: 0.7; transition: 0.3s; }
.header-nav a:hover { opacity: 1; color: var(--primary); }

.btn-emergency { background: var(--primary); color: white; text-decoration: none; padding: 10px 20px; border-radius: 5px; font-weight: 600; font-size: 0.9rem; }

/* Hero */
.hero { height: 85vh; display: flex; align-items: center; color: white; text-align: center; position: relative; overflow: hidden; }
.hero-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; transform: translate(-50%, -50%); object-fit: cover; z-index: 1; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 2; }
.hero-content { z-index: 3; max-width: 900px; margin: 0 auto; }
.hero h1 { font-size: 4.5rem; font-weight: 800; text-transform: uppercase; margin-bottom: 20px; letter-spacing: -2px; }
.hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 600px; margin: 0 auto; }

/* Bars */
.stats-bar { background: var(--secondary); color: white; padding: 40px 0; border-bottom: 1px solid #333; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat-item strong { display: block; font-size: 2.5rem; font-weight: 800; }

.badges-strip { background: #EAEAEA; padding: 20px 0; text-align: center; }
.badges-grid { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.badge-item { font-weight: 800; color: #555; text-transform: uppercase; font-size: 0.8rem; display: flex; align-items: center; gap: 8px; }
.badge-item i { color: var(--primary); font-size: 1.2rem; }

/* Compact Sections (Performance Optimized) */
section { 
    padding: 60px 0; 
    background: white; 
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}
.section-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 40px; text-align: center; }

/* Specific Overrides */
.process { background: #fff; text-align: center; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.process-icon { width: 80px; height: 80px; background: var(--grey); color: var(--primary); display: flex; align-items: center; justify-content: center; border-radius: 50%; margin: 0 auto 20px; border: 2px dashed #ccc; font-size: 2rem; }

.services { background: var(--grey); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: white; padding: 40px; border-radius: 20px; border-top: 6px solid var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.05); cursor: pointer; transition: 0.3s; }
.service-card:hover { transform: translateY(-10px); }

.sectors { background: white; text-align: center; }
.sectors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.sector-item i { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }

.trust { background: var(--secondary); color: white; text-align: center; padding: 40px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; }
.trust-item i { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; }

.emergency-strip { background: var(--primary); color: white; padding: 60px 0; text-align: center; }
.strip-actions { display: flex; justify-content: center; gap: 20px; margin-top: 30px; }

.faq { background: white; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #eee; padding: 25px 0; cursor: pointer; }
.faq-answer { max-height: 0; overflow: hidden; transition: 0.3s; color: #666; }
.faq-item.active .faq-answer { max-height: 100px; margin-top: 15px; }

.coverage { background: var(--grey); text-align: center; }
.communes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 30px; }
.communes-grid span { background: white; border: 1px solid #ddd; padding: 8px; border-radius: 4px; font-size: 0.8rem; color: #555; }
.coverage-cta-strip { margin-top: 30px; font-weight: 800; color: var(--primary); font-size: 1rem; }

/* Mobile Action Bar */
.mobile-action-bar { position: fixed; bottom: 0; left: 0; width: 100%; background: var(--secondary); display: none; grid-template-columns: repeat(3, 1fr); z-index: 5000; box-shadow: 0 -5px 20px rgba(0,0,0,0.3); }
.action-btn { color: white; text-decoration: none; text-align: center; padding: 15px 5px; font-weight: 800; font-size: 0.8rem; display: flex; flex-direction: column; gap: 5px; border-right: 1px solid #333; }
.action-btn.wa { background: #25D366; }
.action-btn.call { background: var(--primary); }

/* Modal Performance */
.modal { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.8); 
    z-index: 9000; 
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.3s ease; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    backdrop-filter: blur(8px);
    will-change: opacity;
}
.modal.active { opacity: 1; pointer-events: all; }
.modal-content { background: white; width: 90%; max-width: 550px; padding: 50px; border-radius: 30px; position: relative; border-top: 10px solid var(--primary); }

.btn { padding: 15px 30px; border-radius: 10px; font-weight: 800; text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; }
.btn-whatsapp { background: #25D366; color: white; }
.btn-call { background: var(--primary); color: white; }

.footer { padding: 40px 0; text-align: center; background: #000; color: #666; font-size: 0.9rem; }
.pulse { animation: pulseAnim 2s infinite; }
@keyframes pulseAnim { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

@media (max-width: 900px) {
    .header-nav { display: none; }
    .mobile-action-bar { display: grid; }
    .hero h1 { font-size: 2.5rem; }
    .stats-grid, .process-grid, .trust-grid, .sectors-grid { grid-template-columns: 1fr; }
    .badges-grid { gap: 15px; }
    .section-title { font-size: 2rem; }
}
