/* --- GLOBAL VARIABLES --- */
:root {
    --primary-blue: #0056b3;
    --accent-blue: #007bff;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --bg-light: #f4f7f9;
    --max-width: 1100px;
}

/* --- RESET & BASICS --- */
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; padding: 0; line-height: 1.6; color: var(--text-dark); }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* --- BUTTONS --- */
.btn { display: inline-block; background: var(--primary-blue); color: var(--white); padding: 12px 30px; border-radius: 5px; font-weight: bold; }
.btn:hover { background: var(--#37ABDA); }

/* --- HEADER & NAVIGATION --- */
header { background: #37ABDA; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.top-bar { background: var(--primary-blue); color: var(--white); text-align: center; padding: 8px 0; font-size: 0.9rem; }
.nav-container {
    display: flex;
    justify-content: space-between; /* Pushes Logo to left, Menu to right */
    align-items: center;
    padding: 15px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%; /* Add this to ensure it fills the bar */
    box-sizing: border-box; /* Ensures padding doesn't break the width */
}

/* --- LOGO STYLES --- */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px; /* Adjust this height to match your preference */
    width: auto;  /* Maintains aspect ratio so it doesn't squish */
    max-width: 100%;
}

/* On mobile, we make the logo slightly smaller */
@media (max-width: 768px) {
    .logo img { height: 60px; }
}

/* DROPDOWN MENU */
.nav-links { display: flex; gap: 20px; }
.nav-links li { position: relative; }
.nav-links a { font-weight: 500; color: var(--white); padding: 10px 0; display: block; }
.nav-links a:hover { color: var(--text-dark); }

/* Dropdown logic */
.dropdown-content { display: none; position: absolute; background-color: #37ABDA; min-width: 200px; box-shadow: 0 8px 16px rgba(0,0,0,0.1); z-index: 1; top: 100%; left: 0; border-top: 3px solid var(--primary-blue); }
.dropdown-content li { width: 100%; }
.dropdown-content a { padding: 12px 16px; border-bottom: 1px solid #eee; }
.nav-links li:hover .dropdown-content { display: block; }

/* --- HERO CAROUSEL SECTION --- */
.hero-slider {
    position: relative;
    height: 600px; /* Adjust height as needed */
    overflow: hidden;
    color: var(--white);
    text-align: center;
    /* Centering the text content */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The individual slides */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

/* The slide that is currently showing */
.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Dark overlay so text is readable */
.slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 86, 179, 0.6); /* Blue tint overlay */
}

/* The text content sits on top of the images */
.hero-content {
    position: relative;
    z-index: 3;
    padding: 20px;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .hero-slider { height: 400px; }
    .hero-content h1 { font-size: 2rem; }
}

/* --- SECTIONS GENERAL --- */
section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 40px; color: var(--primary-blue); }
.bg-light { background: var(--bg-light); }

/* --- GRID LAYOUTS --- */
/*.grid-4 { display: grid; grid-template-columns: 25% 35% 20% 20%; gap: 30px; }*/
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: 66% 33%; gap: 40px; }
.grid-1 { display: grid; grid-template-columns: 100%; gap: 40px; }

/* Service Card */
.service-card { background: var(--white); padding: 30px; border-radius: 8px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

/* --- PRICING TABLE --- */
.price-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.price-table th, .price-table td { padding: 15px; text-align: left; border-bottom: 1px solid #ddd; }
.price-table th { background-color: var(--primary-blue); color: white; }
.price-table tr:hover { background-color: #f9f9f9; }

/* --- DOWNLOADS LIST --- */
.download-item { display: flex; align-items: center; background: #fff; padding: 20px; margin-bottom: 15px; border-radius: 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.download-icon { font-size: 2rem; color: var(--primary-blue); margin-right: 20px; }

/* --- FOOTER --- */
footer { background: #222; color: #ddd; padding: 50px 0 20px; }
.footer-col h4 { color: var(--white); margin-bottom: 20px; border-bottom: 2px solid #444; padding-bottom: 10px; display: inline-block; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.copyright { text-align: center; border-top: 1px solid #444; padding-top: 20px; margin-top: 40px; font-size: 0.9rem; }
.footer-map iframe { width: 100%; height: 150px; border: 0; border-radius: 5px; }

/* Mobile */
@media (max-width: 768px) {
    .nav-links { display: none; } /* In a real build, you'd add a JS toggle here */
    .hero h1 { font-size: 2rem; }
    .grid-2 { grid-template-columns: 1fr; }
}

/* --- FOOTER GRID SYSTEM --- */

/* Default: 4 Columns for Desktop */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: start; /* Aligns content to the top */
}

/* Tablet (Medium screens): 2 Columns */
@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Mobile (Small screens): 1 Column */
@media (max-width: 600px) {
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center; /* Center text on mobile for better look */
    }
    
    /* Remove the left border/padding on footer headings if you have them */
    .footer-col h4 {
        border-bottom: 2px solid #555;
        padding-bottom: 10px;
        display: inline-block;
    }
}

/* --- FOOTER MAP RESPONSIVENESS --- */
.footer-map {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* Aspect ratio for the map height */
    height: 0;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.footer-map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- MOBILE MENU STYLES --- */

/* 1. Hamburger Icon Styles */
.hamburger {
    display: none; /* Hidden on desktop */
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-blue);
    transition: all 0.3s ease-in-out;
}

/* 2. Mobile Responsive Logic */
@media (max-width: 768px) {
    /* Show the hamburger */
    .hamburger {
        display: block;
    }

    /* Hide the button style on contact link for better alignment in list */
    .contact-btn {
        background: none;
        color: var(--text-dark);
        padding: 10px 0;
        font-weight: 500;
    }

    /* Style the Navigation List to be a Dropdown */
    .nav-links {
        position: absolute;
        top: 100%; /* Pushes it exactly below the header */
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        width: 100%;
        text-align: center;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
        display: none; /* Hidden by default */
        padding: 20px 0;
    }

    /* This class is added by JavaScript to show the menu */
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        width: 100%;
    }

    /* Mobile Dropdowns */
    .dropdown-content {
        position: relative; /* Not absolute on mobile */
        box-shadow: none;
        border: none;
        background: #f9f9f9;
        top: 0;
        padding: 0;
    }
    
    .nav-links li:hover .dropdown-content {
        display: block; /* Shows dropdown when parent is tapped/hovered */
    }
}

/* --- FIX FOR MOBILE MENU VISIBILITY --- */
@media (max-width: 768px) {
    
    /* 1. Force all links in the mobile menu to be Dark Grey */
    .nav-links a {
        color: #333333 !important; /* Force dark text */
        text-align: center;
    }

    /* 2. Fix the Contact Us button specifically */
    /* It was white text on blue background, we change it to dark text on white */
    .nav-links .btn {
        background: none !important;  /* Remove blue background */
        color: #333333 !important;    /* Force text to dark */
        box-shadow: none !important;
        width: 100%;
        display: block;
        border-top: 1px solid #eee;   /* Add a separator line instead */
        border-radius: 0;
    }

    /* 3. Add a little spacing and separators to list items */
    .nav-links li {
        border-bottom: 1px solid #f0f0f0;
        margin: 0 !important;
    }

    .nav-links li a {
        padding: 15px 0; /* Make links easier to tap */
    }

    /* 4. Fix Dropdown Text (Treatments/Downloads) */
    .dropdown-content {
        background-color: #f9f9f9 !important; /* Slightly darker background for sub-menus */
    }
    
    .dropdown-content a {
        color: #555555 !important; /* Slightly lighter grey for sub-items */
        font-size: 0.9rem;
    }
}