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

body {
    font-family: Arial, sans-serif;
}

/* First Layer (Top Header) */
.header-top {
    background-image: url('../images/dark_background2.jpg'); /* Black background */
    background-attachment: fixed;
    background-size: cover;
    display: flex;
    justify-content: space-between; /* Moves the email to the right */
    align-items: center;
    color: #fff; /* White text */
    padding: 10px 20px;
}

.header-top .left {
    display: flex;
    align-items: center;
}

.header-top .right {
    display: flex;
    align-items: center;
}

.header-top .right .email {
    margin-left: auto; /* Pushes email to the far right */
    text-align: right;
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-top i {
    color: #867D7D; /* Red color for icons */
}

.header-top span {
    color: #fff; /* White text */
    font-size: 14px;
}

/* Second Layer (Bottom Header) */
.header-bottom {
    background-color: #fff; /* White background */
    border-bottom: 2px solid #000; /* Black border */
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0; /* Sticks to the top of the page */
    z-index: 1000; /* Ensure it stays above other content */
    box-shadow: 0 4px 2px -2px rgba(0, 0, 0, 0.1); /* Optional: Add shadow for effect */
}

.logo img {
    height: 50px; /* Adjust height to fit the logo */
}

.header-nav {
    display: flex;
}

.navbar__menu {
    display: flex;
    align-items: center;
    list-style: none;
}

.navbar__item {
    padding: 0 20px;
}

.navbar__links {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 10px 0;
    display: block;
}

.navbar__links:hover {
    color: #D50505; /* Hover color updated */
}

/* Mobile Menu Toggle */
.navbar__toggle {
    display: none;
    cursor: pointer;
}

.navbar__toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
}

.navbar__menu.active {
    display: block;
}

@media screen and (max-width: 768px) {

    .header-bottom {
        flex-direction: column; /* Stack logo and navbar vertically on mobile */
        align-items: center;
    }

    .logo img {
        width: 100px; /* Adjust logo size for mobile */
        margin-bottom: 10px; /* Add spacing below logo */
        right: 100px;
    }

    .navbar__toggle {
        display: block;
    }

    .navbar__menu {
        display: grid;
        grid-template-columns: auto;
        margin: 0;
        width: auto;
        position: absolute;
        top: -1000px;
        left: 0;
        opacity: 0;
        transition: all 0.5s ease;
        height: auto;
        z-index: -1;
        background: white;
    }

    .navbar__menu.active {
        background: white;
        top: 100%;
        opacity: 1;
        transition: all 0.5s ease;
        z-index: 99;
        width: 100%;
    }

    .navbar__toggle .bar {
        transition: all 0.3s ease-in-out;
        background: #333;
        cursor: pointer;
    }

    .navbar__item {
        width: 100%;
        text-align: center;
        padding: 15px 0;
    }

    .navbar__links {
        padding: 10px 0; /* Adjust padding for menu links */
        width: 100%;
    }

    .navbar__menu.active .navbar__item + .navbar__item {
        margin-top: 5px; /* Adjust spacing between items */
    }

    .logo {
        width: 100px; /* Adjust logo size for mobile */
        top: 10px;
        bottom: unset; /* Re-align logo on mobile */
    }

    #mobile-menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    #mobile-menu.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    #mobile-menu.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Breakdown contact on the right */
.breakdown-contact {
    background-color: #fff;
    padding: 10px;
    border: 2px solid #867D7D; /* Red border */
    color: #000; /* Black text */
    font-weight: bold;
    text-align: center;
}

.breakdown-contact span {
    display: block;
}

.phone-link {
    color: #000; /* Change to your preferred color */
    text-decoration: none; /* Remove underline */
    font-weight: bold; /* Optional: Make the text bold */
}

.phone-link:hover {
    color: #D50505; /* Change to your hover color */
    text-decoration: none; /* Keep the underline removed on hover */
}

/* Hero Section */
.hero {
    position: relative; /* Needed for the overlay to work */
    background-image: url('../images/background\ services\ 2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 999;
    height: 80vh;
    display: flex;
    color: #fff;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35); /* Black with 35% transparency */
    z-index: 1; /* Ensures the overlay is on top of the background image */
}

.hero-content {
    position: relative;
    z-index: 2; /* Ensures the text is above the overlay */
}

.hero-content h1, .hero-content h2 {
    margin-bottom: 10px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: bold;
}

.hero-content h2 {
    font-size: 36px;
}

.contact-info {
    padding-top: 50px;
    font-size: 32px;
}

.contact-button {
    display: inline-block;
    background-color: #fff;
    border: 2px solid #867D7D;
    color: #867D7D;
    padding: 10px 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: auto; /* Aligns the button at the bottom */
}
.contact-button:hover {
    background-color: #D50505;
    color: #333;
}

/* Services Section */
.services {
    background-color: white;
    padding: 50px 0;
    text-align: center;
    color: #333;
}

/* Service Container Adjustments */
.service-container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.services .content {
    margin-bottom: 30px;
}

.services h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
}

.service-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Service Box Styling */
.service-box {
    flex: 1 1 23%; /* Each service box takes up about a quarter width on large screens */
    border: 1px solid #ccc;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 380px;
    display: flex;
    flex-direction: column;
}

.service-box img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.service-info {
    background-color: #333;
    padding: 20px;
    color: #fff;
    flex-grow: 1;
}

.service-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.service-button {
    display: inline-block;
    background-color: transparent;
    border: 2px solid #867D7D;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    margin-top: auto;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.service-button:hover {
    background-color: #D50505;
    color: #fff;
}

/* Hover Effect */
.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-container {
        flex-direction: column; /* Stack the boxes in a column for mobile */
    }
    .service-box {
        width: 100%; /* Full width on smaller screens */
    }
}


/* Footer Styling */
.footer {
    background-image: url('../images/dark_background2.jpg'); /* Black background */
    background-attachment: fixed;
    background-size: cover;
    padding: 40px 0;
    color: #fff; /* White text */
}

.footer-container {
    display: flex;
    justify-content: space-around; /* Ensure columns are evenly spaced */
    align-items: flex-start; /* Align columns to the top */
    max-width: 1200px;
    margin: 0 auto; /* Center the footer content */
    padding: 0 20px; /* Add padding inside the container */
    gap: 100px; /* Adds space between each column */
    flex-wrap: wrap;
}

.footer-column {
    flex: 1; /* Ensure columns are flexible */
    min-width: 250px; /* Minimum width for each column */
}

.footer-column.services {
    text-align: center; /* Center the services column */
}

/* Hours Section */
.footer-column.hours ul {
    list-style: none;
    padding: 0;
}

.footer-column.hours ul li {
    display: flex;
    justify-content: space-between; /* Space between day and time */
    font-size: 1.1em;
    margin-bottom: 10px;
}

.footer-column.hours ul li .day {
    flex-grow: 1; /* The day stays on the left */
}

.footer-column.hours ul li .time {
    text-align: right; /* Align the time to the right */
    white-space: nowrap; /* Ensure the time doesn’t wrap to the next line */
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: bold;
    color: #867D7D; /* Red for headings */
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.footer-column ul li i {
    margin-right: 10px;
    color: #867D7D; /* Red icons */
}

/* Footer Copyright */
.footer-copyright {
    background-color: #222; /* Match footer background or choose a different color */
    color: #fff;
    text-align: center;
    padding: 5px 0;
    font-size: 14px;
    border-top: 1px solid #444; /* Optional: subtle top border */
}

.footer-copyright p {
    margin: 0;
}

.footer-link {
    color: #fff; /* White color for footer links */
    text-decoration: none; /* Remove underline */
}

.footer-link:hover {
    color: #D50505; /* Change to hover color */
    text-decoration: none; /* Keep underline removed on hover */
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center; /* Center columns on small screens */
        gap: 30px; /* Smaller gap for mobile view */
    }

    .footer-column {
        margin-bottom: 30px; /* Add space between stacked columns */
        text-align: center; /* Center all columns for mobile */
    }
}

/* Video Presentation Section */
.video-presentation {
    padding: 60px 0;
    background-color: #f9f9f9; /* Light background color */
}

.content-wrapper {
    display: flex;
    justify-content: space-between; /* Space between text and video */
    align-items: center;
    gap: 50px; /* Space between text and video */
}

.text-content {
    flex: 1;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.video-description {
    font-size: 18px;
    color: #666;
    max-width: 600px;
}

.video-container {
    flex: 1;
    width: 100%; /* Ensures the video takes up available space */
    max-width: 600px; /* Adjust the maximum width */
    height: auto;
}

.video-container video {
    width: 100%;
    height: auto;
    border-radius: 10px; /* Optional: rounded corners for the video */
    outline: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column; /* Stack the video and text on smaller screens */
        align-items: center;
    }

    .video-container video {
        height: 250px; /* Smaller video for mobile */
    }
}

/* Loading screen overlay */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* Light overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000; /* Ensure it stays on top */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Spinner styling */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #D50505; /* Theme color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide loading screen when page is loaded */
#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}
