/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Open Sans", "sans-serif";  
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Header */
header {
    text-align: center;
    background: #fff;
    padding: 20px 10px;
}

header h1 {
    color: red;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-top: 10px;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

nav ul li a.active,
nav ul li a:hover {
    color: red;
    border-bottom: 2px solid red;
}

.hero {
    background: url('Images/mainpic.JPEG') no-repeat center center;
    background-size: cover; /* Ensures the image covers the entire section */
    color: white;
    text-align: center;
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 55vh; /* Adjust based on how much of the screen you want the image to cover */
    margin: 0 auto; /* Center the section */
    width: 100%; /* Ensure it spans the entire width of the container */
    max-width: 1000px; /* Optional: Limit the maximum width */
    border-radius: 15px; /* Optional: Add rounded corners */
    overflow: hidden; /* Ensures no overflow */
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.hero .btn {
    background: red;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}


/* Custom Prices */
.custom-prices {
    text-align: center;
    padding: 20px;
    background: #fff;
}

.custom-prices h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: red;
}

.custom-prices .btn {
    background: red;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

/* Welcome Section */
.welcome {
    text-align: center;
    padding: 30px;
    background: #f9f9f9;
}

.welcome h3 {
    font-size: 1.8rem;
    color: red;
    margin-bottom: 20px;
}

/* Services */
.services {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
}

.services h3 {
    font-size: 2rem;
    color: red;
    margin-bottom: 20px;
}

.service-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    align-items: stretch; /* Makes all blocks the same height */
}

.service {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures even spacing */
    text-align: center;
    border: 1px solid #ddd;
    padding: 20px;
    width: 300px;
    background: #fff;
    border-radius: 8px;
    min-height: 450px; /* Adjust this based on content length */
}

.service img {
    max-width: 100%;
    height: 300px; /* You can adjust this value */
    object-fit: cover; /* Ensures the image fills the area without distortion */
    border-radius: 8px;
    margin-bottom: 15px; /* Adds spacing between image and text */
}

.service h4 {
    margin: 15px 0;
    font-size: 1.2rem;
    color: #333;
}

.service .btn {
    background: red;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 20px;
    margin-top: 15px;
    font-weight: bold;
    display: inline-block;
}

/* FAQ */
.faq {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
}

.faq h3 {
    font-size: 2rem;
    color: red;
    margin-bottom: 20px;
}

.faq details {
    margin: 10px 0;
    border: 1px solid red;
    border-radius: 5px;
    padding: 10px;
    background: white;
}

.faq details summary {
    font-weight: bold;
    color: red;
    cursor: pointer;
}

.faq details p {
    margin-top: 10px;
    color: #555;
}

/* Testimonials */
.testimonials {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
}

.testimonials blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
    margin: 20px 0;
}

.testimonials p {
    font-size: 0.9rem;
    color: #333;
}

.contact-location {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background-color: #f9f9f9;
    margin-top: 20px;
}

.contact, .location {
    width: 45%;
}

.contact h3, .location h3 {
    color: red;
    margin-bottom: 10px;
}

.contact form label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.contact form input, .contact form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact form button {
    margin-top: 10px;
    background-color: red;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact form button:hover {
    background-color: red;
}

.location .social-media img {
    width: 40px;
    margin-right: 10px;
}

.about-us {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    margin-top: 20px;
}

.about-us h3 {
    color: red;
}

.about-us p {
    font-size: 16px;
    margin: 10px 0;
}

.about-us .btn {
    background-color: red;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.about-us .btn:hover {
    background-color: red;
}

.social-media {
    margin-top: 10px;
}

.social-media a {
    text-decoration: none;
    display: inline-block;
    /* margin: 0 10px; */
    transition: transform 0.3s ease;
}

.social-media a:hover {
    transform: scale(1.1);
    opacity: 0.8;
}


/* =============== MODAL POPUP STYLES =============== */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999; /* On top of everything */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dim the background */
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex; /* Show the modal when active */
}

.modal {
    background-color: #fff;
    padding: 2em;
    border-radius: 8px;
    max-width: 400px;
    width: 80%;
    text-align: center;
    position: relative;
}

.modal h2 {
    margin-top: 0;
    color: red; /* Adjust color if you want */
    font-size: 1.5rem;
}

.modal p {
    margin: 1em 0;
    color: #333;
}

.modal-close {
    position: absolute;
    top: 0.5em;
    right: 1em;
    cursor: pointer;
    font-size: 1.2em;
    color: #888;
}

.modal-close:hover {
    color: #333;
}

.modal-button {
    background-color: red;
    color: #fff;
    padding: 0.5em 1.2em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1em;
    font-weight: bold;
}

.modal-button:hover {
    background-color: red;
}

/* Default Navigation (Desktop) */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    display: inline-block;
    padding: 10px 15px;
}

nav ul li a {
    text-decoration: none;
    padding: 10px 15px;
    display: block;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    text-align: center;
    background-color: red;
    color: white;
    padding: 10px;
    cursor: pointer;
}

/* Mobile Dropdown */
.mobile-dropdown {
    display: none;
    flex-direction: column;
    background-color: #333;
}

.mobile-dropdown a {
    color: white;
    padding: 10px;
    text-decoration: none;
    display: block;
}

.mobile-dropdown a:hover {
    background-color: #555;
}

/* Responsive Design: Hide Desktop Menu on Mobile */
@media screen and (max-width: 768px) {
    nav ul {
        display: none; /* Hide desktop nav on mobile */
    }

    .mobile-nav {
        display: block; /* Show mobile menu button */
    }
}


/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #fff;
    font-size: 0.9rem;
    color: #555;
}
