/* Reset & Base Styles */
body {
    margin: 0;
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff; /* Ensures consistent white background */
}

/* Fixed Logo */
.fixed-logo {
    position: fixed;
    top: 10px;
    left: 50px;
    z-index: 1000;
}

/* Default Logo Size */
.fixed-logo img {
    width: 125px;
    height: 125px;
    border-radius: 8px;
}

/* ✅ Make Logo Smaller on Mobile */
@media (max-width: 768px) {
    .fixed-logo img {
        width: 80px; /* Reduce size */
        height: 80px;
    }
}


/* Header */
header {
    height: 145px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    padding: 0;
    position: relative;
}

/* Default Navigation Box */
/* ✅ White Box for Desktop Navigation */
/* ✅ Restore White Box for Desktop Navigation */
.nav-box {
    position: relative;
    margin: 20px 0;
    padding: 1rem 2rem;
    background: #fff; /* ✅ White box is back */
    border-radius: 12px;
    max-width: 800px;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

/* ✅ Improve Mobile Dropdown Menu Text Styling */
@media (max-width: 768px) {
    .nav-box {
        position: absolute;
        top: 60px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 320px; /* ✅ Slightly wider for better spacing */
        background: #fff;
        border-radius: 10px;
        padding: 15px; /* ✅ More padding for better look */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        display: none;
    }

    .nav-box.active {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 12px; /* ✅ Slightly bigger gap for better readability */
        padding: 0;
    }
/* ✅ Remove Bullet Points and Underlines */
.nav-links {
    list-style: none; /* ✅ Removes dots */
    padding: 0;
    margin: 0;
}

.nav-links a {
    text-decoration: none; /* ✅ Removes underline */
}

    .nav-links li {
        margin: 0;
        width: 100%; /* ✅ Ensures full-width clickable area */
    }

    .nav-links a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px; /* ✅ More padding for better tap experience */
        font-size: 1.6rem; /* ✅ Larger, more readable text */
        font-weight: bold; /* ✅ Make it slightly bolder */
        color: #333;
        border-radius: 5px;
        transition: background 0.3s ease, color 0.3s ease;
    }

    .nav-links a:hover {
        background: #f0f0f0;
        color: #000;
    }
}


.nav-links a:hover {
    background: #f0f0f0;
    color: #333;
}

/* ✅ Remove Dark Background */
.dark-background {
    background: #fff; /* Set to white */
    padding: 50px 20px; /* Keep some spacing */
    color: #333; /* Adjust text color for readability */
}

/* ✅ Service Boxes - Now with a Dark Frame */
.service-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Fully responsive */
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 50px;
}

/* ✅ Individual Boxes */
.box {
    position: relative;
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 3px solid #333; /* ✅ Dark Frame Around Each Box */
}

.box:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Adds a slight lift effect */
}

/* ✅ Responsive Adjustments */
@media (max-width: 1024px) {
    .service-boxes {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjust for medium screens */
    }
}

/* Ensure the navigation box appears above the service boxes */
.nav-box {
    z-index: 1002; /* Increased z-index to keep it above other elements */
}

/* Improve mobile service boxes */
@media (max-width: 768px) {
    .service-boxes {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .box {
        height: 150px; /* Slightly smaller boxes */
        font-size: 1.4rem;
    }

    .box a {
        font-size: 1.2rem;
        padding: 10px;
        word-wrap: break-word; /* Ensure text doesn't overflow */
    }
}



/* Title Section inside Dark Background */
.dark-background .title-section {
    text-align: center;
    margin: 0 0 30px 0;
}

.dark-background .title-section h1 {
    font-size: 2rem;
    font-weight: normal;
    color: #fff;
    margin: 0;
}

/* Service Boxes Section */
.service-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.box {
    position: relative;
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.box:hover {
    transform: scale(1.05);
}

.box a {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    text-align: center;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.5));
    z-index: 1;
}

.box a:hover {
    color: #000;
}

/* Slideshow */
.slideshow {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 300px;
    overflow: hidden;
    margin: 0 auto;
    display: flex;
    align-items: center;
    border-radius: 10px;
}

.slides {
    display: flex;
    transition: transform 1.5s ease-in-out;
    width: calc(100% * 15 / 3);
}

.slides img {
    width: calc(100% / 3);
    height: 300px;
    object-fit: cover;
    border-radius: 0;
}

/* Apply rounded corners only to the first and last visible images */
.slides img:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.slides img:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Call-to-action */
.cta {
    text-align: center;
    padding: 2rem 1rem;
    background: #f4f4f4;
}

.cta h1 {
    display: none;
}

.cta .btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.4rem;
    transition: background 0.3s ease;
}

.cta .btn:hover {
    background: #555;
}

/* Contact Information Section */
/* ✅ Ensure Contact Page Background Matches the Top (White) */
.contact-info {
    background: #fff; /* Set to the same white background */
    padding: 50px 20px;
    text-align: center;
    color: #333; /* Ensures good readability */
}

.contact-info h1 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: bold;
    color: #000;
}

.info-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
}

.info-item.no-icon img {
    display: none;
}

.info-item.facebook img {
    display: inline-block;
    width: 30px;
    height: 30px;
}

.info-item a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.info-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* About Section */
.about-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px auto;
    padding: 20px;
    max-width: 1000px;
    gap: 20px;
}

.content-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.about-text {
    flex: 1;
    text-align: left;
}

.about-text h1 {
    font-size: 2rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Mobile-specific styles for the about section */
@media (max-width: 768px) {
    .about-section .content-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-section .about-text h1 {
        text-align: center;
        margin-bottom: 20px;
    }

    .about-section .about-image {
        margin-top: 20px;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem 0;
    background: #333;
    color: #fff;
}

/* ✅ Mobile Enhancements */
@media (max-width: 768px) {
    /* Hide navigation box by default on mobile */
    .nav-box {
        display: none;
    }

    /* ✅ Make hamburger button bigger */
    .menu-btn {
        display: none;
        position: fixed;
        top: 15px;
        right: 20px;
        font-size: 50px; /* Increased from 32px to 40px */
        padding: 10px; /* Added padding for better tap area */
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
        width: 60px; /* Ensures a larger click area */
        height: 60px; /* Adjusted for better tap target */
    }

/* ✅ Mobile dropdown menu (no white box) */
@media (max-width: 768px) {
    .nav-box {
        display: none;
        position: absolute;
        top: 60px;
        right: 20px;
        background: #fff;
        border-radius: 8px;
        padding: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .nav-box.active {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 10px;
    }

    .nav-links li {
        margin: 0;
    }

    .nav-links a {
        display: block;
        padding: 10px;
        font-size: 1.4rem;
    }
}

/* ✅ Hide menu button on desktop */
@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }
}

.menu-btn:focus,
.menu-btn:hover {
    outline: none;
    opacity: 0.8; /* Adds slight hover effect */
}

    .nav-box.active {
        display: block;
        position: absolute;
        top: 60px;
        right: 20px;
        background: #fff;
        border-radius: 10px;
        padding: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .slides {
        width: calc(100% * 15 / 2);
    }

    .slides img {
        width: calc(100% / 2);
    }
}

/* Contact Form Styling */
.contact-form {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 400px;
    margin: 20px auto;
    background: #fff; /* Keep background white */
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid transparent; /* Optional: Can remove if no border is needed */
}

.contact-form label {
    font-weight: bold;
    margin-bottom: 5px;
    text-align: left;
    display: block;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 8px; /* Reduced padding to make boxes smaller */
    margin-bottom: 10px; /* Less space between inputs */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form textarea {
    resize: none;
    height: 100px; /* Adjust message box height */
}

.contact-form button {
    background: #333;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #555;
}

/* Make the page fill the full height */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Ensure main content expands, pushing footer to the bottom */
main {
    flex: 1;
}

/* Footer Styling - Fixed at the Bottom */
footer {
    text-align: center;
    padding: 1rem 0;
    background: #333;
    color: #fff;
    width: 100%;
    position: relative;
    bottom: 0;
    left: 0;
}

/* Default Slideshow Size */
.slideshow {
    position: relative;
    width: 90%; /* Keeps it from touching edges */
    max-width: 1000px; /* Default max width */
    height: 280px; /* Default height */
    overflow: hidden;
    margin: 0 auto; /* Centers the slideshow */
    display: flex;
    align-items: center;
    border-radius: 10px;
}

/* Adjust Slide Images */
.slides {
    display: flex;
    transition: transform 1.5s ease-in-out;
    width: calc(100% * 15 / 3);
}

.slides img {
    width: calc(100% / 3);
    height: 280px; /* Default height */
    object-fit: cover;
}

/* ✅ Make Slideshow Bigger but Not Too Wide */
@media (min-width: 1024px) {
    .slideshow {
        max-width: 1100px; /* Slightly wider but not full screen */
        height: 350px;
    }
    .slides img {
        height: 350px;
    }
}

@media (min-width: 1440px) {
    .slideshow {
        max-width: 1250px; /* Keep it more centered */
        height: 420px;
    }
    .slides img {
        height: 420px;
    }
}

@media (min-width: 1800px) {
    .slideshow {
        max-width: 1350px; /* Stops it from getting too big */
        height: 480px;
    }
    .slides img {
        height: 480px;
    }
}

/* Desktop Navigation Buttons - Centered in the space */
.desktop-nav {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 50px 0 30px 0; /* Adds space at the top and bottom */
    z-index: 2;
    white-space: nowrap;
}

.desktop-nav .nav-button {
    background: none;
    border: none;
    color: #000;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 10px 20px;
}

.desktop-nav .nav-button:hover {
    color: #555;
}

/* Hide the nav-box on desktop */
@media (min-width: 769px) {
    .nav-box {
        display: none;
    }

    .menu-btn {
        display: none;
    }
}

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

.about-text p {
    margin-bottom: 20px; /* Adds space between paragraphs */
}

/* Add space at the top of the services page only on mobile */
@media (max-width: 768px) {
    .services-page {
        margin-top: 60px; /* Adjust the value if needed */
    }

    /* Ensure the navigation box remains above */
    .nav-box {
        z-index: 1002;
    }
}


/* Make service box text responsive on mobile */
@media (max-width: 768px) {
    .service-boxes {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .box {
        height: 150px;
        font-size: 1.4rem;
    }

    .box a {
        font-size: clamp(1rem, 5vw, 1.4rem); /* Responsive text size */
        padding: 10px;
        text-align: center;
        word-wrap: break-word;
        white-space: normal;
    }
}

/* Slideshow */
.slideshow {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 300px;
    overflow: hidden;
    margin: 0 auto;
    display: flex;
    align-items: center;
    border-radius: 10px;
}

/* Add space on top only on mobile */
@media (max-width: 768px) {
    .slideshow {
        margin-top: 150px; /* Adjust the value as needed */
    }
}


.slides {
    display: flex;
    transition: transform 1.5s ease-in-out;
}

.slides img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 0;
}

/* Apply rounded corners only to the first and last visible images */
.slides img:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.slides img:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Adjust for mobile: show only 2 images */
@media (max-width: 768px) {
    .slides img {
        width: 50%; /* Show two images per slide */
    }
}
