/* --- BRAND VARIABLES --- */
:root {
    --primary: #82b436;
    --primary-dark: #6e9a2d;
    --dark: #111111;
    --white: #ffffff;
    --light-bg: #f9f9f9;
    --gray: #666666;
    --border-color: #eeeeee;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-smooth: all 0.4s ease;
    --primary-glow: rgba(130, 180, 54, 0.3);
    --midnight: #0f172a;
    --text-main: #334155;
    --slate: #64748b;
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
}

/* --- 1. SHARED CORE --- */
html { 
    overflow-y: scroll; /* Forces scrollbar gutter to prevent 'logo jump' */
}

/* --- GLOBAL CONTAINER --- */
.container {
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 25px; 
}

/* --- 2. UNIVERSAL NAVBAR --- */
.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 5% !important; /* Standardized padding */
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 99999 !important; 
    background: #ffffff; 
    height: 100px; /* Standardized height */
    transition: all 0.4s ease-in-out; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Consolidated Nav Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    margin: 0 auto; /* This centers the nav links between logo and button */
}

/* The shrinking effect logic */
.navbar.scrolled {
    height: 80px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    padding: 5px 0;
    flex-shrink: 0; /* Prevent logo from shrinking */
}

.agency-logo {
    height: 80px;      /* Standardized logo height */
    width: auto;       
    max-width: 200px;  
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar.scrolled .agency-logo {
    height: 60px; 
    transition: 0.4s;
}

/* Navigation Buttons on Top Right */
.slider-nav { display: flex; gap: 10px; }
.nav-btn { background: #1a1a1a; color: white; border: none; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; font-size: 0.9rem; transition: 0.3s; display: flex; align-items: center; justify-content: center; }
.nav-btn:hover { background: #82b436; transform: scale(1.05); }

.btn-consultation { 
    background: #1a1a1a; 
    color: white; 
    padding: 14px 30px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 800; 
    transition: 0.3s; 
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.btn-consultation:hover { 
    background: #82b436; 
}

.pulse { animation: pulse-green 2s infinite; }
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(130, 180, 54, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(130, 180, 54, 0); }
    100% { box-shadow: 0 0 0 0 rgba(130, 180, 54, 0); }
}

/* --- FOOTER & UTILS --- */
/* Footer basic reset moved to bottom */
.btt-btn { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; border-radius: 50%; background: #82b436; color: #fff; border: none; cursor: pointer; opacity: 0; transition: 0.3s; z-index: 1001; }
.btt-btn.visible { opacity: 1; }
.reveal { opacity: 0; transform: translateY(30px); transition: 1s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }


.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    transition: 0.3s;
    /* 1. Added relative position to anchor the line */
    position: relative; 
    /* 2. Added small padding so the line doesn't touch the letters */
    padding: 4px 0; 
}

/* 3. Create the green line (Invisible by default) */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #82b436; /* Your brand green */
    transition: width 0.3s ease-in-out;
}

/* 4. Make the line grow to 100% on hover */
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active, 
.nav-links a:hover {
    color: #82b436;
}

/* --- RESPONSIVE DESIGN --- */

/* HAMBURGER MENU ICON */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

/* TABLET & MOBILE BREAKPOINT */
@media (max-width: 992px) {
    .navbar {
        padding: 0 5% !important;
        min-height: 100px;
    }
    
    .hamburger {
        display: flex;
        z-index: 100001; /* Above mobile menu */
    }

    /* MOBILE MENU STYLES */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden by default */
        width: 70%;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s ease;
        z-index: 100000;
        padding-top: 60px;
        margin: 0; /* Reset margin for mobile */
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0; /* Slide in */
    }

    .nav-links li {
        margin: 15px 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
    }

    /* ANIMATE HAMBURGER TO X */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    /* STACK FOOTER COLUMNS */
    .footer-grid {
        grid-template-columns: 1fr; /* Single column */
        text-align: center;
        gap: 30px;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%); /* Center the underline if you had one */
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Mobile (Max Width 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 20px; /* Adjust container padding for mobile */
    }

    .stats-flex {
        grid-template-columns: 1fr !important; /* Force stack stats */
    }
    
    .hero-btns {
        flex-direction: column;
        padding: 0 40px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn-consultation {
        display: none; /* Hide consultation button on mobile if desired, or move into menu */
    }
    
    .navbar {
        height: 80px !important;
    }
    
    .agency-logo {
        height: 50px !important;
    }
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    transition: 0.3s;
    position: relative; /* Anchor for the line */
    padding-bottom: 5px; /* Creates space for the line without shifting text */
}

/* Create the green line (hidden by default) */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #82b436; /* Your brand green */
    transition: width 0.3s ease-in-out;
}

/* Animate the line to 100% width on hover and for the active link */
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Keep the text color change you already had */
.nav-links a.active, 
.nav-links a:hover {
    color: #82b436;
}

/* --- MODERN PROFESSIONAL FOOTER --- */
.footer {
    background-color:#ebeaeb;
    color: #ffffff;
    padding: 80px 0 30px;
    border-top: 1px solid #333;
    text-align: left; /* Ensure left alignment on desktop */
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    height: 80px; /* Ensure this isn't set to 0 */
    margin-bottom: 20px;
}
.footer-description {
    color: #090909;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: #090909;
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col p {
    color: #131212;
}
.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #131212;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: #82b436; /* Your brand green */
    padding-left: 5px;
}

/* Newsletter Input */
.footer-form {
    display: flex;
    margin-top: 15px;
}

.footer-form input {
    background: #2a2a2a;
    border: 1px solid #444;
    padding: 10px 15px;
    color: #fff;
    border-radius: 5px 0 0 5px;
    outline: none;
    width: 100%;
}

.footer-form button {
    background: #82b436;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-weight: 700;
}

/* Bottom Bar */
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #777;
    font-size: 0.85rem;
}

.footer-legal a {
    color: #777;
    text-decoration: none;
    margin-left: 20px;
}

/* Container styling */
.social-links {
    display: flex;            /* Positions items side-by-side */
    gap: 20px;                /* Creates even space between icons */
    align-items: center;      /* Vertically centers icons */
    padding: 15px 0;
}

/* Individual Icon Styling */
.footer-social {
    text-decoration: none;    /* Removes underline */
    color: #000000;           /* Initial color: Black (Matches your logo) */
    font-size: 24px;          /* Sets the icon size */
    transition: all 0.3s ease; /* Smooth color and movement transition */
    display: inline-block;
}

/* Hover Effect: The "Agency Green" Pop */
.footer-social:hover {
    color: #28a745;           /* Changes color to Green on hover */
    transform: translateY(-3px); /* Subtle lift effect */
}

/* Optional: Specifically size the Font Awesome icons inside */
.footer-social i {
    display: block;
}

/* --- FOOTER RESPONSIVE --- */

/* Tablet (Max Width 992px) */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr; /* 2 Columns */
        gap: 40px;
    }
}

/* Mobile (Max Width 768px) */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* 1 Column */
        text-align: center;
        gap: 30px;
    }
    
    .footer-form {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .social-links {
        justify-content: center;
        display: flex;
        gap: 15px;
    }
}

/* --- ENHANCED LOGO STYLES - CLEANUP --- */
/* Removed redundant navbar re-definitions to prevent conflicts */

/* Subtle hover effect for the logo */
.agency-logo:hover {
    transform: scale(1.05);
}

/* Adjust the scrolled logo size - specific override */
.navbar.scrolled .agency-logo {
    height: 60px; 
    transition: 0.4s; 
}
