/* =============================================================
   DS Restoration — Combined Bricks Stylesheet
   Handoff artifact from Agent 1 (Design Architect) → Agent 2.

   Structure
   ---------
   1. BRICKS 2.2 OVERRIDES   (paste-target for Bricks Theme Styles → Custom CSS)
   2. GLOBAL TOKENS          (:root variables — mirrored 1:1 by Bricks Color Manager)
   3. BASE + TYPE
   4. LAYOUT PRIMITIVES
   5. BUTTONS
   6. HEADER + NAV
   7. HOMEPAGE SECTIONS       (hero, trust bar, services, work, process, testimonials, contact)
   8. FIRE-PAGE SECTIONS      (page hero, tiles, vertical process, insurance, before/after, FAQ)
   9. FOOTER
  10. RESPONSIVE

   Notes for Agent 2
   -----------------
   * All colors resolve from CSS vars set in :root. The Bricks Color
     Manager export (`color-manager.json`) uses matching variable
     names so global-color pickers Just Work.
   * Every custom class used by the Bricks element trees is defined
     here. Do NOT rename classes without updating `bricks/*.py` in lockstep.
   * Bricks 2.2 template file for the header and footer should be
     assigned "Entire Website" (or the appropriate condition). Nav-menu
     mobile breakpoint = 991px per the workflow doc.
   ============================================================= */

/* =============================================================
   1. BRICKS 2.2 OVERRIDES
   Neutralize Bricks defaults that would otherwise fight this design.
   Paste this block into Bricks → Settings → Custom CSS if a version
   upgrade re-adds resets. Everything else lives in combined-styles.css
   loaded as the theme stylesheet.
   ============================================================= */

/* Bricks wraps section > container in max-width; we use our own .container.
   Prevent double-padding when both are present. */
.brxe-section > .brxe-container,
.brxe-section > .brxe-block {
  padding-inline: 0;
}

/* Bricks default headings inherit theme font-family. Force our stack so
   font-swap-in doesn't briefly show the fallback. */
.brxe-heading,
.brxe-heading h1,
.brxe-heading h2,
.brxe-heading h3,
.brxe-heading h4 {
  font-family: var(--font-serif);
}

/* Bricks nav-menu injects its own <ul>/<li> chrome. Reset padding/margins
   so our .primary-nav rules govern spacing. */
.brxe-nav-menu ul,
.brxe-nav-menu li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Bricks button element applies its own padding. Keep our .btn wrapper
   in charge by zeroing element-level padding when the .btn class is
   attached to a brxe-button. */
.brxe-button.btn {
  padding: 0.9rem 1.6rem;
}
.brxe-button.btn-emergency {
  padding: 0.6rem 1.2rem;
}

/* Bricks logo element wraps its <img> in a link. Match our .brand-link
   sizing so the sticky header height stays consistent. */
.brxe-logo a {
  display: block;
  flex-shrink: 0;
}
.brxe-logo img {
  height: 56px;
  width: auto;
  transition: height 0.2s ease;
}

/* Ensure Bricks image element in service cards fills the .service-card__media
   wrapper (Bricks defaults to intrinsic sizing). */
.service-card__media .brxe-image,
.service-card__media .brxe-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bricks form element base — align with .contact-form skin. Agent 2 will
   either use Bricks form or a Fluent Forms shortcode; both routes land
   inside .contact-form and inherit these styles. */
.contact-form .brxe-form input,
.contact-form .brxe-form textarea {
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
}

/* Defeat Bricks frontend-layer.min.css .brxe-container { width: 1100px }.
   That fixed width beats our Theme Style max-width overrides at every viewport
   (max-width can't shrink a box with an explicit width). Setting width:100%
   lets max-width take effect. Same specificity (0-1-0) as Bricks' rule; this
   stylesheet loads AFTER frontend-layer.min.css so we win by cascade order. */
.brxe-container {
  width: 100%;
}

/* End Bricks 2.2 Overrides — sourced design below is unmodified. */

/* =============================================================
   2. GLOBAL TOKENS
   (mirrored in color-manager.json — keep in sync)
   ============================================================= */

:root {
  /* Brand palette — sampled from the DS logo */
  --brand-blue: #0060A0;
  --brand-blue-deep: #00456E;
  --brand-orange: #F09010;
  --brand-orange-deep: #C97300;
  --brand-yellow: #F0B030;
  --brand-green: #108050;

  /* Neutrals */
  --ink: #1A1A1A;
  --muted: #555555;
  --rule: #E5E5E5;
  --surface: #F5F7F8;
  --white: #FFFFFF;

  /* Type */
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(1rem, 3vw, 2rem);
  --section-py: clamp(3.5rem, 7vw, 6rem);
  --radius: 4px;
  --radius-lg: 8px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.18);
}

/* =============================================================
   3. BASE + TYPE
   ============================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 100%; /* Reset Bricks' frontend.min.css 62.5% so rem = 16px */
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  height: auto;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
}

a:hover {
  color: var(--brand-orange);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 1rem;
}

/* =============================================================
   4. LAYOUT PRIMITIVES
   ============================================================= */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--section-py);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 640px;
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =============================================================
   5. BUTTONS
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.9rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--brand-orange);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--brand-orange-deep);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--brand-blue-deep);
}

.btn-emergency {
  background: var(--brand-orange);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.btn-emergency:hover {
  background: var(--brand-orange-deep);
  color: var(--white);
}

/* =============================================================
   6. HEADER + NAV
   Desktop: logo | nav (auto right-margin pushes actions right) | phone CTA.
   Mobile: logo (left) | hamburger (far right) — phone CTA hides.
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand-blue-deep);
  color: var(--white);
  transition: padding 0.2s ease;
}

/* Step 24 — Sticky must be on Bricks' outer #brx-header wrapper, not on our
   inner #brxe-hdrsec. #brx-header is a direct child of .brx-body (flex column),
   and putting `position: sticky` on it makes it stick during page scroll.
   Our previous attempt at .site-header#brxe-hdrsec { position: sticky } failed
   because sticky doesn't work on a flex-column child whose parent (.brx-body)
   has no scroll range — the sticky element scrolls with its parent's layout,
   which is the whole page. #brx-header is the correct sticky anchor. */
#brx-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Keep the interior section padding at zero so the container drives height. */
.site-header#brxe-hdrsec {
  padding-block: 0;
  transition: padding 0.2s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.site-header.scrolled .container {
  padding-block: 0.5rem;
}

/* Step 23 Fix 2 — Force the .brxe-container inside the header to also shrink
   at (1,2,0) specificity so Bricks' per-element inline can't override. */
.site-header.scrolled #brxe-hdrcnt.brxe-container,
.site-header.scrolled .brxe-container.container {
  padding-block: 0.5rem;
}

.brand-link {
  display: block;
  flex-shrink: 0;
}

.brand-link img {
  /* Header logo is the DS mark (cropped from the tall stacked logo).
     Sized by height so the sticky header stays compact regardless of
     the mark's aspect ratio (currently ~1.4). */
  height: 56px;
  width: auto;
  transition: height 0.2s ease;
  display: block;
}

.site-header.scrolled .brand-link img {
  height: 44px;
}

/* Bricks' .brxe-container defaults to min-width: min-content, which prevents
   the header flex row from shrinking under pressure and lets the natural width
   of the orange emergency button push the row past the container's max-width.
   Force min-width: 0 on the header container so flex children can compress. */
.site-header > .brxe-container,
.site-header .brxe-container.container {
  min-width: 0;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-inline: auto;
}

/* Step 23 Fix 3 — Desktop layout: logo left, nav centered, CTA right.
   The `.site-header .container` had `gap: 1.5rem` from the mockup port,
   which spaces the 3 flex children evenly and starves `margin-inline: auto`
   of free space to consume. At desktop, zero the gap and force nav-centering
   at compound (1,1,0) so Bricks' inline #brxe-hdrnav rules can't beat us. */
@media (min-width: 992px) {
  /* Desktop header layout — CSS Grid 3-column pattern.
   *
   * Flex + margin-inline: auto only centers the nav *between* its siblings,
   * so an asymmetric CTA (wider than the logo) pulls the visual nav center
   * off viewport center. Grid `1fr auto 1fr` makes the outer columns equal
   * regardless of content width, and the middle `auto` column sits dead
   * center — nav.centerX = container.centerX for any logo/CTA width.
   *
   * `display: grid` at (0,3,0) beats `.site-header .container { display: flex }`
   * (0,2,0) at earlier in the file. Also beats Bricks' `#brxe-hdrcnt`
   * inline-flex rules at (1,0,0) via compound `#brxe-hdrcnt.brxe-container`
   * at (1,1,0). */
  .site-header .container,
  .site-header .brxe-container.container,
  #brxe-hdrcnt.brxe-container {
	  /*
    display: grid;
   grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    justify-content: unset;
	  */
  }
  /* Bricks' frontend.min.css sets `.brxe-block { width: 100% }` as a default,
     which fights grid track sizing. Force auto width so grid controls sizing. */
  #brxe-hdract.brxe-block,
  #brxe-hdrlgo.brxe-block {
    width: auto;
    max-width: 100%;
    min-width: 0;
  }
  /* Column placement — logo left (col 1), nav dead-center (col 2), CTA right
     (col 3). Each item justifies to the appropriate edge of its column. */
  #brxe-hdrlgo.brand-link {
    grid-column: 1;
    justify-self: start;
    margin-inline: 0;
  }
  #brxe-hdrnav.primary-nav,
  #brxe-hdrnav.brxe-nav-menu {
   /* grid-column: 2;*/
    justify-self: center;
    margin-inline: 0;
  }
  #brxe-hdract.header-actions {
    grid-column: 3;
    justify-self: end;
    margin-inline: 0;
  }
}

/* -----------------------------------------------------------------------
 * Mobile menu toggle (hamburger) — Bricks-emitted `.bricks-mobile-menu-toggle`
 *
 * Bricks renders <button class="bricks-mobile-menu-toggle"> as a sibling of
 * <nav class="bricks-nav-menu-wrapper"> inside the .brxe-nav-menu root. With
 * `mobileMenu: "custom"` + `mobileMenuCustomBreakpoint: 991` set on the
 * header nav element, Bricks emits its own @media rules to hide the toggle
 * ≥991px and hide the desktop wrapper <991px. Here we only skin the toggle
 * so it reads on the dark-blue header background.
 *
 * Do NOT add `.bricks-mobile-menu-wrapper { display:none }` — Naren declined
 * the horizontal-scroll safety belt (2026-09-23). The footer nav is being
 * switched to `mobileMenu: "never"` in the same deploy, which removes its
 * mobile wrapper entirely; only the header wrapper remains, and its scroll
 * contribution is unavoidable-by-design under the current template shape.
 * ----------------------------------------------------------------------- */
/* SKIN ONLY — no `display` here. Display is gated in the media-query
 * blocks below so this rule cannot leak the toggle onto desktop. */
.primary-nav .bricks-mobile-menu-toggle,
.brxe-nav-menu.primary-nav .bricks-mobile-menu-toggle {
  color: var(--white);              /* SVG uses currentColor */
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  padding: 0.5rem;
  min-width: 44px;                   /* touch target */
  min-height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.primary-nav .bricks-mobile-menu-toggle .bricks-svg-wrapper,
.primary-nav .bricks-mobile-menu-toggle svg {
  color: var(--white);
  fill: currentColor;
  width: 24px;
  height: 24px;
}

.primary-nav .bricks-mobile-menu-toggle:hover,
.primary-nav .bricks-mobile-menu-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.10);
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  outline: none;
}

.primary-nav .bricks-mobile-menu-toggle:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 2px;
}

/* Open state (Bricks JS toggles `.show-mobile-menu` on the .brxe-nav-menu
 * root — verified in bricks/assets/js/frontend.js `bricksMobileMenu`). */
.brxe-nav-menu.primary-nav.show-mobile-menu .bricks-mobile-menu-toggle {
  background: rgba(255, 255, 255, 0.10);
  color: var(--brand-orange);
  border-color: var(--brand-orange);
}

/* ==========================================================================
   Step 17 — Header mobile menu toggle + off-canvas wrapper (2026-09-23)
   --------------------------------------------------------------------------
   Bricks emits <button.bricks-mobile-menu-toggle> and <nav.bricks-mobile-menu-
   wrapper> as siblings of the desktop <div.bricks-nav-menu-wrapper> INSIDE
   #brxe-hdrnav (verified in live DOM 2026-09-23 + wp-content/themes/bricks/
   assets/js/frontend.js on WPE). Toggle bars are 3 <span> elements
   (.bar-top / .bar-center / .bar-bottom) — NOT SVG. Bricks default .bar-*
   uses background-color: currentcolor, so bars inherit the button's color.
   Bricks JS toggles `.show-mobile-menu` on the .brxe-nav-menu root.

   The rules above (~lines 393-432) targeted a non-existent SVG. This block
   adds the real <span>-based bar styling AND fixes a template-level bug
   that hides #brxe-hdrnav entirely at ≤991px, which was collapsing the
   toggle to 0×0 (chain: button 0×0 because parent brxe-hdrnav was
   display:none). Verified via headless Chromium @ 375×812 (2026-09-23).
   ========================================================================== */
@media (max-width: 991px) {
  /* Parent unhide — template sets #brxe-hdrnav { display:none; position:absolute }
   * at this breakpoint, which collapsed the toggle to 0×0. Restore layout so
   * ONLY the toggle child renders (Bricks auto-hides .bricks-nav-menu-wrapper
   * via its own inline @media rule). Keep position:static so it sits in the
   * header flex row next to #brxe-hdract. */
  #brxe-hdrnav.brxe-nav-menu.primary-nav {
    display: flex;
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    align-items: center;
    justify-content: flex-end;
  }

  /* Toggle bars — Bricks default 2px × 20px, white for our dark-blue header.
   * Explicit background required because currentcolor was resolving against
   * the button's inherited (dark-on-dark) color. */
  #brxe-hdrnav .bricks-mobile-menu-toggle .bar-top,
  #brxe-hdrnav .bricks-mobile-menu-toggle .bar-center,
  #brxe-hdrnav .bricks-mobile-menu-toggle .bar-bottom {
    background-color: var(--white);
    width: 22px;
    height: 2px;
    display: block;
    margin: 4px auto;
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  /* Open-state (Bricks toggles .show-mobile-menu on .brxe-nav-menu root):
   * morph the 3 bars into an ✕. */
  #brxe-hdrnav.show-mobile-menu .bricks-mobile-menu-toggle .bar-top {
    transform: translateY(6px) rotate(45deg);
  }
  #brxe-hdrnav.show-mobile-menu .bricks-mobile-menu-toggle .bar-center {
    opacity: 0;
  }
  #brxe-hdrnav.show-mobile-menu .bricks-mobile-menu-toggle .bar-bottom {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Step 25 (2026-09-23) — Kill the off-canvas drawer + backdrop entirely.
   * The mobile menu now uses an inline dropdown below the header (see the
   * Step 22 block near file end). The remnants of the old off-canvas side
   * panel (wrapper + close button + backdrop overlay) were still emitting
   * when Bricks JS toggled the menu open, obscuring the header and dimming
   * the whole viewport. Hide all three unconditionally at mobile. */
  .bricks-mobile-menu-wrapper,
  #brxe-hdrnav .bricks-mobile-menu-wrapper,
  #brxe-hdrnav .bricks-mobile-menu-wrapper.left {
    display: none !important;
  }

  .bricks-mobile-menu-overlay,
  #brxe-hdrnav .bricks-mobile-menu-overlay {
    display: none !important;
  }

  /* Close button inside off-canvas wrapper is unreachable now (wrapper is
   * display:none) but neuter the styling just in case Bricks emits the
   * button outside the wrapper in a later release. */
  #brxe-hdrnav .bricks-mobile-menu-wrapper .bricks-mobile-menu-toggle {
    display: none !important;
  }

  /* --------------------------------------------------------------------------
   * Header container width fix — #brxe-hdrcnt / #brxe-hdract render with a
   * hard 1100px width at 375px viewport, producing 1108px of scroll overflow
   * (verified via headless Chromium). Force fluid width so header respects
   * the viewport. CSS-only, does NOT modify template JSON.
   * (Footer containers #brxe-ftrcnt / #brxe-ftrgrd also overflow at 1100px
   * but are out of scope per Naren's guardrails; noted in report.)
   * ------------------------------------------------------------------------ */
  /* Step 24 (revised in Step 29, 2026-09-24): The container needs `width: 100%`
     so the header row uses the viewport, but #brxe-hdract must NOT stretch —
     doing so gives the CTA container 237px at 375px viewport and starves the
     row's `margin-inline: auto` on hdract of free space to consume. Let hdract
     hug the button intrinsically (width: auto) while keeping the container at
     100%. Playwright confirmed hdract has only one child (the button, 165px);
     with width:auto the container hugs to ~165px, freeing ~72px for the
     auto-margin to push CTA + hamburger to the right. */
  #brxe-hdrcnt.brxe-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  #brxe-hdract.brxe-block {
    width: auto;
    max-width: 100%;
    min-width: 0;
  }
}

/* ==========================================================================
 * Step 18 — Toggle visibility, gated (2026-09-23)
 * --------------------------------------------------------------------------
 * Prior Step-17 skin rule set `display: inline-flex` unconditionally, so the
 * toggle rendered at every viewport. Bricks' own inline sheet only sets
 * `display: block` at ≤991px inside `@layer bricks`, which is DEFEATED by
 * any unlayered rule — so nothing was actually hiding the button above 991.
 *
 * Fix: the SKIN block above no longer sets `display`. Show the toggle
 * at ≤991px, and force-hide it at ≥992px with `!important` on the
 * same id-anchored chain so future skin edits can't re-leak it.
 * ========================================================================== */
@media (max-width: 991px) {
  #brxe-hdrnav .bricks-mobile-menu-toggle,
  .primary-nav .bricks-mobile-menu-toggle,
  .brxe-nav-menu.primary-nav .bricks-mobile-menu-toggle {
    display: inline-flex;
  }
}

@media (min-width: 992px) {
  #brxe-hdrnav .bricks-mobile-menu-toggle,
  .primary-nav .bricks-mobile-menu-toggle,
  .brxe-nav-menu.primary-nav .bricks-mobile-menu-toggle {
    display: none !important;
  }
}

/* ==========================================================================
 * Step 18 — Mobile off-canvas panel contents (2026-09-23)
 * --------------------------------------------------------------------------
 * Belt-and-suspenders open-state for the inner list. Bricks core CSS uses
 * `!important` on the wrapper's transform/visibility/opacity when
 * `.brxe-nav-menu.show-mobile-menu` fires, and does NOT hide the inner
 * `.bricks-mobile-menu` <ul> — verified by grep of bricks/frontend.min.css
 * (see mobile-toggle-source-evidence.md). Headless Chromium @ 375×812
 * confirms 11 <li>/11 <a> render inside the wrapper after toggle click.
 * These rules make the guarantee explicit so a future child-theme rule
 * can't accidentally hide the list contents. `visited children only when
 * open` — no effect while the wrapper is closed.
 * ========================================================================== */
.brxe-nav-menu.primary-nav.show-mobile-menu .bricks-mobile-menu-wrapper {
  visibility: visible !important;
  opacity: 1 !important;
}
.brxe-nav-menu.primary-nav.show-mobile-menu .bricks-mobile-menu-wrapper .bricks-mobile-menu,
.brxe-nav-menu.primary-nav.show-mobile-menu .bricks-mobile-menu-wrapper .bricks-nav-menu {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.brxe-nav-menu.primary-nav.show-mobile-menu .bricks-mobile-menu-wrapper .bricks-mobile-menu > li,
.brxe-nav-menu.primary-nav.show-mobile-menu .bricks-mobile-menu-wrapper .bricks-nav-menu > li {
  visibility: visible !important;
  opacity: 1 !important;
}
.brxe-nav-menu.primary-nav.show-mobile-menu .bricks-mobile-menu-wrapper .bricks-mobile-menu > li > a,
.brxe-nav-menu.primary-nav.show-mobile-menu .bricks-mobile-menu-wrapper .bricks-nav-menu > li > a,
.brxe-nav-menu.primary-nav.show-mobile-menu .bricks-mobile-menu-wrapper .brx-submenu-toggle > a {
  color: var(--white);
  display: block;
  padding: 0 1.25rem;
  visibility: visible !important;
  opacity: 1 !important;
}
.brxe-nav-menu.primary-nav.show-mobile-menu .bricks-mobile-menu-wrapper .bricks-mobile-menu > li > a:hover,
.brxe-nav-menu.primary-nav.show-mobile-menu .bricks-mobile-menu-wrapper .bricks-nav-menu > li > a:hover,
.brxe-nav-menu.primary-nav.show-mobile-menu .bricks-mobile-menu-wrapper .brx-submenu-toggle > a:hover {
  color: var(--brand-yellow);
  background: rgba(255, 255, 255, 0.06);
}

/* -----------------------------------------------------------------------
 * PRIMARY NAV — Bricks-native selectors (rendered DOM under .primary-nav)
 *
 *   <nav id="..." class="brxe-nav-menu primary-nav">
 *     <div class="bricks-nav-menu-wrapper">
 *       <ul class="bricks-nav-menu">
 *         <li class="menu-item"><a>Top</a></li>
 *         <li class="menu-item menu-item-has-children">
 *           <div class="brx-submenu-toggle">
 *             <a>Services</a>
 *             <button aria-expanded="false"><svg class="menu-item-icon">…</svg></button>
 *           </div>
 *           <ul class="sub-menu"><li><a>…</a></li></ul>
 *         </li>
 *       </ul>
 *     </div>
 *   </nav>
 *
 * Retarget from bespoke .nav-parent / .nav-caret / .nav-submenu class names
 * to what Bricks actually emits. Legacy aliases preserved further down.
 * ----------------------------------------------------------------------- */

/* Step 18 — top-level nav spacing (desktop). `gap` on the ul spreads the
 * items; horizontal padding on the anchor gives each link its own hit-area
 * and breathing room. Values chosen against the mockup's ~24px inter-item
 * rhythm. Only applies at ≥992px (mobile panel uses stacked layout). */
@media (min-width: 992px) {
  .primary-nav .bricks-nav-menu-wrapper > ul.bricks-nav-menu,
  .primary-nav > .bricks-nav-menu-wrapper > ul.bricks-nav-menu {
    gap: 1.5rem;
  }
}

.primary-nav .bricks-nav-menu > li > a,
.primary-nav .bricks-nav-menu > li.menu-item-has-children > .brx-submenu-toggle > a {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.5rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.primary-nav .bricks-nav-menu > li > a:hover,
.primary-nav .bricks-nav-menu > li.menu-item-has-children > .brx-submenu-toggle > a:hover {
  color: var(--brand-yellow);
}

.primary-nav .bricks-nav-menu > li > a::after,
.primary-nav .bricks-nav-menu > li.menu-item-has-children > .brx-submenu-toggle > a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  inset-inline: 0;
  height: 2px;
  background: var(--brand-orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.primary-nav .bricks-nav-menu > li > a:hover::after,
.primary-nav .bricks-nav-menu > li.menu-item-has-children > .brx-submenu-toggle > a:hover::after {
  transform: scaleX(1);
}

/* Dropdown submenu (desktop) */
.primary-nav .bricks-nav-menu > li.menu-item-has-children {
  position: relative;
}

/* Step 18 — Services caret affordance (desktop).
 * The parent .brx-submenu-toggle is a flex row containing <a>Services</a>
 * and <button><svg.menu-item-icon></svg></button>. Prior CSS set the button
 * to `display: none` at desktop, which collapsed the caret entirely — the
 * dropdown looked link-only with no down-chevron. Show the button on
 * desktop, add a gap so it doesn't touch the anchor, and size the caret
 * SVG large enough to read as a proper affordance. Button click behaviour
 * is fine — hover still opens the submenu via `:hover > ul.sub-menu`. */
@media (min-width: 992px) {
  .primary-nav .bricks-nav-menu > li.menu-item-has-children > .brx-submenu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }
  .primary-nav .bricks-nav-menu > li.menu-item-has-children > .brx-submenu-toggle > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
  }
}

/* Bricks emits the caret as an <svg class="menu-item-icon"> inside the
 * brx-submenu-toggle <button>. Rotate on hover / focus-within. */
.primary-nav .bricks-nav-menu > li.menu-item-has-children .brx-submenu-toggle button svg.menu-item-icon {
  width: 0.9rem;
  height: 0.9rem;
  color: currentColor;
  transition: transform 0.2s ease;
}

.primary-nav .bricks-nav-menu > li.menu-item-has-children:hover .brx-submenu-toggle button svg.menu-item-icon,
.primary-nav .bricks-nav-menu > li.menu-item-has-children:focus-within .brx-submenu-toggle button svg.menu-item-icon {
  transform: rotate(180deg);
}

.primary-nav .bricks-nav-menu > li.menu-item-has-children > ul.sub-menu {
  position: absolute;
  top: 100%;
  left: -0.75rem;
  min-width: 220px;
  background: var(--brand-blue-deep);
  border-top: 3px solid var(--brand-orange);
  padding: 0.5rem 0;
  display: none;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

.primary-nav .bricks-nav-menu > li.menu-item-has-children:hover > ul.sub-menu,
.primary-nav .bricks-nav-menu > li.menu-item-has-children:focus-within > ul.sub-menu {
  display: flex;
}

.primary-nav .bricks-nav-menu > li.menu-item-has-children > ul.sub-menu > li > a {
  color: var(--white);
  padding: 0.7rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.primary-nav .bricks-nav-menu > li.menu-item-has-children > ul.sub-menu > li > a:hover,
.primary-nav .bricks-nav-menu > li.menu-item-has-children > ul.sub-menu > li > a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--brand-yellow);
}

/* Submenu toggle button — Bricks emits its own .brx-submenu-toggle button.
 * Step 18: previously `display: none` unconditionally (hid the desktop caret
 * entirely). Now gated: hidden only at ≤991px (mobile uses tap-to-open on
 * the parent <a>), visible on desktop via the ≥992px block above so the
 * caret svg renders as a real down-chevron affordance. */
@media (max-width: 991px) {
  .primary-nav .brx-submenu-toggle button {
  /*  display: none;*/
  }
}
.primary-nav .brx-submenu-toggle button {
  background: none;
  border: 0;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
  align-items: center;
  justify-content: center;
}

.primary-nav .brx-submenu-toggle button svg {
  width: 14px;
  height: 10px;
  transition: transform 0.2s ease;
}

.primary-nav .brx-submenu-toggle button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Legacy selectors — kept as aliases in case template markup ever emits these.
 * If we later swap the header to a bespoke template that emits .nav-parent,
 * .nav-caret, .nav-submenu, .nav-submenu-toggle, .nav-item-has-children,
 * these rules preserve the same styling without CSS churn. */
.primary-nav > a,
.primary-nav .nav-parent {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.primary-nav > a:hover,
.primary-nav .nav-parent:hover {
  color: var(--brand-yellow);
}

.primary-nav > a::after,
.primary-nav .nav-parent::after {
  content: "";
  position: absolute;
  bottom: -2px;
  inset-inline: 0;
  height: 2px;
  background: var(--brand-orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.primary-nav > a:hover::after,
.primary-nav .nav-parent:hover::after {
  transform: scaleX(1);
}

.nav-item-has-children {
  position: relative;
}

.nav-caret {
  width: 10px;
  height: 7px;
  color: currentColor;
  transition: transform 0.2s ease;
}

.nav-item-has-children:hover .nav-caret,
.nav-item-has-children:focus-within .nav-caret {
  transform: rotate(180deg);
}

.nav-submenu {
  position: absolute;
  top: 100%;
  left: -0.75rem;
  min-width: 220px;
  background: var(--brand-blue-deep);
  border-top: 3px solid var(--brand-orange);
  padding: 0.5rem 0;
  display: none;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

.nav-item-has-children:hover .nav-submenu,
.nav-item-has-children:focus-within .nav-submenu {
  display: flex;
}

.nav-submenu a {
  color: var(--white);
  padding: 0.7rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-submenu a:hover,
.nav-submenu a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--brand-yellow);
}

.nav-submenu-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
  align-items: center;
  justify-content: center;
}

.nav-submenu-toggle svg {
  width: 14px;
  height: 10px;
  transition: transform 0.2s ease;
}

.nav-submenu-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 1;
  min-width: 0;
}

/* Narrow-desktop tightening (992-1199px). Between the DSR Base Theme Style's
   1200px container max-width and Bricks' tablet_landscape breakpoint the row
   is tightest -- shrink header-actions gap and emergency button padding so
   the row fits inside .container without the .header-actions flex item
   spilling and pushing document scrollWidth past viewport. */
@media (max-width: 1199px) {
  .header-actions { gap: 0.5rem; }
  .btn-emergency { padding: 0.5rem 0.9rem; font-size: 0.8rem; }
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
}

/* =============================================================
   7. HOMEPAGE SECTIONS
   ============================================================= */

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: var(--brand-blue-deep);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero-video-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max(100%, calc(100vh * 16 / 9));
  height: max(100%, calc(100vw * 9 / 16));
  pointer-events: none;
}

.hero-video-frame iframe.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 69, 110, 0.75) 0%,
    rgba(0, 69, 110, 0.35) 45%,
    rgba(0, 69, 110, 0.85) 100%
  );
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-block: 5rem;
}

.hero-headline {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero-headline .word-restored { color: var(--brand-orange); }

.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  max-width: 640px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2rem;
}

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

/* Page hero (fire page — slimmer) */
.page-hero {
  min-height: 55vh;
}

.page-hero .container {
  padding-block: 4rem;
}

.breadcrumb {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: inherit;
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb .sep {
  margin-inline: 0.5rem;
  opacity: 0.5;
}

/* --- Trust bar --- */
.trust-bar {
  background: var(--surface);
  padding-block: 1.25rem;
  border-block-end: 1px solid var(--rule);
}

.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 2rem;
}

.trust-item {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-item + .trust-item {
  border-inline-start: 1px solid var(--rule);
  padding-inline-start: 2rem;
}

.trust-star {
  color: var(--brand-orange);
}

/* --- Services grid ---
   Default: auto-fit for arbitrary counts (backward compatible).
   --five variant: fixed 3-col layout so the 4th and 5th cards
   center on the second row (a "3 + centered 2" pattern) for a
   balanced display of 5 items. On mid widths falls to 2-col
   with a centered last card; on narrow it stacks 1-col. */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.services-grid--five {
  grid-template-columns: repeat(6, 1fr);
}

.services-grid--five > .service-card:nth-child(1) { grid-column: span 2; }
.services-grid--five > .service-card:nth-child(2) { grid-column: span 2; }
.services-grid--five > .service-card:nth-child(3) { grid-column: span 2; }
.services-grid--five > .service-card:nth-child(4) { grid-column: 2 / span 2; }
.services-grid--five > .service-card:nth-child(5) { grid-column: 4 / span 2; }

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--brand-blue-deep);
  color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.service-card__media {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--brand-blue-deep);
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card__media img {
  transform: scale(1.06);
}

.service-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.service-card__icon {
  width: 32px;
  height: 32px;
  margin-bottom: 0.25rem;
}

.service-card__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--white);
  margin: 0;
}

.service-card__desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  flex-grow: 1;
}

.service-card__link {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-orange);
  letter-spacing: 0.03em;
}

/* --- Video + gallery ("See our work") --- */
.work-video {
  max-width: 1100px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-embed {
  position: relative;
  padding-block-end: 56.25%;
  height: 0;
  background: var(--brand-blue-deep);
}

.video-embed iframe,
.video-embed video,
.video-embed img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
  cursor: pointer;
}

.video-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 69, 110, 0.55), rgba(0, 69, 110, 0.75));
}

.video-placeholder .play-icon {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.video-placeholder:hover .play-icon {
  transform: scale(1.08);
}

.video-placeholder .play-icon::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 16px 0 16px 24px;
  border-color: transparent transparent transparent var(--white);
  margin-inline-start: 6px;
}

.video-placeholder .video-label {
  position: absolute;
  bottom: 1.5rem;
  inset-inline: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  z-index: 1;
}

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

.work-gallery__item {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}

.work-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.work-gallery__item:hover img {
  transform: scale(1.05);
}

.service-area {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}

.service-area strong {
  color: var(--ink);
}

/* --- Process timeline (homepage horizontal) --- */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.process-timeline::before {
  content: "";
  position: absolute;
  top: 40px;
  inset-inline: 12%;
  height: 2px;
  background: var(--brand-orange);
  opacity: 0.3;
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-inline: 0.5rem;
}

.process-step__number-wrap {
  position: relative;
  margin-bottom: 1.5rem;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step__number-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 6rem;
  font-weight: 700;
  color: var(--brand-blue-deep);
  opacity: 0.12;
  line-height: 1;
}

.process-step__icon {
  position: relative;
  width: 56px;
  height: 56px;
  background: var(--white);
  border: 2px solid var(--brand-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.process-step__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.process-step__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.process-step__desc {
  font-size: 0.95rem;
  color: var(--muted);
}

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

.testimonial {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial__stars {
  color: var(--brand-orange);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
}

.testimonial__quote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  flex-grow: 1;
}

.testimonial__author {
  font-size: 0.9rem;
  color: var(--brand-orange);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin: 0;
}

/* --- Contact / CTA --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-copy h2 {
  margin-bottom: 0.75rem;
}

.contact-copy p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-block: 1.5rem;
  border-block-start: 1px solid var(--rule);
}

.contact-info a {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--brand-blue-deep);
  font-weight: 700;
}

.contact-info a:hover {
  color: var(--brand-orange);
}

.contact-info .email {
  font-size: 1.1rem;
  font-family: var(--font-sans);
  font-weight: 500;
}

.contact-info .service-line {
  font-size: 0.95rem;
  color: var(--muted);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.contact-form input,
.contact-form textarea {
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--brand-orange);
  outline-offset: 1px;
  border-color: var(--brand-orange);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  margin-top: 0.5rem;
  justify-self: start;
}

/* =============================================================
   8. FIRE-PAGE SECTIONS
   ============================================================= */

/* --- "What we handle" tiles --- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tile {
  background: var(--surface);
  border-inline-start: 4px solid var(--brand-orange);
  padding: 1.75rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tile__icon {
  width: 36px;
  height: 36px;
}

.tile__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--ink);
  margin: 0;
}

.tile__desc {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

/* --- Vertical process timeline (fire page) ---
   Marker circles + text separated with a wider gap so labels
   don't hug the orange circles. .vprocess-step is now a 2-col
   grid: marker | body. */
.vprocess {
  max-width: 800px;
  margin-inline: auto;
  position: relative;
}

.vprocess::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 1.75rem;
  width: 2px;
  background: var(--brand-orange);
  opacity: 0.25;
}

.vprocess-step {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.75rem;
  padding-block: 1.5rem 2rem;
}

.vprocess-step:last-child {
  padding-block-end: 0;
}

.vprocess-step__marker {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--white);
  border: 2px solid var(--brand-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--brand-blue-deep);
  position: relative;
  z-index: 1;
}

.vprocess-step__body {
  padding-top: 0.5rem;
  padding-inline-start: 0.5rem;
}

.vprocess-step__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.vprocess-step__desc {
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
}

/* --- Before/After gallery --- */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.ba-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.ba-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}

.ba-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-badge {
  position: absolute;
  top: 0.5rem;
  inset-inline-start: 0.5rem;
  padding: 0.25rem 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(0, 69, 110, 0.9);
  border-radius: var(--radius);
}

.ba-badge.after {
  background: var(--brand-orange);
}

.ba-card__caption {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* --- Insurance section --- */
.insurance-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.insurance-copy h2 {
  margin-bottom: 0.75rem;
}

.insurance-copy > p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.insurance-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.insurance-list li {
  padding-inline-start: 1.75rem;
  position: relative;
  color: var(--ink);
}

.insurance-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.5rem;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--brand-orange);
  border-radius: 50%;
}

.insurance-blockquote {
  background: var(--brand-blue-deep);
  color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  margin: 0;
  position: relative;
}

.insurance-blockquote::before {
  content: "\201C";
  position: absolute;
  top: -0.5rem;
  inset-inline-start: 1rem;
  font-family: var(--font-serif);
  font-size: 6rem;
  line-height: 1;
  color: var(--brand-orange);
  opacity: 0.6;
}

.insurance-blockquote p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.55;
  font-style: italic;
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}

.insurance-blockquote cite {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 600;
  color: var(--brand-yellow);
  letter-spacing: 0.03em;
}

/* --- FAQ accordion --- */
.faq-list {
  max-width: 800px;
  margin-inline: auto;
}

.faq-item {
  border-block-end: 1px solid var(--rule);
  padding-block: 0.5rem;
}

.faq-item summary {
  padding-block: 1.25rem;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-inline-end: 2.5rem;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  font-size: 1.75rem;
  color: var(--brand-orange);
  font-weight: 300;
  line-height: 1;
  transition: transform 0.2s ease;
}

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

.faq-item summary:hover {
  color: var(--brand-orange);
}

.faq-item .faq-answer {
  padding-block: 0 1.5rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

/* =============================================================
   9. FOOTER
   Logo wrapped in an anchor to homepage. Languages spelled out
   in a single line under the brand paragraph. No lower-right
   nav links (removed per v1 feedback).
   ============================================================= */
.site-footer {
  background: var(--brand-blue-deep);
  color: var(--white);
  padding-block: 4rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-brand img {
  max-width: 220px;
  height: auto;
  display: block;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  max-width: 340px;
}

.footer-langs-line {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--brand-yellow);
}

.footer-emergency {
  border-block-start: 1px solid rgba(255, 255, 255, 0.15);
  padding-block-start: 2rem;
  margin-block-end: 2rem;
  text-align: center;
}

.footer-emergency a {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--brand-orange);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-emergency a:hover {
  color: var(--brand-yellow);
}

.footer-emergency .label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-block-start: 1px solid rgba(255, 255, 255, 0.15);
  padding-block-start: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
  color: inherit;
}

.footer-bottom a:hover {
  color: var(--brand-yellow);
}

/* =============================================================
   10. RESPONSIVE
   ============================================================= */
@media (max-width: 1200px) {
  .work-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 960px) {
  /* Mobile header layout: logo (left) | emergency phone CTA | hamburger (far right). */
  .site-header .container {
    justify-content: space-between;
    flex-wrap: nowrap;
    position: relative;
    gap: 0.5rem;
  }

  .header-actions {
    margin-inline-start: auto;
    gap: 0.5rem;
  }

  .header-actions .btn-emergency {
    font-size: 0.72rem;
    padding: 0.5rem 0.85rem;
    letter-spacing: 0.03em;
  }

  .nav-toggle {
    display: block;
  }

  /* ---------------------------------------------------------------------
   * MOBILE NAV — Bricks-native selectors
   *
   * On mobile Bricks emits a separate .bricks-mobile-menu tree:
   *   <div class="bricks-mobile-menu-wrapper left">
   *     <ul class="bricks-mobile-menu">…</ul>
   *   </div>
   *   <button class="bricks-mobile-menu-toggle">…</button>
   *
   * The desktop .primary-nav container is still in the DOM (hidden) and the
   * mobile toggle drives the sibling wrapper. Bricks toggles its own
   * `show` / `open` state on .bricks-mobile-menu-wrapper (JS-driven).
   *
   * These rules also style .primary-nav on mobile as a fallback in case the
   * template later swaps to a plain-nav layout (no separate mobile-menu).
   * -------------------------------------------------------------------- */

  /* Bricks-native mobile menu container.
   * Bricks renders this as position:fixed left:0 transform:translateX(-300px)
   * on desktop; it slides in when .brxe-nav-menu gets .show-mobile-menu. Give
   * it enough width for readable menu items and keep the site's dark-blue skin. */
  .primary-nav .bricks-mobile-menu-wrapper {
    background: var(--brand-blue-deep);
    border-block-start: 1px solid rgba(255, 255, 255, 0.1);
    width: min(320px, 85vw);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
    padding-block: 1rem;
  }

  .bricks-mobile-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
    margin: 0;
    max-height: calc(100vh - 100%);
    overflow-y: auto;
    list-style: none;
  }

  .bricks-mobile-menu > li > a,
  .bricks-mobile-menu > li.menu-item-has-children > .brx-submenu-toggle > a {
    color: var(--white);
    padding: 0.95rem 1.25rem;
    border-block-end: 1px solid rgba(255, 255, 255, 0.05);
    justify-content: flex-start;
    width: 100%;
    display: inline-flex;
    align-items: center;
  }

  .bricks-mobile-menu > li > a::after,
  .bricks-mobile-menu > li.menu-item-has-children > .brx-submenu-toggle > a::after {
    display: none;
  }

  .bricks-mobile-menu > li.menu-item-has-children {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-block-end: 1px solid rgba(255, 255, 255, 0.05);
  }

  .bricks-mobile-menu > li.menu-item-has-children > .brx-submenu-toggle {
    display: flex;
    align-items: center;
    width: 100%;
  }

  .bricks-mobile-menu > li.menu-item-has-children > .brx-submenu-toggle > a {
    flex: 1;
    border-block-end: 0;
  }

  /* Bricks-emitted submenu-toggle button — visible on mobile */
  .bricks-mobile-menu .brx-submenu-toggle button {
    display: inline-flex;
    padding: 0.95rem 1.25rem;
    background: none;
    border: 0;
    color: var(--white);
    cursor: pointer;
    align-items: center;
    justify-content: center;
  }

  .bricks-mobile-menu > li.menu-item-has-children > ul.sub-menu {
    position: static;
    display: none;
    width: 100%;
    background: rgba(0, 0, 0, 0.15);
    border-top: 0;
    padding: 0;
    box-shadow: none;
    flex-direction: column;
    list-style: none;
    margin: 0;
  }

  /* Bricks toggles `open` on the parent <li> when the submenu button is pressed */
  .bricks-mobile-menu > li.menu-item-has-children.open > ul.sub-menu,
  .bricks-mobile-menu > li.menu-item-has-children[aria-expanded="true"] > ul.sub-menu,
  .bricks-mobile-menu > li.menu-item-has-children:has(> .brx-submenu-toggle > button[aria-expanded="true"]) > ul.sub-menu {
    display: flex;
  }

  /* Hover / focus on mobile: don't auto-open (JS toggle handles it) */
  .bricks-mobile-menu > li.menu-item-has-children:hover > ul.sub-menu,
  .bricks-mobile-menu > li.menu-item-has-children:focus-within > ul.sub-menu {
    display: none;
  }

  .bricks-mobile-menu > li.menu-item-has-children > ul.sub-menu > li > a {
    padding: 0.75rem 2rem;
    border-block-end: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--white);
    display: block;
  }

  .bricks-mobile-menu > li.menu-item-has-children > ul.sub-menu > li:last-child > a {
    border-block-end: 0;
  }

  /* Also apply to .primary-nav (desktop-nav container) when Bricks toggles
   * its own `is-active` class — fallback for layouts that reuse .primary-nav
   * on mobile. */
  .primary-nav .bricks-nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .primary-nav .bricks-nav-menu > li > a,
  .primary-nav .bricks-nav-menu > li.menu-item-has-children > .brx-submenu-toggle > a {
    padding: 0.95rem 1.25rem;
    border-block-end: 1px solid rgba(255, 255, 255, 0.05);
    justify-content: flex-start;
    width: 100%;
  }

  .primary-nav .bricks-nav-menu > li > a::after,
  .primary-nav .bricks-nav-menu > li.menu-item-has-children > .brx-submenu-toggle > a::after {
    display: none;
  }

  .primary-nav .bricks-nav-menu > li.menu-item-has-children > ul.sub-menu {
    position: static;
    display: none;
    width: 100%;
    background: rgba(0, 0, 0, 0.15);
    border-top: 0;
    padding: 0;
    box-shadow: none;
  }

  .primary-nav .bricks-nav-menu > li.menu-item-has-children.open > ul.sub-menu,
  .primary-nav .bricks-nav-menu > li.menu-item-has-children:has(> .brx-submenu-toggle > button[aria-expanded="true"]) > ul.sub-menu {
    display: flex;
  }

  /* Legacy selectors — kept as aliases in case template markup ever emits these. */
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: var(--brand-blue-deep);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
    margin: 0;
    border-block-start: 1px solid rgba(255, 255, 255, 0.1);
    max-height: calc(100vh - 100%);
    overflow-y: auto;
  }

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

  .primary-nav > a,
  .primary-nav .nav-parent {
    padding: 0.95rem 1.25rem;
    border-block-end: 1px solid rgba(255, 255, 255, 0.05);
    justify-content: flex-start;
    width: 100%;
  }

  .primary-nav > a::after,
  .primary-nav .nav-parent::after {
    display: none;
  }

  .nav-item-has-children {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-block-end: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-item-has-children .nav-parent {
    flex: 1;
    border-block-end: 0;
  }

  .nav-item-has-children .nav-caret {
    display: none;
  }

  .nav-submenu-toggle {
    display: inline-flex;
    padding: 0.95rem 1.25rem;
  }

  .nav-submenu {
    position: static;
    display: none;
    width: 100%;
    background: rgba(0, 0, 0, 0.15);
    border-top: 0;
    padding: 0;
    box-shadow: none;
  }

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

  .nav-item-has-children:hover .nav-submenu,
  .nav-item-has-children:focus-within .nav-submenu {
    display: none;
  }

  .nav-item-has-children:has(.nav-submenu.is-open) .nav-submenu {
    display: flex;
  }

  .nav-submenu a {
    padding: 0.75rem 2rem;
    border-block-end: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-submenu a:last-child {
    border-block-end: 0;
  }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 1.5rem;
  }

  .process-timeline::before {
    display: none;
  }

  .work-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid,
  .insurance-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ba-grid {
    grid-template-columns: 1fr;
  }

  .services-grid--five {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid--five > .service-card:nth-child(1),
  .services-grid--five > .service-card:nth-child(2),
  .services-grid--five > .service-card:nth-child(3),
  .services-grid--five > .service-card:nth-child(4) {
    grid-column: auto;
  }

  .services-grid--five > .service-card:nth-child(5) {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.75rem);
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 70vh;
  }

  .hero .container,
  .page-hero .container {
    padding-block: 3rem;
  }

  .trust-bar .container {
    gap: 0.75rem 1rem;
  }

  .trust-item + .trust-item {
    border-inline-start: 0;
    padding-inline-start: 0;
  }

  .process-timeline {
    grid-template-columns: 1fr;
  }

  .work-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .tile-grid {
    grid-template-columns: 1fr;
  }

  .vprocess-step {
    grid-template-columns: 3rem 1fr;
    gap: 1.25rem;
  }

  .vprocess-step__marker {
    width: 3rem;
    height: 3rem;
    font-size: 1rem;
  }

  .vprocess-step__body {
    padding-inline-start: 0;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .brand-link img {
    height: 40px;
  }

  .header-actions .btn-emergency {
    font-size: 0.68rem;
    padding: 0.45rem 0.7rem;
    letter-spacing: 0.02em;
  }

  .services-grid--five {
    grid-template-columns: 1fr;
  }

  .services-grid--five > .service-card:nth-child(5) {
    max-width: none;
    justify-self: stretch;
  }
}

/* Mobile footer: collapse the 3-column .footer-grid to a single column at
   phone widths so its intrinsic min-content width does not force document
   scrollWidth past the 375px viewport. Slightly tighter gap + margin than
   the existing <=960px rule to give the single-column stack room to breathe
   without pushing the emergency contact block below the fold. */
@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }
}

/* Change 1 override (all viewports) — Bricks-emitted ID rule wins over
   the earlier `.site-header.scrolled .brand-link img` shrink. Add
   matching-specificity rules so the logo shrinks + transitions. */
#brxe-hdrlgo .bricks-site-logo {
  transition: height 0.2s ease;
}
.site-header.scrolled #brxe-hdrlgo .bricks-site-logo {
  height: 44px;
}

/* =============================================================
 * Step 22 — Header mockup match (2026-09-23)
 *
 * Aligns the deployed header behavior to the v2 mockup at
 * /clients/dsrestoration/01-design/v2/. Four changes:
 *   1. Sticky + shrink   → CSS transitions + `.scrolled` rules already
 *      present above (lines ~341–378). JS side handled by the newly
 *      enqueued /assets/header-shrink.js.
 *   2. Desktop nav centered → `.primary-nav { margin-inline: auto }`
 *      already present (line ~393). Nothing new needed here.
 *   3. Mobile layout order swap: logo | CTA | hamburger, flush right.
 *   4. Mobile menu pattern: replace Bricks' broken off-canvas side
 *      panel with a full-width dropdown anchored below the sticky
 *      header. Kills the previously-tabled "blank panel on real
 *      device" issue by not using .bricks-mobile-menu-wrapper at all.
 *
 * These rules live at file-end so equal-specificity selectors from the
 * Step 17/18 off-canvas block above are defeated by source order; a
 * few high-specificity Step 17/18 declarations need explicit override
 * with !important (marked inline).
 * ============================================================= */
@media (max-width: 991px) {
  /* ---- Change 3: mobile row layout + order swap ---- */

  /* Step 23 Fix 4 — justify-content:flex-start (not space-between) so the
     CTA + hamburger cluster right instead of spreading. The auto-margin
     on #brxe-hdract (order 2) does the pushing; hamburger (order 3) rides
     immediately after with a small gap. Compound (1,1,0) selector on the
     container beats Bricks' inline #brxe-hdrcnt rule. */
  .site-header .brxe-container.container,
  #brxe-hdrcnt.brxe-container {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  /* Publish the header's running height as a CSS var so the fixed
     dropdown knows where to anchor. Updated by header-shrink.js on
     scroll (post-transition) so the shrink transition doesn't leave
     a gap between header bottom and dropdown top. */
  .site-header {
    --dsr-header-height: 80px; /* fallback; JS overrides at runtime */
  }

  /* Visual order at mobile: logo (1) | CTA (2) | hamburger (3).
     DOM order in the Bricks build is hdrlgo → hdrnav → hdract, so
     we reorder with flex `order`. Push CTA against hamburger by giving
     it the auto margin so all space collapses between logo and CTA.
     Compound (1,1,0) selectors beat any Bricks inline #brxe-* rule. */
  #brxe-hdrlgo.brand-link { order: 1; margin-inline-end: 0; }
  #brxe-hdract.header-actions { order: 2; margin-inline-start: auto; }
  #brxe-hdrnav.brxe-nav-menu { order: 3; margin-inline-start: 0; }

  /* Change 1 override — Bricks emits `#brxe-hdrlgo .bricks-site-logo
     { height: 56px }` at ID-selector specificity, which beats
     `.site-header.scrolled .brand-link img` in the cascade. Re-declare
     the shrink rule at matching specificity so the logo actually
     shrinks when the header collapses. Same override needed at desktop
     — see the top-level rule below outside this media query. */

  /* Tighter CTA sizing per mockup (styles.css lines ~1483–1490).
     Step 26 fix: Bricks emits `#brxe-hdrbtn` per-element padding + font-size
     at ID specificity (1,0,0) that beats our class-scoped shrink rules.
     Playwright at 375×812 measured the button at 172px wide (padding 8/13.6px,
     font-size 11.52px), which pushed the CTA container to 237px and starved
     `margin-inline: auto` on #brxe-hdract of free space. Re-declare the
     shrink at matching ID specificity so the auto-margin gets room to push. */
  #brxe-hdract .header-actions,
  #brxe-hdract {
    gap: 0.5rem;
  }
  /* Step 27+28 (2026-09-23) — Playwright at 375×812 confirmed the container
     fills the row exactly (logo 78 + CTA 237 + hamburger 44 + gaps 16 = 375),
     which starved `margin-inline: auto` on #brxe-hdract of free space. Squeeze
     the button harder so the CTA container becomes ~180px, freeing ~60px for
     the auto-margin to push against — clustering CTA + hamburger to the right. */
  #brxe-hdrbtn,
  #brxe-hdrbtn.brxe-button,
  #brxe-hdrbtn.btn-emergency,
  #brxe-hdrbtn.bricks-button {
    font-size: 0.68rem !important;
    padding: 0.4rem 0.7rem !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap !important;
  }
  /* Tighten the CTA container gap so its two children (button + wrapper) hug. */
  #brxe-hdract.header-actions,
  #brxe-hdract.brxe-block {
    gap: 0 !important;
    padding: 0 !important;
  }

  /* ---- Change 4: kill off-canvas side panel; use inline dropdown ---- */

  /* Defeat every Step 17/18 rule that showed .bricks-mobile-menu-wrapper.
     Naren originally declined display:none on this element, but the
     off-canvas approach is now abandoned (blank on real device); this
     subagent's task explicitly authorizes the hide. */
  .bricks-mobile-menu-wrapper,
  #brxe-hdrnav .bricks-mobile-menu-wrapper,
  .brxe-nav-menu.primary-nav .bricks-mobile-menu-wrapper,
  .brxe-nav-menu.primary-nav.show-mobile-menu .bricks-mobile-menu-wrapper {
    display: none !important;
  }

  /* Inline nav wrapper is the new dropdown target. Hidden by default at
     mobile (Bricks' custom-breakpoint CSS already hides it, but declare
     explicitly so we own the state). */
  #brxe-hdrnav > .bricks-nav-menu-wrapper,
  .brxe-nav-menu.primary-nav > .bricks-nav-menu-wrapper {
    display: none;
  }

  /* Open state: full-width dropdown below sticky header. Bricks JS
     toggles `.show-mobile-menu` on the outer .brxe-nav-menu
     (#brxe-hdrnav) when the hamburger is tapped — confirmed from
     Step 17/18 selectors above. */
  #brxe-hdrnav.show-mobile-menu > .bricks-nav-menu-wrapper,
  .brxe-nav-menu.primary-nav.show-mobile-menu > .bricks-nav-menu-wrapper {
    display: block !important;
    /* Fixed positioning + full viewport width so the dropdown spans
       edge-to-edge regardless of the padded .brxe-container ancestor.
       Top offset is set from the running header height via a CSS var
       (see .site-header rule below) with a 64px fallback. */
    position: fixed;
    top: var(--dsr-header-height, 64px);
    left: 0;
    right: 0;
    width: 100vw;
    background: var(--brand-blue-deep);
    border-block-start: 1px solid rgba(255, 255, 255, 0.1);
    max-height: calc(100vh - var(--dsr-header-height, 64px));
    overflow-y: auto;
    z-index: 99;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  }

  /* Menu list inside the dropdown: vertical stack, full-width items. */
  #brxe-hdrnav.show-mobile-menu .bricks-nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
    margin: 0;
  }
  #brxe-hdrnav.show-mobile-menu .bricks-nav-menu > li {
    width: 100%;
    margin: 0;
  }
  #brxe-hdrnav.show-mobile-menu .bricks-nav-menu > li > a,
  #brxe-hdrnav.show-mobile-menu .bricks-nav-menu > li > .brx-submenu-toggle > a {
    padding: 0.95rem 1.25rem;
    color: var(--white);
    border-block-end: 1px solid rgba(255, 255, 255, 0.05);
    justify-content: flex-start;
    width: 100%;
    display: block;
  }

  /* Submenu toggle row: label + caret button, space-between. */
  #brxe-hdrnav.show-mobile-menu .bricks-nav-menu li.menu-item-has-children > .brx-submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  /* Submenu list: collapsed by default; opens when Bricks marks the item
     `.brx-open` OR when the toggle button's aria-expanded="true" (belt +
     suspenders — Bricks JS varies between the two across releases). */
  #brxe-hdrnav.show-mobile-menu .bricks-nav-menu li.menu-item-has-children ul.sub-menu {
    display: none;
    background: rgba(255, 255, 255, 0.03);
    padding-inline-start: 1.5rem;
    padding-block: 0.25rem;
    margin: 0;
    list-style: none;
  }
  #brxe-hdrnav.show-mobile-menu .bricks-nav-menu li.menu-item-has-children > .brx-submenu-toggle button[aria-expanded="true"] ~ ul.sub-menu,
  #brxe-hdrnav.show-mobile-menu .bricks-nav-menu li.menu-item-has-children.brx-open ul.sub-menu,
  #brxe-hdrnav.show-mobile-menu .bricks-nav-menu li.menu-item-has-children.open ul.sub-menu {
    display: block;
  }
  #brxe-hdrnav.show-mobile-menu .bricks-nav-menu li.menu-item-has-children ul.sub-menu > li > a {
    padding: 0.7rem 1rem;
    color: var(--white);
    display: block;
    font-size: 0.95rem;
  }
}
