:root {
    --black: #333;
}
*, *::before, *::after {
    box-sizing: border-box;
}
/* Reset and basic styling */
body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x:hidden;
}

section {
    text-align: center; /* Center-align section content */
    background-color: #f9f9f9; /* Light background color */
    border-bottom: 1px solid #ccc; /* Bottom border for separation */
}

.btn {
    padding-top: 25px;
    padding-bottom: 25px;
    padding-left: 50px;
    padding-right: 50px;
}

.btn-request {
    background: #ffcc00;
    border: 8px solid #ffcc00; 
    border-radius: 1%;
    color: white;
    font-size: xx-large;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
}

.btn-content {
    background-color: rgba(0, 0, 0); /* Black background with opacity */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0); /* Add a shadow for depth */
}

#services, #repointing, #liners {
    background-color: #ffcc00;
}

.section-content {
    max-width: 1200px; /* Limit section width */
    margin: 0 auto; /* Center section content */
    text-align: left;
}

.service-content {
    display: flex; /* Use flexbox for layout */
    flex-direction: row; /* Row layout */
    align-items: flex-start; /* Align items to the start */
    gap: 20px; /* Space between image and text */
}

.service-image {
    width: 100%; /* Make the image responsive */
    max-width: 560px; /* Limit the maximum width */
    height: auto; /* Maintain aspect ratio */
    flex-shrink: 0;
    border-radius: 8px; /* Optional: Add rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Add a shadow for depth */
}

.service-text {
    flex-grow: 1; /* Allow text to take up remaining space */
    background-color: #ffcc00; /* Yellow background color */
    border-radius: 1%;
    padding: 20px; /* Add padding inside the container */
    margin: 1px;
    font-size: x-large;
}

.service-text p, .service-text ul {
    margin-left: 5px;
    max-width: 800px; /* Ensure text doesn't stretch too wide */
}

.service-text h2 {
    margin-left: 5px;
}

.service-text ul {
    list-style-type: disc; /* Use disc for list bullets */
}

.section-divider {
    border: 0;
    height: 1px;
    margin: 0;
    background: linear-gradient(to right, transparent, #ccc, transparent);
}

.split-section {
    display: flex;
    flex-wrap: wrap;
}

.split-content {
    flex: 1 1 50%; /* Each side takes 50% of the width */
    padding: 40px; /* Adjust padding as needed */
    color: white; /* Default text color */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.split-content.left {
    background-color: #ffcc00;
    color: rgb(10, 10, 10);
}

.split-content.right {
    background-color: var(--black);
    color: #333; /* Dark text color for better contrast */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

header {
    background-color: var(--black);
    padding: 10px 0;
    position: relative;
    z-index: 1000; /* Ensures the header is on top */
}

p {
    font-size: 25px; /* Paragraph font size */
    color: var(--black); /* Paragraph text color */
}

ul {
    text-align: left; /* Left-align lists */
    margin-top: 10px; /* Space above lists */
}

li {
    margin-bottom: 5px; /* Space between list items */
}

.alert-bar {
    background-color: #ffcc00; /* Yellow background color */
    color: #333; /* Dark text color */
    padding: 10px 20px; /* Padding around content */
    text-align: center; /* Center-align text */
    font-size: 20px; /* Font size */
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional: Add a shadow for depth */
}

.alert-bar p {
    margin: 0; /* Remove default margins */
    font-size: x-large;
}

.alert-bar a {
    color: var(--black); /* Dark text color for links */
    text-decoration: none; /* Remove underline from links */
    font-weight: bold; /* Optional: Make links bold */
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--black);
}

.logo a {
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
}

nav {
    display: flex;
    align-items: center;
    z-index: 1001; /* Ensures the nav is on top */
}

.nav-links {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin: 0 10px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: inline-block;
    transition: background-color 0.3s;
    font-size: larger;
}

.nav-links li a:hover {
    background-color: #555;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: transform 0.3s ease-in-out;
}

/* The hero image */
.hero-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)), url("/images/open_shop.jpg");
    height: 50%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

/* Place text in the middle of the image */
.hero-text {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    max-width: 90%; /* Ensure text stays within the hero image */
}

.contact-info {
    margin-top: 30px; /* Space above contact info */
}

.contact-info p {
    margin-bottom: 10px; /* Space below contact info */
}

.contact-info a {
    color: #333; /* Link color */
}

.contact-form {
    margin-top: 30px; /* Space above contact form */
}

.contact-form label {
    display: block; /* Ensure labels are on their own line */
    margin-bottom: 5px; /* Space below labels */
}

.contact-form input, .contact-form textarea, .contact-form button {
    width: 100%; /* Full width inputs and button */
    padding: 10px; /* Padding inside inputs and button */
    margin-bottom: 10px; /* Space below inputs and button */
    border: 1px solid #ccc; /* Light border */
    box-sizing: border-box; /* Include padding in width calculation */
}

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

.contact-form button {
    background-color: #333; /* Button background color */
    color: #fff; /* Button text color */
    border: none; /* Remove button border */
    cursor: pointer; /* Pointer cursor on hover */
}

.contact-form button:hover {
    background-color: #555; /* Darker background on hover */
}

/* Parallax Section */
.parallax_2 {
    /* The image used */
    background-image: url('/images/brickrepair.jpeg');

    /* Full height */
    height: 700px; 

    /* Create the parallax scrolling effect */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.parallax {
    /* The image used */
    background-image: url('/images/fireplace-para.jpg');

    /* Full height */
    height: 700px; 

    /* Create the parallax scrolling effect */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 30px; /* Adjust font size for small screens */
    }
    
    .btn-request {
        font-size: large; /* Adjust button font size for small screens */
        padding: 10px 20px; /* Adjust button padding for small screens */
    }
    
    .hero-text {
        padding: 20px; /* Add padding to ensure text stays within the hero image */
    }
    
    .service-content {
        flex-direction: column; /* Stack image and text vertically on small screens */
        align-items: center; /* Center-align the content */
    }
    
    .service-image, .service-text {
        width: 100%; /* Make image and text take full width on small screens */
        max-width: none; /* Remove max-width constraint */
    }
    
    .service-text {
        padding: 10px; /* Reduce padding for small screens */
    }
    
    .btn {
        width: 100%; /* Make button take full width on small screens */
    }
    
    .btn-content {
        padding: 10px; /* Adjust padding inside the button */
    }
    
    .split-content {
        flex: 1 1 100%; /* Each side takes full width on small screens */
        padding: 20px; /* Adjust padding as needed */
    }
    
    nav .nav-links {
        flex-direction: column; /* Stack nav links vertically on small screens */
    }
    
    .hamburger-menu {
        display: block; /* Show hamburger menu on small screens */
    }
    
    .nav-links {
        display: none; /* Hide nav links by default on small screens */
    }
    
    .nav-links.active {
        display: flex; /* Show nav links when hamburger menu is active */
        flex-direction: column; /* Stack nav links vertically */
    }
}
@media screen and (max-width: 768px) and (orientation: landscape) {
    .hero-image {
        height: 100vh; /* Make hero image take the full viewport height */
    }

    .hero-text {
        top: 50%; /* Adjust the top position */
        transform: translate(-50%, -50%); /* Center the text */
        padding: 0 10px; /* Add padding to prevent overflow */
        z-index: 2; /* Ensure hero text is above other elements */
    }

    .alert-bar {
        position: relative; /* Ensure alert bar does not overlap */
        z-index: 1; /* Place alert bar above hero image */
    }

    header {
        z-index: 3; /* Ensure the nav bar is above the hero text */
    }

    .btn {
        width: 100%; /* Ensure button does not overflow */
    }

    .nav-links {
        width: 100%; /* Ensure nav links do not overflow */
    }
}