/* --- 1. VARIABLES & RESET --- */
:root {
    /* Color Palette */
    --color-primary: #0A3D62; /* Navy Blue - Trustworthy */
    --color-secondary: #EAECEF; /* Light Grey/White - Clean background */
    --color-accent: #FF8C00; /* Safety Orange - For CTAs */
    --color-text-dark: #333;
    --color-text-light: #f4f4f4;

    /* Typography */
    --font-main: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--color-text-dark);
    line-height: 1.6;
}

/* --- 2. TYPOGRAPHY & BUTTONS --- */

h1, h2, h3 {
    color: var(--color-primary);
    margin-bottom: 0.5em;
    font-weight: 800;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }

.cta-button {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    white-space: nowrap;
}

.primary-cta {
    background-color: var(--color-accent);
    color: white;
    border: 2px solid var(--color-accent);
}

.primary-cta:hover {
    background-color: #E07B00; /* Slightly darker orange */
}

.secondary-cta {
    background-color: var(--color-primary);
    color: white;
    border: 2px solid var(--color-primary);
}

.secondary-cta:hover {
    background-color: white;
    color: var(--color-primary);
}

.large-cta {
    padding: 15px 30px;
    font-size: 1.1em;
}

/* --- 3. LAYOUT & SECTIONS --- */

section {
    padding: 60px 20px;
    text-align: center;
}

/* --- 4. HEADER STYLES --- */

header {
    background-color: white;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100; /* Ensure header is always on top */
}

.logo {
    font-size: 1.5em;
    font-weight: 800;
    color: var(--color-primary);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li a {
    text-decoration: none;
    color: var(--color-text-dark);
    padding: 10px 15px;
    font-weight: 600;
}

nav ul li a:hover {
    color: var(--color-accent);
}

.contact-header {
    font-weight: 600;
    color: var(--color-primary);
}

/* --- HAMBURGER MENU STYLES (Desktop Hidden by Default) --- */
.menu-toggle {
    display: none; /* Hidden on large screens */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 20; 
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary); /* Default is dark blue */
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

/* --- 5. HERO SECTION & ANIMATION --- */

@keyframes subtleZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.03); } /* Zoom in 3% */
}

.hero-section {
    height: 500px; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    color: var(--color-text-light);
    position: relative;
    overflow: hidden; /* Important for animation */
}

/* Animated Background Image */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* IMPORTANT: Update this path to your image location */
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
    z-index: 1; 
    animation: subtleZoom 20s infinite alternate ease-in-out; 
}

/* Dark Overlay */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.45); 
    z-index: 2; 
}

.hero-content {
    z-index: 3; 
    max-width: 600px;
    padding: 20px;
}

.hero-content h1 {
    color: white;
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 25px;
}

/* --- 6. TRUST BAR --- */

.trust-bar {
    background-color: var(--color-primary);
    display: flex;
    justify-content: space-around;
    padding: 20px;
    color: white;
}

.trust-item {
    display: flex;
    align-items: center;
}

.trust-item i {
    font-size: 1.5em;
    margin-right: 10px;
    color: var(--color-accent);
}

.trust-item h3 {
    color: white; /* FIX: Ensure the headline is white */
    font-size: 1.1em;
    margin: 0 0 5px 0; 
    font-weight: 700;
}
.trust-item p {
    color: white; /* FIX: Ensure the paragraph text is white */
    font-size: 0.9em;
    line-height: 1.3;
}


/* --- 7. SERVICE OVERVIEW --- */

.service-overview {
    background-color: var(--color-secondary);
}

.service-overview .intro-text {
    max-width: 800px;
    margin: 15px auto 40px;
    font-size: 1.1em;
}

.service-grid {
    display: flex;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.service-card i {
    color: var(--color-accent); 
    margin-bottom: 15px;
    display: block; 
}

.service-card a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

/* --- 8. URGENT CTA --- */

.urgent-cta {
    /* IMPORTANT: Update this path to your image location */
    background: url('../images/roof-leak-cta.jpg') no-repeat center center/cover; 
    padding: 80px 20px;
    color: white;
    position: relative;
}

.urgent-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 61, 98, 0.8); /* Dark Blue overlay for contrast */
    z-index: 1;
}

.cta-content {
    z-index: 2;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2, .cta-content p {
    color: white;
}

/* --- 9. FOOTER --- */

footer {
    background-color: var(--color-text-dark);
    color: var(--color-secondary);
    padding: 40px 20px 20px;
    font-size: 0.9em;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-grid h4 {
    color: var(--color-accent);
    margin-bottom: 15px;
}

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

.footer-links a, .footer-contact p {
    color: var(--color-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ======================================================= */
/* --- 10. MOBILE RESPONSIVENESS (Max-width 768px) --- */
/* ======================================================= */

@media (max-width: 768px) {
    
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }

    /* Header adjustments */
    header {
        padding: 15px 20px;
        flex-wrap: nowrap;
    }

    nav {
        order: 3; 
        width: 100%;
        margin-top: 10px;
    }
    
    .cta-button.primary-cta {
        display: none; /* Hide primary CTA in header on small screen */
    }

    .contact-header {
        display: none; /* Hide contact in header, put it in the open menu */
    }
    
    /* Show the hamburger icon */
    .menu-toggle {
        display: flex;
    }

    /* Hamburger Active State (X and White Color) */
    .menu-toggle.active .bar {
        background-color: white; /* Change color for better contrast against the dark menu */
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0; 
    }
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(11px) rotate(45deg); 
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg); 
    }
    
    /* --- Mobile Navigation Collapsible Panel --- */
    #main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Start off-screen to the right */
        width: 70%;
        max-width: 300px;
        height: 100%;
        background-color: var(--color-primary); 
        box-shadow: -2px 0 10px rgba(0,0,0,0.5);
        transition: right 0.4s ease-in-out; /* Slide Animation */
        padding-top: 80px; 
        z-index: 15;
    }
    
    #main-nav.open {
        right: 0; /* Slide in smoothly */
    }
    
    #main-nav ul {
        flex-direction: column;
        padding: 0;
    }
    
    #main-nav ul li a {
        color: white; 
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left;
    }

    /* Hero section adjustments */
    .hero-section {
        height: 400px;
    }
    .hero-content {
        text-align: center;
    }
    .hero-content h1 {
        font-size: 1.8em; 
    }
    .hero-content p {
        font-size: 1em;
    }
    
    /* Trust Bar adjustments */
    .trust-bar {
        flex-direction: column; /* Stack items vertically */
        padding: 15px;
        align-items: flex-start;
    }
    .trust-item {
        padding: 8px 0;
        text-align: left;
    }

    /* Service Grid adjustments */
    .service-grid {
        flex-direction: column; /* Stack cards vertically */
    }

    .service-card {
        margin-bottom: 20px;
    }

    /* Footer adjustments */
    .footer-grid {
        flex-direction: column;
        text-align: center;
    }
}

/* Ensure desktop menu remains visible when screen is large */
@media (min-width: 769px) {
    #main-nav {
        /* Undo mobile fixed position settings */
        position: static; 
        width: auto;
        height: auto;
        background-color: transparent;
        box-shadow: none;
        padding-top: 0;
    }
}
/* --- ABOUT PAGE SPECIFIC STYLES --- */

/* Page Banner (Used instead of the animated hero on inner pages) */
.page-banner {
    background-color: var(--color-primary);
    padding: 80px 20px;
    color: white;
    text-align: center;
}

.page-banner h1 {
    color: white;
    font-size: 2.5em;
    text-transform: uppercase;
}

/* About Story Section - Layout for Image and Text */
.about-story {
    background-color: white;
}

.about-story h2 {
    margin-bottom: 40px;
}

.content-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto 50px;
    align-items: center;
    text-align: left;
}

.text-block {
    flex: 1;
    font-size: 1.1em;
}

.image-block {
    flex: 1;
    max-width: 45%;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Core Values Grid */
.core-values-grid {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    max-width: 1100px;
    margin: 60px auto 0;
    padding-top: 40px;
    border-top: 1px solid var(--color-secondary);
}

.value-item {
    flex: 1;
    padding: 15px;
    text-align: center;
}

.value-item i {
    color: var(--color-primary);
    margin-bottom: 10px;
}

.value-item h3 {
    font-size: 1.2em;
    color: var(--color-accent);
}

/* Expertise Details Section */
.expertise-section {
    background-color: var(--color-secondary);
}

.expertise-details {
    display: flex;
    gap: 30px;
    max-width: 1100px;
    margin: 40px auto 0;
}

.detail-card {
    flex: 1;
    padding: 25px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.detail-card i {
    color: var(--color-accent);
    margin-bottom: 10px;
}

.detail-card h4 {
    color: var(--color-primary);
    font-size: 1.1em;
}


/* --- MOBILE MEDIA QUERIES FOR ABOUT PAGE --- */
@media (max-width: 768px) {
    .page-banner {
        padding: 50px 15px;
    }
    .page-banner h1 {
        font-size: 2em;
    }

    .content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .image-block {
        max-width: 100%; /* Image takes full width on mobile */
        order: -1; /* Move image above text block */
    }

    .core-values-grid {
        flex-direction: column;
    }
    .expertise-details {
        flex-direction: column;
    }
    .detail-card {
        text-align: center;
    }
    .detail-card i {
        display: block;
    }
}
/* --- SERVICES PAGE SPECIFIC STYLES --- */

.service-group {
    padding: 80px 20px;
}

.service-group .container {
    max-width: 1100px;
    margin: 0 auto;
}

.service-group .intro-text {
    max-width: 800px;
    margin: 15px auto 40px;
    font-size: 1.1em;
}

.service-group i.fa-4x {
    color: var(--color-primary);
    margin-bottom: 15px;
}

.alt-background {
    background-color: var(--color-secondary);
}

/* Service Item Grid (For Roofing/Waterproofing Section) */
.service-item-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Two Column Layout (For Electrical Section) */
.two-column-layout {
    display: flex;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.service-item {
    padding: 25px;
    background-color: white;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.service-item h3 {
    color: var(--color-accent);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.service-item i {
    color: var(--color-primary);
    margin-right: 10px;
}

.service-item ul {
    list-style: none;
    padding-left: 0;
}

.service-item ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.service-item ul li::before {
    content: "\f00c"; /* Checkmark icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--color-accent);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.8em;
}

/* General Construction Details */
.construction-details {
    max-width: 700px;
    margin: 30px auto 40px;
    text-align: left;
}
.construction-details ul {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}
.construction-details ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}
.construction-details ul li::before {
    content: "\f013"; /* Gear icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--color-accent);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.9em;
}


/* --- MOBILE MEDIA QUERIES FOR SERVICES PAGE --- */
@media (max-width: 768px) {
    .service-item-grid,
    .two-column-layout {
        grid-template-columns: 1fr; /* Stack all service items */
        flex-direction: column;
    }

    .service-group {
        padding: 50px 15px;
    }
    .service-group h2 {
        font-size: 1.6em;
    }
    .service-item {
        margin-bottom: 15px;
    }
}
        /* ADDITIONS to your existing CSS for the form layout */
        .contact-content {
            max-width: 700px;
            margin: 0 auto;
            text-align: left;
        }
        .contact-form {
            display: grid;
            gap: 20px;
            padding: 30px;
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }
        .form-group label {
            display: block;
            font-weight: 600;
            margin-bottom: 5px;
            color: var(--color-primary);
        }
        .form-group input[type="text"],
        .form-group input[type="email"],
        .form-group textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid var(--color-secondary);
            border-radius: 4px;
            font-size: 1em;
            transition: border-color 0.3s;
        }
        .form-group input:focus, .form-group textarea:focus {
            border-color: var(--color-accent);
            outline: none;
        }
        .service-radio-group {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
        }
        .service-radio-group label {
            display: inline-flex;
            align-items: center;
            font-weight: 400;
            cursor: pointer;
        }
        .form-submit-button {
            width: 100%;
            border: none;
            cursor: pointer;
            text-align: center;
        }

        /* Direct Contact Info */
        .direct-contact {
            text-align: center;
            margin-top: 40px;
            padding: 20px;
            border-top: 1px solid var(--color-secondary);
        }
        .direct-contact a {
            display: block;
            text-decoration: none;
            font-size: 1.2em;
            margin: 10px 0;
            color: var(--color-primary);
            font-weight: 600;
        }
        .direct-contact a i {
            margin-right: 10px;
            color: var(--color-accent);
        }
        
        /* ADD THIS TO YOUR main css/styles.css file */

/* Form Styling - Ensures button takes full width */
.form-submit-button {
    width: 100%;
    border: none;
    cursor: pointer;
    text-align: center;
    /* Important: We explicitly set margin top for spacing */
    margin-top: 20px; 
}
/* Ensure the form button uses the primary CTA styles */
.form-submit-button.primary-cta {
    /* Inherits styling from .primary-cta */
    display: block; /* Make sure it's a block element to take up 100% width */
}

        /* ADDITIONS to your existing CSS for the Gallery layout */
        
        .gallery-intro {
            max-width: 800px;
            margin: 0 auto;
        }

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            max-width: 1200px;
            margin: 40px auto;
        }

        .gallery-item {
            background-color: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }

        .gallery-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
        }

        .gallery-item img {
            width: 100%;
            height: 250px; /* Uniform height for clean grid layout */
            object-fit: cover; /* Ensures images fill the frame */
            display: block;
        }

        .gallery-caption {
            padding: 15px;
            text-align: left;
        }

        .gallery-caption h4 {
            color: var(--color-primary);
            margin-bottom: 5px;
            font-size: 1.1em;
        }

        .gallery-caption p {
            font-size: 0.9em;
            color: #666;
        }
        
        /* Mobile specific grid adjustment */
        @media (max-width: 600px) {
            .gallery-grid {
                grid-template-columns: 1fr;
            }
        }
    