/* Shared header and navigation. Legacy component rules live here rather than in page sheets. */
:root { --site-header-height: 72px; }
html { scroll-padding-top: calc(var(--site-header-height) + 12px); }
/* Use one header offset; adding target margins would count the sticky header twice. */
html.navigation-ready [id], html.navigation-ready #quote, html.navigation-ready #promotion-terms { scroll-margin-top: 0; }
/* Keep the keyboard skip link available without adding a row above the header. */
.skip-link { position: absolute; z-index: 4000; top: 8px; left: 16px; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 6px; color: #fff; background: #08273e; transform: translateY(-200%); }
.skip-link:focus { left: 16px; transform: none; outline: 3px solid #009ae2; outline-offset: 2px; }
.site-header {
  position: sticky; top: 0; z-index: 3000; padding: 0;
  background: #fff; color: #10283f; border: 0; border-bottom: 1px solid #dce7ef;
  box-shadow: 0 3px 14px rgb(9 34 54 / 6%); backdrop-filter: none;
}
.site-header::before, .site-header::after { content: none; }
.site-header .nav-wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  box-sizing: border-box; width: calc(100% - 48px); max-width: 1440px; min-height: 80px;
  margin: 0 auto; padding: 8px 0; position: static;
}
.site-header .brand {
  display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto;
  min-width: 0; min-height: 0; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: none; box-shadow: none; text-decoration: none;
}
.site-header .brand-logo, .site-header .brand img {
  display: block; width: 70px; height: 48px; flex: 0 0 auto; object-fit: contain;
  margin: 0; padding: 0; border: 0; border-radius: 10px; background: #03151f; box-shadow: none;
}
.site-header .brand-text { display: grid; gap: 3px; min-width: 0; }
.site-header .brand-text strong { color: #10283f; font: 800 .94rem/1.25 Inter, Manrope, system-ui, sans-serif; white-space: nowrap; letter-spacing: -.02em; }
.site-header .brand-text small { color: #4e6375; font: 600 .7rem/1.2 Inter, Manrope, system-ui, sans-serif; }
.site-nav-panel { min-width: 0; }
.site-nav { display: flex; align-items: center; gap: 16px; position: static; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.site-nav-group, .site-nav-actions { display: flex; align-items: center; gap: 13px; }
.site-nav a {
  display: inline-flex; align-items: center; justify-content: flex-start; min-height: 44px;
  margin: 0; padding: 3px 0; border: 0; border-radius: 5px; background: none; box-shadow: none;
  color: #183248; font: 700 .82rem/1.35 Inter, Manrope, system-ui, sans-serif;
  text-align: left; text-decoration: none; white-space: nowrap; letter-spacing: 0;
}
.site-nav a::before, .site-nav a::after { content: none; }
.site-nav a:hover { color: #006eb6; background: none; transform: none; box-shadow: none; }
.site-nav a[aria-current] { color: #0075bd; }
.site-nav a:focus-visible, .site-header button:focus-visible, .site-header .brand:focus-visible { outline: 3px solid #009ae2; outline-offset: 3px; }
.site-nav .nav-giveaway { color: #0075bd; }
.site-nav .nav-action {
  justify-content: center; min-height: 44px; padding: 9px 12px; border: 1px solid #0874b8;
  border-radius: 9px; color: #fff; background: #0874b8; font-size: .82rem; text-align: center;
}
.site-nav .nav-action:hover { color: #fff; background: #075f97; }
.site-nav .nav-call { color: #075d95; background: #fff; }
.site-nav .nav-call:hover { color: #075d95; background: #eef8ff; }
.site-nav-heading, .nav-toggle, .site-nav-backdrop { display: none; }
.site-nav-panel[hidden], .site-nav-backdrop[hidden] { display: none !important; }
html.site-menu-open { overflow: hidden; }
html.site-menu-open .site-header { position: fixed; left: 0; right: 0; top: 0; }
.site-nav-spacer[hidden] { display: none; }
html.site-menu-open .cookie-consent,
html.site-menu-open #cookie-consent,
html.site-menu-open .tanda-messenger-contact,
html.site-menu-open .service-quote-sticky,
html.site-menu-open .mobile-quote-sticky,
html.site-menu-open .floating-contact { visibility: hidden !important; pointer-events: none !important; }
@media (max-width: 1279px) {
  :root { --site-header-height: 68px; }
  .site-header .nav-wrap { width: calc(100% - 32px); min-height: 68px; padding: 8px 0; gap: 10px; }
  .site-header .brand { gap: 9px; min-width: 0; flex: 1 1 auto; }
  .site-header .brand-logo, .site-header .brand img { width: 64px; height: 44px; border-radius: 8px; }
  .site-header .brand-text strong { font-size: .94rem; white-space: normal; }
  .site-header .brand-text small { display: none; }
  .site-header .nav-toggle {
    display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 44px;
    width: 44px; height: 44px; min-width: 44px; min-height: 44px; margin: 0; padding: 11px;
    gap: 5px; border: 1px solid #cddde8; border-radius: 10px; background: #fff; color: #10283f; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 20px; height: 2px; flex: 0 0 2px; background: currentColor; border-radius: 2px; transform-origin: center; transition: transform 140ms ease, opacity 140ms ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* Readable inline links remain available if scripts cannot initialize. */
  html:not(.navigation-ready) .site-header .nav-wrap { flex-wrap: wrap; }
  html:not(.navigation-ready) .site-nav-panel { width: 100%; padding: 0 16px 16px; background: #08273e; color: #fff; }
  html:not(.navigation-ready) .nav-toggle, html:not(.navigation-ready) .site-nav-heading { display: none; }
  .navigation-ready .site-nav-backdrop { display: block; position: fixed; z-index: 1; inset: var(--site-header-height) 0 0; background: rgb(3 18 30 / 48%); }
  .navigation-ready .site-nav-panel {
    position: fixed; z-index: 2; left: 0; right: 0; top: var(--site-header-height);
    max-height: calc(100vh - var(--site-header-height)); max-height: calc(100dvh - var(--site-header-height));
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    box-sizing: border-box; padding: 0 16px calc(16px + env(safe-area-inset-bottom));
    background: #08273e; color: #fff; border: 0; border-radius: 0 0 16px 16px;
    box-shadow: 0 16px 24px rgb(0 0 0 / 16%);
  }
  .site-nav-heading { display: flex; position: sticky; z-index: 1; top: 0; align-items: center; justify-content: space-between; min-height: 52px; margin: 0; padding: 4px 0; background: #08273e; }
  .site-nav-heading > span { color: #abc6d8; font: 600 .875rem/1.3 Inter, Manrope, system-ui, sans-serif; }
  .site-nav-close { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 44px; min-height: 44px; padding: 8px 0 8px 12px; border: 0; border-radius: 6px; color: #fff; background: transparent; font: 600 .875rem/1.3 Inter, Manrope, system-ui, sans-serif; cursor: pointer; }
  .site-nav-close span { font-size: 1.5rem; font-weight: 400; line-height: 1; }
  .site-nav { display: block; width: 100%; max-height: none; margin: 0; padding: 0; color: #fff; background: transparent; }
  .site-nav-group { display: grid; gap: 0; margin: 0; padding: 0; }
  .site-nav-secondary { border-top: 1px solid rgb(192 218 235 / 20%); margin-top: 8px; padding-top: 8px; }
  .site-nav a {
    display: flex; box-sizing: border-box; width: 100%; min-height: 44px;
    margin: 0; padding: 10px 4px; border: 0; border-radius: 5px; background: transparent;
    color: #fff; font-size: 1rem; font-weight: 650; line-height: 1.45; white-space: normal; overflow-wrap: break-word;
  }
  .site-nav a:hover, .site-nav a[aria-current] { color: #fff; background: rgb(255 255 255 / 8%); }
  .site-nav .nav-giveaway { color: #6dcfff; }
  .site-nav a:focus-visible, .site-nav-close:focus-visible { outline: 2px solid #79d5ff; outline-offset: -2px; background: rgb(255 255 255 / 8%); }
  .site-nav-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
  .site-nav .nav-action { min-height: 48px; padding: 11px 8px; border: 1px solid #119de5; border-radius: 9px; background: #0874b8; color: #fff; font-size: .94rem; font-weight: 750; }
  .site-nav .nav-call { background: transparent; border-color: #718ea2; color: #fff; }
  .site-nav .nav-call:hover { color: #fff; background: rgb(255 255 255 / 8%); }
}
@media (min-width: 1280px) and (max-width: 1399px) {
  .site-header .brand-logo, .site-header .brand img { width: 58px; height: 42px; }
  .site-header .brand-text small { display: none; }
  .site-nav, .site-nav-group, .site-nav-actions { gap: 10px; }
  .site-nav a { font-size: .78rem; }
  .site-nav .nav-action { padding-inline: 9px; font-size: .78rem; }
}
@media (max-width: 359px) {
  .site-header .brand-logo, .site-header .brand img { width: 56px; height: 42px; }
  .site-header .brand-text strong { font-size: .875rem; }
}
@media (max-width: 299px) { .site-nav-actions { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .nav-toggle span { transition: none; } }
