/* --- CSS VARIABLES & RESET --- */
:root {
    --primary-blue: #2c4786;
    --secondary-blue: #1e3366;
    --accent-orange: #ff9f1c;
    --dark-grey: #222222;
    --light-grey: #f8f9fa;
    --white: #ffffff;
    --text-color: #333;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

body { line-height: 1.6; color: var(--text-color); background-color: var(--light-grey); overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- WIDE LAYOUT CONTAINER --- */
.container { 
    max-width: 1800px; /* Increased from 1200px to allow wide expansion */
    width: 92%;        /* Takes up 92% of the screen width */
    margin: 0 auto; 
    padding: 0 20px; 
}

/* --- HEADER & NAVIGATION --- */
header { background: rgba(255, 255, 255, 0.98); box-shadow: 0 4px 6px rgba(0,0,0,0.05); position: fixed; width: 100%; top: 0; z-index: 1000; }
.top-bar { background: var(--primary-blue); color: var(--white); padding: 8px 0; font-size: 0.85rem; text-align: center; letter-spacing: 1px; }

nav { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { display: flex; align-items: center; font-weight: 800; font-size: 1.5rem; color: var(--primary-blue); text-transform: uppercase; }
.logo img { height: 50px; margin-right: 15px; }

.nav-links { display: flex; gap: 40px; } /* Increased gap for wider look */
.nav-links a { font-weight: 600; font-size: 1rem; text-transform: uppercase; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-orange); }

.cta-btn { background: var(--accent-orange); color: var(--white) !important; padding: 12px 35px; border-radius: 50px; font-weight: bold; box-shadow: 0 4px 15px rgba(32, 73, 206, 0.4); }
.cta-btn:hover { background: #e68a00; transform: translateY(-2px); }
.cta-btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white) !important; padding: 12px 35px; border-radius: 50px; font-weight: bold; }
.cta-btn-outline:hover { background: var(--white); color: var(--primary-blue) !important; }

#hero {
    background: linear-gradient(rgba(44, 71, 134, 0.8), rgba(30, 51, 102, 0.8)), url('./assets/plumbing.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;

    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    color: var(--white);
    margin-bottom: 50px;
    padding: 160px 0 120px;

    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero-content {
    max-width: 900px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    color: var(--white);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}


/* --- SECTIONS --- */
section { padding: 100px 0; } /* Increased padding for more breathing room */
.bg-white { background: var(--white); }
.bg-light { background: var(--light-grey); }
.section-title { text-align: center; margin-bottom: 80px; }
.section-title h2 { font-size: 2.8rem; color: var(--primary-blue); position: relative; display: inline-block; margin-bottom: 20px; }
.section-title h2::after { content: ''; position: absolute; width: 80px; height: 5px; background: var(--accent-orange); bottom: -15px; left: 50%; transform: translateX(-50%); }
.section-title p { max-width: 700px; margin: 0 auto; font-size: 1.1rem; color: #666; }

/* --- CARDS (Fluid Grid) --- */
/* Cards will auto-expand to fill the wider screen */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }

.service-card { 
    background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); 
    transition: all 0.4s ease; border: 1px solid #eee;
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0,0,0,0.15); }

.card-image-header { height: 220px; background-size: cover; background-position: center; position: relative; }
.card-icon-overlay {
    position: absolute; bottom: -30px; right: 30px; background: var(--accent-orange); color: white;
    width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.card-body { padding: 40px 30px 30px; }
.card-body h3 { font-size: 1.5rem; color: var(--primary-blue); margin-bottom: 15px; }
.card-body p { font-size: 1rem; color: #555; }

/* --- PROCESS STEPS --- */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; text-align: center; }
.process-step { background: white; padding: 40px; border-radius: 15px; box-shadow: var(--shadow); }
.step-number { 
    background: var(--primary-blue); color: white; width: 50px; height: 50px; border-radius: 50%; 
    line-height: 50px; font-weight: bold; margin: 0 auto 20px; font-size: 1.2rem;
}

/* --- PORTFOLIO GALLERY --- */
/* Allows more columns on wider screens */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 30px; }
.project-card { position: relative; border-radius: 12px; overflow: hidden; height: 350px; cursor: pointer; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.project-info {
    position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white; padding: 30px; transform: translateY(100%); transition: transform 0.4s;
}
.project-card:hover img { transform: scale(1.1); }
.project-card:hover .project-info { transform: translateY(0); }
.project-info h3 { font-size: 1.5rem; color: var(--accent-orange); }

/* --- EXTENDED FOOTER STYLES --- */
footer {
    background: #111;
    color: #b0b0b0;
    padding: 80px 0 30px;
    border-top: 6px solid var(--accent-orange);
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Wide columns */
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-orange);
    display: inline-block;
}

.footer-col p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
    border-bottom: 1px solid #222;
    padding-bottom: 12px;
    transition: 0.3s;
}

.footer-links a {
    display: flex;
    align-items: center;
    color: #b0b0b0;
}

.footer-links a i {
    margin-right: 10px;
    font-size: 0.8rem;
    color: var(--accent-orange);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 10px;
}

/* Contact Info in Footer */
.footer-contact-item {
    display: flex;
    align-items: start;
    margin-bottom: 20px;
}

.footer-contact-item i {
    color: var(--accent-orange);
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 5px;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #222;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--accent-orange);
    transform: translateY(-3px);
}

.footer-bottom {
    background: #000;
    padding: 25px 0;
    margin-top: 40px;
    border-top: 1px solid #222;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}
/* --- MOBILE --- */
.menu-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: var(--primary-blue); }

@media (max-width: 1024px) {
    .container { width: 95%; max-width: 100%; } /* Utilize full width on tablets */
    .hero-content h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links { 
        display: none; position: absolute; top: 80px; left: 0; width: 100%; background: white; 
        flex-direction: column; padding: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    }
    .nav-links.active { display: flex; }
    .hero-content h1 { font-size: 2.5rem; }
    #hero { clip-path: none; height: 85vh; }
    .gallery-grid { grid-template-columns: 1fr; }
}

/* --- HERO MOBILE FIX --- */
@media (max-width: 768px) {
    .menu-toggle { display: block; }

    .nav-links { 
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 30px;
        box-shadow: 0 5px 15px rgba(119, 48, 48, 0.1);
    }

    .nav-links.active { display: flex; }

    #hero {
        clip-path: none;
        min-height: auto;
        padding: 140px 0 80px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1.05rem;
        padding: 0 10px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons a {
        width: 85%;
        max-width: 320px;
        text-align: center;
    }

    .gallery-grid { grid-template-columns: 1fr; }
}


@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.85rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    #hero {
        padding: 130px 0 70px;
    }
}
