:root {
    --primary-color: #7dbf3a; /* Vibrant Green from banner */
    --secondary-color: #333333;
    --accent-color: #e63946; /* Subtle Red from banner */
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --black: #000000;
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --header-height: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* Header & Nav */
.main-header {
    width: 100%;
    position: relative;
    z-index: 1000;
}

.top-bar {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact a {
    margin-right: 20px;
}

.top-social a {
    margin-left: 15px;
}

.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Dropdown Styling */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 10px 0;
    border-radius: 5px;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0 !important;
}

.dropdown-menu a {
    padding: 12px 20px;
    display: block;
    text-transform: none !important;
    font-size: 0.85rem !important;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: var(--light-bg);
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}
/* Service Items on Detail Page */
.service-item {
    padding: 60px 0;
}

.service-item h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.service-item p {
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 25px;
    max-width: 500px;
}

.service-item ul {
    margin-bottom: 35px;
}

.service-item li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.service-item li i {
    margin-right: 12px;
    font-size: 0.9rem;
}

.service-item .btn-primary {
    padding: 15px 40px;
    border-radius: 5px;
    border: none;
    font-size: 1rem;
    letter-spacing: 1px;
}

.service-item img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-style: italic;
}

/* Section Common */
.section {
    padding: 80px 0;
}

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

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

/* Footer */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-info p {
    margin: 20px 0;
    color: #ccc;
}

.footer-links h3, .footer-contact h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    margin-right: 15px;
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* Floating CTAs */
.floating-ctas {
    position: fixed;
    right: 20px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1001;
}

.floating-ctas a {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
}

.cta-whatsapp { background-color: #25d366; }
.cta-phone { background-color: var(--primary-color); }

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-content h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Show only on mobile */
    }

    .nav-links { 
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    
    .nav-links li {
        margin: 15px 0;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding-left: 15px;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    /* Responsive Fixes for All Pages */
    .about-grid, 
    .mission-vision-grid, 
    .calculator-wrapper, 
    .news-card, 
    .stats-grid,
    .service-item,
    .links-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .service-item {
        text-align: center;
    }

    .service-item p {
        margin: 0 auto 25px;
    }

    .service-item li {
        justify-content: center;
    }

    .about-text {
        text-align: center;
        padding-top: 40px;
    }

    .about-text h2 {
        font-size: 2.2rem !important;
    }

    .about-features {
        grid-template-columns: 1fr !important;
    }

    .experience-badge {
        position: relative !important;
        bottom: 0 !important;
        right: 0 !important;
        margin-top: 20px;
        display: inline-block;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .calc-results {
        margin-top: 30px;
    }

    .news-card {
        grid-template-columns: 1fr !important;
    }

    .news-date {
        flex-direction: row !important;
        gap: 15px;
        padding: 15px !important;
    }

    /* Table Responsiveness */
    .doc-table-container {
        overflow-x: auto;
    }

    table {
        min-width: 600px;
    }

    .page-header {
        padding: 60px 0 !important;
    }

    .page-header h1 {
        font-size: 2rem !important;
    }

    .footer-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.5rem; }
    .top-bar .container { justify-content: center; }
    .top-info { display: none; }
}
