/* --- Global Styles & Variables --- */
:root {
    --primary-color: #4CAF50; /* Green */
    --secondary-color: #FF9800; /* Orange */
    --text-color: #333;
    --light-text-color: #666;
    --background-color: #f4f7f6;
    --card-background: #ffffff;
    --footer-background: #333;
    --footer-text-color: #f4f7f6;
    --button-hover-bg: #3e8e41; /* Darker green */
    --form-border-color: #ccc;
    --font-family-primary: 'Nunito', sans-serif;
    --font-family-secondary: 'Open Sans', sans-serif;
}

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

body {
    font-family: var(--font-family-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    scroll-behavior: smooth;
}

h1, h2, h3 {
    font-family: var(--font-family-secondary);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block; /* Remove bottom space */
}

.cta-button, .submit-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 25px; /* Rounded corners */
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover, .submit-button:hover {
    background-color: var(--button-hover-bg);
    transform: translateY(-2px);
}

/* --- Header & Navigation --- */
header {
    background-color: var(--card-background);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.desktop-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.desktop-nav .logo img {
    height: 100px; /* Adjust logo height as needed */
}

.desktop-nav ul {
    list-style: none;
    display: flex;
}

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

.desktop-nav ul li a {
    color: var(--text-color);
    font-weight: bold;
    font-family: var(--font-family-primary);
    transition: color 0.3s ease;
}

.desktop-nav ul li a:hover {
    color: var(--secondary-color);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.mobile-nav-header img {
    height: 40px; /* Adjust logo height as needed */
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
}

.mobile-menu {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: absolute;
    top: 70px; /* Below the header */
    left: 0;
    width: 100%;
    background-color: var(--card-background);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--form-border-color);
}

.mobile-menu.active {
    display: flex; /* Show when active */
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu li a {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: bold;
}

/* --- Hero Section --- */
.hero-section {
    background: url('./images/banner.png') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for better text readability */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #f0f0f0;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* --- Section General Styles --- */
section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 40px auto;
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

section h2 {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 10px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* --- About Us Section --- */
.about-section .about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-image {
    flex-shrink: 0; /* Prevent image from shrinking */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 40%; /* Adjust width as needed */
}

.about-text {
    flex-grow: 1;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--light-text-color);
}

/* --- Services Section --- */
.services-section {
    background-color: var(--primary-color); /* Green background for services */
    color: white;
    text-align: center;
}

.services-section h2 {
    color: white;
}

.services-section h2::after {
    background-color: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: var(--card-background);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    color: var(--text-color);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.service-item img {
    margin: 0 auto 20px auto;
    border-radius: 8px;
    border: 3px solid var(--secondary-color); /* Orange border */
}

.service-item h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.service-item p {
    color: var(--light-text-color);
    font-size: 1rem;
}

/* --- Contact Section --- */
.contact-section {
    background-color: var(--background-color); /* Lighter background */
    padding-top: 30px; /* Less padding top to flow from services */
}

.contact-section h2 {
    color: var(--primary-color);
}

.contact-section h2::after {
    background-color: var(--secondary-color);
}

.contact-info {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-start; /* Align items to the top */
}

.contact-details {
    flex: 1;
    font-size: 1.1rem;
    color: var(--light-text-color);
}

.contact-details p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px; /* Space between icon and text */
}

.contact-details i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.contact-details a {
    color: var(--primary-color);
    font-weight: bold;
}

.contact-details a:hover {
    color: var(--secondary-color);
}

.social-links {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-links p {
    margin-bottom: 0; /* Remove bottom margin for the paragraph */
}

.social-links a {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

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

.contact-map {
    flex: 1;
    background-color: var(--form-border-color); /* Placeholder background */
    border-radius: 8px;
    overflow: hidden; /* Ensure rounded corners apply to content */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- Form Section --- */
.form-section {
    background-color: var(--card-background);
    text-align: center;
    margin-top: 0; /* To connect with contact section visually */
    padding-top: 40px; /* Adjust padding */
}

.form-section p {
    max-width: 700px;
    margin: 0 auto 2rem auto;
    color: var(--light-text-color);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--form-border-color);
    border-radius: 8px; /* Rounded corners */
    font-family: var(--font-family-primary);
    font-size: 1rem;
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.2); /* Orange glow */
}

textarea {
    resize: vertical; /* Allow vertical resizing */
}

.submit-button {
    width: fit-content; /* Button only as wide as its content */
    margin: 20px auto 0 auto; /* Center the button */
}

/* --- Footer --- */
footer {
    background-color: var(--footer-background);
    color: var(--footer-text-color);
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
}

/* --- Responsiveness --- */
@media (max-width: 768px) {
    .desktop-nav {
        display: none; /* Hide desktop nav */
    }

    .mobile-nav {
        display: flex; /* Show mobile nav */
    }

    section {
        margin: 20px auto; /* Reduce margin on smaller screens */
        padding: 40px 15px;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-section {
        height: 60vh;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .about-section .about-content {
        flex-direction: column;
        gap: 20px;
    }

    .about-image {
        width: 80%;
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: 1fr; /* Stack services on small screens */
    }

    .contact-info {
        flex-direction: column;
        align-items: center; /* Center align contact info */
        gap: 30px;
    }

    .contact-details {
        text-align: center; /* Center align text */
        order: 2; /* Move details below map */
    }

    .contact-map {
        width: 100%;
        order: 1; /* Map comes first */
    }

    .contact-details i {
        font-size: 1.1rem;
    }

    .social-links {
        justify-content: center; /* Center social icons */
    }

    .form-section p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.8rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .cta-button, .submit-button {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .service-item {
        padding: 20px;
    }

    .service-item img {
        width: 100px;
        height: 100px;
    }
}
.footer-social-icons {
    margin-top: 10px;
}
.footer-social-icons a {
    margin: 0 8px;
    color: inherit;
    text-decoration: none;
    font-size: 1.2em;
    vertical-align: middle;
}