﻿/* =========================
   ROUSE PLUMBING
   ========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: Arial, Helvetica, sans-serif;
    color: #17202a;
    background: #ffffff;
}

.container {
    width: min(1120px, 90%);
    margin: 0 auto;
}


/* HEADER */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.header-content {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo {
    display: block;
    width: 150px;
    height: auto;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

    .desktop-nav a {
        color: #374151;
        text-decoration: none;
        font-weight: 600;
    }

        .desktop-nav a:hover {
            color: #1261a0;
        }

.header-button {
    padding: 13px 20px;
    border-radius: 6px;
    background: #1261a0;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
}

    .header-button:hover {
        background: #0d4f85;
    }


/* =========================
   HOMEPAGE
   ========================= */

.hero {
    min-height: 620px;
    display: flex;
    align-items: center;
    padding: 60px 0;
    background: linear-gradient( 110deg, #f8fafc 0%, #f8fafc 55%, #edf5fa 55%, #edf5fa 100% );
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-text {
    min-width: 0;
}

.eyebrow {
    margin: 0 0 12px;
    color: #1261a0;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero h1 {
    max-width: 600px;
    margin: 0;
    color: #111827;
    font-size: clamp(48px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -3px;
}

.hero-description {
    max-width: 570px;
    margin: 28px 0;
    color: #4b5563;
    font-size: 20px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-block;
    padding: 16px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
}

.button-primary {
    background: #1261a0;
    color: #ffffff;
}

.button-secondary {
    border: 2px solid #1261a0;
    background: #ffffff;
    color: #1261a0;
}

.hero-card {
    min-width: 0;
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.hero-image-card {
    padding: 0;
}

.hero-image {
    display: block;
    width: 100%;
    height: 400px;
    object-fit: cover;
}


/* =========================
   REQUEST SERVICE PAGE
   ========================= */

.request-page {
    min-height: calc(100vh - 82px);
    padding: 48px 0 55px;
    background: linear-gradient( 135deg, #f8fafc 0%, #f8fafc 55%, #edf5fa 100% );
}

.request-heading {
    max-width: 760px;
    margin-bottom: 32px;
}

    .request-heading h1 {
        margin: 0 0 14px;
        color: #111827;
        font-size: 48px;
        line-height: 1.05;
        letter-spacing: -2px;
    }

    .request-heading > p:last-child {
        margin: 0;
        color: #4b5563;
        font-size: 17px;
        line-height: 1.5;
    }

.service-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.service-choice {
    min-height: 220px;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e1e7ec;
    border-radius: 14px;
    background: #ffffff;
    color: #17202a;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.055);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .service-choice:hover {
        transform: translateY(-4px);
        border-color: #1261a0;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.10);
    }

.service-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #edf5fa;
    font-size: 22px;
}

.service-choice h2 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 23px;
}

.service-choice p {
    margin: 0 0 15px;
    color: #5b6470;
    font-size: 15px;
    line-height: 1.45;
}

.service-choice span {
    margin-top: auto;
    color: #1261a0;
    font-size: 15px;
    font-weight: 800;
}


/* =========================
   SERVICE FORM PAGE
   ========================= */

.service-form-page {
    min-height: calc(100vh - 82px);
    padding: 38px 0 70px;
    background: linear-gradient( 135deg, #f8fafc 0%, #f8fafc 55%, #edf5fa 100% );
}

.back-link {
    display: inline-block;
    margin-bottom: 28px;
    color: #1261a0;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
}

    .back-link:hover {
        text-decoration: underline;
    }

.form-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
    gap: 60px;
}


/* FORM INTRO */

.form-intro {
    padding-top: 18px;
}

    .form-intro h1 {
        margin: 0 0 20px;
        color: #111827;
        font-size: 52px;
        line-height: 1.02;
        letter-spacing: -2px;
    }

.form-intro-text {
    margin: 0 0 30px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.6;
}


/* EMERGENCY CARD */

.form-help-card {
    padding: 22px;
    border-left: 4px solid #1261a0;
    border-radius: 8px;
    background: #edf5fa;
}

    .form-help-card h3 {
        margin: 0 0 8px;
        color: #111827;
        font-size: 18px;
    }

    .form-help-card p {
        margin: 0 0 12px;
        color: #4b5563;
        font-size: 15px;
        line-height: 1.5;
    }

    .form-help-card a {
        color: #1261a0;
        text-decoration: none;
        font-weight: 800;
    }


/* FORM CARD */

.form-card {
    padding: 32px;
    border: 1px solid #e1e7ec;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

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

    .form-group label {
        display: block;
        margin-bottom: 7px;
        color: #202936;
        font-size: 14px;
        font-weight: 700;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        padding: 13px 14px;
        border: 1px solid #cfd6dd;
        border-radius: 7px;
        background: #ffffff;
        color: #17202a;
        font-family: inherit;
        font-size: 16px;
        outline: none;
    }

    .form-group textarea {
        resize: vertical;
    }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            border-color: #1261a0;
            box-shadow: 0 0 0 3px rgba(18, 97, 160, 0.10);
        }

    .form-group input[type="file"] {
        padding: 10px;
    }

    .form-group small {
        display: block;
        margin-top: 7px;
        color: #6b7280;
        font-size: 13px;
    }


/* SUBMIT */

.submit-button {
    width: 100%;
    padding: 15px 20px;
    border: 0;
    border-radius: 7px;
    background: #1261a0;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

    .submit-button:hover {
        background: #0d4f85;
    }

.form-note {
    margin: 12px 0 0;
    color: #6b7280;
    text-align: center;
    font-size: 13px;
}


/* =========================
   TABLET
   ========================= */

@media (max-width: 800px) {

    .header-content {
        min-height: 72px;
        gap: 15px;
    }

    .header-logo {
        width: 120px;
    }

    .desktop-nav {
        display: none;
    }

    .header-button {
        padding: 11px 14px;
        font-size: 14px;
    }

    .hero {
        min-height: auto;
        padding: 70px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hero h1 {
        font-size: 52px;
    }

    .hero-description {
        font-size: 18px;
    }

    .hero-image {
        height: 300px;
    }

    .request-page {
        padding: 45px 0 60px;
    }

    .service-choice-grid {
        grid-template-columns: 1fr;
    }

    .service-choice {
        min-height: 210px;
    }

    .form-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .form-intro h1 {
        font-size: 44px;
    }
}


/* =========================
   PHONE
   ========================= */

@media (max-width: 480px) {

    .container {
        width: 92%;
    }

    .header-logo {
        width: 105px;
    }

    .header-button {
        padding: 10px 12px;
        font-size: 13px;
    }

    .hero {
        padding: 55px 0;
    }

        .hero h1 {
            font-size: 44px;
        }

    .hero-description {
        font-size: 17px;
    }

    .button {
        width: 100%;
        text-align: center;
    }

    .hero-image {
        height: 250px;
    }

    .request-page {
        padding: 35px 0 50px;
    }

    .request-heading {
        margin-bottom: 28px;
    }

        .request-heading h1 {
            font-size: 38px;
        }

        .request-heading > p:last-child {
            font-size: 16px;
        }

    .service-choice {
        min-height: auto;
        padding: 22px;
    }

    .service-form-page {
        padding: 28px 0 50px;
    }

    .form-intro {
        padding-top: 0;
    }

        .form-intro h1 {
            font-size: 38px;
        }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-card {
        padding: 22px;
    }
}

/* =====================================================
   ABOUT PAGE
   ===================================================== */

.about-page {
    padding: 80px 0;
    background: #f5f7fa;
}

.about-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 80px;
    align-items: start;
}

.about-content h1 {
    margin: 10px 0 24px;
    max-width: 650px;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    line-height: 1.05;
    color: #111827;
}

.about-content > p:not(.eyebrow) {
    max-width: 680px;
    margin: 0 0 20px;
    color: #4b5563;
    font-size: 1.08rem;
    line-height: 1.75;
}

.about-content .about-lead {
    color: #263442;
    font-size: 1.25rem;
}

.about-buttons {
    display: flex;
    gap: 14px;
    margin-top: 32px;
}

.about-values-card {
    padding: 38px;
    background: #ffffff;
    border: 1px solid #dce3e9;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
}

.about-value {
    padding: 24px 0;
    border-bottom: 1px solid #e5e7eb;
}

    .about-value:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }

    .about-value h3 {
        margin: 0 0 8px;
        color: #111827;
        font-size: 1.15rem;
    }

    .about-value p {
        margin: 0;
        color: #5d6770;
        line-height: 1.6;
    }

.about-philosophy {
    padding: 75px 0;
    background: #ffffff;
}

.about-philosophy-content {
    max-width: 780px;
}

.about-philosophy h2 {
    margin: 10px 0 22px;
    color: #111827;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}

.about-philosophy p:not(.eyebrow) {
    margin: 0 0 18px;
    color: #4b5563;
    font-size: 1.08rem;
    line-height: 1.75;
}


@media (max-width: 800px) {

    .about-page {
        padding: 50px 0;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-content h1 {
        font-size: 2.7rem;
    }

    .about-buttons {
        flex-direction: column;
    }

        .about-buttons .button {
            width: 100%;
            text-align: center;
        }

    .about-values-card {
        padding: 28px;
    }

    .about-philosophy {
        padding: 50px 0;
    }
}

/* =====================================================
   SERVICE AREA PAGE
   ===================================================== */

.service-area-page {
    background: #f4f7fa;
    min-height: calc(100vh - 90px);
    padding: 80px 0;
}

.service-area-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 90px;
    align-items: start;
}

.service-area-content h1 {
    margin: 12px 0 24px;
    max-width: 650px;
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    color: #111827;
}

.service-area-content p {
    max-width: 650px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #475569;
}

.service-area-lead {
    margin-bottom: 20px;
}

.service-area-side {
    width: 100%;
}

.service-area-card {
    background: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 20px;
    padding: 38px 40px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

    .service-area-card .eyebrow {
        margin-top: 0;
        margin-bottom: 28px;
    }

.service-county {
    padding: 18px 0;
    border-bottom: 1px solid #e2e8f0;
}

    .service-county:first-of-type {
        padding-top: 0;
    }

    .service-county h3 {
        margin: 0 0 8px;
        font-size: 1.08rem;
        color: #111827;
    }

    .service-county p {
        margin: 0;
        color: #475569;
        line-height: 1.6;
    }

.service-area-note {
    margin: 26px 0 0;
    color: #475569;
    line-height: 1.6;
}


/* MOBILE */

@media (max-width: 800px) {

    .service-area-page {
        padding: 50px 0;
    }

    .service-area-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .service-area-content h1 {
        font-size: 3rem;
    }

    .service-area-card {
        padding: 28px;
    }
}

/* Spam honeypot */
.website-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
/* PROJECT GALLERY */
.gallery-page { min-height: calc(100vh - 82px); background: #f4f7fa; padding: 74px 0 90px; }
.gallery-intro { max-width: 1120px; }
.gallery-intro h1 { margin: 12px 0 22px; max-width: 780px; color: #111827; font-size: clamp(2.8rem, 5.8vw, 4.6rem); line-height: 1.04; letter-spacing: -0.045em; }
.gallery-intro > p:last-child { color: #475569; max-width: 690px; font-size: 1.14rem; line-height: 1.7; }
.gallery-section { margin-top: 55px; }
.gallery-section-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; padding-bottom: 17px; border-bottom: 1px solid #dbe2ea; margin-bottom: 24px; }
.gallery-section-heading h2 { color: #111827; font-size: 1.5rem; margin: 0; }
.gallery-section-heading span { color: #64748b; font-size: .93rem; }
.gallery-empty { text-align: center; padding: 72px 22px; border: 1px dashed #b8c9d8; border-radius: 18px; background: #fff; }
.gallery-empty-icon { color: #1261a0; font-size: 3rem; line-height: 1; margin-bottom: 20px; }
.gallery-empty h3 { color: #111827; font-size: 1.65rem; margin: 0 0 14px; }
.gallery-empty p { color: #475569; line-height: 1.65; max-width: 520px; margin: 0 auto 26px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.gallery-item { margin: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 22px rgba(15,23,42,.06); }
.gallery-item a { display: block; }
.gallery-item img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; transition: transform .2s ease; }
.gallery-item a:hover img { transform:scale(1.025); }
.gallery-item figcaption { padding: 17px 19px; color: #111827; font-size: 1rem; font-weight: 700; }
.gallery-item figcaption span { display:block; color:#64748b; font-size:.9rem; font-weight:400; margin-top:5px; }
.desktop-nav a[aria-current="page"] { color: #1261a0; }
@media (max-width: 900px) { .desktop-nav { gap: 15px; } .header-content { gap: 14px; } .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 650px) { .header-content { flex-wrap:wrap; justify-content:center; padding: 14px 0; } .desktop-nav { order:3; width:100%; justify-content:center; flex-wrap:wrap; gap: 14px; font-size:.87rem; } .gallery-page { padding: 48px 0 65px; } .gallery-grid { grid-template-columns: 1fr; } .gallery-empty { padding: 50px 18px; } }

/* Founder story and the two-era photo archive */
.gallery-disclosure { padding: 16px 20px; border-left: 4px solid #1166bd; background:#eaf3fc; border-radius:0 10px 10px 0; max-width:850px !important; font-size:.96rem !important; }
.gallery-section-lead { color:#475569;line-height:1.7;max-width:790px;margin:0 0 28px;font-size:1.05rem; }
.gallery-new-era { padding:34px 38px 40px; background:#fff;border-radius:18px;border:1px solid #dbe2ea; }
.about-history { background:#eef5fb;padding:70px 0; }
.about-history-content { max-width:1050px; }
.about-history h2 { color:#111827;font-size:clamp(2rem,4vw,3rem);margin:10px 0 20px; }
.about-history p:not(.eyebrow) { max-width:770px;line-height:1.75;color:#475569;font-size:1.08rem; }
.about-history .button { margin-top:14px; }
@media(max-width:650px){.gallery-new-era{padding:25px 22px}.about-history{padding:48px 0}}

/* Compact gallery thumbnails: full photographs remain available on click */
@media (min-width: 1100px) {
  .gallery-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
}
@media (min-width: 701px) and (max-width: 1099px) {
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}
@media (min-width: 451px) and (max-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 450px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
.gallery-item { border-radius: 9px; }
.gallery-item img { aspect-ratio: 1 / 1; object-fit: cover; }
.gallery-item figcaption { padding: 9px 10px 11px; font-size: .81rem; line-height: 1.35; }

/* Small 2:3 portrait gallery cards, replacing earlier responsive rules */
.gallery-page .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 150px));
  justify-content: start;
  gap: 14px;
}
.gallery-page .gallery-item { width: 100%; max-width: 150px; border-radius: 8px; }
.gallery-page .gallery-item img { width: 100%; height: 225px; aspect-ratio: 2 / 3; object-fit: cover; }
.gallery-page .gallery-item figcaption { font-size: 12px; line-height: 1.35; padding: 8px; }
@media (max-width: 380px) {
  .gallery-page .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .gallery-page .gallery-item { max-width: none; }
  .gallery-page .gallery-item img { height: auto; aspect-ratio: 2 / 3; }
}

/* Center the portrait gallery as a whole and center incomplete rows. */
.gallery-page .gallery-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 14px !important;
  grid-template-columns: none !important;
}
.gallery-page .gallery-item { flex: 0 0 150px !important; width: 150px !important; max-width: 150px !important; margin: 0 !important; }
.gallery-page .gallery-item img { width: 150px !important; height: 225px !important; object-fit: cover !important; }
@media(max-width:360px){ .gallery-page .gallery-grid {gap:9px !important;} .gallery-page .gallery-item {flex-basis: calc((100% - 9px)/2) !important;width:calc((100% - 9px)/2) !important;} .gallery-page .gallery-item img{width:100% !important;height:auto !important;aspect-ratio:2/3 !important;} }
