/* Modern layer over the Webflow export, 2026-11-26.
   Loaded last, so it refines the original styles without editing them.

   Legibility: every text color here was measured against its real background (WCAG 2.2 AA,
   4.5:1 for body text, 3:1 for large). The brand blue #189bc8 reads at only 3.2:1 on white
   and 3.9:1 on the dark blue, so text uses --link on light backgrounds and --link-on-dark on
   dark ones. The bright brand blue stays for fills, icons and the logo.

   Motion: transform and opacity only, switched off under prefers-reduced-motion and for
   print. Elements that reveal on scroll stay visible unless the Motion component has run and
   set html.motion-ready, and it only marks elements that start below the fold. */

:root {
  --link: #0c6f96;          /* 5.6:1 on white, white on it 5.6:1 */
  --link-hover: #093848;
  --link-on-dark: #7dd3f0;  /* 7.5:1 on #093848 */
  --footer-bg: #0f6e90;     /* white on it 5.8:1 (was #1581a7, 4.4:1) */
  --text: #263035;
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --shadow-soft: 0 1px 2px rgba(9, 56, 72, .06), 0 8px 24px rgba(9, 56, 72, .08);
  --shadow-lift: 0 2px 4px rgba(9, 56, 72, .08), 0 16px 36px rgba(9, 56, 72, .14);
  --focus-ring: 0 0 0 3px #fff, 0 0 0 6px var(--link);
}

html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body { color: var(--text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ---------- Type: body copy was Montserrat 300/400 and read thin ---------- */
p, li, .paragraph, .paragraph-2, .paragraph-8-copy, .text-block-9, h2.footer, .w-form-done, .w-form-fail {
  font-weight: 500;
}
.above-services-p { font-weight: 500; }
p strong, li strong, .paragraph-8-copy strong, .above-services-p strong, .text-block-9 strong { font-weight: 700; }
.heading-6.white.sm { font-weight: 500; }
.text-block-6 { font-weight: 600; letter-spacing: .06em; }
.paragraph-2 { color: #4e5a5f; }  /* was #aaa, 2.3:1; now 7.2:1 */
.small { color: #4e5a5f; }        /* "Return to top" was #acacac, 2.3:1 */

/* ---------- Links ---------- */
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
.section-4-interior a:not(.w-button), .hiring-div a:not(.w-button), .section-4 a:not(.w-button), .section-4-copy a:not(.w-button) { color: var(--link-on-dark); }
.section-4-interior a:not(.w-button):hover, .hiring-div a:not(.w-button):hover { color: #fff; }
.text-block-5 { color: var(--link); }  /* review names, were 3.2:1 */

/* ---------- Header: the empty band above the switch scrolls away, the rest sticks ---------- */
.navbar {
  position: sticky;
  top: -44px;
  background-color: rgba(255, 255, 255, .97);
  box-shadow: 0 1px 0 rgba(9, 56, 72, .06), 0 6px 20px rgba(9, 56, 72, .07);
  transition: box-shadow .3s var(--ease-out);
}
@supports (backdrop-filter: blur(8px)) {
  .navbar { background-color: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(10px); }
}
html.is-scrolled .navbar { box-shadow: 0 1px 0 rgba(9, 56, 72, .08), 0 10px 30px rgba(9, 56, 72, .12); }
@media screen and (max-width: 991px) {
  .navbar { top: -34px; }
  html { scroll-padding-top: 100px; }
}

/* Webflow slides the water drop in under the hovered link; keep its position in the
   transition list so the slide stays smooth. */
.nav-link { transition: color .2s var(--ease-out), background-size .333s ease, background-position .333s ease; }
.nav-link:hover { color: var(--link); }
.nav-link:focus-visible, .brand:focus-visible, .div-block-4:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 8px; }

/* Residential / commercial switch. */
.div-block-4 { transition: box-shadow .25s var(--ease-out), transform .25s var(--ease-out); }
.div-block-4:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0, 0, 0, .22); }
.div-block-5, .div-block-current { transition: background-color .25s var(--ease-out), color .25s var(--ease-out); }

/* ---------- Mobile menu: an animated three-bar button and a clean panel ---------- */
.w-nav-button {
  width: 48px; height: 48px; padding: 0; margin-top: 6px; margin-right: 8px;
  align-items: center; justify-content: center;
  border-radius: 12px; background: transparent; color: var(--link-hover);
  transition: background-color .2s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.w-nav-button:hover { background-color: #eef5f8; }
.w-nav-button:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.w-nav-button.w--open { background-color: #eef5f8; color: var(--link-hover); }
.w-nav-button .w-icon-nav-menu {
  position: relative; width: 24px; height: 2.5px; border-radius: 2px;
  font-size: 0; line-height: 0; background-color: currentColor;
  transition: background-color .2s var(--ease-out);
}
.w-nav-button .w-icon-nav-menu::before { content: ""; } /* drops Webflow's icon-font glyph */
.w-nav-button .w-icon-nav-menu::before,
.w-nav-button .w-icon-nav-menu::after {
  content: ""; position: absolute; left: 0; width: 24px; height: 2.5px; border-radius: 2px;
  background-color: currentColor; transition: transform .3s var(--ease-out);
}
.w-nav-button .w-icon-nav-menu::before { transform: translateY(-7.5px); }
.w-nav-button .w-icon-nav-menu::after { transform: translateY(7.5px); }
.w-nav-button.w--open .w-icon-nav-menu { background-color: transparent; }
.w-nav-button.w--open .w-icon-nav-menu::before { transform: rotate(45deg); }
.w-nav-button.w--open .w-icon-nav-menu::after { transform: rotate(-45deg); }
@media screen and (max-width: 991px) {
  .navbar.w-nav .w-nav-button { display: flex; }
  .w-nav-overlay { background: transparent; }
  .w-nav-overlay [data-nav-menu-open] {
    background-color: #fff;
    border-radius: 18px;
    margin: 6px 10px 0;
    box-shadow: 0 18px 40px rgba(9, 56, 72, .18);
    padding: 8px 16px 18px;
    text-align: left;
    /* The panel hangs off the stuck header, so on a short screen (a phone on its side) it
       must scroll itself or its last links sit off screen (audit, 2026-11-26). 142px is the
       header before its top band scrolls away, plus the panel's margin. */
    max-height: calc(100vh - 142px);
    max-height: calc(100dvh - 142px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .w-nav-overlay [data-nav-menu-open] .nav-link {
    padding: 16px 12px; border-bottom: 1px solid #e7eef1; background-image: none;
    color: var(--link-hover); font-size: 17px; font-weight: 600; letter-spacing: .04em;
    border-radius: 10px;
  }
  .w-nav-overlay [data-nav-menu-open] .nav-link:last-child { border-bottom: 0; }
  .w-nav-overlay [data-nav-menu-open] .nav-link.w--current { color: var(--link); background-color: #eef5f8; }
  .w-nav-overlay [data-nav-menu-open] .nav-link:hover { background-color: #f3f8fa; }
}

/* ---------- Buttons ---------- */
.button, .w-button {
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s var(--ease-out), color .2s var(--ease-out);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
  font-weight: 600;
}
.button:hover, .w-button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, .18); }
.button:active, .w-button:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.button:focus-visible, .w-button:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.button.dark { background-color: var(--link-hover); color: #fff; }
.button.dark:hover { background-color: var(--link); }

/* ---------- Service cards ---------- */
.collection-item { border-top-width: 6px; }
.link-block {
  border-radius: 0 0 16px 16px;
  transition: background-color .25s var(--ease-out), box-shadow .25s var(--ease-out), transform .25s var(--ease-out);
}
.link-block:hover { background-color: #f4f9fb; box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.link-block:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.button-fake { background-color: var(--link); transition: transform .25s var(--ease-out), background-color .25s var(--ease-out); }
.text-block-3 { font-weight: 600; letter-spacing: .04em; }
.link-block:hover .button-fake { background-color: var(--link-hover); transform: translateY(-1px); }

/* ---------- Reviews ---------- */
.quote-container {
  border-radius: 16px;
  background-color: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.quote-container:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

/* ---------- Forms ---------- */
.div-block-10 {
  border-radius: 12px;
  border: 1px solid #e3e9ec;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s var(--ease-out);
}
.div-block-10:focus-within { background-color: #fff; border-color: var(--link); box-shadow: 0 0 0 4px rgba(12, 111, 150, .15); }
.field { color: var(--text); font-weight: 500; }
.field::placeholder { color: #66737a; }  /* 4.6:1 on the field gray */
.field:focus { outline: none; }

/* ---------- Footer band ---------- */
.section-3 { background-color: var(--footer-bg); }
.section-3 .heading-6:not(.white) { color: #fff; }  /* was dark blue on teal, 2.8:1 */
.phone-link { margin-top: 20px; text-decoration: none; transition: color .2s var(--ease-out); }
.phone-link:hover { color: #e6f6fc; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.phone-link:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }
.link-block-2 img { transition: transform .3s var(--ease-out); }
.link-block-2:hover img { transform: rotate(-12deg) scale(1.08); }

/* ---------- Motion ---------- */
@media screen and (prefers-reduced-motion: no-preference) {
  /* The headline only moves (no fade), so it paints at once and LCP is not delayed. */
  .header-interior > h1 { animation: hrc-lift .7s var(--ease-out) both; }
  .header-interior > :not(h1) { animation: hrc-rise .7s var(--ease-out) both; }
  .header-interior > *:nth-child(2) { animation-delay: .08s; }
  .header-interior > *:nth-child(3) { animation-delay: .16s; }
  .below-header-container > .image-4,
  .below-header-container > .image-5 { animation: hrc-drive 1.1s var(--ease-out) .2s both; }

  html.motion-ready [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
  }
  html.motion-ready [data-reveal].is-in { opacity: 1; transform: none; }

  /* Menu links arrive one after another when the panel opens. */
  .w-nav-overlay [data-nav-menu-open] .nav-link { animation: hrc-rise .35s var(--ease-out) both; }
  .w-nav-overlay [data-nav-menu-open] .nav-link:nth-child(2) { animation-delay: .04s; }
  .w-nav-overlay [data-nav-menu-open] .nav-link:nth-child(3) { animation-delay: .08s; }
  .w-nav-overlay [data-nav-menu-open] .nav-link:nth-child(4) { animation-delay: .12s; }
}

@keyframes hrc-lift { from { transform: translateY(14px); } to { transform: none; } }
@keyframes hrc-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hrc-drive { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: none; } }

@media print {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .navbar { position: static; box-shadow: none; }
}

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