/* --- Base Styles & Variables --- */
:root {
    /* Updated colors based on the D Brooks sign */
    --primary-color: #a6222e;    /* Maroon/Burgundy from logo text/gears */
    --secondary-color: #222222;  /* Dark Grey/Black from sign text */
    --accent-color: rgb(255, 61, 61);     /* Bright Red from sign graphic */
    --light-bg: #f8f8f8;         /* Very light grey, close to white */
    --text-color: #222222;       /* Dark Grey/Black */
    --light-text: #FFFFFF;       /* White */
    --heading-font: 'Oswald', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px; /* Adjust based on final header height */
}


body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff; /* Keep main background white */
}

/* Style for favicon */
link[rel="icon"] {
    border-radius: 50%;
}

/* Style for honeypot field */
.hidden {
    display: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    margin-bottom: 1rem;
    color: var(--secondary-color); /* Default headings to dark grey */
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
    color: var(--light-text); /* For hero section - keep white */
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

/* Underline effect for H2 - Use Primary (Maroon) */
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color); /* Maroon underline */
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-color); /* Section subheadings in Maroon */
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color); /* Default links Maroon */
    text-decoration: none;
}

a:hover {
    color: var(--accent-color); /* Link hover Bright Red */
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.bg-light {
    background-color: var(--light-bg); /* Use the very light grey */
}

.section-padding {
    padding: 60px 0;
}

/* Call-to-Action Button Style */
.cta-button {
    display: inline-block;
    background-color: var(--primary-color); /* Maroon background */
    color: var(--light-text); /* White text */
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: var(--accent-color); /* Bright Red background on hover */
    color: var(--light-text); /* Keep text white on hover */
    text-decoration: none;
    transform: translateY(-2px);
}

/* --- Header --- */
header {
    background-color: var(--secondary-color); /* Dark Grey background */
    color: var(--light-text); /* White text */
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img{
    transition: scale 0.3s ease-in-out;
    transform-origin: center center;
    /* will-change: transform; */ /* Removed potentially unnecessary optimization */
    border-radius: 50%;
    max-height: 90px; /* Adjusted default height */
    width: auto;
    display: block; /* Ensure it behaves like a block element */
}

.logo-img:hover{
    scale: 1.05 /* Slightly reduced hover scale */
}

.logo a {
    color: var(--light-text);
    text-decoration: none;
    display: inline-block; /* Ensure link wraps image */
}
.logo a:hover {
    color: var(--accent-color); /* Hover logo link Bright Red */
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 25px;
}

header nav ul li a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: var(--accent-color); /* Nav link hover Bright Red */
    text-decoration: none;
}

.header-contact span {
    font-weight: bold;
}
.header-contact a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}
.header-contact a:hover {
     color: var(--accent-color); /* Header contact link hover Bright Red */
}

.mobile-menu-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.mobile-call-button {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem; /* Adjust size */
    cursor: pointer;
    padding: 5px;
    margin-left: 15px; /* Space from nav toggle */
    line-height: 1; /* Align icon better */
    text-decoration: none;
}
.mobile-call-button:hover {
    color: var(--accent-color); /* Mobile call button hover Bright Red */
    text-decoration: none;
}

/* --- Mobile Navigation --- */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background-color: var(--secondary-color); /* Dark Grey background */
    z-index: 1001;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding-top: 80px;
    overflow-y: auto;
}

.mobile-nav.active {
    transform: translateX(0); /* Slide in */
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav ul li a {
    display: block;
    color: white;
    padding: 15px 25px;
    text-align: left;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease, color 0.2s ease; /* Added color transition */
}
.mobile-nav ul li:first-child a {
     border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav ul li a:hover {
    background-color: var(--primary-color); /* Hover background Maroon */
    color: var(--light-text); /* Ensure text stays white */
}

/* Style for the call link in mobile nav */
.mobile-nav-call a {
    background-color: var(--accent-color); /* Bright Red background for call */
    font-weight: bold;
    color: var(--light-text); /* White text */
}
.mobile-nav-call a:hover {
     background-color: var(--primary-color); /* Maroon on hover */
     color: var(--light-text);
}
.mobile-nav-call a i {
    margin-right: 10px;
    width: 1.2em;
    text-align: center;
}


/* Mobile Nav Close Button */
.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 5px;
}
.mobile-menu-close:hover {
    color: var(--accent-color); /* Close button hover Bright Red */
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 70vh;
    min-height: 400px;
    /* background: url('images/Great\ stock\ photo.webp') no-repeat center center/cover; */ /* Moved to HTML img tag */
    color: var(--light-text);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Keep overlay dark */
    z-index: 1;
    opacity: 0.1;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Behind overlay and content */
    overflow: hidden; /* Prevent potential overflow issues */
}
.hero-background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image covers the area */
    object-position: center center; /* Center the image */
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
     text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* --- About Section --- */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}
.about-image img {
     border-radius: 8px;
     box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.credentials {
    margin-top: 1.5rem;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.credentials span {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: var(--secondary-color); /* Dark grey text for credentials */
}
/* .credentials span i { */ /* Style moved to .credentials span .icon */
    /* margin-right: 8px; */
    /* color: var(--primary-color); */ /* Maroon icon color */
    /* font-size: 1.2em; */
/* } */


/* --- Services Section --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-item {
    background-color: #fff; /* White background for items */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.service-item h3 {
    margin-bottom: 0.8rem;
    color: var(--accent-color); /* Maroon heading for service items */
}
/* Optional icons would likely use --primary-color */

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.gallery-grid img {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    height: 345px;
    object-fit: cover;
    /* will-change: transform; */ /* Removed potentially unnecessary optimization */
}
.gallery-grid img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* --- Contact Section --- */
/* Option 1: Keep dark background */
.contact-section {
    background-color: var(--secondary-color); /* Dark Grey background */
    color: #eee; /* Light grey text */
}
.contact-section h2 {
    color: var(--light-text); /* White heading */
}
.contact-section h2::after {
    background-color: var(--accent-color); /* Red underline on dark bg */
}
.contact-section h3 {
     color: var(--accent-color); /* Red subheading */
}
.contact-section a {
    color: var(--accent-color); /* Red links */
}
.contact-section a:hover {
    color: var(--light-text); /* White link hover */
}

/* Option 2 (Red background for contact section) removed */

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 2rem;
}

.contact-info p {
    margin-bottom: 0.8rem;
}

.contact-form-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
     /* Color will be inherited from .contact-section */
}

.form-group {
    margin-bottom: 1.2rem;
}

.contact-form-container input[type="text"],
.contact-form-container input[type="email"],
.contact-form-container input[type="tel"],
.contact-form-container textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #f9f9f9; /* Light input background */
    color: var(--text-color); /* Dark text inside inputs */
}
.contact-form-container input:focus,
.contact-form-container textarea:focus {
     outline: none;
     border-color: var(--primary-color); /* Maroon focus outline */
     box-shadow: 0 0 5px rgba(161, 43, 52, 0.4); /* Maroon focus glow */
}

.contact-form-container textarea {
    resize: vertical;
}

.contact-form-container button {
     margin-top: 1rem;
     /* Styles inherited from .cta-button, hover adjusted above if using Option 2 */
}

#form-status {
    margin-top: 1rem;
    font-weight: bold;
     /* Color applied via JS */
}

/* --- Footer --- */
footer {
    background-color: #333; /* Keep footer dark grey */
    color: #ccc; /* Light grey text */
    text-align: center;
    padding: 25px 0;
    margin-top: 0;
}
footer p {
    margin-bottom: 0.5rem;
}
footer a {
    color: var(--accent-color); /* Red links in footer */
}
footer a:hover {
    color: #fff; /* White hover */
}

/* --- SVG Icon Styling --- */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em; /* Adjust vertical alignment slightly */
  fill: currentColor; /* Inherit color by default */
}

/* Specific icon adjustments */
.mobile-nav-call a .icon-phone {
    margin-right: 10px; /* Match previous i tag spacing */
}

.credentials span .icon {
    margin-right: 8px; /* Match previous i tag spacing */
    color: var(--primary-color); /* Match previous icon color */
    font-size: 1.2em; /* Match previous icon size */
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-image {
        max-width: 500px;
        margin: 1rem auto 0 auto;
    }
    .contact-content {
        grid-template-columns: 1fr;
    }
    .contact-info {
        order: 1; /* Make info appear second on mobile */
    }
    .contact-form-container {
        order: -1; /* Make form appear first on mobile */
    }
     .header-contact {
        display: none;
    }
    .credentials {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }

    header nav ul {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

     .mobile-call-button {
        display: inline-block;
        margin-right: 10px;
    }

    .header-content {
        justify-content: space-between;
    }

    .logo {
         flex-basis: auto;
         flex-grow: 1;
         margin-right: 15px;
    }
     .logo-img {
        max-height: 90px;
    }

    .hero {
        height: 60vh;
        /* Optional: Use mobile-specific hero image if available */
        /* background-image: url('images/Great stock photo.1.webp'); */
    }

    .service-grid {
         grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
     .header-contact {
        display: none;
    }

}

@media (max-width: 576px) {
     html {
        scroll-padding-top: 60px;
    }
    header {
        padding: 10px 0;
    }
     .logo-img {
        max-height: 80px;
    }
    .mobile-call-button {
        font-size: 1.4rem;
        margin-left: 10px;
        margin-right: 10px;
    }
     .mobile-menu-toggle {
        font-size: 1.8rem;
    }

    .mobile-nav {
        width: 250px;
        padding-top: 70px;
     }

     h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
     .service-grid {
         grid-template-columns: 1fr; /* Stack services */
    }
    .contact-info, .contact-form-container h3{
        text-align: center;
    }
     .credentials {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .gallery-grid {
        grid-template-columns: 1fr; /* Stack gallery images */
    }
    .gallery-grid img {
        height: auto; /* Auto height for stacked images */
    }
}

@media (max-width: 768px) {
    /* Hero background for smaller screens */
    /* .hero { */
        /* background-image: url('images/Great stock photo.1.webp'); */ /* Handled by picture element in HTML */
    /* } */

    /* Add other mobile-specific styles below if needed */
}

/* Optional: Body class to prevent scrolling when nav is open */
/* Add this class via JS */
/*
body.mobile-nav-open {
    overflow: hidden;
}
*/

/* Optional: Overlay for background dimming (JS logic not implemented) */
/* .nav-overlay related styles removed as it's not used */