/* RESET */

:root {
    /*--primary: #0D47A1;
    --accent: #1976D2;
    --dark: #1F2937;
    --light: #F8FAFC;*/
    --primary: #0D47A1;
    --primary-light: #1976D2;
    --dark: #1F2937;
    --accent: #F59E0B;
    --light: #F8FAFC;
    --text: #374151;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    line-height: 1.7;
    font-size: 1rem;
}

h1,
h2,
h3,
.logo {
    font-family: 'Montserrat', sans-serif;
/*    color: var(--primary);*/
}

/* LAYOUT */

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 140px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

    .section h2 {
        font-size: 3rem;
        font-weight: 800;
        margin-bottom: 15px;
    }

.section-title h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    margin: 15px auto 0;
    background: var(--primary);
}

.light {
    background: #f7f7f7;
}

/* HEADER */

.header {
    position: sticky;
    top: 0;
    background: var(--primary);
    box-shadow: 0 2px 15px rgba(0,0,0,.2);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-size: 1.8rem;
    color: white;
    font-weight: 800;
    letter-spacing: 0.5px;
}

nav {
    display: flex;
    gap: 25px;
}

    nav a {
        color: white;
        text-decoration: none;
        font-weight: 600;
        padding: 10px 15px;
        border-radius: 6px;
        transition: .3s ease;
    }

        nav a:hover {
            background: rgba(255,255,255,0.15);
        }

.nav-highlight {
    background: white;
    color: var(--primary) !important;
    border-radius: 25px;
    padding: 10px 18px;
    font-weight: 700;
    transition: all .25s ease;
}

    .nav-highlight:hover {
        background: var(--primary-light);
        color: white !important;
    }

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

/*.hero {
    padding: 100px 0;
}*/

/*.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}*/

/*.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}*/

/*.hero-image img {
    width: 100%;
    border-radius: 10px;*/
/*}*/

.hero {
    background-image: linear-gradient( rgba(0,0,0,0.65), rgba(0,0,0,0.65) ), url('/images/hero-plumber.png');
    background-size: cover;
    background-position: center center;
    min-height: 700px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    width: 100%;
}

.hero-content {
    max-width: 700px;
    color: white;
}

    .hero-content h1 {
        /*        font-size: 4.5rem;
        font-weight: 800;
        line-height: 1.1;
        margin-bottom: 25px;*/
        font-size: 4.8rem;
        font-weight: 800;
        line-height: 1;
        letter-spacing: -2px;
    }

    .hero-content p {
        max-width: 650px;
        font-size: 1.25rem;
        margin-bottom: 35px;
    }

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    /*display: inline-block;*/
    /*background: #0b5ed7;*/
    /*background: var(--primary);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;*/
    background: var(--accent);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .25s ease;    
}

    .btn:hover {
/*        opacity: 0.9;*/
        background-color: #d97706;
        /*        transform: translateY(-2px);*/
    }

.btn-secondary {
    /*background: #333;*/
    background: var(--dark);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.trust-bar {
    background: var(--primary);
    color: white;
}

    .trust-bar .container {
        display: flex;
        justify-content: space-around;
        padding: 20px;
        flex-wrap: wrap;
    }

/*.services-grid {
    display: grid;*/
    /*grid-template-columns: repeat(4, 1fr);*/
    /*grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 25px;
    margin-top: 40px;
}*/

.container-wide {
    max-width: 1500px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hero-trust {
    margin-top: 30px;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    color: white;
    font-weight: 600;
}

.service-card {
    /*background: white;
    padding: 35px;
    border-radius: 12px;*/
    /*box-shadow: 0 2px 12px rgba(0,0,0,.08);*/
    /*border-top: 5px solid var(--primary);
    text-align: center;*/
    /*    transition: .3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);*/
    /*box-shadow: 0 8px 25px rgba(0,0,0,.08);
    transition: .3s ease;*/
    background: white;
    /*padding: 35px;*/
    padding: 28px 24px;
    border-radius: 12px;
    border-top: 5px solid var(--primary);
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    transition: box-shadow .25s ease;
}

    .service-card:hover {
        /*transform: translateY(-8px);*/
        box-shadow: 0 12px 30px rgba(0,0,0,.12);
    }

    .service-card h3 {
        margin-bottom: 15px;
        color: var(--primary);
    }

#about p {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    white-space: pre-line;
}

.testimonial-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}   

.testimonial-grid {
    /*display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;*/
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 4px 20px;
    flex: 1;
    /* hide scrollbar (still scrollable via arrows/touch/trackpad) */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .testimonial-grid::-webkit-scrollbar {
        display: none;
    }

.testimonial-card {
    /*background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);*/
    background: white;
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid var(--accent);
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    text-align: center;
    flex: 0 0 380px;
    scroll-snap-align: start;
}

    .testimonial-card:hover {
        box-shadow: 0 10px 25px rgba(0,0,0,.1);
    }

    .testimonial-card p {
        font-style: italic;
        font-size: 1.05rem;
        line-height: 1.8;
        margin-bottom: 20px;
    }

    .testimonial-card strong {
        display: block;
        color: var(--primary);
        font-weight: 700;
    }

.testimonial-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background-color: #fff;
    color: #1E3A5F;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

    .testimonial-arrow:hover {
        background-color: #f3f4f6;
    }

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 85%;
    }
}

.area-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.area-pill {
    background: var(--primary);
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        padding: 15px;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 6px;
    }

    .contact-form textarea {
        min-height: 150px;
    }

.contact-btn {
    background: var(--primary);
    color: white;
    border: none;
    display: block;
    margin: 20px auto 0;
}

    .contact-btn:hover {
        background: var(--primary-light);
    }

.contact-message {
    max-width: 700px;
    margin: 0 auto 20px;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.contact-success {
    background: #d1fae5;
    color: #065f46;
}

.contact-error {
    background: #fee2e2;
    color: #991b1b;
}

/*.footer {
    background: #222;
    color: white;
    padding: 40px 0;
    text-align: center;
}*/

.site-footer {
    background-color: var(--admin-navy, #14213D);
    color: #CBD5E1;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding: 50px 20px 40px;
}

.footer-col h3 {
    color: #fff;
    margin: 0 0 12px;
}

.footer-col h4 {
    color: #fff;
    margin: 0 0 14px;
    font-size: 1rem;
}

.footer-col p {
    margin: 0 0 10px;
    line-height: 1.6;
}

.footer-contact strong {
    color: #E2E8F0;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-links a {
        color: #CBD5E1;
        text-decoration: none;
    }

        .footer-links a:hover {
            color: #fff;
            text-decoration: underline;
        }

.footer-areas li {
    color: #94A3B8;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 18px 0;
}

    .footer-bottom p {
        margin: 0;
        text-align: center;
        font-size: 0.85rem;
        color: #94A3B8;
    }

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(350px,1fr));
    gap: 30px;
}

.gallery-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    transition: box-shadow .25s ease;
}

/*.gallery-card img {
    width: 100%;*/
    /*height: 250px;
    object-fit: cover;*/
    /*width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}*/

.gallery-thumbnail {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.gallery-card:hover {
    /*transform: translateY(-6px);*/
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.gallery-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

    .gallery-content p {
        margin: 0;
    }

.btn-small {
    padding: 10px 18px;
    font-size: 0.9rem;
    align-self: flex-start;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 20px;
    margin: 40px 0;
}

.project-image {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.9);
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    margin-top: 50px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

@media (max-width: 768px) {

    .hero {
        min-height: 500px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    nav {
        display: none;
        flex-direction: column;
        padding: 20px;
    }

        nav.show {
            display: flex;
        }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 3rem;
        letter-spacing: -1px;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .25s ease;
}

    .modal-nav:hover {
        background: rgba(0, 0, 0, 0.75);
    }

.modal-prev {
    left: 30px;
}

.modal-next {
    right: 30px;
}

.image-counter {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 15px;
    border-radius: 20px;
}

@media (max-width: 768px) {

    .modal-nav {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }

    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }
}

.service-description {
    white-space: pre-line;
}

