/* One dimensional glass header, with freestanding navigation buttons. */
:root body :is(.uh, .site-header) {
  background:
    radial-gradient(ellipse at 14% 0%, rgb(255 255 255 / 96%), transparent 48%),
    linear-gradient(165deg, rgb(255 255 255 / 88%), rgb(226 245 252 / 76%) 67%, rgb(208 236 247 / 70%));
  border-color: rgb(159 205 223 / 76%);
  -webkit-backdrop-filter: blur(32px) saturate(1.3);
  backdrop-filter: blur(32px) saturate(1.3);
  box-shadow:
    0 27px 48px -25px rgb(11 36 64 / 42%),
    0 10px 18px -15px rgb(6 88 123 / 28%),
    inset 0 2px 0 rgb(255 255 255 / 95%),
    inset 0 -2px 0 rgb(79 162 193 / 18%);
}
:root body .uh::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 18%, rgb(255 255 255 / 42%) 46%, transparent 71%);
  content: "";
}
:root body .uh > .container { position: relative; z-index: 1; }
:root body :is(.uh .uh-nav, .site-header .desktop-nav) {
  padding: 0;
  border: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
:root body .uh .uh-nav { margin-bottom: 18px; }
:root body .site-header .desktop-nav { gap: 8px; }
:root body .site-header .desktop-nav a {
  border: 1px solid #b7d7e5;
  border-radius: 10px;
  background: linear-gradient(148deg, rgb(255 255 255 / 96%), rgb(236 249 254 / 76%) 65%, rgb(217 240 249 / 72%));
  -webkit-backdrop-filter: blur(14px) saturate(1.18);
  backdrop-filter: blur(14px) saturate(1.18);
  box-shadow: 0 13px 22px -17px rgb(11 69 105 / 53%), inset 0 1px 0 #fff, inset 0 -1px 0 rgb(59 153 187 / 15%);
  color: #0b2440;
}
:root body .site-header .desktop-nav a:is(:hover, .is-active, :focus-visible) {
  border-color: #7bbfce;
  background: linear-gradient(145deg, #fff, #dff5fa);
  box-shadow: 0 15px 24px -18px rgb(0 119 131 / 50%), inset 0 1px 0 #fff;
}
:root body .uh :is(.uh-navlink, .uh-channel, .uh-menu) {
  border-color: #b7d7e5;
  background: linear-gradient(148deg, rgb(255 255 255 / 96%) 0%, rgb(238 250 254 / 76%) 60%, rgb(220 241 250 / 68%) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(1.18);
  backdrop-filter: blur(14px) saturate(1.18);
  box-shadow: 0 14px 23px -17px rgb(11 69 105 / 56%), inset 0 1px 0 #fff, inset 0 -1px 0 rgb(59 153 187 / 16%);
  color: #0b2440;
}
:root body .uh .uh-navlink[aria-current="page"] {
  border-color: #7bbfce;
  background: linear-gradient(145deg, #fff, #dff5fa);
  box-shadow: 0 12px 22px -18px rgb(0 119 131 / 50%), inset 0 1px 0 #fff, inset 0 -2px 0 rgb(31 182 193 / 24%);
}
:root body .uh .uh-navlink.uh-action,
:root body .uh a.uh-navlink.uh-action:visited {
  border-color: #81c9d6;
  background: linear-gradient(135deg, rgb(245 253 255 / 97%), rgb(205 238 247 / 92%));
  box-shadow: 0 13px 24px -18px rgb(0 109 136 / 52%), inset 0 1px 0 #fff, inset 0 -2px 0 rgb(31 182 193 / 32%);
  color: #0b2440 !important;
}
:root body .uh .uh-cta-arrow {
  border: 1px solid rgb(48 168 191 / 44%);
  background: linear-gradient(140deg, #fff, #9de3ed);
  box-shadow: 0 7px 15px -12px rgb(0 119 131 / 80%), inset 0 1px 0 #fff;
  color: #0b2440;
}
:root body .uh :is(.uh-channel, .uh-phone, .uh-menu) {
  box-shadow: 0 12px 22px -18px rgb(11 69 105 / 48%), inset 0 1px 0 #fff;
}
:root body .uh :is(.uh-navlink, .uh-channel, .uh-menu):is(:hover, :focus-visible) {
  border-color: #65b6c8;
  background: linear-gradient(145deg, #fff, #dff5fa);
  box-shadow: 0 17px 25px -18px rgb(0 104 138 / 46%), inset 0 1px 0 #fff;
}

/* Preserve a readable rating link when the external badge cannot load. */
:root.js body .db-footer .rating-link { display: none; }
@media (max-width: 999px) {
  :root.js body .db-footer .footer-rating { display: none; }
  :root.js body .db-footer .rating-link {
    display: inline-flex;
    min-height: 40px;
    margin-top: 10px;
    padding: 8px 11px;
    border: 1px solid rgb(157 220 232 / 39%);
    border-radius: 10px;
    background: rgb(165 229 241 / 9%);
    color: #b9eef2;
    font-size: 12px;
  }
}

/* Match the hero frame width while keeping the header a floating card. */
:root body :is(.uh, .site-header) {
  width: min(calc(100% - 48px), 1536px);
  margin: 14px auto 0;
  border: 1px solid rgb(159 205 223 / 76%);
  border-radius: 22px;
}
:root body .uh .container {
  width: calc(100% - 32px);
}
:root body .uh .uh-main {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto auto minmax(240px, 1fr);
  align-items: center;
  min-height: 84px;
  padding-block: 9px;
  gap: clamp(12px, 1.3vw, 18px);
}
:root body .uh .uh-brand { justify-self: start; margin-right: 0; }
:root body .uh :is(.uh-email, .uh-phone) {
  min-height: 42px;
  padding-inline: 13px;
  border: 1px solid rgb(184 219 232 / 88%);
  border-radius: 12px;
  background: rgb(255 255 255 / 56%);
  box-shadow: inset 0 1px 0 #fff;
}
:root body .uh .uh-email { justify-self: end; margin-left: 0; }
:root body .uh .uh-channels {
  justify-self: start;
  margin-left: 0;
  padding-inline: 0;
  border-inline: 0;
}
:root body .uh .uh-phone { justify-self: end; }

@media (max-width: 1199px) {
  :root body .uh .uh-main { display: flex; }
  :root body .uh .uh-channels { margin-left: auto; }
}

/* Page-edge shortcuts use the same blue-white glass as the main controls. */
:root body .quick-page-nav { left: clamp(12px, 1.2vw, 24px); gap: 9px; }
:root body .quick-page-nav button,
:root body :is(.ai-chat-widget, .client-portal-widget) {
  border: 1px solid #a8d1df;
  border-radius: 13px;
  background: linear-gradient(145deg, rgb(255 255 255 / 94%), rgb(225 245 252 / 78%) 72%, rgb(205 234 246 / 72%));
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 16px 28px -19px rgb(11 69 105 / 48%), inset 0 1px 0 #fff, inset 0 -1px 0 rgb(59 153 187 / 18%);
  color: #0b2440;
  font-family: Inter, Arial, Helvetica, sans-serif;
}
:root body .quick-page-nav button {
  width: 46px;
  height: 46px;
  font-size: 18px;
  font-weight: 650;
}
:root body :is(.ai-chat-widget, .client-portal-widget) {
  right: clamp(12px, 1.2vw, 24px);
}
:root body :is(.ai-chat-widget, .client-portal-widget) span {
  border: 1px solid #c7e3ed;
  background: rgb(235 249 253 / 82%);
  color: #0b2440;
}
:root body :is(.quick-page-nav button, .ai-chat-widget, .client-portal-widget)::before {
  display: none;
}
:root body .quick-page-nav button:is(:hover, :focus-visible),
:root body :is(.ai-chat-widget, .client-portal-widget):is(:hover, :focus-visible) {
  border-color: #65b6c8;
  background: linear-gradient(145deg, #fff, #daf3f9);
  box-shadow: 0 20px 28px -19px rgb(0 104 138 / 48%), inset 0 1px 0 #fff;
}
:root body .quick-page-nav button:focus-visible,
:root body :is(.ai-chat-widget, .client-portal-widget):focus-visible {
  outline: 2px solid #008a9c;
  outline-offset: 3px;
}

@media (max-width: 699px) {
  :root body :is(.uh, .site-header) {
    width: calc(100% - 28px);
    margin-top: 10px;
    border-radius: 18px;
  }
  :root body .uh .container { width: calc(100% - 32px); }
  :root body .uh .uh-main { display: grid; grid-template-columns: 1fr 44px 44px; min-height: 0; padding-block: 10px; gap: 11px 8px; }
  :root body .uh .uh-brand { margin-right: 0; }
  :root body .uh .uh-phone { padding-inline: 0; }
  :root body .uh .uh-channels { justify-self: stretch; margin-left: 0; }
}

:root body #main .button,
:root body main .button {
  border: 1px solid #8fc6d5 !important;
  background: linear-gradient(145deg, rgb(255 255 255 / 98%), rgb(230 248 253 / 85%) 65%, rgb(209 239 249 / 78%)) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.18);
  backdrop-filter: blur(14px) saturate(1.18);
  box-shadow: 0 18px 25px -21px rgb(9 79 114 / 58%), inset 0 2px 0 #fff, inset 0 -2px 0 rgb(81 164 194 / 18%) !important;
  color: #0b2440 !important;
  text-shadow: none;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
:root body #main .button :is(svg, i),
:root body main .button :is(svg, i) { color: #007783; }
:root body #main .button:is(:hover, :focus-visible),
:root body main .button:is(:hover, :focus-visible) {
  border-color: #56aec0 !important;
  background: linear-gradient(145deg, #fff, #d6f3f9) !important;
  box-shadow: 0 22px 29px -22px rgb(0 102 139 / 57%), inset 0 2px 0 #fff, inset 0 -2px 0 rgb(31 182 193 / 24%) !important;
  color: #0b2440 !important;
  transform: translateY(-1px);
}
:root body #main .button:is(.button-primary, .button-lime),
:root body main .button:is(.button-primary, .button-lime) {
  border-color: #6ebdcd !important;
  background: linear-gradient(135deg, #f9feff, #bfeaf4) !important;
  color: #0b2440 !important;
  font-weight: 740;
}
:root body #main .button:is(.button-primary, .button-lime):is(:hover, :focus-visible),
:root body main .button:is(.button-primary, .button-lime):is(:hover, :focus-visible) {
  background: linear-gradient(135deg, #fff, #aee3ef) !important;
  color: #0b2440 !important;
}

:root body .contact-max-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 18px 0 0;
  color: #526b82;
  font-size: 14px;
  line-height: 1.5;
}
:root body .contact-max-note .button {
  min-height: 42px;
  padding: 9px 14px;
  cursor: pointer;
  font: 700 14px/1.3 Inter, Arial, sans-serif;
}

@media (max-width: 599px) {
  :root body .db-footer {
    padding: 14px 12px calc(20px + env(safe-area-inset-bottom));
    border-top: 1px solid rgb(115 205 224 / 38%);
    background:
      radial-gradient(circle at 88% 0%, rgb(23 133 164 / 28%), transparent 42%),
      linear-gradient(160deg, #0c2c4a, #071b31 78%);
  }
  :root body .db-footer .db-container { width: min(100%, 440px); }
  :root body .db-footer .footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "contact" "nav";
    gap: 12px;
    padding: 0;
  }
  :root body .db-footer :is(.brand-area, .contact-area, .navigation-area) {
    min-width: 0;
    padding: 17px;
    border: 1px solid rgb(158 213 231 / 25%);
    border-radius: 18px;
    background: linear-gradient(145deg, rgb(255 255 255 / 10%), rgb(255 255 255 / 3%) 72%);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 13%), 0 16px 28px -23px rgb(0 8 20 / 82%);
  }
  :root body .db-footer .footer-brand { gap: 12px; }
  :root body .db-footer .footer-brand img { width: 45px; height: 48px; }
  :root body .db-footer .brand-name { font-size: 20px; line-height: 1.1; }
  :root body .db-footer .brand-descriptor { font-size: 12px; }
  :root body .db-footer .brand-description {
    max-width: 35ch;
    margin-top: 13px;
    font-size: 13px;
    line-height: 1.55;
  }
  :root.js body .db-footer .footer-rating { display: none; }
  :root.js body .db-footer .rating-link {
    display: inline-flex;
    min-height: 39px;
    gap: 7px;
    margin-top: 12px;
    padding: 8px 11px;
    border: 1px solid rgb(157 220 232 / 39%);
    border-radius: 10px;
    background: rgb(165 229 241 / 9%);
    color: #b9eef2;
    font-size: 12px;
    line-height: 1.3;
  }
  :root body .db-footer .footer-label { margin: 0 0 10px; font-size: 11px; }
  :root body .db-footer .contact-phone {
    min-height: 37px;
    margin: 0;
    color: #fff;
    font-size: clamp(21px, 6vw, 25px);
    line-height: 1.2;
  }
  :root body .db-footer .contact-address {
    min-height: 0;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.5;
  }
  :root body .db-footer .contact-email { min-height: 34px; font-size: 13px; }
  :root body .db-footer .footer-channels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }
  :root body .db-footer .footer-channels .channel {
    min-width: 0;
    min-height: 44px;
    padding: 9px 10px;
    border-color: rgb(157 220 232 / 34%);
    border-radius: 11px;
    background: rgb(165 229 241 / 9%);
    font-size: 13px;
    font-weight: 600;
  }
  :root body .db-footer .navigation-area { border-top-color: rgb(158 213 231 / 25%); }
  :root body .db-footer .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  :root body .db-footer .footer-links a,
  :root:not([data-theme="dark"]) body .db-footer .footer-links a {
    display: flex;
    min-height: 46px;
    padding: 8px 10px;
    border: 1px solid rgb(158 213 231 / 43%) !important;
    border-radius: 10px;
    background: linear-gradient(135deg, rgb(226 248 255 / 17%), rgb(34 110 142 / 21%)) !important;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 18%), 0 8px 12px -10px rgb(0 5 15 / 70%) !important;
    color: #e9f7fb !important;
    font-size: 13px;
    line-height: 1.25;
    text-wrap: balance;
  }
  :root body .db-footer .footer-links a:is(:hover, :focus-visible),
  :root:not([data-theme="dark"]) body .db-footer .footer-links a:is(:hover, :focus-visible) {
    border-color: rgb(157 220 232 / 60%) !important;
    background: rgb(165 229 241 / 15%) !important;
  }
  :root body .db-footer .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 17px 3px 0;
    border-top: 0;
    color: #acc6d6;
    text-align: center;
    font-size: 11px;
  }
  :root body .db-footer .legal-links { justify-content: center; gap: 4px 18px; margin: 0; }
  :root body .db-footer .legal-links a { min-height: 32px; }
}

@media (max-width: 359px) {
  :root body .db-footer .legal-links { flex-direction: column; align-items: center; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  :root body #main .button, :root body main .button { transition: none; }
}
@media print {
  :root body .uh, :root body .uh .uh-nav, :root body main .button { background: #fff; box-shadow: none; }
}

/* AI reception: match the public site's blue-white glass and readable controls. */
:root:not([data-theme="dark"]) body .ai-chat-panel {
  border: 1px solid #a7ccd9;
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,.98), transparent 54%),
    linear-gradient(145deg, rgba(255,255,255,.97), rgba(238,249,252,.96));
  background-color: #f6fbfd;
  box-shadow: 0 30px 64px -32px rgba(11,36,64,.52),
    0 8px 24px -18px rgba(11,36,64,.3), inset 0 1px 0 #fff;
  color: #0b2440;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
:root:not([data-theme="dark"]) body .ai-chat-panel :is(button, input, textarea) {
  font-family: inherit;
}
:root:not([data-theme="dark"]) body .ai-chat-head {
  min-height: 130px;
  border-bottom: 1px solid #c8e0e9;
  background:
    linear-gradient(90deg, rgba(245,251,253,.96), rgba(245,251,253,.86) 52%, rgba(245,251,253,.12)),
    #eaf5f9;
}
:root:not([data-theme="dark"]) body .ai-chat-head::before {
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.4) 47%, transparent 72%);
  filter: none;
  opacity: .7;
}
:root:not([data-theme="dark"]) body .ai-chat-head-copy strong {
  color: #0b2440;
  font-size: 1.08rem;
  font-weight: 700;
}
:root:not([data-theme="dark"]) body .ai-chat-head-copy small { color: #506a81; }
:root:not([data-theme="dark"]) body .ai-chat-close {
  border: 1px solid #b4d2df;
  border-radius: 10px;
  background: rgba(255,255,255,.84);
  color: #0b2440;
  box-shadow: inset 0 1px 0 #fff;
}
:root:not([data-theme="dark"]) body .ai-chat-close:is(:hover, :focus-visible) {
  border-color: #68adbd;
  background: #eaf7f9;
}
:root:not([data-theme="dark"]) body .ai-chat-messages {
  background: transparent;
}
:root:not([data-theme="dark"]) body .ai-chat-message {
  border-radius: 12px;
  color: #0b2440;
  line-height: 1.55;
}
:root:not([data-theme="dark"]) body .ai-chat-message-assistant {
  border: 1px solid #d0e2ea;
  background: rgba(255,255,255,.86);
  box-shadow: 0 9px 20px -15px rgba(11,36,64,.3), inset 0 1px 0 #fff;
}
:root:not([data-theme="dark"]) body .ai-chat-message-user {
  border: 1px solid #a9d3dc;
  background: #e8f7f9;
  box-shadow: none;
}
:root:not([data-theme="dark"]) body .ai-chat-safety,
:root:not([data-theme="dark"]) body .ai-chat-lead-note,
:root:not([data-theme="dark"]) body .ai-chat-status {
  color: #506a81;
}
:root:not([data-theme="dark"]) body .ai-chat-quick button {
  border: 1px solid #bdd9e3;
  border-radius: 10px;
  background: rgba(255,255,255,.8);
  box-shadow: inset 0 1px 0 #fff;
  color: #17354f;
}
:root:not([data-theme="dark"]) body .ai-chat-quick button:is(:hover, :focus-visible) {
  border-color: #68adbd;
  background: #eaf7f9;
}
:root:not([data-theme="dark"]) body :is(.ai-chat-form label, .ai-chat-lead label) {
  color: #17354f;
  font-weight: 600;
}
:root:not([data-theme="dark"]) body :is(.ai-chat-form textarea, .ai-chat-lead input) {
  border: 1px solid #bdd9e3;
  border-radius: 10px;
  background: rgba(255,255,255,.9);
  box-shadow: inset 0 1px 0 #fff;
  color: #0b2440;
}
:root:not([data-theme="dark"]) body :is(.ai-chat-form textarea, .ai-chat-lead input)::placeholder {
  color: #72879a;
}
:root:not([data-theme="dark"]) body :is(.ai-chat-form textarea, .ai-chat-lead input):focus {
  border-color: #007783;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31,182,193,.14);
}
:root:not([data-theme="dark"]) body :is(.ai-chat-actions .ai-chat-send, .ai-chat-lead button) {
  border: 1px solid #0b2440;
  border-radius: 10px;
  background: linear-gradient(135deg, #0b2440, #17415e);
  box-shadow: 0 13px 21px -17px rgba(11,36,64,.62), inset 0 1px 0 rgba(255,255,255,.18);
  color: #fff;
}
:root:not([data-theme="dark"]) body .ai-chat-actions .ai-chat-escalate {
  border: 1px solid #a7ccd9;
  border-radius: 10px;
  background: rgba(255,255,255,.86);
  box-shadow: inset 0 1px 0 #fff;
  color: #0b2440;
}
:root:not([data-theme="dark"]) body .ai-chat-actions button:is(:hover, :focus-visible),
:root:not([data-theme="dark"]) body .ai-chat-lead button:is(:hover, :focus-visible) {
  border-color: #007783;
  filter: none;
  box-shadow: 0 16px 24px -18px rgba(11,36,64,.55);
}
:root:not([data-theme="dark"]) body .ai-chat-actions .ai-chat-escalate:is(:hover, :focus-visible) {
  background: #eaf7f9;
  color: #0b2440;
}
:root:not([data-theme="dark"]) body .ai-chat-panel :is(button, input, textarea):focus-visible {
  outline: 2px solid #007783;
  outline-offset: 2px;
}

@media (max-width: 599px) {
  :root:not([data-theme="dark"]) body .ai-chat-panel { border-radius: 16px; }
  :root:not([data-theme="dark"]) body .ai-chat-head { min-height: 112px; }
}
