/* Shared site header (2026-11-18). One header on every marketing page, injected by
   iqinstalls-internal/apply-header.js between <!-- SITE-HEADER --> markers.
   Old pages still carry element-level `nav{...}` rules, so every nav here resets
   position/padding/background explicitly. */
#site-header{position:sticky;top:0;z-index:200;background:#fff;border-bottom:1px solid #cde0ee;font-family:'Nunito',system-ui,sans-serif;}
#site-header.scrolled{box-shadow:0 2px 18px rgba(15,28,46,.08);}
#site-header *{box-sizing:border-box;}
.sh-bar{max-width:1240px;margin:0 auto;padding:10px 24px;display:flex;align-items:center;gap:20px;min-height:66px;}
.sh-logo{display:flex;align-items:center;flex-shrink:0;margin-right:8px;}
.sh-logo img{height:34px;width:auto;display:block;}

#site-header nav.sh-links,nav.sh-sticky{position:static;top:auto;left:auto;right:auto;z-index:auto;padding:0;margin:0;background:none;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;gap:0;justify-content:flex-start;}
#site-header nav.sh-links{display:flex;align-items:center;gap:4px;flex:1;}
.sh-item{position:relative;}
.sh-top{display:flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border:0;background:none;font:inherit;font-size:.95rem;font-weight:700;color:#0f1c2e;text-decoration:none;cursor:pointer;border-radius:8px;white-space:nowrap;}
.sh-top:hover,.sh-top[aria-expanded="true"]{color:#1a5fa8;background:#eaf2f8;}
.sh-top[aria-current="page"]{color:#1a5fa8;}
.sh-top svg{transition:transform .15s;}
.sh-top[aria-expanded="true"] svg{transform:rotate(180deg);}

.sh-menu{display:none;position:absolute;top:calc(100% + 10px);left:0;background:#fff;border:1px solid #cde0ee;border-radius:14px;box-shadow:0 18px 40px rgba(15,28,46,.14);padding:22px;z-index:210;}
.sh-menu.open{display:grid;}
.sh-menu-wide{grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:24px;width:min(760px,calc(100vw - 48px));}
.sh-menu-list{grid-template-columns:1fr;gap:2px;width:300px;}
.sh-label{display:block;font-size:.72rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#4f6676;margin-bottom:10px;}
.sh-tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;}
.sh-tiles.four{grid-template-columns:repeat(4,minmax(0,1fr));}
.sh-tile{display:flex;flex-direction:column;gap:6px;text-decoration:none;color:#0f1c2e;font-weight:800;font-size:.85rem;line-height:1.25;}
.sh-tile img{width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:10px;display:block;transition:transform .15s;}
.sh-tile:hover{color:#1a5fa8;}
.sh-tile:hover img{transform:translateY(-2px);}
.sh-all{display:inline-block;margin-top:12px;font-weight:800;font-size:.9rem;color:#1a5fa8;text-decoration:none;}
.sh-side{border-left:1px solid #cde0ee;padding-left:22px;display:flex;flex-direction:column;}
.sh-link{display:flex;align-items:center;min-height:40px;padding:0 8px;margin:0 -8px;border-radius:8px;font-weight:700;font-size:.92rem;color:#0f1c2e;text-decoration:none;}
.sh-link:hover{background:#eaf2f8;color:#1a5fa8;}
.sh-side .sh-label+.sh-link{margin-top:0;}
.sh-side .sh-label:not(:first-child){margin-top:14px;}

.sh-phone{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 6px;font-weight:800;font-size:.95rem;color:#0f1c2e;text-decoration:none;white-space:nowrap;}
.sh-phone:hover{color:#1a5fa8;}
.sh-book{display:flex;align-items:center;min-height:44px;padding:0 18px;background:#1a5fa8;color:#fff;border-radius:8px;font-weight:800;font-size:.92rem;text-decoration:none;white-space:nowrap;}
.sh-book:hover{background:#2e7bc4;color:#fff;}
.sh-burger{display:none;width:44px;height:44px;border:1px solid #cde0ee;border-radius:8px;background:#fff;color:#0f1c2e;cursor:pointer;align-items:center;justify-content:center;flex-shrink:0;}
.sh-panel-cta{display:none;}
nav.sh-sticky{display:none;}

/* Tablet and phone: links move into a slide-down panel with accordion menus. */
@media (max-width:1099px){
  .sh-bar{gap:8px;padding:8px 16px;min-height:60px;}
  .sh-logo{margin-right:auto;}
  .sh-burger{display:flex;}
  .sh-phone .sh-phone-num{display:none;}
  .sh-phone{width:44px;justify-content:center;padding:0;}
  #site-header nav.sh-links{display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;align-items:stretch;gap:0;background:#fff;border-bottom:1px solid #cde0ee;box-shadow:0 18px 30px rgba(15,28,46,.12);padding:6px 16px 16px;max-height:calc(100vh - 60px);overflow-y:auto;}
  #site-header.menu-open nav.sh-links{display:flex;}
  .sh-item{border-bottom:1px solid #cde0ee;}
  .sh-links>.sh-top{border-bottom:1px solid #cde0ee;border-radius:0;}
  .sh-top{width:100%;justify-content:space-between;min-height:54px;padding:0 4px;font-size:1.05rem;border-radius:0;}
  .sh-top:hover,.sh-top[aria-expanded="true"]{background:none;}
  .sh-menu{position:static;box-shadow:none;border:0;border-radius:0;padding:4px 4px 16px;width:auto;}
  .sh-menu-wide{grid-template-columns:1fr;gap:12px;width:auto;}
  .sh-menu-list{width:auto;}
  .sh-tiles,.sh-tiles.four{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  .sh-tile{flex-direction:row;align-items:center;gap:10px;min-height:48px;font-size:.92rem;}
  .sh-tile img{width:44px;height:44px;flex-shrink:0;border-radius:8px;}
  .sh-side{border-left:0;padding-left:0;}
  .sh-panel-cta{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px;}
  .sh-panel-cta a{display:flex;align-items:center;justify-content:center;min-height:48px;border-radius:8px;font-weight:800;text-decoration:none;border:2px solid #1e3a5f;color:#0f1c2e;}
  .sh-panel-cta a.sh-panel-book{grid-column:1 / -1;background:#1a5fa8;border-color:#1a5fa8;color:#fff;}
}
/* Phone: Book moves to a sticky Call / Text / Book bar along the bottom. */
@media (max-width:599px){
  .sh-bar .sh-book{display:none;}
  nav.sh-sticky{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;position:fixed;left:0;right:0;bottom:0;z-index:190;background:#fff;border-top:1px solid #cde0ee;box-shadow:0 -6px 18px rgba(15,28,46,.08);padding:8px 12px calc(8px + env(safe-area-inset-bottom));font-family:'Nunito',system-ui,sans-serif;}
  nav.sh-sticky a{display:flex;align-items:center;justify-content:center;gap:6px;min-height:48px;border-radius:8px;font-weight:800;font-size:.95rem;text-decoration:none;border:2px solid #1e3a5f;color:#0f1c2e;}
  nav.sh-sticky a.sh-sticky-book{background:#1a5fa8;border-color:#1a5fa8;color:#fff;}
  body{padding-bottom:76px;}
  html.sh-menu-open nav.sh-sticky{display:none;}
}
