/*
Theme Name:        John Wills Painting
Theme URI:         https://johnwillspainting.com/
Author:            John Wills Painting & Power Washing
Author URI:        https://johnwillspainting.com/
Description:       Premium block theme for John Wills Painting & Power Washing — third-generation painter serving the CT Shoreline & Middlesex County since 1988. Full Site Editing, accessible, mobile-first, schema-ready.
Version:           1.1.0
Requires at least: 6.5
Tested up to:      6.6
Requires PHP:      7.4
License:           GNU General Public License v2 or later
License URI:       http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       johnwills-painting
Tags:              full-site-editing, block-patterns, block-styles, custom-colors, custom-logo, accessibility-ready, one-column, two-columns, three-columns, contact-form, business
*/

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
img { vertical-align: middle; }
::selection { background: var(--wp--preset--color--blue); color: #fff; }

/* ---------- Mobile foundation ----------
 * tap-highlight: brand-tinted instead of black at 25% (the WebKit default).
 * touch-action: manipulation removes the historic 300 ms double-tap-zoom delay
 *   on every interactive element, so taps fire instantly on iOS Safari.
 * Honor prefers-reduced-motion: kill animations + transitions sitewide.
 */
:where(a, button, summary, [role="button"], input[type="submit"], input[type="button"]) {
  -webkit-tap-highlight-color: rgba(15, 41, 84, 0.12);
  touch-action: manipulation;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- A11y ---------- */
.skip-link.screen-reader-text {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--wp--preset--color--navy);
  color: #fff; padding: .75rem 1rem; border-radius: 4px; font-weight: 600;
}
.skip-link.screen-reader-text:focus { left: 1rem; top: 1rem; outline: 2px solid var(--wp--preset--color--blue); }

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--wp--preset--color--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Eyebrow ---------- */
.jw-eyebrow {
  display: inline-block;
  font-family: var(--wp--preset--font-family--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--wp--preset--color--blue);
}
.jw-eyebrow--light { color: rgba(255,255,255,0.85); }

/* ---------- Page Bar (legacy / can be hidden site-wide) ---------- */
.jw-page-bar {
  background: var(--wp--preset--color--navy-deep);
  color: #fff;
  padding: 0.75rem 1.25rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  display: none; /* keep markup but hide globally — was a doc-mockup affordance */
}

/* ---------- Site Header ---------- */
.jw-site-header {
  background: #ffffff;
  color: var(--wp--preset--color--navy);
  border-bottom: 1px solid var(--wp--preset--color--border);
  margin-bottom: 0 !important;
}
/* Kill the default body block-flow gap between header / main / footer */
body { margin: 0 !important; }
body > .wp-site-blocks > * + * { margin-block-start: 0 !important; }
.wp-block-template-part { margin: 0; padding: 0; }
main#main { margin-top: 0 !important; padding-top: 0 !important; }

/* Zero out block-flow margins between sibling sections inside main */
main#main > * { margin-top: 0 !important; margin-bottom: 0 !important; }
main#main > * + * { margin-block-start: 0 !important; }
main#main .wp-block-group.is-layout-flow > * + *,
main#main > .is-layout-flow > * + * { margin-block-start: 0 !important; }
.jw-site-header--sticky {
  position: sticky; top: 0; z-index: 60;
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  background: rgba(255,255,255,0.94);
  box-shadow: 0 1px 0 rgba(15, 30, 61, 0.06), 0 6px 18px -8px rgba(15, 30, 61, 0.10);
  /* IMPORTANT: backdrop-filter establishes a containing block for fixed-position
   * descendants (per CSS spec). The mobile nav overlay is position:fixed and
   * lives inside this header — without breaking that containing block on mobile,
   * "fixed" gets scoped to the header's ~50px box instead of the viewport. */
  /* Safe-area padding so notched / dynamic-island iPhones (and landscape rotation)
   * don't slide content under the status bar / sensor housing. The max() form
   * keeps the existing horizontal spacing intact when no inset is reported. */
  padding-top: calc(0.85rem + env(safe-area-inset-top));
  padding-left: max(var(--wp--preset--spacing--md), env(safe-area-inset-left));
  padding-right: max(var(--wp--preset--spacing--md), env(safe-area-inset-right));
}

.jw-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--wp--preset--color--navy);
}
.jw-brand--logo { padding: 0; }

/* Default state (no logo file): hide logo span, show wordmark.
 * image-set() lets modern browsers (iOS 16+ / Chrome) pull the smaller WebP
 * variant when present and fall back to the PNG everywhere else. */
.jw-brand__logo {
  display: none;
  width: 156px;
  height: 78px;
  background-image: url('assets/logo.png');
  background-image: -webkit-image-set(url('assets/logo.webp') type('image/webp') 1x, url('assets/logo.png') type('image/png') 1x);
  background-image: image-set(url('assets/logo.webp') type('image/webp') 1x, url('assets/logo.png') type('image/png') 1x);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}
.jw-brand__name--fallback {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

/* When functions.php detects assets/logo.png, body gets .has-jwp-logo */
.has-jwp-logo .jw-brand__logo { display: block; }
.has-jwp-logo .jw-brand__name--fallback { display: none; }

@media (max-width: 700px) {
  .jw-brand__logo { width: 130px; height: 65px; }
}
@media (max-width: 480px) {
  .jw-brand__logo { width: 110px; height: 55px; }
}

/* Header right-side: keep nav + CTA on one line, collapse to mobile menu under 1000px */
.jw-site-header__right {
  flex-wrap: nowrap !important;
  gap: 1.25rem;
  align-items: center;
}
@media (max-width: 1000px) {
  .jw-site-header__right { flex-wrap: nowrap; }
}
.jw-brand__mark {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, #DBEAFE 0%, #FFFFFF 100%);
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 38px;
}
.jw-brand__name {
  display: flex; flex-direction: column; line-height: 1;
}
.jw-brand__name-top {
  font-family: var(--wp--preset--font-family--serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  color: var(--wp--preset--color--navy);
}
.jw-brand__name-mid {
  font-family: var(--wp--preset--font-family--sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--blue);
  margin-top: 0.18rem;
}
.jw-brand__name-mid em { color: var(--wp--preset--color--navy); font-style: normal; }
.jw-brand__name-sub {
  font-family: var(--wp--preset--font-family--sans);
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--wp--preset--color--blue);
  margin-top: 0.18rem;
  letter-spacing: 0.02em;
}

/* Header click-to-call: icon-only pill (number is already in the logo) */
.jw-header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.08);
  color: var(--wp--preset--color--blue) !important;
  text-decoration: none !important;
  transition: background 0.15s ease, transform 0.15s ease;
  flex: 0 0 auto;
}
.jw-header-phone span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.jw-header-phone:hover { background: rgba(29, 78, 216, 0.14); transform: translateY(-1px); }

/* Header Estimate Button.
 * Mobile rules tighten the pill so the brand label still fits at 375 px
 * alongside the logo and phone icon. At <=420 px the visible label is
 * dropped (aria-label still announces "Get a Free Estimate"); the icon-only
 * pill keeps the CTA reachable without wrapping the header into two rows.
 */
.jw-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--wp--preset--color--blue);
  color: #fff !important;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  min-height: 40px;
  transition: background .15s ease, transform .15s ease;
}
.jw-header-cta:hover { background: var(--wp--preset--color--blue-soft); transform: translateY(-1px); }
@media (max-width: 600px) {
  .jw-header-cta { padding: 0.6rem 0.9rem; font-size: 0.82rem; gap: 0.4rem; }
}
@media (max-width: 420px) {
  .jw-header-cta { padding: 0.55rem 0.7rem; }
  .jw-header-cta__text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
}

/* ---------- Navigation (desktop) ---------- */
.jw-site-header .wp-block-navigation { align-items: center; }
.jw-site-header .wp-block-navigation__container > .wp-block-navigation-item > a:where(:not(.wp-element-button)) {
  position: relative;
  padding: 0.55rem 0;
  color: var(--wp--preset--color--navy);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0;
  transition: color 0.15s ease;
}
.jw-site-header .wp-block-navigation__container > .wp-block-navigation-item > a:where(:not(.wp-element-button))::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--wp--preset--color--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}
.jw-site-header .wp-block-navigation__container > .wp-block-navigation-item:hover > a::after,
.jw-site-header .wp-block-navigation__container > .wp-block-navigation-item.current-menu-item > a::after,
.jw-site-header .wp-block-navigation__container > .wp-block-navigation-item:focus-within > a::after,
.jw-site-header .wp-block-navigation__container > .wp-block-navigation-item > a[aria-current="page"]::after {
  transform: scaleX(1);
}
.jw-site-header .wp-block-navigation__container > .wp-block-navigation-item:hover > a,
.jw-site-header .wp-block-navigation__container > .wp-block-navigation-item > a[aria-current="page"] {
  color: var(--wp--preset--color--blue);
}
.jw-site-header .wp-block-navigation__container > .wp-block-navigation-item > a[aria-current="page"] {
  font-weight: 600;
}

/* Submenu */
.jw-site-header .wp-block-navigation .wp-block-navigation__submenu-container {
  background: #fff;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 10px;
  padding: 0.5rem 0;
  min-width: 240px;
  box-shadow: 0 12px 32px rgba(15,23,42,0.10);
  margin-top: 0.5rem;
}
.jw-site-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  padding: 0.6rem 1.1rem;
  color: var(--wp--preset--color--navy);
  border-left: 2px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.jw-site-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.jw-site-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus {
  background: var(--wp--preset--color--blue-fog);
  border-left-color: var(--wp--preset--color--blue);
  color: var(--wp--preset--color--blue);
}

/* Hamburger + mobile overlay
 * Hamburger open/close pads to 48 px so the tap target meets WCAG 2.5.5 even
 * with a 24 px icon. Overlay link min-height bumped to 48 px and font to 17 px
 * so tapping is comfortable in landscape and one-handed reach is realistic.
 */
.jw-site-header .wp-block-navigation__responsive-container-open,
.jw-site-header .wp-block-navigation__responsive-container-close {
  color: var(--wp--preset--color--navy);
  padding: 12px;
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* Hide the mobile-menu hamburger toggle on desktop (the inline nav already shows) */
@media (min-width: 1001px) {
  .jw-site-header .wp-block-navigation__responsive-container-open { display: none !important; }
}
.jw-site-header .wp-block-navigation__responsive-container.is-menu-open {
  background: #ffffff;
  padding: calc(5rem + env(safe-area-inset-top)) max(1.75rem, env(safe-area-inset-right)) calc(2.5rem + env(safe-area-inset-bottom)) max(1.75rem, env(safe-area-inset-left));
  overflow-y: auto;
}
.jw-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
}
.jw-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
  width: 100%;
  border-bottom: 1px solid var(--wp--preset--color--border);
}
.jw-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  font-size: 1.0625rem;
  font-weight: 600;
  padding: 1rem 0.25rem;
  width: 100%;
  min-height: 48px;
  color: var(--wp--preset--color--navy);
  display: inline-flex;
  align-items: center;
}
.jw-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
  background: transparent;
  border: 0; box-shadow: none;
  padding: 0 0 0.75rem 1rem;
  margin: 0;
  min-width: 0;
  position: static;
}
.jw-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item {
  border: 0;
}
.jw-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  min-height: 48px;
  color: var(--wp--preset--color--muted);
}
/* Visible "current page" affordance inside the overlay (hover doesn't fire on touch) */
.jw-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content[aria-current="page"],
.jw-site-header .wp-block-navigation__responsive-container.is-menu-open .current-menu-item > .wp-block-navigation-item__content {
  color: var(--wp--preset--color--blue);
  font-weight: 700;
}

/* ---------- HERO ---------- */
.jw-hero {
  position: relative;
  min-height: clamp(560px, 80vh, 760px);
  background: var(--wp--preset--color--navy-deep);
  overflow: hidden;
  color: #fff;
}
.jw-hero__art {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.jw-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(11,23,51,0.94) 0%, rgba(11,23,51,0.84) 35%, rgba(11,23,51,0.40) 65%, rgba(11,23,51,0.10) 100%);
  z-index: 1;
}
.jw-hero__noise {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 6px);
  z-index: 1;
  opacity: 0.6;
  pointer-events: none;
}
.jw-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(4rem, 6vw, 7rem) clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.jw-hero__copy { max-width: 38rem; }
.jw-hero__eyebrow {
  display: inline-block;
  font-family: var(--wp--preset--font-family--sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  margin-bottom: 1.1rem;
}
.jw-hero__title {
  font-family: var(--wp--preset--font-family--serif);
  font-weight: 600;
  color: #fff !important;
  font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 1.4rem 0;
}
.jw-hero__lede {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin: 0 0 2rem 0;
  max-width: 32rem;
}
.jw-hero__ctas { display: flex; gap: 0.85rem; flex-wrap: wrap; }

/* Service-page hero: shorter than home, otherwise identical */
.jw-hero--service { min-height: clamp(440px, 58vh, 600px); }
.jw-hero--service .jw-hero__inner { padding-top: clamp(3.25rem, 5vw, 5.5rem); padding-bottom: clamp(3.25rem, 5vw, 5.5rem); }
.jw-hero--service .jw-hero__title { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); }
.jw-hero--service .jw-hero__lede { max-width: 36rem; }

/* Centered hero variant (used on /contact/) */
.jw-hero--centered { background: var(--wp--preset--color--navy-deep); min-height: clamp(360px, 44vh, 460px); }
.jw-hero--centered .jw-hero__inner { justify-items: center; text-align: center; }
.jw-hero--centered .jw-hero__copy { max-width: 42rem; }
.jw-hero--centered .jw-hero__lede { margin-left: auto; margin-right: auto; }
.jw-hero__overlay--centered {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(11,23,51,0.55) 0%, rgba(11,23,51,0.78) 70%, rgba(11,23,51,0.85) 100%),
    linear-gradient(180deg, rgba(11,23,51,0.35) 0%, rgba(11,23,51,0.55) 100%);
  z-index: 1;
}

/* Intro paragraph that sits directly under a service-page hero */
.jw-hero-intro {
  background: #ffffff;
  padding: clamp(2.25rem, 4vw, 3.25rem) clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid var(--wp--preset--color--border);
}
.jw-hero-intro__inner { max-width: 720px; margin: 0 auto; }
.jw-hero-intro__text {
  font-family: var(--wp--preset--font-family--serif);
  font-weight: 400;
  font-size: clamp(1.125rem, 0.95rem + 0.45vw, 1.3125rem);
  line-height: 1.55;
  color: var(--wp--preset--color--navy);
  margin: 0;
  letter-spacing: -0.005em;
}
.jw-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease, color .18s ease;
  border: 0; cursor: pointer;
  font-family: inherit;
}
.jw-btn--primary {
  background: var(--wp--preset--color--blue);
  color: #fff;
  box-shadow: 0 6px 16px rgba(29,78,216,0.30);
}
.jw-btn--primary:hover { background: var(--wp--preset--color--blue-soft); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(29,78,216,0.40); }
.jw-btn--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.jw-btn--ghost:hover { background: #fff; color: var(--wp--preset--color--navy); border-color: #fff; }
.jw-btn--dark { background: var(--wp--preset--color--navy); color: #fff; }
.jw-btn--dark:hover { background: var(--wp--preset--color--navy-deep); color: #fff; }
.jw-btn--white-on-blue { background: #fff; color: var(--wp--preset--color--blue); }
.jw-btn--white-on-blue:hover { background: var(--wp--preset--color--blue-fog); color: var(--wp--preset--color--blue); }
.jw-btn__arrow { transition: transform .15s ease; }
.jw-btn:hover .jw-btn__arrow { transform: translateX(3px); }

/* Mobile button rules: long CTA labels like "Request a Free Power Washing
 * Estimate" overflow a 390 px viewport when forced to one line. Allow text
 * to wrap, center it, cap width to the column, and shrink the icon. */
@media (max-width: 600px) {
  .jw-hero__ctas { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .jw-hero__ctas .jw-btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
    padding: 0.95rem 1.25rem;
    font-size: 0.92rem;
  }
  .jw-hero__ctas .jw-btn svg {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
  }
  /* Same treatment for CTA banner buttons that have long labels. */
  .jw-cta-banner__btn-wrap .jw-btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
  }
}

/* ---------- Trust Strip (3 numbers post-hero) ---------- */
.jw-trust-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--wp--preset--color--border);
  padding: 2.25rem clamp(1rem,4vw,3rem);
}
.jw-trust-strip__grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (max-width: 720px) { .jw-trust-strip__grid { grid-template-columns: 1fr; gap: 1rem; } }
.jw-trust-item {
  display: flex; align-items: center; gap: 1rem;
}
.jw-trust-item--stat {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 0.5rem 0;
  border-left: 1px solid var(--wp--preset--color--border);
}
.jw-trust-item--stat:first-child { border-left: 0; }
@media (max-width: 720px) { .jw-trust-item--stat { border-left: 0; border-top: 1px solid var(--wp--preset--color--border); padding-top: 1rem; } .jw-trust-item--stat:first-child { border-top: 0; padding-top: 0; } }
.jw-trust-item__num {
  font-family: var(--wp--preset--font-family--serif);
  font-weight: 600;
  font-size: clamp(2rem, 1.4rem + 1.4vw, 2.75rem);
  color: var(--wp--preset--color--blue);
  letter-spacing: -0.025em;
  line-height: 1;
}
.jw-trust-item__label {
  font-family: var(--wp--preset--font-family--sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--navy);
}

/* ---------- Trust Pillars (was Why-Choose-Us) ---------- */
.jw-pillars { background: #ffffff; padding: clamp(3.5rem,6vw,5.5rem) clamp(1rem,4vw,3rem); }
.jw-pillars__inner { max-width: 1240px; margin: 0 auto; }
.jw-pillars__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2rem, 3vw, 3rem);
}
.jw-pillars__head .jw-eyebrow { display: inline-block; }
.jw-pillars__title {
  margin: 0.6rem 0 0;
  font-family: var(--wp--preset--font-family--serif);
  font-weight: 600;
  font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--wp--preset--color--navy);
}
.jw-pillars__head::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--wp--preset--color--blue);
  border-radius: 2px;
  margin: 1.1rem auto 0;
}
.jw-pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
@media (max-width: 900px) { .jw-pillars__grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.jw-pillar {
  background: #fff;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.jw-pillar:hover {
  transform: translateY(-3px);
  border-color: var(--wp--preset--color--blue-pale);
  box-shadow: 0 12px 32px rgba(15,23,42,0.08);
}
.jw-pillar__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--wp--preset--color--blue-pale);
  color: var(--wp--preset--color--blue);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  transition: background .2s ease, color .2s ease, transform .25s ease;
}
.jw-pillar:hover .jw-pillar__icon { background: var(--wp--preset--color--blue); color: #fff; transform: scale(1.05); }
.jw-pillar h3 { margin: 0 0 0.5rem; }
.jw-pillar p { margin: 0; color: var(--wp--preset--color--body); }

/* ---------- Services Band ---------- */
.jw-services-band { background: var(--wp--preset--color--surface); padding: clamp(3.5rem,6vw,5.5rem) clamp(1rem,4vw,3rem); }
.jw-services-band__inner { max-width: 1240px; margin: 0 auto; }
.jw-services-band__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 4vw, 3.5rem);
}
.jw-services-band__title {
  margin: 0.6rem 0 0;
  font-family: var(--wp--preset--font-family--serif);
  font-weight: 600;
  font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--wp--preset--color--navy);
}
.jw-services-band__rule {
  display: block;
  width: 56px; height: 3px;
  background: var(--wp--preset--color--blue);
  border-radius: 2px;
  margin: 1.1rem auto 0;
}
.jw-services-band__lede {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--wp--preset--color--body);
}
.jw-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 1000px) { .jw-services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
@media (max-width: 720px)  { .jw-services-grid { grid-template-columns: 1fr; } }

/* Services overview page: 3x2 grid */
.jw-services-grid--full { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .jw-services-grid--full { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .jw-services-grid--full { grid-template-columns: 1fr; } }

/* Photo Card */
.jw-pcard {
  position: relative;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15,23,42,0.04), 0 12px 32px rgba(15,23,42,0.08);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.jw-pcard:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(15,23,42,0.04), 0 22px 44px rgba(15,23,42,0.12); }
.jw-pcard__photo {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: linear-gradient(165deg, #1D4ED8 0%, #0B1733 80%);
}
.jw-pcard__photo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.jw-pcard__body {
  position: relative;
  padding: 2.5rem 1.5rem 1.5rem;
}
.jw-pcard__icon {
  position: absolute;
  top: -22px;
  left: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--wp--preset--color--blue);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(29,78,216,0.35);
  border: 3px solid #fff;
  z-index: 2;
}
.jw-pcard__title { margin: 0 0 0.5rem; font-family: var(--wp--preset--font-family--sans); font-weight: 700; font-size: 1.2rem; color: var(--wp--preset--color--navy); letter-spacing: -0.01em; }
.jw-pcard__text  { margin: 0 0 1rem; color: var(--wp--preset--color--body); font-size: 0.96rem; line-height: 1.55; }
.jw-pcard__more {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--wp--preset--color--blue);
  font-weight: 600; font-size: 0.95rem;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  min-height: 44px;
  padding: 0.25rem 0;
  transition: gap .15s ease, color .15s ease;
}
.jw-pcard__more:hover { gap: 0.7rem; color: var(--wp--preset--color--blue-soft); }
.jw-pcard__label {
  position: absolute; left: 0.6rem; top: 0.6rem;
  background: rgba(11,23,51,0.55);
  color: rgba(255,255,255,0.78);
  font-size: 0.58rem;
  letter-spacing: 0.10em;
  text-transform: lowercase;
  font-weight: 500;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  backdrop-filter: blur(2px);
  z-index: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  opacity: 0;
  transition: opacity .2s ease;
}
.jw-pcard:hover .jw-pcard__label { opacity: 1; }

/* ---------- Process Timeline ---------- */
.jw-process {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--wp--preset--color--blue-fog) 100%);
  padding: clamp(4rem,7vw,6rem) clamp(1rem,4vw,3rem);
  position: relative;
  overflow: hidden;
}
.jw-process::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 50% at 12% 30%, rgba(29,78,216,0.05), transparent 70%),
    radial-gradient(35% 45% at 88% 70%, rgba(29,78,216,0.04), transparent 70%);
  pointer-events: none;
}
.jw-process__head {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(2.5rem, 4vw, 3.5rem);
}
.jw-process__title {
  margin: 0.6rem 0 0;
  font-family: var(--wp--preset--font-family--serif);
  font-weight: 600;
  font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--wp--preset--color--navy);
}
.jw-process__rule {
  display: block;
  width: 56px; height: 3px;
  background: var(--wp--preset--color--blue);
  border-radius: 2px;
  margin: 1.1rem auto 0;
}

.jw-process__row {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 1.5rem;
}
@media (max-width: 1100px) { .jw-process__row { grid-template-columns: repeat(3, minmax(0,1fr)); row-gap: 3rem; } }
@media (max-width: 600px)  { .jw-process__row { grid-template-columns: 1fr; row-gap: 2rem; } }

/* Continuous connector behind icons (not dashed) */
.jw-process__row::before {
  content: "";
  position: absolute;
  left: 8%; right: 8%;
  top: 30px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(29,78,216,0.30) 6%, rgba(29,78,216,0.30) 94%, transparent 100%);
  z-index: 0;
}
@media (max-width: 1100px) { .jw-process__row::before { display: none; } }

.jw-step {
  position: relative;
  z-index: 1;
  text-align: left;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Icon-led marker (replaces the old number circle + icon chip combo) */
.jw-step__marker {
  position: relative;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--wp--preset--color--blue);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 0 1.25rem 0;
  border: 4px solid #fff;
  box-shadow: 0 6px 16px rgba(29,78,216,0.30), 0 0 0 6px rgba(29,78,216,0.08);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.jw-step:hover .jw-step__marker {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 22px rgba(29,78,216,0.40), 0 0 0 8px rgba(29,78,216,0.12);
  background: var(--wp--preset--color--blue-soft);
}
.jw-step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.jw-step__num {
  display: inline-block;
  font-family: var(--wp--preset--font-family--sans);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--wp--preset--color--blue);
  margin: 0 0 0.45rem;
}
.jw-step__title {
  margin: 0 0 0.55rem;
  font-family: var(--wp--preset--font-family--sans);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--wp--preset--color--navy);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.jw-step__body {
  margin: 0;
  font-size: 0.92rem;
  color: var(--wp--preset--color--body);
  line-height: 1.6;
  max-width: 17rem;
}

/* ---------- Service Area ---------- */
.jw-area { background: var(--wp--preset--color--surface); padding: clamp(3rem,6vw,5rem) clamp(1rem,4vw,3rem); }
.jw-area__inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: center;
}
@media (max-width: 900px) { .jw-area__inner { grid-template-columns: 1fr; gap: 2rem; } }
.jw-area__map svg { width: 100%; height: auto; max-width: 560px; display: block; }
.jw-area__text h2 { margin: 0.5rem 0 1rem; }
.jw-area__text p { color: var(--wp--preset--color--body); margin: 0 0 1rem; }
.jw-area__stats {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--wp--preset--color--border);
}
.jw-area__stat {
  display: flex; flex-direction: column; min-width: 110px;
}
.jw-area__stat-num {
  font-family: var(--wp--preset--font-family--serif);
  font-weight: 600;
  font-size: 1.65rem;
  color: var(--wp--preset--color--blue);
  letter-spacing: -0.02em;
  line-height: 1;
}
.jw-area__stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--navy);
  margin-top: 0.25rem;
}

/* ---------- CTA Banner (full-width blue band) ---------- */
.jw-cta-banner {
  background: linear-gradient(105deg, var(--wp--preset--color--blue) 0%, var(--wp--preset--color--blue-soft) 100%);
  padding: clamp(1.75rem,3vw,2.25rem) clamp(1rem,4vw,3rem);
  position: relative;
  overflow: hidden;
}
.jw-cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 100% 0%, rgba(255,255,255,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.jw-cta-banner__inner {
  position: relative;
  max-width: 1240px; margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
}
@media (max-width: 900px) { .jw-cta-banner__inner { grid-template-columns: auto 1fr; } .jw-cta-banner__btn-wrap { grid-column: 1 / -1; } }
.jw-cta-banner__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 56px;
}
.jw-cta-banner__title { margin: 0; font-family: var(--wp--preset--font-family--serif); font-weight: 600; font-size: clamp(1.35rem, 0.9rem + 1.2vw, 1.75rem); color: #fff !important; line-height: 1.15; }
.jw-cta-banner__sub { margin: 0.25rem 0 0; color: rgba(255,255,255,0.86); font-size: 0.95rem; }
.jw-cta-banner__btn-wrap { display: inline-flex; }

/* ---------- Premium Products (Brand Strip) ---------- */
.jw-brands {
  background: #ffffff;
  padding: clamp(3rem, 5vw, 4.5rem) clamp(1rem, 4vw, 3rem);
}
.jw-brands__inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}
.jw-brands__title {
  margin: 0 0 2rem;
  font-family: var(--wp--preset--font-family--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 0.9vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--wp--preset--color--navy);
}
.jw-brands__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  flex-wrap: wrap;
}
.jw-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 88px;
  text-decoration: none;
  filter: grayscale(0%);
  transition: transform .25s ease, opacity .2s ease;
}
.jw-brand-logo:hover { transform: translateY(-2px); opacity: 0.92; }
.jw-brand-logo__img { display: none; }
.jw-brand-logo__text {
  color: var(--wp--preset--color--navy);
}
.jw-brand-logo--sw .jw-brand-logo__text {
  font-family: var(--wp--preset--font-family--serif);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.1rem + 0.9vw, 2rem);
  letter-spacing: -0.01em;
  color: #1F4790;
}
.jw-brand-logo--bm .jw-brand-logo__text {
  font-family: var(--wp--preset--font-family--sans);
  font-weight: 700;
  font-size: clamp(1.35rem, 1rem + 0.8vw, 1.75rem);
  letter-spacing: 0.005em;
  color: #1F2937;
}

/* When the actual logo PNGs exist in assets/, swap text → image */
.has-jwp-sw-logo .jw-brand-logo--sw .jw-brand-logo__text { display: none; }
.has-jwp-sw-logo .jw-brand-logo--sw .jw-brand-logo__img {
  display: block;
  width: 240px;
  height: 88px;
  background: url('assets/sherwin-williams.png') no-repeat center/contain;
}
.has-jwp-bm-logo .jw-brand-logo--bm .jw-brand-logo__text { display: none; }
.has-jwp-bm-logo .jw-brand-logo--bm .jw-brand-logo__img {
  display: block;
  width: 220px;
  height: 88px;
  background: url('assets/benjamin-moore.png') no-repeat center/contain;
}
@media (max-width: 600px) {
  .jw-brand-logo { height: 64px; }
  .has-jwp-sw-logo .jw-brand-logo--sw .jw-brand-logo__img { width: 180px; height: 64px; }
  .has-jwp-bm-logo .jw-brand-logo--bm .jw-brand-logo__img { width: 170px; height: 64px; }
}

/* ---------- FAQ ---------- */
.jw-faq-head { max-width: 720px; margin: 0 auto 2.25rem; text-align: center; }
.jw-faq-head h2 {
  margin: 0.5rem 0 0;
  font-family: var(--wp--preset--font-family--serif);
  font-weight: 600;
  font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--wp--preset--color--navy);
}
.jw-faq-head .jw-eyebrow + h2 { margin-top: 0.6rem; }
.jw-faq-head::after {
  content: "";
  display: block;
  width: 56px; height: 3px;
  background: var(--wp--preset--color--blue);
  border-radius: 2px;
  margin: 1.1rem auto 0;
}
.jw-faq-list {
  background: #ffffff;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 1px 0 rgba(15,23,42,0.04), 0 16px 36px rgba(15,23,42,0.07);
  overflow: hidden;
}
.jw-faq {
  position: relative;
  padding: 0 1.75rem;
  transition: background .25s ease;
}
.jw-faq::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--wp--preset--color--blue);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .25s ease;
}
.jw-faq:hover { background: var(--wp--preset--color--blue-fog); }
.jw-faq[open] { background: var(--wp--preset--color--blue-fog); }
.jw-faq[open]::before { transform: scaleY(1); }
.jw-faq + .jw-faq { border-top: 1px solid var(--wp--preset--color--border); }

.jw-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  font-family: var(--wp--preset--font-family--sans);
  font-weight: 600;
  color: var(--wp--preset--color--navy);
  font-size: 1.0625rem;
  line-height: 1.4;
  letter-spacing: -0.005em;
  transition: color .2s ease;
}
.jw-faq summary:hover { color: var(--wp--preset--color--blue); }
.jw-faq summary::-webkit-details-marker { display: none; }
.jw-faq summary::after {
  content: "";
  flex: 0 0 38px;
  width: 38px; height: 38px;
  display: inline-flex;
  border-radius: 50%;
  background-color: var(--wp--preset--color--blue-pale);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D4ED8' stroke-width='2.4' stroke-linecap='round'><path d='M12 5v14M5 12h14'/></svg>");
  background-size: 18px;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.jw-faq:hover summary::after {
  background-color: var(--wp--preset--color--blue);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'><path d='M12 5v14M5 12h14'/></svg>");
}
.jw-faq[open] summary::after {
  background-color: var(--wp--preset--color--blue);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'><path d='M5 12h14'/></svg>");
  box-shadow: 0 6px 14px rgba(29,78,216,0.30);
  transform: rotate(180deg);
}

.jw-faq p {
  margin: 0 0 1.4rem 0;
  color: var(--wp--preset--color--body);
  font-size: 0.985rem;
  line-height: 1.7;
  padding-right: 56px;
  max-width: 56rem;
}

/* ---------- Forms ----------
 * Mobile rules:
 *  - Inputs are pinned to font-size: 16px so iOS Safari does not zoom on focus.
 *  - Min-height: 48px on inputs/select and 52px on submit beats the 44px tap-target floor.
 *  - Labels get vertical padding so the touch zone is bigger than the visible text.
 *  - Optional-marker spans are scoped so they don't push the label height up.
 */
.jw-form { display: grid; gap: 1.1rem; }
.jw-form .jw-field { display: grid; gap: .4rem; }
.jw-form label {
  font-family: var(--wp--preset--font-family--sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--wp--preset--color--navy);
  letter-spacing: 0.005em;
  padding: 0.25rem 0;
  cursor: pointer;
}
.jw-form label .req { color: var(--wp--preset--color--blue); }
.jw-form .jw-field__optional { color: #5a6478; font-weight: 500; font-size: 0.85em; }
.jw-form input, .jw-form select, .jw-form textarea {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 1rem;
  border: 1px solid #DBE3EC;
  border-radius: 10px;
  background: #F6F8FB;
  color: var(--wp--preset--color--ink);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.jw-form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%230F2954' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.jw-form input::placeholder, .jw-form textarea::placeholder { color: #8a95a8; }
.jw-form input:hover, .jw-form select:hover, .jw-form textarea:hover { border-color: #C4D0DD; }
.jw-form input:focus, .jw-form select:focus, .jw-form textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--wp--preset--color--blue);
  box-shadow: 0 0 0 3px rgba(29,78,216,0.16);
}
.jw-form input:invalid:not(:placeholder-shown):not(:focus) {
  border-color: #c44b2c;
  box-shadow: 0 0 0 3px rgba(196,75,44,0.10);
}
.jw-form textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
.jw-form .jw-field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .jw-form .jw-field--row { grid-template-columns: 1fr; } }
.jw-form button[type="submit"] {
  font-family: inherit;
  font-weight: 700;
  background: var(--wp--preset--color--blue);
  color: #fff;
  border: 0;
  padding: 1.1rem 1.6rem;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: 0.01em;
  font-size: 1rem;
  min-height: 52px;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  box-shadow: 0 8px 18px -10px rgba(29,78,216,0.55);
  margin-top: 0.4rem;
}
.jw-form button[type="submit"]:hover {
  background: var(--wp--preset--color--blue-soft);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px -10px rgba(29,78,216,0.55);
}
.jw-form button[type="submit"] .jw-btn__arrow { transition: transform .2s ease; }
.jw-form button[type="submit"]:hover .jw-btn__arrow { transform: translateX(3px); }
.jw-form__trust {
  font-size: 0.88rem;
  color: #5a6478;
  margin: 0.25rem 0 0 0;
  text-align: center;
}
.jw-form__reviews {
  font-size: 0.88rem;
  margin: 0.25rem 0 0 0;
  text-align: center;
}
.jw-form__reviews a { color: var(--wp--preset--color--blue); font-weight: 600; }

/* ---------- Contact card (right column on /contact/) ---------- */
.jw-contact-card {
  background: #fff;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 16px;
  padding: 1.75rem 1.6rem;
  box-shadow: 0 1px 0 rgba(15,30,61,0.03), 0 18px 36px -28px rgba(15,30,61,0.18);
}
.jw-contact-card__title {
  font-family: var(--wp--preset--font-family--serif);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--wp--preset--color--navy);
  margin: 0 0 1.25rem 0;
  letter-spacing: -0.015em;
}
.jw-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.95rem;
}
.jw-contact-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 0.85rem;
}
.jw-contact-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(29, 78, 216, 0.08);
  color: var(--wp--preset--color--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
}
.jw-contact-item__body { display: flex; flex-direction: column; min-width: 0; }
.jw-contact-item__label {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b7689;
  font-weight: 700;
  margin-bottom: 0.1rem;
}
.jw-contact-item__value {
  font-family: var(--wp--preset--font-family--sans);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--wp--preset--color--navy);
  text-decoration: none;
  word-break: break-word;
  transition: color .15s ease;
}
.jw-contact-item__value:hover { color: var(--wp--preset--color--blue); }

.jw-contact-social {
  display: flex;
  gap: 0.55rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--wp--preset--color--border);
}
.jw-contact-social__btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.08);
  color: var(--wp--preset--color--blue) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  transition: background .15s ease, transform .15s ease;
}
.jw-contact-social__btn:hover { background: rgba(29, 78, 216, 0.16); transform: translateY(-1px); }

.jw-contact-promise {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-top: 1.1rem;
  padding: 1.1rem 1.25rem;
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 14px;
  border-left: 3px solid var(--wp--preset--color--blue);
}
.jw-contact-promise svg { color: var(--wp--preset--color--blue); flex: 0 0 auto; margin-top: 0.15rem; }
.jw-contact-promise p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--wp--preset--color--ink);
}
.jw-form .jw-form__notice {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}
.jw-form .jw-form__notice--ok    { background: #e7f1e9; color: #1f5b32; border: 1px solid #b7d4be; }
.jw-form .jw-form__notice--error { background: #fbeae5; color: #8a2c12; border: 1px solid #e7b9aa; }

/* Hide the floating icon-circle overlay on service photo cards */
.jw-pcard__icon { display: none !important; }

/* ---------- Gallery page ---------- */
.jw-gallery {
  background: #fff;
  padding: 0 0 clamp(2.5rem, 5vw, 4.5rem);
}
.jw-gallery__jump {
  position: sticky;
  top: 64px;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--wp--preset--color--border);
  justify-content: center;
}
.jw-gallery__jump a {
  font-family: var(--wp--preset--font-family--sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.005em;
  color: var(--wp--preset--color--navy);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.jw-gallery__jump a:hover { background: rgba(29,78,216,0.08); color: var(--wp--preset--color--blue); border-color: rgba(29,78,216,0.18); }

/* On mobile the sticky filter bar steals too much vertical real estate
 * (combined with the sticky header it can eat 25% of the viewport). Render
 * it inline so it scrolls away with the rest of the page. */
@media (max-width: 600px) {
  .jw-gallery__jump {
    position: static;
    top: auto;
    background: #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.jw-gallery__cat {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(2.5rem, 4vw, 3.5rem) clamp(1rem, 4vw, 2.5rem);
  scroll-margin-top: 130px;
}
.jw-gallery__cat-head { max-width: 720px; margin: 0 auto 1.75rem; text-align: center; }
.jw-gallery__cat-title {
  font-family: var(--wp--preset--font-family--serif);
  font-weight: 600;
  font-size: clamp(1.65rem, 1.2rem + 1.2vw, 2.25rem);
  color: var(--wp--preset--color--navy);
  margin: 0 0 0.55rem;
  letter-spacing: -0.02em;
}
.jw-gallery__cat-desc {
  font-size: 0.98rem;
  color: var(--wp--preset--color--ink);
  margin: 0;
  line-height: 1.55;
}

.jw-gallery__grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
@media (max-width: 1100px) { .jw-gallery__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .jw-gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 0.55rem; } }
@media (max-width: 440px)  { .jw-gallery__grid { grid-template-columns: 1fr; } }

.jw-gallery__item { margin: 0; }
.jw-gallery__link {
  display: block;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--wp--preset--color--surface);
  aspect-ratio: 4 / 5;
  box-shadow: 0 1px 0 rgba(15,30,61,0.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.jw-gallery__link:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -16px rgba(15,30,61,0.30); }
.jw-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.jw-gallery__link:hover .jw-gallery__img { transform: scale(1.04); }

/* ---------- Credentials grid (About page) ---------- */
.jw-credentials-grid {
  list-style: none;
  padding: 0;
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  max-width: 1100px;
}
.jw-credential {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 0.95rem;
  padding: 1.05rem 1.15rem;
  background: #ffffff;
  border: 1px solid var(--wp--preset--color--border);
  border-left: 3px solid var(--wp--preset--color--blue);
  border-radius: 12px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.jw-credential:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -16px rgba(15,30,61,0.18);
}
.jw-credential__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(29, 78, 216, 0.08);
  color: var(--wp--preset--color--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
}
.jw-credential__text {
  font-family: var(--wp--preset--font-family--sans);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--wp--preset--color--navy);
  letter-spacing: -0.005em;
}
@media (max-width: 600px) {
  .jw-credentials-grid { grid-template-columns: 1fr; }
}

/* ---------- Site Footer ---------- */
.jw-site-footer {
  background: var(--wp--preset--color--navy-deep);
  color: rgba(255,255,255,0.78);
}
.jw-site-footer a { color: #ffffff; text-decoration: none; transition: color .15s ease; }
.jw-site-footer a:hover { color: rgba(255,255,255,0.7); }
.jw-site-footer .jw-btn--white-on-blue { color: var(--wp--preset--color--blue); background: #ffffff; }
.jw-site-footer .jw-btn--white-on-blue:hover { color: var(--wp--preset--color--blue); background: var(--wp--preset--color--blue-fog); }
.jw-site-footer h2, .jw-site-footer h3, .jw-site-footer h4 { color: #ffffff !important; }
.jw-footer__grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr 1.4fr;
  gap: 2rem;
  padding: 4rem clamp(1rem,4vw,3rem) 2.5rem;
}
@media (max-width: 1100px) { .jw-footer__grid { grid-template-columns: repeat(2, 1fr); gap: 2.25rem 1.5rem; } }
@media (max-width: 600px)  { .jw-footer__grid { grid-template-columns: 1fr; } }
.jw-footer__heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85) !important;
  margin: 0 0 1rem;
}
.jw-footer__brand-line {
  font-family: var(--wp--preset--font-family--serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin: 0.5rem 0 1rem;
}
.jw-footer__col ul { list-style: none; padding: 0; margin: 0; line-height: 2; font-size: 0.95rem; }
.jw-footer__contact-item { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.45rem; }
.jw-footer__contact-icon { color: var(--wp--preset--color--blue-pale); flex: 0 0 18px; }
.jw-footer__estimate-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--wp--preset--color--blue);
  border-radius: 12px;
  padding: 1.25rem;
}
.jw-footer__estimate-card p { margin: 0 0 1rem; font-size: 0.9rem; color: rgba(255,255,255,0.78); line-height: 1.5; }
.jw-footer__estimate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.05rem;
  background: #ffffff;
  color: var(--wp--preset--color--blue) !important;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.005em;
  border-radius: 999px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 16px -8px rgba(0,0,0,0.45);
}
.jw-footer__estimate-btn:hover { background: #F4F8FF; transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(0,0,0,0.5); }
.jw-footer__estimate-btn .jw-btn__arrow { transition: transform .2s ease; }
.jw-footer__estimate-btn:hover .jw-btn__arrow { transform: translateX(3px); }
.jw-footer__estimate-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
  padding: 0.5rem;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.78) !important;
  text-decoration: none !important;
  font-weight: 500;
  transition: color .15s ease;
}
.jw-footer__estimate-call svg { color: var(--wp--preset--color--blue-pale); flex: 0 0 auto; }
.jw-footer__estimate-call:hover { color: #ffffff !important; }
.jw-footer__estimate-call:hover svg { color: #ffffff; }
.jw-footer__social {
  display: inline-flex; gap: 0.5rem; margin-top: 0.85rem;
}
.jw-footer__social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background .15s ease, transform .15s ease;
}
.jw-footer__social a:hover { background: var(--wp--preset--color--blue); transform: translateY(-1px); }

/* Trust ribbon at top of footer */
.jw-footer__trust {
  border-bottom: 1px solid rgba(255,255,255,0.10);
  padding: 1.1rem clamp(1rem,4vw,3rem);
  background: rgba(255,255,255,0.025);
}
.jw-footer__trust-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.25rem;
}
.jw-footer__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.jw-footer__trust-item svg { color: var(--wp--preset--color--blue-pale); flex: 0 0 16px; }
.jw-footer__trust-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}
@media (max-width: 800px) {
  .jw-footer__trust-dot { display: none; }
  .jw-footer__trust-inner { gap: 0.75rem 1.5rem; }
}

/* Beefier social icons */
.jw-footer__social {
  display: inline-flex;
  gap: 0.6rem;
  margin-top: 1.1rem;
}
.jw-footer__social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.jw-footer__social a:hover {
  background: var(--wp--preset--color--blue);
  border-color: var(--wp--preset--color--blue-soft);
  transform: translateY(-2px);
}
.jw-footer__social a svg { width: 18px; height: 18px; }

/* Contact items as proper anchors */
.jw-footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
  padding: 0.15rem 0;
  text-decoration: none;
  color: #fff;
  transition: color .15s ease;
}
.jw-footer__contact-item:hover { color: var(--wp--preset--color--blue-pale); }
.jw-footer__contact-item:hover .jw-footer__contact-icon { color: var(--wp--preset--color--blue-pale); }
.jw-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.25rem clamp(1rem,4vw,3rem);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.75rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}
.jw-footer__bottom a { color: rgba(255,255,255,0.78); }
.jw-footer__legal { display: inline-flex; gap: 1.25rem; }

/* ---------- Page Hero (sub-pages) ---------- */
.jw-page-hero {
  position: relative;
  background: linear-gradient(135deg, #1B2D5A 0%, #0B1733 100%);
  color: #fff;
  padding: clamp(3.5rem,5vw,5.5rem) clamp(1rem,4vw,3rem);
  overflow: hidden;
}
.jw-page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 100% 0%, rgba(29,78,216,0.22), transparent 65%),
    radial-gradient(50% 50% at 0% 100%, rgba(29,78,216,0.12), transparent 70%);
  pointer-events: none;
}
.jw-page-hero__inner {
  position: relative;
  max-width: 1240px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 900px) {
  .jw-page-hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
}
.jw-page-hero__copy { max-width: 38rem; }
.jw-page-hero h1 {
  color: #fff !important;
  margin: 0.5rem 0 1.1rem;
  font-size: clamp(1.75rem, 1.05rem + 1.6vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-wrap: balance;
}

/* Refined ampersand for serif headings — italic Fraunces reads cleaner than its upright "Et" glyph */
.jw-amp {
  font-style: italic;
  font-weight: 500;
  font-feature-settings: "ss01" on;
  margin: 0 0.04em;
  letter-spacing: 0;
}
.jw-page-hero__lede {
  margin: 0 0 1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  font-size: 1.0625rem;
}

.jw-page-hero__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  max-height: 360px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--wp--preset--color--navy);
  box-shadow: 0 4px 12px rgba(0,0,0,0.30), 0 28px 56px rgba(0,0,0,0.40);
  margin-left: auto;
  align-self: center;
}
.jw-page-hero__visual svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Compact contact-page variant */
.jw-page-hero--compact { padding: clamp(2.5rem,4vw,4rem) clamp(1rem,4vw,3rem); }
.jw-page-hero--compact .jw-page-hero__inner { grid-template-columns: 1fr; max-width: 880px; }
.jw-page-hero--compact h1 { font-size: clamp(1.875rem, 1.4rem + 1.4vw, 2.5rem); }

/* ---------- Section eyebrow rule ---------- */
.jw-section-rule { width: 56px; height: 3px; background: var(--wp--preset--color--blue); border-radius: 2px; margin-bottom: 1rem; }
.jw-section-rule--center { margin-left: auto; margin-right: auto; }

/* ---------- Generic content polish ---------- */
.jw-prose p { color: var(--wp--preset--color--body); line-height: 1.7; }
.jw-prose h2 + p, .jw-prose h3 + p { margin-top: 0.5rem; }
.jw-list-checks {
  list-style: none;
  padding: 0; margin: 0;
}
.jw-list-checks li {
  position: relative;
  padding: 0.4rem 0 0.4rem 2rem;
  font-size: 1.02rem;
  color: var(--wp--preset--color--body);
  line-height: 1.5;
}
.jw-list-checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55rem;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--wp--preset--color--blue-pale) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%231D4ED8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M2.5 6.5l2.5 2.5 4.5-5.5'/></svg>") center/12px no-repeat;
}

/* Substantial surface-list (used for "Exterior Surfaces", "What We Paint Indoors", "Surfaces We Clean") */
.jw-surface-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.jw-surface-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.15rem;
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  border-left: 3px solid var(--wp--preset--color--blue);
  border-radius: 10px;
  font-family: var(--wp--preset--font-family--sans);
  font-weight: 500;
  font-size: 1rem;
  color: var(--wp--preset--color--navy);
  line-height: 1.4;
  letter-spacing: -0.005em;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.jw-surface-list li:hover {
  background: #ffffff;
  border-left-color: var(--wp--preset--color--blue-soft);
  transform: translateX(4px);
  box-shadow: 0 8px 18px rgba(15,23,42,0.06);
}
.jw-surface-list li::before {
  content: "";
  flex: 0 0 22px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--wp--preset--color--blue) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M2.5 6.5l2.5 2.5 4.5-5.5'/></svg>") center/12px no-repeat;
  box-shadow: 0 2px 6px rgba(29,78,216,0.30);
}
/* Surface list against a surface-bg section (e.g. on /interior-painting/ where the section already uses surface) */
.jw-section--surface .jw-surface-list li { background: #ffffff; }
.jw-section--surface .jw-surface-list li:hover { background: var(--wp--preset--color--blue-fog); }

/* ---------- Generic Section ---------- */
.jw-section { background: #ffffff; padding: clamp(3.5rem,6vw,5.5rem) clamp(1rem,4vw,3rem); }
.jw-section--surface { background: var(--wp--preset--color--surface); }
.jw-section--blue-fog { background: var(--wp--preset--color--blue-fog); }
.jw-section__inner { max-width: 1200px; margin: 0 auto; }
.jw-section__inner--narrow { max-width: 820px; }

/* Reusable centered-head pattern (matches homepage sections) */
.jw-section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 4vw, 3.5rem);
}
.jw-section__title {
  margin: 0.6rem 0 0;
  font-family: var(--wp--preset--font-family--serif);
  font-weight: 600;
  font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--wp--preset--color--navy);
}
.jw-section__rule {
  display: block;
  width: 56px; height: 3px;
  background: var(--wp--preset--color--blue);
  border-radius: 2px;
  margin: 1.1rem auto 0;
}
.jw-section__lede {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--wp--preset--color--body);
}

/* ---------- Split (image+copy) ---------- */
.jw-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 900px) { .jw-split { grid-template-columns: 1fr; gap: 2rem; } }
.jw-split--reverse .jw-split__visual { order: -1; }
@media (max-width: 900px) { .jw-split--reverse .jw-split__visual { order: 0; } }
.jw-split__copy h2 { margin: 0.5rem 0 1.5rem; }
.jw-split__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(165deg, #1D4ED8 0%, #0B1733 80%);
  box-shadow: 0 1px 0 rgba(15,23,42,0.04), 0 12px 32px rgba(15,23,42,0.10);
}
.jw-split__visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Mini Card Grid ---------- */
.jw-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1.25rem;
}
@media (max-width: 720px) { .jw-mini-grid { grid-template-columns: 1fr; } }
.jw-mini-card {
  background: #ffffff;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.jw-mini-card:hover {
  transform: translateY(-2px);
  border-color: var(--wp--preset--color--blue-pale);
  box-shadow: 0 12px 28px rgba(15,23,42,0.08);
}
.jw-mini-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--wp--preset--color--blue-pale);
  color: var(--wp--preset--color--blue);
  margin-bottom: 0.85rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.jw-mini-card:hover .jw-mini-card__icon { background: var(--wp--preset--color--blue); color: #fff; }
.jw-mini-card h3 { margin: 0 0 0.4rem; font-family: var(--wp--preset--font-family--sans); font-weight: 700; font-size: 1.05rem; color: var(--wp--preset--color--navy); }
.jw-mini-card p { margin: 0; color: var(--wp--preset--color--body); font-size: 0.95rem; line-height: 1.55; }

/* Three-column variant for service-area-ish layouts */
.jw-mini-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 1000px) { .jw-mini-grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px)  { .jw-mini-grid--3 { grid-template-columns: 1fr; } }

/* ---------- Instagram Feed ---------- */
.jw-ig {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--wp--preset--color--blue-fog) 100%);
  padding: clamp(3.5rem,6vw,5.5rem) clamp(1rem,4vw,3rem);
  position: relative;
  overflow: hidden;
}
.jw-ig__inner { max-width: 1240px; margin: 0 auto; }
.jw-ig__head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.jw-ig__title {
  margin: 0.6rem 0 0;
  font-family: var(--wp--preset--font-family--serif);
  font-weight: 600;
  font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--wp--preset--color--navy);
}
.jw-ig__rule {
  display: block;
  width: 56px; height: 3px;
  background: var(--wp--preset--color--blue);
  border-radius: 2px;
  margin: 1.1rem auto 0;
}

.jw-ig__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
}
@media (max-width: 1000px) { .jw-ig__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px)  { .jw-ig__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.jw-ig__tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(40% 40% at 30% 30%, rgba(255,255,255,0.55) 0%, transparent 65%),
    linear-gradient(135deg, var(--wp--preset--color--blue-pale) 0%, var(--wp--preset--color--blue-fog) 100%);
  border: 1px solid var(--wp--preset--color--border);
  transition: transform .25s ease, box-shadow .25s ease;
}
.jw-ig__tile:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(15,23,42,0.10); }
.jw-ig__tile::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(29,78,216,0.04) 10px 12px);
}
.jw-ig__tile::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 28px; height: 28px;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D4ED8' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1' fill='%231D4ED8'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.65;
}

/* Hand-picked post embeds (Instagram official iframe) */
.jw-ig__posts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1240px;
  margin: 0 auto;
}
/* Count-aware layouts */
.jw-ig__posts--count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 700px; }
.jw-ig__posts--count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1000px; }
.jw-ig__posts--count-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1240px; }
.jw-ig__posts--count-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.jw-ig__posts--count-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1100px; }
@media (max-width: 1000px) { .jw-ig__posts, .jw-ig__posts--count-2, .jw-ig__posts--count-3, .jw-ig__posts--count-4, .jw-ig__posts--count-5, .jw-ig__posts--count-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 100%; } }
@media (max-width: 540px) { .jw-ig__posts, .jw-ig__posts--count-2, .jw-ig__posts--count-3, .jw-ig__posts--count-4, .jw-ig__posts--count-5, .jw-ig__posts--count-6 { grid-template-columns: 1fr; max-width: 360px; } }

.jw-ig__post {
  position: relative;
  background: var(--wp--preset--color--navy-deep);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: 0 1px 0 rgba(15,23,42,0.04), 0 12px 28px rgba(15,23,42,0.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.jw-ig__post:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(15,23,42,0.04), 0 22px 44px rgba(15,23,42,0.14); }
.jw-ig__post iframe {
  position: absolute;
  left: 50%;
  top: -72px;
  width: 100% !important;
  height: 720px !important;
  border: 0 !important;
  display: block;
  transform: translateX(-50%);
  pointer-events: none;
}
/* Bottom mask — hides IG carousel dots and other variable chrome so all 4 cards read uniform */
.jw-ig__post::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  background: linear-gradient(180deg, transparent 0%, rgba(11,23,51,0.55) 55%, rgba(11,23,51,0.92) 100%);
  pointer-events: none;
  z-index: 3;
}

/* Click-through overlay — opens the post on Instagram.
 * Hover-revealed on the desktop pointer; always visible on touch devices
 * (which never fire :hover persistently) so the affordance is discoverable.
 */
.jw-ig__post-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
  text-decoration: none;
  background: linear-gradient(180deg, transparent 55%, rgba(11,23,51,0.62) 100%);
  opacity: 0;
  transition: opacity .2s ease;
}
.jw-ig__post:hover .jw-ig__post-cover,
.jw-ig__post:focus-within .jw-ig__post-cover { opacity: 1; }
@media (hover: none) {
  .jw-ig__post-cover { opacity: 1; }
}
.jw-ig__post-cover-icon {
  position: absolute;
  bottom: 0.85rem;
  right: 0.85rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--wp--preset--color--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.jw-ig__note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--wp--preset--color--muted);
  margin: 1.25rem auto 0;
  max-width: 520px;
}
.jw-ig__cta { text-align: center; margin-top: 2rem; }

/* ---------- About Story ---------- */
.jw-story { background: #ffffff; padding: clamp(3rem,6vw,5rem) clamp(1rem,4vw,3rem); }
.jw-story__inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) { .jw-story__inner { grid-template-columns: 1fr; gap: 2rem; } }
.jw-story__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: var(--wp--preset--color--navy-deep);
  box-shadow: 0 4px 8px rgba(15,23,42,0.08), 0 22px 48px rgba(15,23,42,0.18);
}
.jw-story__photo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.jw-story__text p { color: var(--wp--preset--color--body); font-size: 1.05rem; line-height: 1.7; margin: 0 0 1.1rem; }

/* Text-only story variant: single column, narrow, centered. Used on /about/
 * where the hero already shows John, so a second portrait would duplicate. */
.jw-story--text-only { background: #ffffff; padding: clamp(3rem,6vw,5rem) clamp(1rem,4vw,3rem); }
.jw-story__text-narrow {
  max-width: 720px;
  margin: 0 auto;
}
.jw-story__text-narrow p { color: var(--wp--preset--color--body); font-size: 1.05rem; line-height: 1.7; margin: 0 0 1.1rem; }

/* ---------- Photo slots (real images replace placeholders) ---------- */
.jw-page-hero__visual img,
.jw-pcard__photo img,
.jw-story__photo img,
.jw-hero-visual img,
.jw-split__visual img,
.jw-hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}
/* Hide placeholder caption pills now that real photos are in place */
.jw-pcard__label,
.jw-hero-visual__label { display: none !important; }

/* Page-hero visual loses its dark fallback bg when an img fills it */
.jw-page-hero__visual { background: transparent; }

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Breadcrumbs ---------- */
.jw-breadcrumbs {
  background: var(--wp--preset--color--blue-fog, #f3f5fb);
  border-bottom: 1px solid var(--wp--preset--color--border, #e5e7eb);
  padding: 0.55rem 0;
  font-size: 0.85rem;
}
.jw-breadcrumbs__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.jw-breadcrumbs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.jw-breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  color: var(--wp--preset--color--navy, #0a2540);
}
.jw-breadcrumbs__item a {
  color: var(--wp--preset--color--blue, #1d4ed8);
  text-decoration: none;
}
.jw-breadcrumbs__item a:hover { text-decoration: underline; }
.jw-breadcrumbs__item [aria-current="page"] {
  color: var(--wp--preset--color--navy-deep, #061a2f);
  font-weight: 600;
}
.jw-breadcrumbs__sep {
  margin: 0 0.5rem;
  color: rgba(10, 37, 64, 0.45);
}

/* ---------- Service Area page ---------- */
.jw-service-area {
  background: #fff;
  padding: 4rem 1.25rem 5rem;
}
.jw-service-area__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.jw-service-area__header {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}
.jw-service-area__eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--wp--preset--color--blue, #1d4ed8);
  margin-bottom: 0.9rem;
}
.jw-service-area__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--wp--preset--color--navy, #0a2540);
  margin: 0 0 1rem;
}
.jw-service-area__lede {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(10, 37, 64, 0.85);
  margin: 0;
}
.jw-service-area__group {
  margin-top: 3rem;
}
.jw-service-area__group-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--wp--preset--color--navy, #0a2540);
  border-left: 4px solid var(--wp--preset--color--blue, #1d4ed8);
  padding-left: 0.8rem;
  margin: 0 0 1.5rem;
}
.jw-service-area__towns {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.jw-service-area__town {
  background: var(--wp--preset--color--blue-fog, #f3f5fb);
  border: 1px solid var(--wp--preset--color--border, #e5e7eb);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  scroll-margin-top: 5rem;
}
.jw-service-area__town:target {
  border-color: var(--wp--preset--color--blue, #1d4ed8);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}
.jw-service-area__town-name {
  font-family: 'Albert Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--wp--preset--color--navy, #0a2540);
  margin: 0 0 0.4rem;
}
.jw-service-area__town-note {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(10, 37, 64, 0.78);
  margin: 0;
}
.jw-service-area__cta {
  text-align: center;
  margin-top: 3.5rem;
}

/* ---------- Footer service-area town list ---------- */
.jw-footer__service-area {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.6rem 0 0;
  margin-top: 1.4rem;
}
.jw-footer__service-area-heading {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 0.7rem;
}
.jw-footer__service-area-list {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}
.jw-footer__service-area-list a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}
.jw-footer__service-area-list a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ============================================================================
 * Mobile fine-tuning (added in mobile-optimization pass).
 * Lives at the end of the file so these rules win against earlier section
 * declarations without bumping selector specificity.
 * ============================================================================ */

/* Trust strip: between the desktop 3-up and the mobile 1-stack, fit 2 columns
 * in the 480 to 720 px window so each stat keeps a comfortable column width. */
@media (min-width: 480px) and (max-width: 720px) {
  .jw-trust-strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
}

/* CTA banner: cleaner line breaks where supported. text-wrap: balance is a
 * progressive enhancement — older browsers ignore it harmlessly. */
.jw-cta-banner__title { text-wrap: balance; }

/* Footer estimate card: keep the call link from crowding on a 320 px iPhone. */
@media (max-width: 380px) {
  .jw-footer__estimate-call {
    flex-wrap: wrap;
    row-gap: 0.25rem;
    font-size: 0.95rem;
    min-height: 44px;
  }
}

/* FAQ summary: explicit touch hint and adequate row height on touch. */
.jw-faq summary { touch-action: manipulation; min-height: 56px; }

/* Visible focus state for the FAQ chevron when keyboard-tabbed in. */
.jw-faq summary:focus-visible::after {
  background-color: var(--wp--preset--color--blue);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'><path d='M12 5v14M5 12h14'/></svg>");
}

/* Process timeline on mobile: stack centered (no left-rail connector — read better as cards). */
@media (max-width: 600px) {
  .jw-process__row { padding-left: 0; }
  .jw-process__row::before { display: none !important; }
  .jw-step { align-items: center; text-align: center; }
  .jw-step > * { margin-left: auto; margin-right: auto; }
}

/* CTA banner on mobile: stack icon → headline → body → button, all centered. */
@media (max-width: 600px) {
  .jw-cta-banner__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1rem;
  }
  .jw-cta-banner__inner > div { max-width: 36rem; }
  .jw-cta-banner__btn-wrap { grid-column: auto; justify-content: center; }
  .jw-cta-banner__icon { margin: 0 auto; }
}

/* Header CTA pill: hide entirely on mobile — the phone icon is the primary mobile CTA. */
@media (max-width: 600px) {
  .jw-header-cta { display: none !important; }
}

/* Center every card-style icon and its text on mobile.
 * Applies to trust pillars, mini cards, service cards, trust strip stats. */
@media (max-width: 600px) {
  .jw-pillar,
  .jw-mini-card,
  .jw-pcard__body,
  .jw-trust-item--stat {
    text-align: center;
  }
  .jw-pillar__icon,
  .jw-mini-card__icon,
  .jw-pcard__icon,
  .jw-trust-item__icon,
  .jw-contact-item__icon {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .jw-pillar h3,
  .jw-pillar p,
  .jw-mini-card h3,
  .jw-mini-card p {
    text-align: center;
  }
  /* Trust pillars use flex-start by default — center on mobile too */
  .jw-pillar { align-items: center; }
}

/* Home hero "Third-Generation" — drop the hyphen on mobile, render as two words. */
.jw-hero__hyphen-space { display: none; }
@media (max-width: 600px) {
  .jw-hero__hyphen { display: none; }
  .jw-hero__hyphen-space { display: inline; }
}

/* On mobile, kill backdrop-filter on the sticky header so the .jw-mnav__panel
 * (position: fixed) escapes the header's containing block and covers the full viewport. */
@media (max-width: 600px) {
  .jw-site-header--sticky {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: #ffffff !important;
  }
}

/* ============================================================================
 * Mobile navigation — hand-rolled, NOT the WP nav block.
 * Why: WP's core navigation block depends on its Interactivity-API script
 * module and is brittle inside the responsive container on iOS Safari. After
 * exhausting CSS overrides, replacing it with a plain <details> + position:fixed
 * overlay gives us a deterministic, framework-free mobile menu.
 * ============================================================================ */
.jw-mnav { display: none; }
@media (max-width: 600px) {
  /* Hide WP nav block + its hamburger entirely on mobile; we render our own. */
  .jw-site-header .wp-block-navigation,
  .jw-site-header .wp-block-navigation__responsive-container-open,
  .jw-site-header .wp-block-navigation__responsive-container { display: none !important; }

  .jw-mnav { display: inline-block; position: relative; }
  .jw-mnav summary {
    list-style: none;
    cursor: pointer;
    width: 48px; height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: rgba(15, 41, 84, 0.12);
  }
  .jw-mnav summary::-webkit-details-marker { display: none; }
  .jw-mnav summary::marker { content: ""; }

  /* Hamburger icon: 3 horizontal bars that morph into an X when [open]. */
  .jw-mnav__icon {
    position: relative;
    display: block;
    width: 24px; height: 2px;
    background: var(--wp--preset--color--navy);
    border-radius: 1px;
    transition: background 0.15s ease;
  }
  .jw-mnav__icon::before,
  .jw-mnav__icon::after {
    content: "";
    position: absolute; left: 0;
    width: 24px; height: 2px;
    background: var(--wp--preset--color--navy);
    border-radius: 1px;
    transition: transform 0.2s ease;
  }
  .jw-mnav__icon::before { top: -7px; }
  .jw-mnav__icon::after  { top:  7px; }
  .jw-mnav[open] .jw-mnav__icon { background: transparent; }
  .jw-mnav[open] .jw-mnav__icon::before { transform: translateY(7px) rotate(45deg); }
  .jw-mnav[open] .jw-mnav__icon::after  { transform: translateY(-7px) rotate(-45deg); }

  /* Full-viewport overlay — fixed inset:0 so background scroll is irrelevant. */
  .jw-mnav__panel {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #ffffff;
    padding: calc(4rem + env(safe-area-inset-top)) 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    animation: jwMnavIn 0.18s ease-out;
  }
  @keyframes jwMnavIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  .jw-mnav__close {
    position: absolute;
    top: calc(0.75rem + env(safe-area-inset-top));
    right: 0.75rem;
    width: 48px; height: 48px;
    background: transparent;
    border: 0;
    color: var(--wp--preset--color--navy);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    -webkit-tap-highlight-color: rgba(15, 41, 84, 0.12);
  }
  .jw-mnav__close:active { background: rgba(15, 41, 84, 0.08); }

  .jw-mnav__nav {
    display: flex;
    flex-direction: column;
  }
  .jw-mnav__link,
  .jw-mnav__sublink {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--wp--preset--color--navy);
    border-bottom: 1px solid var(--wp--preset--color--border);
  }
  .jw-mnav__link {
    min-height: 52px;
    padding: 0.6rem 0.25rem;
    font-size: 1.125rem;
    font-weight: 600;
  }
  .jw-mnav__sublink {
    min-height: 40px;
    padding: 0.4rem 0 0.4rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--wp--preset--color--muted);
  }
  .jw-mnav__phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-top: auto;
    padding: 1rem 1.5rem;
    background: var(--wp--preset--color--blue);
    color: #ffffff;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    min-height: 52px;
  }

  /* Lock background scroll while overlay is open (iOS 16+ supports :has). */
  body:has(.jw-mnav[open]) { overflow: hidden; }
}

/* Suppress the old WP-nav overlay-menu CSS — those rules now dead code on mobile. */
@media (max-width: 600px) {
  .jw-site-header .wp-block-navigation__responsive-container.is-menu-open {
    display: flex !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 100000 !important;
    overflow-y: auto !important;
    background: #ffffff !important;
    padding: calc(3rem + env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) calc(1rem + env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left)) !important;
  }
  .jw-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog,
  .jw-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    align-items: stretch !important;
    flex: 1 1 auto !important;
    padding-top: 0 !important;
  }
  .jw-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    align-items: stretch !important;
    gap: 0 !important;
    flex-wrap: nowrap !important;
  }
  .jw-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
    display: block !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-bottom: 1px solid var(--wp--preset--color--border) !important;
  }
  .jw-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    display: flex !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 0.55rem 0.25rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    align-items: center !important;
    color: var(--wp--preset--color--navy) !important;
  }
  /* Submenu (Services children): auto-expanded, indented, slightly smaller, tighter rows. */
  .jw-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 0 0 1rem !important;
    margin: 0 !important;
  }
  .jw-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item {
    border-bottom: 0 !important;
  }
  .jw-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    min-height: 36px !important;
    padding: 0.35rem 0 !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    color: var(--wp--preset--color--muted) !important;
  }
  /* Hide the submenu chevron — it's redundant when items are always shown. */
  .jw-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-icon {
    display: none !important;
  }
  /* Pin the close button to the top-right inside the safe-area inset. */
  .jw-site-header .wp-block-navigation__responsive-container-close {
    position: absolute !important;
    top: calc(0.5rem + env(safe-area-inset-top)) !important;
    right: 0.75rem !important;
  }
}

/* Ultra-narrow viewport hardening. iPhone SE 1 (320 px) and folded foldables
 * (~280 px) are rare but real, and our smallest existing breakpoint was 480 px.
 * These rules make sure nothing overflows or feels cramped at sub-380 widths. */
@media (max-width: 380px) {
  /* Floor hero title down so it doesn't take half the viewport. */
  .jw-hero__title { font-size: clamp(2rem, 5.5vw + 1.4rem, 2.5rem); }
  .jw-hero--service .jw-hero__title { font-size: clamp(1.75rem, 5vw + 1.2rem, 2.25rem); }
  .jw-hero__lede { font-size: 1rem; }
  .jw-hero__inner { padding-left: 1rem; padding-right: 1rem; }

  /* Tighten gaps and side padding on every grid that already had a 1-col mode. */
  .jw-trust-strip__grid,
  .jw-pillars__grid,
  .jw-services-grid,
  .jw-mini-grid { gap: 1rem; }
  .jw-services-band,
  .jw-pillars,
  .jw-section,
  .jw-area,
  .jw-process { padding-left: 1rem; padding-right: 1rem; }

  /* Header pill spacing tighter still — cap horizontal real estate. */
  .jw-site-header__right { gap: 0.5rem; }
  .jw-header-phone { width: 38px; height: 38px; }
}

/* Belt-and-braces: most layouts already use minmax(0, 1fr) but a stray
 * long word (URL/email) in body copy could still push horizontal scroll on
 * a tiny viewport. word-wrap on copy elements is a cheap safety net. */
.jw-hero__lede,
.jw-section__lede,
.jw-pcard__text,
.jw-faq p { overflow-wrap: anywhere; }
