:root {
    --primary-red: #BE0000;
    --accent-amber: #FFB400;
    --bg-dark: #121214;
    --card-bg: #1A1A1E;
    --text-white: #FFFFFF;
    --text-gray: #A0A0A5;
    --transition: 0.3s ease-in-out;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    font-family: 'Inter', sans-serif;
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Top Info Bar */
.top-info-bar {
    background-color: var(--primary-red);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 0;
    letter-spacing: 1px;
    z-index: 1001;
    position: fixed;
    width: 100%;
    top: 0;
}

.top-info-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.location-tag i,
.coverage-tag i {
    margin-right: 5px;
    opacity: 0.8;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 2rem;
    /* Adjusted for top bar */
    z-index: 1000;
    background: rgba(18, 18, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 50px;
}

.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--card-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 999;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    list-style: none;
    display: flex;
    /* Kept for the flex layout but hidden via right: -100% */
}

.nav-links.active {
    right: 0;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--primary-red);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-instagram-header {
    color: #E1306C;
    font-size: 1.5rem;
    transition: var(--transition);
}

.menu-toggle {
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
}

/* Hero */
.hero {
    padding: 12rem 0 8rem;
    background: radial-gradient(circle at top right, rgba(190, 0, 0, 0.05), transparent);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    text-align: left;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 800px;
    margin-bottom: 3rem;
}

.p1-hero-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform var(--transition);
}

.p1-hero-img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .p1-hero-img {
        max-width: 500px;
        margin: 0 auto;
        transform: none;
    }
}

/* Hub Section */
.hub {
    padding: 8rem 0;
    background: var(--card-bg);
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.hub-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    text-decoration: none;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.hub-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
    background: rgba(255, 255, 255, 0.04);
}

.hub-card.incendio:hover {
    border-color: var(--accent-amber);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.card-icon.red {
    color: var(--primary-red);
}

.card-icon.amber {
    color: var(--accent-amber);
}

.card-icon.white {
    color: white;
}

/* Stats Bar */
.stats {
    padding: 4rem 0;
    background: var(--bg-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h2 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-red);
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
}

/* Footer */
.footer {
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    /* Fixed conflicting display: none that was breaking mobile menu */
    .nav-links {
        width: 85%;
    }

    .hub-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .authority .container {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 3rem !important;
    }

    .top-info-bar {
        font-size: 0.65rem;
        padding: 0.4rem 0;
    }

    .top-info-container {
        flex-direction: column;
        gap: 2px;
    }

    .navbar {
        top: 2.5rem;
    }

    .hero {
        padding-top: 10rem;
    }
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}