/* Variables for brand colors */
:root {
    --primary-color: #912026; /* Dark Red */
    --secondary-color: #af8c4a; /* Gold/Bronze */
    --light-grey: #f4f4f4;
    --dark-text: #333;
    --white-text: #fff;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-grey);
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: var(--white-text);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping for responsiveness */
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--white-text);
    margin-right: 20px; /* Space between logo and nav on larger screens */
}

.logo img {
    height: 60px; /* Adjust based on logo size */
    margin-right: 10px;
    border-radius: 5px; /* Optional: subtle rounded corners for the logo */
}

nav ul {
    display: flex;
    gap: 25px;
}

nav ul li a {
    color: var(--white-text);
    font-weight: bold;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Main Content Styling */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.hero-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(to right, var(--primary-color) 0%, rgba(145, 32, 38, 0.8) 50%, transparent 100%);
    color: var(--white-text);
    border-radius: 8px;
    margin-bottom: 40px;
    overflow: hidden; /* Ensures image doesn't overflow rounded corners */
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 30px;
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 15px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-subpage {
    background-color: var(--primary-color);
    color: var(--white-text);
    padding: 60px 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 40px;
}

.hero-subpage h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.hero-subpage p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}


.content-section {
    background-color: var(--white-text);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.content-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.content-section h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-section p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.content-section ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.content-section ul li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white-text);
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: darken(var(--secondary-color), 10%); /* This won't work in pure CSS. Use a slightly darker hex or adjust manually. */
    background-color: #bfa06b; /* Slightly darker gold */
    transform: translateY(-2px);
}

.call-to-action {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background-color: var(--light-grey);
    border-radius: 8px;
}

.call-to-action p {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: bold;
}

/* About Us - Image and Text Layout */
.image-text-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.image-text-layout img {
    max-width: 100%;
    width: 450px; /* Max width for image */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.image-text-layout div {
    flex: 1;
    min-width: 300px;
}

/* Services Page */
.service-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
    padding: 25px;
    background-color: #fcfcfc;
    border-left: 5px solid var(--secondary-color);
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.service-block:nth-child(even) {
    flex-direction: row-reverse; /* Alternate image and text direction */
    border-left: none;
    border-right: 5px solid var(--secondary-color);
}

.service-block img {
    max-width: 100%;
    width: 350px; /* Max width for service images */
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.service-block p {
    flex: 1;
    min-width: 300px;
}

/* Contact Page Form */
.contact-form-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-form {
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #f9f9f9;
}

.form-group textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
}

.contact-info {
    margin-top: 40px;
    text-align: center;
    padding: 30px;
    background-color: var(--light-grey);
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}


/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white-text);
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

footer p {
    font-size: 0.9rem;
}

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

    .logo {
        margin-bottom: 15px;
        margin-right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        text-align: center;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .hero-image {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subpage {
        padding: 40px 20px;
    }

    .hero-subpage h1 {
        font-size: 2.2rem;
    }

    .content-section {
        padding: 25px;
    }

    .content-section h2 {
        font-size: 2rem;
    }

    .image-text-layout {
        flex-direction: column;
        gap: 20px;
    }

    .service-block {
        flex-direction: column !important; /* Override row-reverse for alternating */
        gap: 20px;
        text-align: center;
        border-left: 5px solid var(--secondary-color); /* Ensure consistent border on small screens */
        border-right: none;
    }

    .service-block img {
        width: 100%;
        max-width: 300px; /* Adjust max-width for smaller screens */
    }
}

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

    .logo img {
        height: 50px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .content-section h2 {
        font-size: 1.8rem;
    }

    .content-section h3 {
        font-size: 1.5rem;
    }

    .content-section p, .content-section ul li {
        font-size: 1rem;
    }

    .call-to-action p {
        font-size: 1.1rem;
    }
}