/* Final performance, accessibility and small-screen refinements. */
:root { --site-font: 'Barlow', Arial, sans-serif; }
body, button, input, select, textarea { font-family: var(--site-font); }
.navbar a.logo { text-decoration: none; display: block; }
.navbar a.logo:focus-visible { outline: 3px solid #43c8f2; outline-offset: 6px; }
html { scroll-padding-top: calc(var(--site-header-height, 115px) + 12px); }
video { background: #071c2d; }
[hidden] { display: none !important; }
body { animation: none; }
.motion-enabled .header .top-bar, .motion-enabled .header .navbar { animation: none; }
.motion-enabled .motion-target { filter: none; will-change: auto; }
.motion-enabled .motion-target.motion-in { filter: none; }
.hero-title.motion-target { opacity: 1; translate: none; scale: 1; }
.faq__panel.is-searching { display: block !important; }
.faq__panel.no-search-results { display: none !important; }
.faq-search-status:empty, .form-status:empty { display: none; }
.form-status { margin: 12px 0 0; line-height: 1.5; }
.form-status a { text-decoration: underline; }
button:disabled { cursor: wait; opacity: .7; }
#slider { touch-action: none; }
.gallery-card.is-revealed .img-after { opacity: 1; }
.gallery-card.is-revealed .badge-before { opacity: 0; }
.gallery-card.is-revealed .badge-after { opacity: 1; }
.chat-panel.open { display: flex; flex-direction: column; max-height: min(620px, calc(100dvh - 115px)); }
.chat-messages { flex: 1 1 auto; min-height: 80px; overscroll-behavior: contain; }
.chat-header, .chat-input-row, .chat-handoff { flex-shrink: 0; }
#chatClose { flex: 0 0 32px; width: 32px; height: 32px; border: 0; border-radius: 6px; color: white; background: transparent; cursor: pointer; font-size: 26px; }
.chat-input { font-size: 16px; }
.chat-panel { max-width: calc(100vw - 24px); }
.success-popup { z-index: 5000; }
@media (max-width: 600px) {
  body .navbar .logo { max-width: calc(100% - 64px); font-size: clamp(1rem, 4.4vw, 1.5rem); line-height: 1.05; }
  .navbar { gap: .75rem; }
  input, select, textarea { font-size: 16px !important; }
  .chat-widget { bottom: max(12px, env(safe-area-inset-bottom)); }
  .chat-panel.open { max-height: calc(100dvh - 110px - env(safe-area-inset-bottom)); }
  .footer-contact p { overflow-wrap: anywhere; }
  .header .top-bar .contact-info a { font-size: clamp(.625rem, 2.8vw, .75rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* A scale of 1 still changes the containing block of fixed chat/navigation. */
  body { scale: none !important; translate: none !important; transform: none !important; filter: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Keep brand names and short heading phrases together at every breakpoint. */
body .navbar .logo {
  flex: 0 1 auto;
  max-width: none;
  white-space: nowrap;
  overflow-wrap: normal;
  font-size: clamp(1.25rem, 1.9vw, 1.72rem);
  line-height: 1.15;
}

body .navbar ul.nav-links { flex-shrink: 0; }
body .hero-left,
body .page-hero-copy,
body .hero-panel-heading,
body .page-hero-aside,
body .card-label { container-type: inline-size; }

body .hero-title {
  font-size: clamp(2rem, 5.6vw, 5.15rem);
  font-size: clamp(1.75rem, 12.4cqi, 5.15rem);
  line-height: 1.02;
  text-wrap: initial;
}

body .hero-title .hero-title-line,
body .hero-title .hero-title-accent,
.heading-line,
.service-name-line {
  display: block;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

body .hero-title .hero-title-line {
  margin-top: 0;
  color: #fff;
}
body .hero-title .hero-title-line::after { content: none; }
body .hero-title .hero-title-accent { width: fit-content; }

body .page-header.premium-page-hero h1 {
  font-size: clamp(2rem, 4.9vw, 5.2rem) !important;
  font-size: clamp(1.75rem, 10.5cqi, 5.2rem) !important;
  line-height: 1.04 !important;
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: normal;
}

body .page-header.premium-page-hero h1.service-hero-title {
  max-width: none;
  font-size: clamp(1.5rem, 4.1vw, 4.3rem) !important;
  font-size: clamp(1.25rem, 8.6cqi, 4.3rem) !important;
  line-height: 1.08 !important;
  text-wrap: initial;
}

body .hero-panel-heading strong {
  font-size: clamp(1rem, 1.3vw, 1.35rem);
  font-size: clamp(.95rem, 6.35cqi, 1.55rem);
  line-height: 1.2;
  white-space: nowrap;
  overflow-wrap: normal;
}

body .page-hero-aside > strong {
  font-size: 1.3rem;
  font-size: clamp(1.05rem, 8.2cqi, 1.65rem);
  line-height: 1.2;
}

body .card-label { gap: 12px; }
body .card-label h3 {
  margin: 0;
  font-size: .95rem;
  font-size: clamp(.75rem, 4.5cqi, 1rem);
  line-height: 1.35;
  letter-spacing: .06em;
}
body .card-arrow { flex: 0 0 24px; }
body .hero-assurance span { min-width: 0; }
body .hero-assurance small { white-space: normal; }
body .page-hero-eyebrow span { flex-shrink: 0; }
body .hero-eyebrow span { flex-shrink: 0; }
body .page-hero-points i { flex-shrink: 0; }

@media (max-width: 1200px) {
  body .navbar { gap: .75rem; }
  body .navbar .logo {
    max-width: calc(100% - 56px);
    font-size: clamp(.85rem, 4.3vw, 1.5rem);
  }
}

@media (max-width: 820px) {
  body .hero-title {
    font-size: clamp(2rem, 9.5vw, 5.15rem);
    font-size: clamp(1.75rem, 12.4cqi, 5.15rem);
  }
}

@media (max-width: 768px) {
  body .page-header.premium-page-hero h1.service-hero-title {
    font-size: clamp(1.4rem, 7.4vw, 4.3rem) !important;
    font-size: clamp(1.25rem, 8.6cqi, 4.3rem) !important;
  }
}
