/* General Body Styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

/* Container for responsive layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between; /* Distribute items */
    align-items: center;
    /* Removed flex-wrap: wrap; to keep them on one line on desktop */
}

.logo img {
    max-height: 60px; /* Adjust as needed */
    width: auto;
    border-radius: 8px; /* Rounded corners for the logo */
}

.contact-info {
    text-align: right;
    /* Removed margin-left: auto; from here */
    padding: 10px;
}

.contact-info a {
    color: #007bff; /* Blue for phone number */
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    padding: 8px 15px;
    border: 2px solid #007bff;
    border-radius: 25px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-info a:hover {
    background-color: #007bff;
    color: #fff;
}

/* Navigation Styles */
nav {
    margin-left: auto; /* Pushes nav and contact-info to the right, keeping nav to the left of contact-info */
    margin-right: 20px; /* Add some space between nav and contact info */
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap; /* Allow menu items to wrap */
    justify-content: center; /* Center align menu items */
}

.nav-list li {
    margin: 5px 10px;
}

.nav-list a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 8px 15px;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 5px;
}

.nav-list a:hover,
.nav-list a.active {
    color: #007bff;
    background-color: #e9f5ff;
}

/* Styles for the dropdown menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none; /* Hidden by default */
    position: absolute;
    background-color: #f9f9f9;
    min-width: 250px; /* Adjust width as needed */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 8px;
    padding: 10px 0;
    top: 100%; /* Position below the parent link */
    left: 0;
}

/* Show the dropdown content when the 'show' class is added by JavaScript */
.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    color: #333 !important; /* Override parent link color */
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    border-radius: 0; /* Remove rounded corners for individual items */
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: #e9f5ff !important;
    color: #007bff !important;
}

/* Ensure active state works for dropdown parent */
.dropdown > a.active {
    color: #007bff;
    background-color: #e9f5ff;
}

/* Style for the caret icon rotation */
.dropdown .fas.fa-caret-down {
    transition: transform 0.3s ease;
}

.dropdown .fas.fa-caret-down.rotate {
    transform: rotate(180deg);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/header_home.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    /* Removed border-radius and margin-auto to make it full width */
    /* Removed max-width: 1200px; */
    position: relative;
    overflow: hidden; /* Ensures rounded corners apply correctly */
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Section Styles */
section {
    padding: 60px 0;
    background-color: #fff;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

section h1 {
color: #007bff;
}

section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    color: #007bff;
}

.section-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.section-content.reverse {
    flex-direction: row-reverse; /* For alternating image/text */
}

.section-text, .section-image {
    flex: 1;
    min-width: 300px; /* Ensure content doesn't get too squished */
}

.section-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Service Cards */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px;
}

.service-card {
    background-color: #f0f8ff; /* Light blue background */
    border: 1px solid #e0efff;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.service-card img {
    width: 200px;
    height: 200px;
    margin-bottom: 5px;
    border-radius: 50%; /* Circular images */
    object-fit: cover;
    border: 3px solid #007bff;
}

.service-card h3 {
    color: #007bff;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.95em;
    color: #555;
}

/* Why Choose Us Section */
.why-choose-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.reason-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.reason-card h3 {
    color: #007bff;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.reason-card p {
    font-size: 0.9em;
    color: #666;
}

/* Contact Form Styles */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: calc(100% - 20px); /* Account for padding */
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    background-color: #007bff;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.contact-form button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.contact-details {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background-color: #e9f5ff;
    border-radius: 10px;
}

.contact-details p {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.contact-details a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.contact-details a:hover {
    text-decoration: underline;
}


/* Footer Styles */
footer {
    background-color: #222;
    color: #fff;
    padding: 40px 0;
    text-align: center;
    /* Removed border-radius and margin-auto to make it full width */
    /* Removed max-width: 1200px; */
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    gap: 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin: 10px;
    text-align: left;
}

.footer-section h3 {
    color: #007bff;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.footer-section p,
.footer-section ul {
    font-size: 0.9em;
    color: #ccc;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #007bff;
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    display: inline-block;
    margin: 0 10px;
    color: #fff;
    font-size: 1.5em;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #007bff;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.85em;
    color: #aaa;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .header-content {
        flex-direction: row; /* Change to row to keep logo and burger on the same line */
        justify-content: space-between; /* Space out logo and burger */
        align-items: center; /* Vertically align them */
        text-align: left; /* Align text within header-content for logo */
    }

    /* Ensure logo and mobile-menu are correctly ordered and spaced within the row */
    .logo {
        order: 1; /* Keep logo first */
        margin-right: auto; /* Push logo to the left, and push other items away */
    }

    .mobile-menu {
        order: 2; /* Place mobile menu after logo */
        margin-left: auto; /* Push burger to the far right */
        display: block; /* Ensure burger is always visible on mobile */
    }

    .contact-info {
        display: none; /* Keep hidden on mobile, as per previous request */
    }
	
	.page-hero {
        display: none; /* Keep hidden on mobile, as per previous request */
    }

    /* Navigation menu behavior on mobile */
    nav {
        margin-top: 0; /* Reset margin */
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        order: unset; /* Remove specific order as it will now be hidden/shown */
        position: absolute; /* Position the nav menu absolutely */
        top: 100%; /* Place it below the header */
        left: 0;
        background-color: #fff; /* Background for the mobile menu */
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 999;
        display: none; /* Hidden by default, shown by JS */
        max-height: 0; /* Start with 0 height for animation */
        overflow: hidden; /* Hide overflow content */
        transition: max-height 0.3s ease-out; /* Smooth transition */
    }

    .nav-menu.active {
        display: block; /* Show the nav menu when active */
        max-height: 1500px; /* Adjust as needed, large enough to contain all menu items */
    }

    .nav-list {
        flex-direction: column; /* Stack menu items vertically */
        width: 100%;
        padding: 10px 0;
        align-items: flex-start; /* Align list items to the start */
    }

    .nav-list li {
        margin: 0; /* Remove horizontal margin */
        width: 100%;
        text-align: left; /* Align text within each list item */
    }

    .nav-list a {
        display: block;
        padding: 12px 20px; /* Adjust padding for mobile links */
        border-bottom: 1px solid #eee; /* Separator for menu items */
    }
    .nav-list li:last-child a {
        border-bottom: none; /* No border for the last item */
    }

    /* Responsive adjustments for dropdown on mobile */
    .dropdown-content {
        position: static; /* Stack on mobile */
        width: 100%;
        box-shadow: none;
        border-top: 1px solid #eee;
        padding: 0;
    }
    .dropdown-content a {
        padding-left: 40px; /* Indent submenu items more */
        background-color: #f5f5f5; /* Slightly different background for sub-items */
    }

    /* Burger menu basic styling - ensures it's always block on mobile */
    .burger-menu {
        display: block;
        font-size: 2rem;
        background: none;
        border: none;
        cursor: pointer;
        color: #007bff;
        margin: 0;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 40px 0;
    }
    section h2 {
        font-size: 2em;
    }
    .section-content {
        flex-direction: column;
    }
    .section-content.reverse {
        flex-direction: column; /* Reset for small screens */
    }
    .service-grid, .why-choose-us-grid {
        grid-template-columns: 1fr;
    }
    .footer-section {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 15px;
    }
    .hero h1 {
        font-size: 2em;
    }
    .hero p {
        font-size: 1em;
    }
    .btn-primary {
        padding: 12px 25px;
        font-size: 1em;
    }
    .contact-info a {
        font-size: 1em;
        padding: 6px 12px;
    }
}

/* Hide burger by default */
.burger-menu {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #007bff;
    margin: 0;
    padding: 0 20px;
}

/* Show burger on smaller screens */
@media (max-width: 992px) {
    .burger-menu {
        display: block;
    }

    .nav-menu {
        display: none;
        width: 100%;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
    }

    .nav-list li {
        text-align: center;
        width: 100%;
    }
}


@media (max-width: 992px) { /* This breakpoint matches the existing one for header content stacking */
    /* ... (existing CSS for this breakpoint) ... */

    .contact-info {
        display: none; /* Hide the contact info div on screens up to 992px wide */
    }
}

.success-message {
    background-color: #d4edda; /* Light green background */
    color: #155724; /* Dark green text color */
    border: 1px solid #c3e6cb; /* Green border */
    padding: 15px; /* Padding around the message */
    margin-bottom: 20px; /* Space below the message */
    border-radius: 5px; /* Slightly rounded corners */
    text-align: center; /* Center the text */
    font-weight: bold; /* Make the text bold */
}

.error-message {
    background-color: #f8d7da; /* Light red background */
    color: #721c24; /* Dark red text color */
    border: 1px solid #f5c6cb; /* Red border */
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}