/* Universal box-sizing for consistent layout */
html {
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
}

/* General Body and Container Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Ensure all images are responsive by default */
img {
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
    display: block; /* Helps with layout consistency */
}


.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Header and Navigation */
header {
    background: #2c3e50; /* Dark blue/charcoal */
    color: #fff;
    padding: 1rem 0;
    border-bottom: 5px solid #e74c3c; /* Red accent */
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Combined .logo a rules - font styles for text fallback, text-decoration for the link */
.logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.8rem; /* Only applies if text is visible, not the image */
    font-weight: 700;  /* Only applies if text is visible, not the image */
    font-family: 'Oswald', sans-serif; /* Only applies if text is visible, not the image */
}

/* Specific rule for the logo image within the .logo div */
.logo img {
    height: 100px; /* Adjust this value to your desired logo height */
    width: auto; /* Maintain aspect ratio */
    display: block; /* Ensures it behaves nicely in layout */
}


nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    padding: 5px 0;
    transition: color 0.3s ease-in-out, border-bottom 0.3s ease-in-out;
}

nav ul li a:hover,
nav ul li a.active {
    color: #e74c3c; /* Red accent on hover/active */
    border-bottom: 2px solid #e74c3c;
}

/* Hero Section (Homepage) */
.hero {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    overflow: hidden;
    background-color: #000; /* Fallback */
}

.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.mySlides {
    width: 100%;
    height: 100%;
    display: none; /* Hidden by default, JavaScript handles visibility */
    position: absolute;
    top: 0;
    left: 0;
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images cover the area */
    display: block;
    filter: brightness(70%); /* Darken image slightly for text readability */
}

.caption {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    max-width: 80%;
    border-radius: 8px;
}

.caption h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.caption p {
    font-size: 1.2rem;
}

/* Page Specific Hero Sections */
.about-hero, .contact-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 30px;
}

.about-hero h1, .contact-hero h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.about-hero p, .contact-hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border-radius: 8px;
}

.welcome-section h1 {
    font-family: 'Oswald', sans-serif;
    color: #2c3e50;
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.welcome-section p {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

/* Services Overview */
.services-overview {
    padding: 50px 20px;
    text-align: center;
}

.services-overview h2 {
    font-family: 'Oswald', sans-serif;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

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

.service-cards .card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: left;
    transition: transform 0.3s ease;
}

.service-cards .card:hover {
    transform: translateY(-10px);
}

.service-cards .card h3 {
    font-family: 'Oswald', sans-serif;
    color: #e74c3c;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.service-cards .card p {
    color: #666;
    font-size: 1rem;
}

/* About Page Content */
.about-content {
    background: #fff;
    padding: 40px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-bottom: 30px;
}

.about-content h2 {
    font-family: 'Oswald', sans-serif;
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #444;
}

.our-team {
    margin-top: 40px;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.team-member-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.team-member-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid #e74c3c;
}

.team-member-card h3 {
    font-family: 'Oswald', sans-serif;
    color: #2c3e50;
    margin-bottom: 5px;
}

.team-member-card p {
    font-size: 0.95rem;
    color: #777;
    margin-bottom: 10px;
}

.testimonials {
    margin-top: 40px;
}

.testimonial-card {
    background: #f9f9f9;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 5px solid #e74c3c;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #555;
}

.testimonial-card span {
    display: block;
    text-align: right;
    font-weight: 700;
    color: #2c3e50;
}

/* Contact Page Content */
.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    background: #fff;
    padding: 40px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-form-section h2, .interactive-map-section h2 {
    font-family: 'Oswald', sans-serif;
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #333;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box; /* Include padding in width */
}

.contact-form textarea {
    resize: vertical; /* Allow vertical resizing */
}

.contact-form .btn {
    display: inline-block;
    background: #e74c3c; /* Red accent */
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.contact-form .btn:hover {
    background: #c0392b; /* Darker red on hover */
}

.map-container {
    width: 100%;
    height: 450px; /* Fixed height for the map */
    background: #eee; /* Placeholder background */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.map-container iframe {
    border-radius: 8px; /* Apply border-radius to iframe */
}

.map-note {
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    margin-top: 15px;
}

/* Footer */
footer {
    background: #34495e; /* Darker blue/charcoal */
    color: #ecf0f1;
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #e74c3c;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 15px;
        justify-content: center;
    }

    nav ul li {
        margin: 0 10px;
    }

    .caption {
        bottom: 10%;
        padding: 15px;
    }

    .caption h3 {
        font-size: 1.8rem;
    }

    .caption p {
        font-size: 1rem;
    }

    .welcome-section h1,
    .services-overview h2,
    .about-content h2,
    .contact-form-section h2,
    .interactive-map-section h2 {
        font-size: 2rem;
    }

    .about-hero h1, .contact-hero h1 {
        font-size: 2.8rem;
    }

    .team-members {
        grid-template-columns: 1fr; /* Stack team members vertically */
    }
}

@media (max-width: 480px) {
    .logo a {
        font-size: 1.5rem;
    }

    nav ul li {
        margin: 0 5px;
    }

    nav ul li a {
        font-size: 0.9rem;
    }

    .hero {
        height: 400px;
    }

    .caption h3 {
        font-size: 1.5rem;
    }

    .caption p {
        font-size: 0.9rem;
    }

    .welcome-section h1 {
        font-size: 2rem;
    }

    .service-cards {
        grid-template-columns: 1fr;
    }

    .contact-form-section,
    .interactive-map-section {
        padding: 0 10px; /* Add some padding on very small screens */
    }

    .map-container {
        height: 300px; /* Smaller map on mobile */
    }


    /* Universal box-sizing for consistent layout */
    html {
    box-sizing: border-box;
    }
    *, *::before, *::after {
    box-sizing: inherit;
    }

}