/* H30 v0.8.7: consolidated contact links in the existing header. */
.site-header--organized [hidden] { display: none !important; }
.primary-nav--organized { display: block; }
.primary-nav--organized .header-links {
  display: flex; align-items: center; gap: calc(24 * var(--u)); height: 100%;
  list-style: none; margin: 0; padding: 0;
}
.header-nav-item { height: 100%; display: flex; align-items: center; }
.header-top-link, .header-menu-trigger {
  display: inline-flex; align-items: center; gap: calc(4 * var(--u)); position: relative;
  height: 100%; padding: 0; border: 0; background: none; color: var(--ink);
  font: inherit; white-space: nowrap; text-align: left; border-radius: 0;
}
.header-menu-trigger .nav-chevron { width: calc(11 * var(--u)); height: calc(11 * var(--u)); transition: transform .16s ease; }
.header-menu-trigger[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.header-top-link[aria-current="page"]::after,
.is-active-trail > .header-menu-trigger::after,
.is-active-trail > .header-menu-fallback::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(5 * var(--u)); height: 2px; background: var(--orange);
}
.header-menu-trigger:hover, .header-menu-trigger[aria-expanded="true"] { color: #d44b12; }
.header-mobile-cta { display: none; }
.nav-panel {
  position: absolute; top: calc(100% + 13 * var(--u)); left: 0; z-index: 55;
  background: #fff; color: var(--ink); border-top: 2px solid var(--orange);
  box-shadow: 0 16px 32px rgba(4,29,46,.16); white-space: normal; border-radius: 0 0 2px 2px;
  max-height: min(560px,calc(100dvh - 165px)); overflow-y: auto; overscroll-behavior: contain;
}
.nav-panel--services { width: min(850px,calc(100vw - 316 * var(--u))); }
.nav-panel--areas { width: min(440px,calc(100vw - 316 * var(--u))); left: calc(196 * var(--u)); }
.nav-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px 20px; border-bottom: 1px solid #e9edf0; }
.nav-panel-eyebrow { color: #077da7; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .13em; }
.nav-panel a { color: var(--ink); }
.nav-panel a:hover { color: #bd410d; }
.nav-panel .nav-view-all, .nav-panel .nav-consultation-link { display: inline-flex; align-items: center; gap: 10px; color: #b7440d; font-size: 12px; font-weight: 600; text-underline-offset: 4px; }
.nav-panel .nav-view-all:hover, .nav-panel .nav-consultation-link:hover { text-decoration: underline; }
.nav-panel a .icon { width: 15px; height: 15px; }
.nav-service-columns { display: grid; grid-template-columns: 1fr 1.12fr 1.1fr; padding: 24px 26px 26px; }
.nav-service-group { padding: 0 22px; min-width: 0; }
.nav-service-group:first-child { padding-left: 0; }
.nav-service-group:last-child { padding-right: 0; }
.nav-service-group + .nav-service-group { border-left: 1px solid #e4e9ed; }
.nav-group-desktop-title { font-size: 15px; font-weight: 600; line-height: 1.45; margin-bottom: 12px; }
.nav-group-overview { display: inline-block; }
.nav-group-desktop-title a { text-decoration: underline; text-decoration-color: #c4d1da; text-underline-offset: 5px; }
.nav-group-links { list-style: none; padding: 0; margin: 0; }
.nav-group-links li + li { margin-top: 2px; }
.nav-group-links a { display: block; padding: 9px 0; font-size: 13px; line-height: 1.5; font-weight: 400; text-underline-offset: 4px; }
.nav-group-links a:hover { text-decoration: underline; }
.nav-panel a[aria-current="page"] { color: #b7440d; font-weight: 600; }
.nav-group-trigger, .nav-mobile-overview { display: none; }
.nav-panel-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 26px; background: #f7f6f3; font-size: 11px; line-height: 1.5; color: #50616e; }
.nav-area-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 28px; margin: 0; padding: 16px 26px 21px; list-style: none; }
.nav-area-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; font-size: 14px; font-weight: 500; }
.nav-area-links a .icon { width: 12px; height: 12px; color: #a4b1ba; }
.nav-area-links a:hover .icon { color: var(--orange); }
.site-header--organized :is(a,button):focus-visible { outline: 2px solid #b7440d; outline-offset: 4px; }
/* Short desktop windows can scroll the open panel rather than lose links. */
@media(min-width:1024px) and (max-height:650px) {
  .nav-panel { max-height: calc(100dvh - 140 * var(--u)); }
}
@media(max-width:1023px) {
  .site-header--organized { --mobile-header-height: 90px; }
  .site-header--organized .nav-toggle { display: none !important; }
  .site-header--organized.nav-ready .nav-toggle { display: block !important; min-width: 44px; width: 44px; height: 44px; }
  .site-header--organized .primary-nav--organized {
    top: var(--mobile-header-height); left: 0; right: 0; width: 100%; height: auto;
    padding: 10px 24px 22px; box-shadow: 0 18px 28px #082b4322; font-size: 15px;
    max-height: calc(100dvh - var(--mobile-header-height) - 12px); overflow-y: auto; overscroll-behavior: contain;
  }
  .site-header--organized.nav-ready .primary-nav--organized { display: none; }
  .site-header--organized.nav-ready .primary-nav--organized.is-open { display: block; }
  .primary-nav--organized .header-links { display: block; height: auto; }
  .header-nav-item { display: block; height: auto; border-bottom: 1px solid #e9edf0; }
  .header-top-link, .header-menu-trigger { min-height: 48px; width: 100%; justify-content: space-between; padding: 12px 2px; }
  .header-menu-trigger .nav-chevron { width: 16px; height: 16px; }
  .header-top-link[aria-current="page"]::after, .is-active-trail > .header-menu-trigger::after, .is-active-trail > .header-menu-fallback::after { display: none; }
  .header-top-link[aria-current="page"], .is-active-trail > .header-menu-trigger { color: #b7440d; }
  .nav-panel { position: static; width: 100%; max-height: none; overflow: visible; border: 0; border-radius: 0; box-shadow: none; }
  .nav-panel-top { padding: 5px 2px 15px; gap: 10px; }
  .nav-panel-eyebrow { font-size: 9px; letter-spacing: .07em; }
  .nav-panel .nav-view-all, .nav-panel .nav-consultation-link { font-size: 11px; min-height: 34px; }
  .nav-service-columns { display: block; padding: 0; }
  .nav-service-group { padding: 0 !important; border-left: none !important; border-bottom: 1px solid #edf0f2; }
  .nav-group-desktop-title { display: none; }
  .nav-group-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; border: 0; background: #fff; padding: 12px 10px; font-size: 14px; font-weight: 600; }
  .nav-group-trigger .icon { width: 14px; height: 14px; transition: transform .16s ease; }
  .nav-group-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .nav-group-links { padding: 0 12px 14px 18px; border-left: 2px solid #e7eef1; margin: 0 10px 10px; }
  .nav-group-links li + li { margin-top: 0; }
  .nav-group-links a { display: flex; align-items: center; min-height: 44px; font-size: 13px; line-height: 1.55; padding: 9px 0; }
  .nav-mobile-overview { display: block; }
  .nav-mobile-overview a { color: #067aa5; font-weight: 500; }
  .nav-panel-bottom { padding: 12px; margin: 8px 0 14px; }
  .nav-panel-bottom > span { display: none; }
  .nav-area-links { padding: 8px 2px 12px; gap: 0 22px; }
  .nav-area-links a { min-height: 46px; font-size: 14px; }
  .header-mobile-cta { display: block; padding-top: 18px; }
  .header-mobile-cta .button { min-height: 46px; width: 100%; font-size: 11px; }
  /* Without JavaScript, show ordinary hub links. Nothing depends on a hover. */
  .site-header--organized:not(.nav-ready) .header-inner { height: auto; display: grid; grid-template-columns: 1fr auto; padding-top: 4px; padding-bottom: 16px; }
  .site-header--organized:not(.nav-ready) .primary-nav--organized { display: block; position: static; grid-column: 1/-1; grid-row: 2; max-height: none; box-shadow: none; padding: 6px 0; }
  .site-header--organized:not(.nav-ready) .header-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .site-header--organized:not(.nav-ready) .header-mobile-cta { display: none; }
}
@media(max-width:760px) {
  .site-header--organized { --mobile-header-height: 86px; }
  .site-header--organized .primary-nav--organized { padding-left: 24px; padding-right: 24px; }
}
@media(max-width:370px) {
  .site-header--organized .header-inner { gap: 4px; }
  .site-header--organized .primary-nav--organized { padding-left: 20px; padding-right: 20px; }
}
@media(prefers-reduced-motion:reduce) {
  .site-header--organized * { transition: none !important; scroll-behavior: auto; }
}

/* The mobile toggle also communicates its open state visually. */
@media(max-width:1023px) {
 .nav-ready .nav-toggle span { transition: transform .16s ease, opacity .16s ease; }
 .nav-ready .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
 .nav-ready .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
 .nav-ready .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}


/* v0.8.7 — compact sticky white header, non-sticky navy contact strip.
   Header height stays constant during scrolling: no shrinking/reflow jump.
   Only navigation and root anchor offset rules are changed. */
:root {
  --h30-nav-height: 100px;
  --h30-header-bottom: 134px;
  --h30-sticky-height: 100px;
}
html { scroll-padding-top: calc(var(--h30-sticky-height) + 16px); }
.h30-contact-bar {
  background: var(--navy); color: #fff; position: relative; z-index: 51;
  font-size: 12px; font-weight: 500; line-height: 1.5;
}
.h30-contact-bar [hidden] { display: none !important; }
.h30-bar-inner {
  max-width: var(--page); margin: 0 auto; min-height: 34px;
  padding: 5px clamp(30px,4.6vw,70px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.h30-bar-message { margin: 0; letter-spacing: .02em; }
.h30-bar-separator { padding: 0 3px; }
.h30-bar-contact {
  display: inline-flex; align-items: center; gap: 10px; color: #fff;
  min-height: 24px; font-weight: 600; white-space: nowrap; text-underline-offset: 4px;
}
.h30-bar-contact .icon { width: 14px; height: 14px; }
.h30-bar-contact:hover { text-decoration: underline; }
.h30-contact-bar a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.site-header--sticky {
  position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid #e3e9ed; box-shadow: none;
  transition: box-shadow .18s ease;
}
.site-header--sticky.is-stuck { box-shadow: 0 5px 18px #082b4314; }
.site-header--sticky .header-inner {
  height: var(--h30-nav-height); max-width: var(--page); margin: 0 auto;
  display: flex; align-items: center; gap: clamp(20px,2vw,30px);
  padding: 0 clamp(30px,4.6vw,70px); position: relative;
}
.site-header--sticky .brand--client-logo {
  position: static; display: block; flex: 0 0 auto; margin: 0;
  width: 128px; height: 89px; aspect-ratio: 285 / 198;
}
.site-header--sticky .brand img { width: 100%; height: 100%; object-fit: contain; }
.site-header--sticky .primary-nav--organized {
  position: static; display: block; height: 100%; margin-left: auto;
  width: auto; font-size: 13px; padding: 0; white-space: nowrap;
}
.site-header--sticky .header-links { gap: clamp(17px,1.6vw,24px); }
.site-header--sticky .header-top-link, .site-header--sticky .header-menu-trigger {
  color: var(--ink); font-size: inherit; font-weight: 500;
}
.site-header--sticky .header-top-link:hover,
.site-header--sticky .header-menu-trigger:hover,
.site-header--sticky .header-menu-trigger[aria-expanded="true"] { color: #b7440d; }
.site-header--sticky .header-top-link[aria-current="page"]::after,
.site-header--sticky .is-active-trail > .header-menu-trigger::after,
.site-header--sticky .is-active-trail > .header-menu-fallback::after { bottom: 21px; }
.site-header--sticky .header-actions {
  display: flex; align-items: center; gap: 18px; flex: 0 0 auto;
}
.site-header--sticky .header-cta {
  position: static; width: auto; min-height: 46px; margin: 0;
  padding: 0 20px; font-size: 11px; line-height: 1.4; white-space: nowrap;
}
.header-quick-contact {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; font-size: 12px; line-height: 1.4; font-weight: 600;
  white-space: nowrap; text-underline-offset: 4px;
}
.header-quick-contact:hover { color: #b7440d; text-decoration: underline; }
.header-quick-contact .icon { width: 17px; height: 17px; }
.header-contact-short { display: none; }
.site-header--sticky .nav-panel {
  top: 100%; left: auto; right: clamp(30px,4.6vw,70px);
  width: min(850px,calc(100vw - 60px));
  max-height: min(560px,calc(100dvh - var(--h30-header-bottom) - 12px));
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
}
.site-header--sticky .nav-panel--areas { width: min(440px,calc(100vw - 60px)); right: clamp(210px,20vw,315px); }
.site-header--sticky .nav-toggle { display: none !important; }
.site-header--sticky .nav-toggle-label { font-size: 10px; line-height: 1; font-weight: 500; }
@media (min-width:1537px) {
  .site-header--sticky .header-cta { left: auto; right: auto; }
}
@media (min-width:1024px) and (max-width:1279px) {
  :root { --h30-nav-height: 88px; --h30-sticky-height: 88px; --h30-header-bottom: 122px; }
  .site-header--sticky .header-inner { gap: 18px; padding-inline: 30px; }
  .site-header--sticky .brand--client-logo { width: 108px; height: 75px; }
  .site-header--sticky .primary-nav--organized { font-size: 12px; }
  .site-header--sticky .header-links { gap: 16px; }
  .site-header--sticky .header-actions { gap: 12px; }
  .site-header--sticky .header-cta { min-height: 44px; font-size: 10px; padding-inline: 13px; }
  .site-header--sticky .header-top-link[aria-current="page"]::after,
  .site-header--sticky .is-active-trail > .header-menu-trigger::after,
  .site-header--sticky .is-active-trail > .header-menu-fallback::after { bottom: 17px; }
}
@media (min-width:1024px) and (max-width:1399px) {
  .header-contact-full { display: none; }
  .header-contact-short { display: inline; }
}
@media (max-width:1023px) {
  :root { --h30-nav-height: 76px; --h30-sticky-height: 76px; --h30-header-bottom: 110px; }
  .h30-bar-inner { padding-inline: 26px; }
  .site-header--sticky .header-inner { height: var(--h30-nav-height); padding: 0 26px; gap: 20px; }
  .site-header--sticky .brand--client-logo { width: 96px; height: 66.7px; margin-right: auto; }
  .site-header--sticky .header-actions { gap: 18px; }
  .site-header--sticky .header-cta { display: none; }
  .site-header--sticky .header-contact-full { display: none; }
  .site-header--sticky .header-contact-short { display: inline; }
  .header-quick-contact { font-size: 13px; min-width: 62px; }
  .site-header--sticky.nav-ready .nav-toggle {
    display: flex !important; flex-direction: column; align-items: center; justify-content: center;
    gap: 7px; min-width: 46px; width: 46px; height: 48px; border: 0; background: transparent;
    padding: 5px; color: var(--ink); order: 0;
  }
  .site-header--sticky .nav-toggle span { margin: 0; padding: 0; background: none; transform: none !important; opacity: 1 !important; }
  .site-header--sticky .nav-toggle .nav-toggle-bars { width: 22px; height: 16px; display: block; position: relative; }
  .site-header--sticky .nav-toggle-bars i {
    display: block; position: absolute; left: 0; width: 22px; height: 1.5px;
    background: currentColor; transition: transform .16s ease, opacity .16s ease;
  }
  .site-header--sticky .nav-toggle-bars i:nth-child(1) { top: 0; }
  .site-header--sticky .nav-toggle-bars i:nth-child(2) { top: 7px; }
  .site-header--sticky .nav-toggle-bars i:nth-child(3) { top: 14px; }
  .site-header--sticky .nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header--sticky .nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
  .site-header--sticky .nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-header--sticky .nav-toggle .nav-toggle-label { display: block; width: auto; height: auto; }
  .site-header--sticky .primary-nav--organized {
    position: absolute; top: 100%; left: 0; right: 0; width: 100%; height: auto; margin: 0;
    padding: 10px 24px calc(22px + env(safe-area-inset-bottom,0px)); font-size: 15px;
    max-height: calc(100dvh - var(--h30-header-bottom) - 10px);
    overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  }
  .site-header--sticky.nav-ready .primary-nav--organized { display: none; }
  .site-header--sticky.nav-ready .primary-nav--organized.is-open { display: block; }
  .site-header--sticky .header-links { gap: 0; }
  .site-header--sticky .header-top-link, .site-header--sticky .header-menu-trigger { font-size: 15px; }
  .site-header--sticky .nav-panel {
    position: static; max-height: none; height: auto; width: 100%;
    overflow: visible; box-shadow: none; padding: 0;
  }
  .site-header--sticky .nav-panel--areas { width: 100%; }
  .site-header--sticky .header-top-link[aria-current="page"]::after,
  .site-header--sticky .is-active-trail > .header-menu-trigger::after,
  .site-header--sticky .is-active-trail > .header-menu-fallback::after { display: none; }
  /* No JavaScript: ordinary hub links stay visible and the taller header is not sticky. */
  .site-header--sticky:not(.nav-ready) { position: relative; }
  .site-header--sticky:not(.nav-ready) .header-inner { height: auto; display: grid; grid-template-columns: 1fr auto; padding: 4px 24px 16px; }
  .site-header--sticky:not(.nav-ready) .header-actions { grid-column: 2; grid-row: 1; }
  .site-header--sticky:not(.nav-ready) .primary-nav--organized { display: block; grid-column: 1 / -1; grid-row: 2; position: static; max-height: none; width: 100%; margin: 0; padding: 6px 0; }
}
@media (max-width:760px) {
  :root { --h30-nav-height: 72px; --h30-sticky-height: 72px; --h30-header-bottom: 104px; }
  .h30-contact-bar { font-size: 10px; }
  .h30-bar-inner { min-height: 32px; padding: 5px 20px; display: block; }
  .h30-bar-message { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; letter-spacing: 0; }
  .h30-bar-separator, .h30-bar-contact { display: none; }
  .h30-bar-area { font-size: 9.5px; font-weight: 400; }
  .site-header--sticky .header-inner { padding-inline: 20px; }
  .site-header--sticky .brand--client-logo { width: 92px; height: 64px; }
  .site-header--sticky .header-actions { gap: 14px; }
  .site-header--sticky .primary-nav--organized { padding-inline: 24px; }
}
@media (max-width:359px) {
  .h30-bar-inner { padding-inline: 16px; }
  .h30-bar-area { font-size: 9px; }
  .site-header--sticky .header-inner { padding-inline: 16px; }
  .site-header--sticky .primary-nav--organized { padding-inline: 20px; }
}
@media (max-height:320px) {
  .site-header--sticky { position: relative; }
}
@media print {
  .h30-contact-bar, .site-header--sticky { display: none; }
  html { scroll-padding-top: 0; }
}
@media (prefers-reduced-motion:reduce) {
  .site-header--sticky, .site-header--sticky * { transition: none !important; }
}

/* Contact number is available in source HTML, even without JavaScript. */
.header-quick-contact[href^="tel:"] { color: var(--navy); }
.header-quick-contact[href^="tel:"]:hover { color: #b7440d; }
.h30-bar-contact[href^="tel:"] { font-variant-numeric: tabular-nums; }
/* On wider phones and tablets show the real number, not only the word Call. */
@media (min-width:390px) and (max-width:1023px) {
  .site-header--sticky .header-contact-short { display: none; }
  .site-header--sticky .header-contact-full { display: inline; }
  .site-header--sticky .header-actions { gap: 10px; }
  .site-header--sticky .header-inner { gap: 10px; }
  .site-header--sticky .header-quick-contact { min-width: 0; font-size: 12px; }
}

/* v0.8.7: visible telephone pictogram only in the white sticky header. */
.site-header--sticky .header-quick-contact { gap:8px; }
.site-header--sticky .header-phone-icon { display:block; width:17px; height:17px; flex:0 0 auto; }
@media (min-width:1024px) and (max-width:1279px) { .site-header--sticky .header-quick-contact { gap:6px; } }
@media (max-width:1023px) { .site-header--sticky .header-phone-icon { width:17px; height:17px; } }
