/* ==========================================================================
   Plumber template — RSA Web Design
   Design language: deep petrol + lime green, white pill buttons, rounded
   cards, bold grotesk headings (after the "Plumbor" reference aesthetic).
   Colors live in the custom properties below so the build pipeline's palette
   customization can re-theme the whole site by editing only :root.
   ========================================================================== */

:root {
    --color-primary:        #4a90d9;  /* navy accent blue */
    --color-primary-bright: #6aaee8;
    --color-green-deep:     #1a3a6b;  /* deep navy */
    --color-green-text:     #1d4f91;  /* navy on light backgrounds */
    --color-dark:           #0d1f3c;  /* deep navy dark */
    --color-dark-2:         #0a1628;  /* near-black navy */
    --color-tint:           #e8eff8;  /* pale navy tint */
    --color-light:          #ffffff;
    --color-text:           #0a1628;
    --color-text-muted:     #5e5f63;
    --color-line:           #d0dcea;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-light);
}

img { max-width: 100%; display: block; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }

.section { padding: 5.5rem 0; }
.section-tint { background: var(--color-tint); }
.section-dark { background: var(--color-dark); color: #ffffff; }

.section-eyebrow {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-green-text);
    margin-bottom: 0.5rem;
}

.section-eyebrow--onDark { color: var(--color-primary-bright); }

.section-title {
    font-size: clamp(1.85rem, 4.2vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

.title-accent {
    color: var(--color-primary-bright);
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
    display: inline-block;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 0.85rem 1.9rem;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.12s, background 0.15s, color 0.15s, border-color 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.btn-primary:hover { background: var(--color-primary-bright); }

.btn-white {
    background: #ffffff;
    color: var(--color-dark-2);
    border-color: #ffffff;
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    background: transparent;
}

.btn-ghost:hover { border-color: var(--color-primary-bright); color: var(--color-primary-bright); }

.btn-block { width: 100%; text-align: center; border: none; font-family: inherit; font-size: 1rem; }

.btn-arrow { display: inline-block; margin-left: 0.4rem; }

/* ── Header / nav ─────────────────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(14, 21, 43, 0.08);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-dark-2);
    text-decoration: none;
}

.nav-brand-mark {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-green-deep);
    position: relative;
    flex-shrink: 0;
}

.nav-brand-mark::after {
    content: '';
    position: absolute;
    inset: 7px;
    border-radius: 50% 50% 50% 0;
    background: #ffffff;
    transform: rotate(45deg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.9rem;
    list-style: none;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-dark-2);
    text-decoration: none;
    transition: color 0.15s;
}

.nav-links a:hover { color: var(--color-green-text); }

.nav-cta {
    background: var(--color-primary);
    border-radius: 999px;
    padding: 0.55rem 1.2rem;
    color: #ffffff !important;
}

.nav-cta:hover { background: var(--color-primary-bright); color: #ffffff !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-dark-2);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
    position: relative;
    background: url('../images/hero.jpg') center/cover no-repeat;
    color: #ffffff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(95deg, rgba(10, 22, 40, 0.94) 15%, rgba(13, 31, 60, 0.72) 55%, rgba(10, 22, 40, 0.45));
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 3rem;
    align-items: center;
    padding-top: 6.5rem;
    padding-bottom: 6.5rem;
    min-height: 82vh;
}

.hero-eyebrow {
    color: var(--color-primary-bright);
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.6rem, 6.2vw, 4.2rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.015em;
    margin-bottom: 1.25rem;
}

.hero-sub { max-width: 32rem; margin-bottom: 2rem; font-size: 1.125rem; color: rgba(255, 255, 255, 0.9); }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-card {
    background: #ffffff;
    color: var(--color-text);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 24px 60px rgba(3, 20, 28, 0.35);
    justify-self: end;
    width: 100%;
    max-width: 360px;
}

.hero-card h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 1rem; }

.hero-card-list { list-style: none; margin-bottom: 1.5rem; }

.hero-card-list li {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--color-line);
    font-size: 0.9375rem;
}

.hero-card-list li:last-child { border-bottom: none; }

.hero-card-list strong {
    display: inline-block;
    min-width: 6.7rem;
    color: var(--color-green-text);
}

/* ── About ────────────────────────────────────────────────────────────── */

.about-grid {
    display: grid;
    grid-template-columns: 6fr 5fr;
    gap: 3.5rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-copy p { margin-bottom: 1.5rem; color: var(--color-text-muted); }

.about-media img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 18px;
}

.about-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.75rem; }

.about-chips li {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: #ffffff;
    border: 1px solid var(--color-line);
    box-shadow: 0 4px 14px rgba(14, 21, 43, 0.06);
    border-radius: 999px;
    padding: 0.5rem 1.1rem 0.5rem 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
}

.chip-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 800;
}

/* 2x2 checkerboard of navy feature tiles */
.why-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-radius: 18px;
    overflow: hidden;
}

.why-tile { padding: 2.5rem; }

.why-tile--deep { background: var(--color-green-deep); color: #ffffff; }
.why-tile--soft { background: var(--color-primary); color: #ffffff; }

.why-tile svg { width: 44px; height: 44px; margin-bottom: 1.25rem; }

.why-tile h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 0.5rem; }

.why-tile p { font-size: 0.9375rem; opacity: 0.9; }

/* ── Services ─────────────────────────────────────────────────────────── */

.services-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.services-head .section-title { margin-bottom: 0; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
}

.service-card--tint { background: #d0dcea; }

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50% 50% 50% 12px;
    background: var(--color-tint);
    margin-bottom: 1.5rem;
}

.service-card--tint .service-icon { background: #ffffff; }

.service-icon svg { width: 32px; height: 32px; color: var(--color-dark-2); }

.service-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.5rem; }

.service-card p { font-size: 0.9375rem; color: var(--color-text-muted); flex: 1; }

.service-link {
    margin-top: 1.25rem;
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--color-dark-2);
    text-decoration: none;
}

.service-link:hover { color: var(--color-green-text); }

/* ── Gallery ──────────────────────────────────────────────────────────── */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-grid img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
    border-radius: 14px;
    transition: transform 0.2s;
}

.gallery-grid img:hover { transform: scale(1.015); }

/* ── Team ─────────────────────────────────────────────────────────────── */

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.team-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.25rem 1.25rem 1.5rem;
    text-align: center;
}

.team-card img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 1rem;
    width: 100%;
}

.team-card h3 { font-size: 1.1rem; font-weight: 800; }

.team-role { color: var(--color-green-text); font-size: 0.9375rem; font-weight: 600; }

/* ── Testimonials ─────────────────────────────────────────────────────── */

/* Fixed-background "transparent" band — the photo reads through the cards.
   The image scrolls slower than the page (background-attachment: fixed);
   cards are semi-transparent so the image shows through them. */
.section-parallax {
    background-image: linear-gradient(rgba(10, 22, 40, 0.85), rgba(10, 22, 40, 0.85)), url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #eef4f0;
}

.section-parallax .section-title { color: #ffffff; }

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: rgba(10, 22, 40, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 18px;
    padding: 1.85rem;
}

.testimonial-card p { font-style: italic; margin-bottom: 1.25rem; color: #f1f7f3; }

.testimonial-card footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.78);
}

.testimonial-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-green-deep);
    color: #ffffff;
    font-weight: 800;
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.faq-wrap { max-width: 820px; }

.faq-item {
    background: #ffffff;
    border: 1px solid var(--color-line);
    border-radius: 14px;
    margin-bottom: 0.85rem;
    padding: 0 1.5rem;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    padding: 1.15rem 0;
    position: relative;
    padding-right: 2rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-green-text);
}

.faq-item[open] summary::after { content: '\2212'; }

.faq-item p { padding: 0 0 1.25rem; color: var(--color-text-muted); }

/* ── Contact ──────────────────────────────────────────────────────────── */

/* The map opens the section full-bleed — kill the section's own top
   padding so the band sits flush under the FAQ section */
.contact.section { padding-top: 0; }

.map-band {
    margin-bottom: 4.5rem;
    height: 420px;
    border-bottom: 1px solid rgba(74, 144, 217, 0.3);
}

.map-band iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 6fr 5fr;
    gap: 3.5rem;
    align-items: start;
}

.contact-info > p { margin-bottom: 1.75rem; color: rgba(255, 255, 255, 0.85); }

.contact-details { list-style: none; }

.contact-details li {
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(74, 144, 217, 0.22);
}

.contact-details strong {
    display: inline-block;
    min-width: 6.7rem;
    color: var(--color-primary-bright);
}

.contact-form-wrap {
    background: #ffffff;
    color: var(--color-text);
    border-radius: 18px;
    padding: 2.25rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.contact-form-title { font-size: 1.35rem; font-weight: 800; margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.1rem; }

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.8125rem;
    margin-bottom: 0.35rem;
    color: var(--color-dark-2);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0.95rem;
    background: #f0f5fb;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-green-deep);
}

.form-extra { display: none; }
.form-note { margin: 0 0 1rem; font-size: 0.875rem; opacity: 0.75; }

.form-status { margin-top: 1rem; font-weight: 700; }
.form-status.success { color: #1d4f91; }
.form-status.error   { color: #ce4b3c; }

/* ── Footer ───────────────────────────────────────────────────────────── */

.site-footer {
    background: var(--color-dark-2);
    color: rgba(255, 255, 255, 0.85);
    padding: 1.75rem 0;
    font-size: 0.9375rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* The privacy link shares the credit link's treatment rather than carrying its
   own colour — one rule to keep in step with the palette, not two. */
.powered-by a, .footer-legal a { color: var(--color-primary-bright); text-decoration: none; }

/* ── Scroll to top ────────────────────────────────────────────────────── */

.scroll-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 90;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(3, 20, 28, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s, background 0.15s;
}

.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

.scroll-top:hover { background: var(--color-primary-bright); }

.scroll-top svg { width: 22px; height: 22px; }

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    /* Fixed backgrounds are unreliable on mobile browsers */
    .section-parallax { background-attachment: scroll; }

    .hero-grid { grid-template-columns: 1fr; min-height: 0; }
    .hero-card { justify-self: stretch; max-width: none; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .section { padding: 3.5rem 0; }
    .services-grid, .team-grid, .testimonial-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .why-tiles { grid-template-columns: 1fr; }
    .map-band { height: 280px; margin-bottom: 2.5rem; }
}

/* Nav collapses earlier than the content grids — the full link row plus the
   CTA needs ~1000px before it fits on one line (tablet widths wrapped/clipped it) */
@media (max-width: 1000px) {
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #ffffff;
        box-shadow: 0 12px 24px rgba(14, 21, 43, 0.12);
        padding: 0.5rem 0 1rem;
    }

    .nav-links.is-open { display: flex; }

    .nav-links li { text-align: center; }

    .nav-links a { display: block; padding: 0.8rem 1.25rem; }

    .nav-cta { border-radius: 0; margin-top: 0.25rem; background: var(--color-primary); }
}
