/* Global Variables */
:root {
    --primary-color: #1A3E5E;
    --accent-color: #C9A25E;
    --text-color: #333333;
    --bg-light: #F5F6F7;
    --bg-white: #FFFFFF;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition-speed: 0.3s;
    --container-width: 1200px;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* Sticky Header */
.header {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    width: 100%;
    display: block;
    background-color: transparent;
    height: auto;
    box-shadow: none;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: white;
}

/* Button Width Fix */
.btn {
    display: inline-block;
    width: fit-content;
    padding: 10px 20px;
    /* Ensure padding consistency */
}

.logo img {
    max-height: 60px;
    width: auto;
    display: block;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}


/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    top: 100%;
    left: 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: var(--primary-color);
}

/* Horizontal Scroll Snap (Services) */
.horizontal-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.horizontal-scroll-container::-webkit-scrollbar {
    display: none;
}

.scroll-card {
    flex: 0 0 300px;
    /* Default: Index page behavior (multi-card) */
    scroll-snap-align: start;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Services Page Specific Slider */
.service-full-slider .scroll-card {
    flex: 0 0 100%;
    /* Show one card at a time */
    flex-direction: row;
    /* Image right, text left (or vice versa based on HTML order) */
    align-items: center;
    height: 400px;
    /* Taller for full view */
}

.service-full-slider .scroll-card img {
    width: 50%;
    height: 100%;
    order: 2;
    /* Image on right */
}

.service-full-slider .scroll-card-content {
    width: 50%;
    order: 1;
    /* Text on left */
    justify-content: center;
    padding: 40px;
    text-align: left;
}

/* Mobile adjustments for full slider */
@media (max-width: 768px) {
    .service-full-slider .scroll-card {
        flex-direction: column;
        height: auto;
    }

    .service-full-slider .scroll-card img,
    .service-full-slider .scroll-card-content {
        width: 100%;
        order: unset;
    }

    .service-full-slider .scroll-card img {
        height: 200px;
    }
}


.scroll-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.scroll-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Image Slider (Properties/Projects) */
.image-slider-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    height: 100%;
}

.slider-slide {
    min-width: 100%;
    height: 100%;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}
/* Responsive Design / Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001; /* Above mobile menu */
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        height: 100vh; /* Full viewport height */
        text-align: center;
        transition: 0.3s;
        z-index: 1000;
        padding-top: 80px; /* Space for header */
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 16px 0;
    }

    .nav-link {
        font-size: 1.2rem;
        display: block;
        padding: 15px;
    }
    
    /* Ensure dropdowns work on mobile */
    .dropdown-content {
        position: static;
        box-shadow: none;
        width: 100%;
        text-align: center;
        padding-top: 10px;
        display: none; /* Keep hidden until interaction */
        background-color: var(--bg-light);
    }

    .dropdown:hover .dropdown-content,
    .dropdown.active .dropdown-content { /* Fallback for click */
        display: block;
    }
    
    /* Ensure WhatsApp button is visible on mobile */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 28px;
        z-index: 2000; /* Highest priority */
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Sticky Top Bar */
.top-bar {
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-align: center;
    padding: 10px 0;
    font-weight: 700;
    font-size: 0.9rem;
    position: sticky;
    top: 0;
    z-index: 1002; /* Above header and mobile menu */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.top-bar a {
    text-decoration: underline;
    color: var(--primary-color);
}

.top-bar a:hover {
    color: white;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.trust-badge {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Social Icons in Footer */
.social-links {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent-color);
}


/* Testimonial Slider */
.testimonial-slider-container {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
}

.testimonial-track {
    display: flex;
    gap: 30px;
    animation: scroll 40s linear infinite;
    width: max-content; /* Ensure it fits all cards */
}

.testimonial-track:hover {
    animation-play-state: paused;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 350px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    flex-shrink: 0;
    text-align: center;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Assumes we duplicate content or have enough to scroll. For simple loop, scrolling halfway if duplicated is best, but for now simple scroll */
}


/* Sticky Top Bar - Above Header Fix */
body {
    padding-top: 0; /* Remove any default padding */
}

.top-bar {
    position: fixed; /* Changed from sticky to fixed */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1003; /* Higher than header */
}

.header {
    top: 45px; /* Push header down by top-bar height */
}

/* Trust Badges - High Contrast, No Box */
.trust-badges {
    background: transparent !important;
    box-shadow: none !important;
}

.trust-badge {
    background: transparent !important;
    color: white !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    box-shadow: none !important;
    border: 2px solid rgba(255,255,255,0.5);
    padding: 8px 20px !important;
}


/* Remove rounded boxes from trust badges */
.trust-badge {
    border-radius: 0 !important;
    border: 2px solid rgba(255,255,255,0.8) !important;
}

/* High contrast city badges in geo section */
.section .trust-badges .trust-badge {
    background: var(--accent-color) !important;
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    border: 2px solid var(--primary-color) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Auto-scrolling for services section on index */
.services-auto-scroll {
    overflow: hidden;
    width: 100%;
}

.services-auto-scroll .horizontal-scroll-container {
    overflow-x: visible;
}

.services-auto-scroll .horizontal-scroll-container::-webkit-scrollbar {
    display: none;
}



/* Floating Social Media Icons */
.social-float {
    position: fixed;
    width: 56px;
    height: 56px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent-color), #d4a854);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.social-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.instagram-float {
    bottom: 160px;
    background: linear-gradient(135deg, #E1306C, #F77737, #FCAF45);
}

.facebook-float {
    bottom: 230px;
    background: linear-gradient(135deg, #1877F2, #4267B2);
}

/* Adjust WhatsApp button if present */
.whatsapp-float {
    bottom: 90px !important;
}

@media (max-width: 768px) {
    .social-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        right: 15px;
    }
    
    .instagram-float {
        bottom: 140px;
    }
    
    .facebook-float {
        bottom: 200px;
    }
    
    .whatsapp-float {
        bottom: 80px !important;
    }
}


/* Bold navigation menu text */
.nav-link {
    font-weight: 700 !important;
}


/* Remove ALL boxes from trust badges */
.trust-badge {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 10px 20px !important;
    border-radius: 0 !important;
}

/* High contrast white text for badges in hero */
.hero .trust-badge {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
}

/* City badges with solid backgrounds */
.section .trust-badge {
    background: var(--accent-color) !important;
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    padding: 10px 25px !important;
    border-radius: 4px !important;
}


/* Override city badges - no background, only styled text */
.section .trust-badge {
    background: transparent !important;
    color: var(--accent-color) !important;
    font-weight: 700 !important;
    padding: 10px 20px !important;
    border-radius: 0 !important;
    font-size: 1.1rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* City badges - text only, no background or boxes */
.section .trust-badge {
    background: transparent !important;
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    padding: 5px 15px !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    font-size: 1.1rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Rocket icon sizing in top bar */
.top-bar i.fa-rocket {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .top-bar i.fa-rocket {
        font-size: 0.85rem;
        margin-right: 5px !important;
    }
    
    .top-bar span {
        font-size: 0.85rem;
    }
}


/* Services slider uses same testimonial styles */
.services-slider .testimonial-card {
    min-width: 320px;
    text-align: center;
}

.services-slider h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.services-slider .btn {
    width: fit-content;
    margin: 10px auto 0;
}


/* CRITICAL: Override city badge backgrounds - highest priority */
.trust-badges .trust-badge,
div.trust-badges div.trust-badge,
section .trust-badges .trust-badge {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 5px 15px !important;
    border-radius: 0 !important;
}

/* Geo section city badges - text only, blue color */
section.section .trust-badges .trust-badge,
.section .trust-badges .trust-badge {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none !important;
    box-shadow: none !important;
}

/* Mobile: Adjust header position to avoid sticky bar overlap */
@media (max-width: 768px) {
    .header {
        top: 50px !important; /* Increased spacing for mobile */
        margin-top: 0;
    }
    
    body {
        padding-top: 50px; /* Account for fixed sticky bar */
    }
    
    .top-bar {
        height: 50px;
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .top-bar span {
        font-size: 0.8rem;
    }
    
    .top-bar a {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}


/* Fix social icons cutoff on mobile - adjust positioning */
@media (max-width: 768px) {
    .social-float {
        right: 10px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 22px !important;
    }
    
    .instagram-float {
        bottom: 130px !important;
    }
    
    .facebook-float {
        bottom: 185px !important;
    }
    
    .whatsapp-float {
        bottom: 75px !important;
    }
}


/* Fix newsletter subscribe button width on mobile */
@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column !important;
        gap: 10px;
    }
    
    .newsletter-form input[type='email'] {
        width: 100% !important;
    }
    
    .newsletter-form button,
    .newsletter-form .btn {
        width: 100% !important;
        max-width: 100% !important;
    }
}


/* CRITICAL: Newsletter form mobile fix - override inline styles */
@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 0 20px;
    }
    
    .newsletter-form input[type="email"] {
        width: 100% !important;
        flex: none !important;
        box-sizing: border-box;
    }
    
    .newsletter-form button,
    .newsletter-form .btn {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
    }
}
