/* =========================================================
   PLUMBENG - Modern PHP rebuild
   Palette: original PLUMBENG blue (#1874c1) + brand yellow + clean whites
   ========================================================= */

:root {
    --c-brand:      #1874c1;          /* original PLUMBENG menubar blue */
    --c-brand-deep: #125a96;          /* hover / depth */
    --c-brand-dark: #0d4775;          /* footer */
    --c-ink:        #1a2530;          /* headings & strong text (near black) */
    --c-ink-soft:   #2a3542;
    --c-ink-muted:  #4a5b70;
    --c-body:       #2a3542;
    --c-line:       #e3e8ef;
    --c-surface:    #ffffff;
    --c-surface-2:  #f5f7fa;
    --c-surface-3:  #eef2f7;
    --c-accent:     #ffd400;          /* PLUMBENG yellow */
    --c-accent-ink: #1a1a1a;
    --c-link:       #1874c1;          /* matches brand */
    --c-success:    #1f7a4d;
    --c-danger:     #a8302a;

    --shadow-sm:  0 1px 2px rgba(15, 60, 100, 0.08), 0 1px 1px rgba(15, 60, 100, 0.05);
    --shadow-md:  0 6px 18px rgba(15, 60, 100, 0.10), 0 2px 4px rgba(15, 60, 100, 0.05);
    --shadow-lg:  0 22px 40px rgba(15, 60, 100, 0.22);

    --radius-sm: 6px;
    --radius:    12px;
    --radius-lg: 18px;

    --container: 1180px;
    --gutter: clamp(1rem, 2vw, 1.5rem);

    --ff-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    --ff-display: 'Barlow Condensed', 'Inter', sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--ff-sans);
    color: var(--c-body);
    background: var(--c-surface);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
    font-family: var(--ff-display);
    color: var(--c-ink);
    line-height: 1.15;
    letter-spacing: 0.01em;
    margin: 0 0 0.6em;
    text-transform: uppercase;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p  { margin: 0 0 1rem; }

ul { padding-left: 1.2rem; }

.container { width: min(100%, var(--container)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--c-ink); color: #fff; padding: .75rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .45rem;
    padding: .9rem 1.5rem;
    font-family: var(--ff-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background .2s, color .2s, border-color .2s, box-shadow .2s;
    text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--accent { background: var(--c-accent); color: var(--c-accent-ink); }
.btn--accent:hover { background: #ffe24d; }
.btn--ink { background: var(--c-brand); color: #fff; }
.btn--ink:hover { background: var(--c-brand-deep); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn--outline { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.btn--outline:hover { background: var(--c-ink); color: #fff; }
.btn--sm { padding: .55rem 1rem; font-size: .9rem; }

/* ---------- Top info bar ---------- */
.topbar {
    background: var(--c-brand);
    color: #eaf3fb;
    font-size: .85rem;
}
.topbar__inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
    padding-block: .55rem;
}
.topbar__info {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: .25rem 1.4rem;
}
.topbar__label {
    color: var(--c-accent);
    font-weight: 600;
    margin-right: .35rem;
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: .08em;
}
.topbar a { color: #fff; }
.topbar a:hover { color: var(--c-accent); text-decoration: none; }
.topbar__badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.05);
    padding: .25rem .7rem;
    border-radius: 999px;
    font-weight: 600;
    color: #fff;
}
.topbar__badge img { border-radius: 4px; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-sm);
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding-block: .9rem;
}
.brand { display: inline-flex; align-items: center; }
.brand__logo {
    height: 44px;
    width: auto;
    /* The original logo has a transparent dark surface. Add a brand-blue chip for contrast. */
    background: var(--c-brand);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}
.brand--footer .brand__logo { height: 50px; }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    border: 1px solid var(--c-line);
    background: #fff;
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0;
    position: relative;
}
.nav-toggle__bar {
    display: block; height: 2px; width: 22px; background: var(--c-ink);
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    transition: transform .25s, opacity .2s, top .25s;
}
.nav-toggle__bar:nth-child(1) { transform: translate(-50%, calc(-50% - 7px)); }
.nav-toggle__bar:nth-child(3) { transform: translate(-50%, calc(-50% + 7px)); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.primary-nav > ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: center; gap: .25rem;
}
.primary-nav a {
    display: inline-flex; align-items: center; gap: .25rem;
    padding: .65rem .9rem;
    color: var(--c-ink);
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
}
.primary-nav a:hover { background: var(--c-surface-3); color: var(--c-ink); }
.primary-nav a.is-active { color: var(--c-accent-ink); background: var(--c-accent); }

.has-submenu { position: relative; }
.submenu {
    position: absolute; top: 100%; left: 0;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    list-style: none; margin: .35rem 0 0; padding: .35rem;
    min-width: 240px;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; }

.primary-nav__cta { margin-left: .5rem; }
.primary-nav__cta a { background: var(--c-accent); color: var(--c-accent-ink); }
.primary-nav__cta a:hover { background: #ffe24d; color: var(--c-accent-ink); }

/* ---------- Hero / Page header ---------- */
.hero {
    position: relative;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.hero__media {
    position: absolute; inset: 0;
    background: var(--c-brand-dark) center/cover no-repeat;
    z-index: -2;
}
.hero__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(13, 71, 117, .41), rgba(15, 60, 100, .28) 60%, rgba(13, 71, 117, .44));
    z-index: -1;
}
.hero__inner {
    padding-block: clamp(3.5rem, 8vw, 7rem);
    max-width: 760px;
}
.hero__eyebrow {
    display: inline-block;
    background: var(--c-accent);
    color: var(--c-accent-ink);
    font-family: var(--ff-display);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    padding: .25rem .75rem;
    border-radius: 999px;
    font-size: .8rem;
    margin-bottom: 1rem;
}
.hero h1 { color: #fff; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,.92); max-width: 60ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-hero h1 { color: #fff; margin-bottom: .25rem; }
.page-hero__lede { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 60ch; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--alt { background: var(--c-surface-2); }
.section__head { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.section__eyebrow {
    color: var(--c-link);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 700;
    font-size: .8rem;
    display: inline-block;
    margin-bottom: .5rem;
}
.section__head p { color: var(--c-ink-muted); font-size: 1.05rem; }

/* ---------- Service cards ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}
.service-card {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-accent);
}
.service-card__media {
    aspect-ratio: 16 / 10;
    background: var(--c-surface-3) center/cover no-repeat;
}
.service-card__body {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex; flex-direction: column; flex: 1;
}
.service-card__body p { color: var(--c-ink-muted); }
.service-card__cta { margin-top: auto; font-weight: 700; color: var(--c-ink); }
.service-card__cta::after { content: " \2192"; color: var(--c-link); }

/* ---------- Feature / "Why us" ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}
.feature {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.feature__icon {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--c-accent);
    color: var(--c-accent-ink);
    border-radius: 50%;
    font-weight: 800;
    margin-bottom: .75rem;
    font-family: var(--ff-display);
    font-size: 1.25rem;
}
.feature h3 { margin-bottom: .25rem; }
.feature p { color: var(--c-ink-muted); margin: 0; }

/* ---------- Two-column / split ---------- */
.split {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}
.split__media img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
@media (max-width: 800px) {
    .split { grid-template-columns: 1fr; }
}

.bullets {
    list-style: none; padding: 0; margin: 0 0 1.5rem;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .55rem 1.25rem;
}
.bullets li {
    position: relative;
    padding-left: 1.75rem;
    color: var(--c-body);
}
.bullets li::before {
    content: "";
    position: absolute; left: 0; top: .45em;
    width: 1.1rem; height: 1.1rem;
    background: var(--c-accent);
    border-radius: 50%;
    box-shadow: inset 0 0 0 4px #fff, 0 0 0 2px var(--c-accent);
}

/* ---------- Trust / strip ---------- */
.trust {
    background: var(--c-brand);
    color: #fff;
    padding-block: 2rem;
}
.trust__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}
.trust__item strong {
    display: block;
    font-family: var(--ff-display);
    font-size: 2rem;
    color: var(--c-accent);
    line-height: 1;
}
.trust__item span { color: rgba(255,255,255,.8); font-size: .95rem; }

/* ---------- CTA strip (footer-area) ---------- */
.cta-strip {
    background: linear-gradient(135deg, var(--c-brand-dark) 0%, var(--c-brand) 100%);
    color: #fff;
}
.cta-strip__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; flex-wrap: wrap;
    padding-block: 2.5rem;
}
.cta-strip h2 { color: #fff; margin-bottom: .25rem; }
.cta-strip p { color: rgba(255,255,255,.85); margin: 0; }
.cta-strip__actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-brand-dark); color: #d2e2ee; }
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    padding-block: 3rem;
}
.site-footer h3 {
    color: #fff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    border-bottom: 2px solid var(--c-accent);
    padding-bottom: .35rem;
    display: inline-block;
    margin-bottom: 1rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--c-accent); text-decoration: none; }
.site-footer p { color: #b3cadd; }
.site-footer__badge { margin-top: .75rem; width: 56px; border-radius: 4px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { padding-block: .25rem; }
.footer-contact strong { color: #fff; margin-right: .25rem; }
.share-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-top: 1.25rem;
}
.share-links span {
    flex-basis: 100%;
    color: var(--c-accent);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.share-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    padding: .45rem .8rem;
}
.share-links a:hover {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: var(--c-accent-ink);
}
.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-block: 1rem;
    font-size: .85rem;
}
.site-footer__bottom .container {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: .25rem;
}
.muted { color: #88a4bc; }

@media (max-width: 800px) {
    .site-footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Forms ---------- */
.form {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: var(--shadow-sm);
}
.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }

.form label {
    display: block;
    font-weight: 600;
    color: var(--c-ink);
    margin-bottom: .35rem;
    font-size: .95rem;
}
.form input,
.form textarea {
    width: 100%;
    font: inherit;
    padding: .8rem 1rem;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--c-body);
    transition: border-color .2s, box-shadow .2s;
}
.form input:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--c-brand);
    box-shadow: 0 0 0 3px rgba(24, 116, 193, 0.22);
}
.form textarea { resize: vertical; min-height: 140px; }
.form__field { margin-bottom: 1rem; }
.form__actions { margin-top: .5rem; }
.form button[disabled] { opacity: .72; cursor: wait; }
.recaptcha-notice {
    color: var(--c-ink-muted);
    font-size: .78rem;
    line-height: 1.5;
    margin: .85rem 0 0;
}
.recaptcha-notice a {
    color: var(--c-brand);
    font-weight: 600;
}
.grecaptcha-badge { visibility: hidden; }

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
    font-weight: 500;
}
.alert--success { background: #e9f7ef; color: var(--c-success); border-color: #bfe6cf; }
.alert--error   { background: #fbeceb; color: var(--c-danger); border-color: #f2c5c2; }

/* ---------- Contact info card ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.info-card {
    background: var(--c-brand);
    color: #fff;
    border-radius: var(--radius);
    padding: 1.75rem;
}
.info-card h3 { color: #fff; }
.info-card ul { list-style: none; padding: 0; margin: 0; }
.info-card li { padding: .65rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.info-card li:last-child { border-bottom: 0; }
.info-card strong { color: var(--c-accent); display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .15rem; }
.info-card a { color: #fff; }
.info-card__towns {
    display: block;
    margin-top: .35rem;
    font-size: .85rem;
    color: rgba(255,255,255,.78);
    line-height: 1.5;
}

/* ---------- Towns / areas covered ---------- */
.towns {
    list-style: none; padding: 0; margin: 0 auto;
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: .55rem .6rem;
    max-width: 880px;
}
.towns li {
    background: #fff;
    border: 1px solid var(--c-line);
    color: var(--c-ink);
    border-radius: 999px;
    padding: .5rem 1rem;
    font-weight: 600;
    font-size: .95rem;
    box-shadow: var(--shadow-sm);
    transition: background .2s, border-color .2s, transform .15s;
}
.towns li:hover {
    background: var(--c-brand);
    border-color: var(--c-brand);
    color: #fff;
    transform: translateY(-1px);
}
.towns__note {
    text-align: center;
    color: var(--c-ink-muted);
    margin-top: 1.5rem;
    font-size: .95rem;
}

/* ---------- Footer "areas" thin band ---------- */
.site-footer__areas {
    border-top: 1px solid rgba(255,255,255,.10);
    padding-block: .9rem;
    font-size: .85rem;
    color: #b3cadd;
}
.site-footer__areas strong {
    color: var(--c-accent);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .72rem;
    margin-right: .5rem;
}

/* ---------- Gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 4 / 3;
    background: var(--c-surface-3);
    box-shadow: var(--shadow-sm);
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item__caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: .85rem 1rem;
    color: #fff;
    background: linear-gradient(180deg, rgba(0,0,0,0), rgba(13,24,38,.85));
    font-weight: 600;
}

/* ---------- Mobile nav ---------- */
@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .primary-nav {
        position: absolute;
        left: 0; right: 0; top: 100%;
        background: #fff;
        border-bottom: 1px solid var(--c-line);
        box-shadow: var(--shadow-md);
        max-height: 0; overflow: hidden;
        transition: max-height .3s ease;
    }
    .primary-nav.is-open { max-height: 600px; }
    .primary-nav > ul {
        flex-direction: column;
        align-items: stretch;
        padding: .5rem;
        gap: 0;
    }
    .primary-nav a { padding: .85rem 1rem; border-radius: 0; }
    .primary-nav li + li { border-top: 1px solid var(--c-line); }
    .submenu {
        position: static;
        opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: 0; padding: 0 0 0 .75rem;
        margin: 0;
    }
    .primary-nav__cta { margin: .5rem; }
    .primary-nav__cta a { width: 100%; justify-content: center; }
}

@media (max-width: 600px) {
    .topbar__inner { font-size: .8rem; }
    .topbar__info { gap: .15rem .9rem; }
    .topbar__badge { display: none; }
    .cta-strip__inner { text-align: center; justify-content: center; }
}
