/* Vouch Digital trade site template, MJ Services theme.
   Layout: dark hero, then alternating light and dark bands; accent gradient actions; one geometric sans throughout.
   To re-theme for another client, change only the tokens in :root. */
:root {
  --dark: #0b1a2e;
  --dark-2: #12243d;
  --line-dark: #26405f;
  --light: #f3f6fa;
  --light-2: #e5ecf4;
  --paper: #ffffff;
  --ink: #0f1b2b;
  --ink-soft: #4a586a;
  --line-light: #d2dce8;
  --accent: #5aaeff;
  --accent-light: #9ccfff;
  --accent-deep: #0b5bab;
  --ivory: #f1f5fa;
  --ivory-dim: #a9b7c8;
  --accent-grad: linear-gradient(180deg, #74bcff 0%, #3f97f0 100%);
  --accent-rgb: 90, 174, 255;
  --dark-rgb: 7, 17, 31;
  --font: "Plus Jakarta Sans", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--light); color: var(--ink); font: 400 17px/1.65 var(--font); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--accent); color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.22rem; }
p { margin: 0; }
.accent-text { color: var(--accent); }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-deep); }
.dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta .eyebrow { color: var(--accent); }
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 62ch; }
.dark .lede { color: var(--ivory-dim); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border-radius: var(--radius); font: 600 0.98rem/1 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: filter .2s, background .2s, transform .2s; }
.btn svg { font-size: 1.1rem; }
.btn-accent { background: var(--accent-grad); color: var(--ink); box-shadow: 0 6px 18px rgba(var(--accent-rgb),.3); }
.btn-accent:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-outline { border-color: rgba(241,245,250,.55); color: var(--ivory); background: rgba(var(--dark-rgb),.35); }
.btn-outline:hover { background: rgba(241,245,250,.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.arrow::after { content: "\2192"; }

/* Header */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(var(--dark-rgb),.96); color: var(--ivory); border-bottom: 1px solid var(--line-dark); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; }
.brand img { width: 54px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.nav-links a { text-decoration: none; opacity: .88; }
.nav-links a:hover { color: var(--accent-light); opacity: 1; }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; white-space: nowrap; }
.nav-phone svg { color: var(--accent); font-size: 1.15rem; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-dark); color: var(--ivory); border-radius: var(--radius); width: 48px; height: 48px; cursor: pointer; }
.menu-btn i { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 4px auto; }
.mobile-menu { border-top: 1px solid var(--line-dark); }
.mobile-menu ul { list-style: none; margin: 0; padding: 6px 0 18px; }
.mobile-menu a { display: block; padding: 12px 0; text-decoration: none; font-size: 1.25rem; font-weight: 500; }

/* Hero */
.hero { position: relative; color: var(--ivory); background: var(--dark); overflow: hidden; }
.hero-img { position: absolute; top: 0; right: 0; width: 64%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(var(--dark-rgb),1) 0%, rgba(var(--dark-rgb),1) 36%, rgba(var(--dark-rgb),.55) 50%, rgba(var(--dark-rgb),.05) 72%, rgba(var(--dark-rgb),0) 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; z-index: 1; background: linear-gradient(0deg, rgba(var(--dark-rgb),.92), transparent); }
.hero-inner { position: relative; z-index: 2; display: grid; gap: 24px; padding-block: clamp(64px, 9vw, 120px) 36px; }
.hero-copy { display: grid; gap: 22px; max-width: 600px; }
.hero-copy .lede { color: #c7d4e4; }
.facts { list-style: none; margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(241,245,250,.18);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; justify-items: center; }
.facts li { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; font-weight: 500; }
.facts svg { font-size: 1.6rem; color: var(--accent); }

/* Sections */
.section { padding-block: clamp(64px, 8vw, 110px); }
.section.alt { background: var(--light-2); }
.dark { background: var(--dark); color: var(--ivory); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head.center { text-align: center; justify-items: center; }
.section-head.center .lede { margin-inline: auto; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--paper); border: 1px solid var(--line-light);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: 0 14px 34px rgba(var(--dark-rgb),.12); transform: translateY(-3px); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { position: relative; display: grid; gap: 8px; align-content: start; padding: 34px 24px 24px; }
.badge { position: absolute; top: -24px; left: 24px; width: 48px; height: 48px; border-radius: var(--radius); display: grid; place-items: center;
  background: var(--accent-grad); color: var(--ink); box-shadow: 0 6px 14px rgba(var(--dark-rgb),.18); }
.badge svg { font-size: 1.45rem; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }
.card .more { margin-top: 6px; font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.text-link { display: inline-flex; gap: 8px; margin-top: 34px; font-weight: 600; color: var(--accent-deep); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.dark .text-link { color: var(--accent-light); }

/* Reviews */
.rating { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink-soft); }
.stars { color: #d7a64b; letter-spacing: 2px; }
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.review { margin: 0; background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; align-content: space-between; }
.review blockquote { margin: 0; font-size: 1.02rem; line-height: 1.6; }
.review figcaption { position: relative; font-size: 0.9rem; color: var(--ink-soft); padding-right: 40px; }
.g-logo { position: absolute; right: 0; bottom: 2px; width: 26px; height: auto; }
.review figcaption strong { display: block; color: var(--ink); font-weight: 600; }

/* Why + form */
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.why-copy { display: grid; gap: 22px; }
.checks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1b2b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"), var(--accent-grad);
  background-size: 14px, cover; background-position: center; background-repeat: no-repeat; }
.form-card { background: var(--dark-2); border: 1px solid rgba(var(--accent-rgb),.45); border-radius: var(--radius); padding: clamp(24px, 4vw, 38px); display: grid; gap: 16px; color: var(--ivory); }
.form-card h3, .form-card .form-title { font-size: 1.6rem; }
.form-card > p { color: var(--ivory-dim); font-size: 0.95rem; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.88rem; font-weight: 500; color: var(--ivory); }
.field label span { color: var(--accent); }
.field input, .field select, .field textarea { width: 100%; background: #0f2038; color: var(--ivory); border: 1px solid #2c4566; border-radius: var(--radius); padding: 13px 15px; font: 400 1rem/1.4 var(--font); }
.field input::placeholder, .field textarea::placeholder { color: #8b9bb0; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 0.82rem; color: var(--ivory-dim); }
.form-status { font-size: 0.92rem; color: var(--accent-light); }

/* Our work */
.work { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.work figure { margin: 0; display: grid; gap: 10px; }
.work img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.work figcaption { font-size: 0.9rem; color: var(--ink-soft); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: s; }
.steps li { counter-increment: s; padding: 30px 26px; border: 1px solid var(--line-dark); border-radius: var(--radius); display: grid; gap: 10px; align-content: start; background: var(--dark-2); }
.steps li::before { content: counter(s); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-grad); color: var(--ink); font-weight: 700; font-size: 1.1rem; }
.steps p { color: var(--ivory-dim); font-size: 0.97rem; }

/* Areas */
.area-groups { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.area-groups h3 { font-size: 0.82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 10px; font-weight: 600; }
.area-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.area-list a { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-light); text-decoration: none; }
.area-list a:hover { color: var(--accent-deep); }
.area-list small { color: var(--ink-soft); }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; position: relative; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--accent-deep); font-size: 1.5rem; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 22px 22px; color: var(--ink-soft); }

/* Final CTA */
.cta { position: relative; overflow: hidden; color: var(--ivory); background: var(--dark); }
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% 40%; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(var(--dark-rgb),.95) 0%, rgba(var(--dark-rgb),.8) 50%, rgba(var(--dark-rgb),.45) 100%); }
.cta .wrap { position: relative; z-index: 2; display: grid; gap: 20px; padding-block: clamp(70px, 9vw, 120px); max-width: var(--wrap); }
.cta .lede { color: #c7d4e4; }
.cta-lines { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 6px; font-size: 0.98rem; }
.cta-lines span, .cta-lines a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.cta-lines svg { color: var(--accent); font-size: 1.2rem; }

/* Footer */
.footer { background: #071322; color: var(--ivory-dim); padding-block: 64px 32px; font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 0.7fr; gap: 36px; }
.footer h2 { font-size: 0.95rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ivory); margin-bottom: 14px; }
.footer h3 { font-size: 0.78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 14px 0 8px; font-weight: 600; }
.footer h3:first-of-type { margin-top: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent-light); }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand img { width: 110px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; overflow-wrap: anywhere; }
.footer-contact svg { color: var(--accent); font-size: 1.1rem; margin-top: 3px; }
.footer-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.82rem; }

/* Mobile bar */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--dark); border-top: 1px solid rgba(var(--accent-rgb),.5);
  transform: translateY(110%); transition: transform .3s; }
.mobile-bar.show { transform: none; }
.mobile-bar .btn { flex: 1; min-height: 48px; padding: 0 10px; font-size: .92rem; white-space: nowrap; }

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .cards, .reviews, .steps { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: 1fr 1fr; justify-items: start; }
  .work { grid-template-columns: 1fr 1fr; }
  .area-groups { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-phone span { display: none; }
  /* Mobile header: phone, quote and menu in one row (no bottom bar) */
  .nav-quote { min-height: 48px; padding: 0 16px; font-size: .92rem; white-space: nowrap; gap: 0; }
  .nav-cta { gap: 10px; }
  .brand { flex-shrink: 0; }
  .nav-phone { width: 48px; height: 48px; justify-content: center; border: 1px solid var(--line-dark); border-radius: var(--radius); }
  .hero::after { display: none; }
  .hero-img { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 3; object-position: 42% 50%; }
  /* Fade the photo into the night background so the copy sits on it, not under a hard edge */
  .hero::before { inset: 0 0 auto 0; height: 75vw;
    background: linear-gradient(180deg, rgba(var(--dark-rgb),.6) 0%, rgba(var(--dark-rgb),0) 18%, rgba(var(--dark-rgb),0) 42%, rgba(var(--dark-rgb),.82) 74%, var(--dark) 94%); }
  .hero-inner { margin-top: -64px; padding-top: 0; }
  .cards, .reviews, .steps { grid-template-columns: minmax(0, 1fr); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .cta::before { background: rgba(var(--dark-rgb),.86); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Inner page hero */
.page-hero { background: var(--dark); color: var(--ivory); padding-block: clamp(48px, 7vw, 90px); }
.page-hero .wrap { display: grid; gap: 18px; }
.page-hero .lede { color: #c7d4e4; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.88rem; color: var(--ivory-dim); }
.crumbs a { color: var(--accent-light); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Review widget slot */
.widget-slot { min-height: 420px; }
.widget-loading { color: var(--ink-soft); }
.widget-loading a { color: var(--accent-deep); }
.reviews + .text-link, .reviews ~ div .text-link { margin-top: 34px; }

/* Form extras */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status.err { color: #f0a58f; }
button[disabled] { opacity: .6; cursor: wait; }

/* ---------- Inner pages ---------- */
.h3 { font-size: 1.3rem; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-hero-copy { display: grid; gap: 18px; min-width: 0; }
.page-hero-media { margin: 0; justify-self: end; width: min(100%, 420px); }
.page-hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.page-hero-icon { justify-self: end; width: clamp(140px, 18vw, 220px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(var(--accent-rgb),.45); background: radial-gradient(circle at 50% 40%, rgba(var(--accent-rgb),.16), transparent 70%); }
.page-hero-icon svg { width: 46%; height: 46%; color: var(--accent); stroke-width: 1.1; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.prose { display: grid; gap: 16px; max-width: 66ch; }
.prose p { color: var(--ink-soft); }
.list-card { background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); display: grid; gap: 16px; }
.section.alt .list-card { background: var(--paper); }
.narrow { max-width: 820px; }
.note { margin-top: 20px; padding-left: 16px; border-left: 2px solid var(--accent); color: var(--ink-soft); }
.single-review .review { margin-top: 8px; }
.review-wide blockquote { font-size: 1rem; }
.card.plain .card-body { padding-top: 26px; }
.card.plain .badge { position: static; margin-bottom: 4px; }
.text-link { margin-top: 28px; }
.area-list.single { grid-template-columns: 1fr; }
.faq-page { display: grid; gap: 48px; }
.faq-group { display: grid; gap: 18px; }
.faq-group .faq { margin: 0; max-width: 860px; }
.projects { display: grid; gap: 40px; }
.project { display: grid; gap: 16px; }
.project-head h3 { font-size: 1.25rem; }
.project-head p { color: var(--ink-soft); }
.project-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.project-photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.work.boilers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dark .contact-lines { display: grid; gap: 22px; }
.contact-lines a, .contact-lines span { text-decoration: none; display: grid; gap: 4px; }
.contact-lines small { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.contact-lines strong { font-size: 1.6rem; font-weight: 600; }
.contact-lines .email, .contact-lines .addr { font-size: 1.15rem; overflow-wrap: anywhere; }
.leak-note { margin-top: 26px; font-size: .95rem; border-left: 2px solid var(--accent); padding-left: 16px; color: var(--ivory-dim); }
.checks a { color: var(--accent-light); }
.legal { display: grid; gap: 14px; }
.legal h2 { font-size: 1.35rem; margin-top: 14px; }
.legal p { color: var(--ink-soft); }
@media (max-width: 900px) {
  .page-hero-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .page-hero-media, .page-hero-icon { justify-self: start; }
  .page-hero-icon { display: none; }
  .work.boilers { grid-template-columns: 1fr 1fr; }
}
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .78em; width: 14px; height: 1.5px; background: var(--accent-deep); }
.dark .ticks li { color: var(--ivory); }
.dark .ticks li::before { background: var(--accent); }

/* Our work gallery */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pcard { background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.gal { position: relative; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; user-select: none; }
.gnav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(var(--dark-rgb),.62); color: var(--ivory); font-size: 1.6rem; line-height: 1; display: grid; place-items: center; transition: background .2s; }
.gnav:hover { background: rgba(var(--dark-rgb),.85); }
.gnav.prev { left: 10px; } .gnav.next { right: 10px; }
.count { position: absolute; right: 12px; bottom: 12px; background: rgba(var(--dark-rgb),.78); color: var(--ivory); font-size: .8rem; font-weight: 500; padding: 5px 10px; border-radius: 999px; }
.pcard-body { padding: 18px 20px 20px; display: grid; gap: 6px; align-content: start; }
.pcard-body h2, .pcard-body h3 { font-size: 1.12rem; }
.pcard-body p { color: var(--ink-soft); font-size: .93rem; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s; }
.thumb.on { opacity: 1; border-color: var(--accent); }
.thumb:hover { opacity: 1; }
.thumb img { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; display: block; }
@media (max-width: 900px) { .pgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pgrid { grid-template-columns: minmax(0, 1fr); } }

/* Hero and CTA without a photo: typographic layout with a soft accent glow */
.hero-plain { background: radial-gradient(70% 90% at 88% 10%, rgba(var(--accent-rgb),.20), transparent 62%), linear-gradient(180deg, var(--dark) 0%, #08142a 100%); }
.hero-plain::before, .hero-plain::after { display: none; }
.hero-plain .hero-copy { max-width: 760px; }
.cta-plain { background: radial-gradient(60% 120% at 100% 0%, rgba(var(--accent-rgb),.18), transparent 60%), var(--dark); }
.cta-plain::before { display: none; }
@media (max-width: 680px) {
  .hero-plain .hero-inner { margin-top: 0; padding-top: 44px; }
}
.brand { text-decoration: none; }
.wordmark { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ivory); white-space: nowrap; }
.wordmark span { font-weight: 500; color: var(--accent); margin-left: .28em; }

/* Hero with a portrait photo of the owner, framed beside the copy */
.hero-split { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-portrait .hero-split { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; border: 1px solid rgba(var(--accent-rgb),.35); box-shadow: 0 30px 60px rgba(0,0,0,.45); }
@media (max-width: 900px) {
  .hero-portrait .hero-split { grid-template-columns: minmax(0, 1fr); }
  .hero-figure { order: -1; }
  .hero-figure img { aspect-ratio: 4 / 3; }
}
/* Bleed hero, MJ style: bright brand blue with the van photo blending in on the right (the van is the same blue) */
.hero-bleed { --hb-1: 5, 38, 96; --hb-2: 10, 78, 170; --hb-3: 22, 112, 220;
  background: linear-gradient(125deg, rgb(var(--hb-1)) 0%, rgb(var(--hb-2)) 55%, rgb(var(--hb-3)) 100%); }
.hero-bleed .hero-img { width: 58%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%); mask-image: linear-gradient(90deg, transparent 0%, #000 28%); }
.hero-bleed::before { background: radial-gradient(ellipse 55% 60% at 12% 18%, rgba(255,255,255,.13), transparent 70%); }
.hero-bleed::after { background: linear-gradient(0deg, rgba(var(--hb-1),.82), transparent); height: 30%; }
.hero-bleed .eyebrow { color: #d6ebff; }
.hero-bleed .accent-text { color: #a9d6ff; }
.hero-bleed .hero-copy .lede { color: #e4effc; }
.hero-bleed .btn-outline { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); }
.hero-bleed .btn-accent, .nav-quote, .btn-quote, .mobile-bar .btn-accent { background: linear-gradient(180deg, #ffd45c 0%, #f9b928 100%); color: #0b1a2e; font-weight: 700;
  box-shadow: 0 0 0 1px rgba(255,212,92,.5), 0 8px 26px rgba(249,185,40,.45); }
.hero-bleed .btn-accent:hover, .nav-quote:hover, .btn-quote:hover, .mobile-bar .btn-accent:hover { background: linear-gradient(180deg, #ffdd78 0%, #fcc33e 100%); box-shadow: 0 0 0 1px rgba(255,212,92,.6), 0 10px 32px rgba(249,185,40,.6); transform: translateY(-1px); }
.hero-bleed .facts { border-top-color: rgba(255,255,255,.28); }
.hero-bleed .facts svg { color: #a9d6ff; }
/* Desktop: the headline and intro sit in a darker see-through panel for contrast */
.hero-panel { display: grid; gap: 22px; }
@media (min-width: 1101px) {
  .hero-bleed .hero-copy { max-width: 640px; }
  .hero-bleed .hero-panel { padding: 30px 32px; border-radius: 16px;
    background: rgba(3, 22, 58, .66); border: 1px solid rgba(255,255,255,.14);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 24px 50px rgba(0,0,0,.22); }
}
@media (max-width: 1100px) and (min-width: 681px) { .hero-bleed .hero-img { width: 64%; opacity: .9; } }
@media (max-width: 680px) {
  .hero-bleed .hero-img { width: 100%; aspect-ratio: 4 / 3.4; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 98%); mask-image: linear-gradient(180deg, #000 55%, transparent 98%); }
  .hero-bleed::before { display: none; }
  .hero-bleed { background: linear-gradient(180deg, rgb(8, 52, 124) 0%, rgb(var(--hb-1)) 70%); }
}

/* Dropdown menus for Services and Areas (hover or keyboard focus) */
.nav-inner { position: relative; }
.has-mega > a { display: inline-flex; align-items: center; gap: 4px; padding-block: 28px; }
.chev { font-size: .9em; opacity: .7; transition: transform .2s; }
.mega { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: 8px; display: none; z-index: 50; }
.mega::before { content: ""; position: absolute; inset: 8px 0 0 0; background: var(--dark-2); border: 1px solid var(--line-dark); border-radius: 12px; box-shadow: 0 24px 50px rgba(0,0,0,.45); }
.has-mega:hover .mega, .has-mega:focus-within .mega { display: block; }
.has-mega:hover .chev, .has-mega:focus-within .chev { transform: rotate(180deg); }
.mega-cols { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: max-content; gap: 52px; padding: 30px 36px 10px; }
.mega-h { margin: 0 0 16px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.mega ul a { font-size: .92rem; white-space: nowrap; opacity: .85; }
.mega-all { position: relative; display: inline-flex; gap: 8px; margin: 14px 36px 28px; font-size: .88rem; font-weight: 600; color: var(--accent-light); text-decoration: none; opacity: 1 !important; }

/* "From our jobs" photo strips on service pages, sized to the number of photos */
.work-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.work-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
.work-1 { grid-template-columns: minmax(0, 1fr); max-width: 380px; }
@media (max-width: 900px) { .work-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .work-1 { max-width: none; } }

/* Installer badges strip (white, so the brand badges show as designed) */
.badges { background: var(--paper); border-block: 1px solid var(--line-light); }
.badges-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px 44px; padding-block: 26px; }
.badges-label { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.badges-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px 40px; }
.badges-row img { height: 44px; width: auto; }
@media (max-width: 680px) { .badges-row img { height: 34px; } .badges-row { gap: 14px 26px; } }
.badges-row img[src*="worcester"] { height: 60px; }
/* Longer three-place headline: keep it to three lines on desktop */
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); }

/* Homepage reviews: arrow carousel that loops forever. The cards are rendered three times and the
   script quietly jumps back to the middle copy, so there is never an end in either direction. */
.rv-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 12px; }
.rv-track::-webkit-scrollbar { display: none; }
.rv-track .review { flex: none; width: calc((100% - 44px) / 3); scroll-snap-align: start; }
.rv-ctrl { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }
.rv-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-light); background: var(--paper); color: var(--ink);
  font-size: 1.3rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s, border-color .2s; }
.rv-btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.rv-ctrl + div .text-link { margin-top: 22px; }
@media (max-width: 900px) { .rv-track .review { width: calc((100% - 22px) / 2); } }
@media (max-width: 680px) { .rv-track .review { width: 86%; } }

/* Quote buttons land on the form itself, clear of the sticky header */
#quote { scroll-margin-top: 100px; }
.nav-quote { gap: 0; }
@media (max-width: 680px) {
  .nav-quote { background: #f4bf3f; box-shadow: none; font-weight: 600; font-size: .88rem; }
  .nav-quote:hover { background: #f8ca55; box-shadow: none; transform: none; }
}
@media (max-width: 370px) { .nq-x { display: none; } .nav-quote { padding: 0 12px; } .nav-cta { gap: 8px; } .nav-phone, .menu-btn { width: 44px; height: 44px; } .nav-quote { min-height: 44px; } }

/* Quote form: clear "sent" state replaces the form after a successful enquiry */
.form-done { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 28px 6px; }
.done-tick { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(180deg,#ffd45c,#f9b928); color: var(--dark); font-size: 2rem; font-weight: 700; box-shadow: 0 0 22px rgba(249,185,40,.35); }
.form-done .form-title { font-size: 1.6rem; }
.form-done p { color: var(--ivory-dim); max-width: 34ch; margin: 0; }
.form-done .done-call a { color: var(--accent-light); font-weight: 700; }
