/* Shared by every page: the top menu and the footer. */

/* ---------------- top menu ---------------- */
.site-nav { position: relative; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; text-align: left; }
.site-nav .brand-link { display: inline-flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; }
.site-nav .brand-link svg { width: 22px; height: 22px; flex: none; }
.site-nav .brand-link { min-width: 0; }
.site-nav .brand-link span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nav-links { display: none; align-items: center; gap: 4px; }
.dd { position: relative; }
.dd > summary, .m-menu > summary { list-style: none; cursor: pointer; user-select: none; }
.dd > summary::-webkit-details-marker, .m-menu > summary::-webkit-details-marker { display: none; }
.dd > summary {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px;
  color: #dbe7f2; font-size: 14.5px; font-weight: 500;
}
.dd > summary:hover, .dd[open] > summary { background: rgba(255, 255, 255, 0.1); color: #fff; }
.dd > summary::after {
  content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform 0.15s ease;
}
.dd[open] > summary::after { transform: translateY(1px) rotate(225deg); }
.dd-panel {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; padding: 8px;
  background: #fff; border-radius: 14px;
  box-shadow: 0 24px 60px -20px rgba(9, 18, 30, 0.5), 0 0 0 1px rgba(22, 50, 79, 0.08);
}
.dd-panel a, .m-panel a { display: block; padding: 9px 12px; border-radius: 8px; color: #0d1f33; text-decoration: none; font-size: 14.5px; font-weight: 500; line-height: 1.35; }
.dd-panel a:hover, .m-panel a:hover { background: #f2f6fa; color: #214263; }
.dd-panel a[aria-current="page"], .m-panel a[aria-current="page"] { background: #f2f6fa; font-weight: 700; }
.dd-panel a.all { margin-top: 4px; padding-top: 11px; border-top: 1px solid rgba(22, 50, 79, 0.1); border-radius: 0 0 8px 8px; color: #29537a; font-weight: 600; }
.nav-call {
  display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.nav-call svg { width: 16px; height: 16px; }
.nav-call:hover { background: rgba(255, 255, 255, 0.1); }
.nav-dir {
  display: inline-flex; align-items: center; gap: 7px; margin-left: 8px; padding: 8px 16px; border-radius: 999px;
  background: #fff; color: #16324f; text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.nav-dir svg { width: 16px; height: 16px; }
.nav-dir:hover { background: #dbe7f2; }
.nav-dir + .nav-call { margin-left: 6px; }
/* phones: a one-tap directions button beside the Menu button */
.m-dir {
  display: inline-flex; align-items: center; justify-content: center; flex: none; margin-left: auto;
  width: 40px; height: 40px; border-radius: 999px; background: #fff; color: #16324f;
}
.m-dir svg { width: 19px; height: 19px; }
.m-dir:hover, .m-dir:active { background: #dbe7f2; }
.m-dir + .m-menu { margin-left: -6px; }

/* phone menu */
.m-menu > summary {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; font-size: 14px; font-weight: 600;
}
.m-menu > summary svg { width: 18px; height: 18px; }
.m-menu[open] > summary { background: rgba(255, 255, 255, 0.14); }
.m-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 2px); padding: 14px 10px; max-height: calc(100vh - 96px); overflow-y: auto;
  background: #fff; border-radius: 18px; box-shadow: 0 30px 70px -20px rgba(9, 18, 30, 0.55), 0 0 0 1px rgba(22, 50, 79, 0.08);
}
.m-panel a { font-size: 15.5px; padding: 10px 12px; }
.m-group + .m-group { margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(22, 50, 79, 0.1); }
.m-h { margin: 0 0 4px 12px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #386a96; }
.m-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; padding: 0 2px; }
.m-panel .m-actions a { text-align: center; padding: 12px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.m-panel .m-actions .m-call { background: #16324f; color: #fff; }
.m-panel .m-actions .m-wa { background: #23c05f; color: #fff; }
.m-panel .m-actions .m-dir-wide { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid #16324f; color: #16324f; }
.m-panel .m-actions .m-dir-wide svg { width: 17px; height: 17px; }

@media (min-width: 760px) {
  .nav-links { display: flex; }
  .m-menu, .m-dir { display: none; }
}
/* tablets, and the narrow column on article pages: show the phone as an icon so the bar stays on one line */
@media (min-width: 760px) and (max-width: 1100px) {
  .nav-call { font-size: 0; gap: 0; padding: 8px 11px; }
  .nav-call svg { width: 17px; height: 17px; }
}
.site-bar .narrow .nav-call { font-size: 0; gap: 0; padding: 8px 11px; }
.site-bar .narrow .nav-call svg { width: 17px; height: 17px; }
/* most phones: the Menu button shows only its icon, to make room for the directions pin */
@media (max-width: 419px) {
  .m-menu > summary { justify-content: center; width: 40px; height: 40px; padding: 0; gap: 0; font-size: 0; }
}
@media (max-width: 359px) {
  .site-nav { gap: 10px; }
  .site-nav .brand-link { font-size: 14px; }
  .site-nav .brand-link svg { display: none; }
}

/* ---------------- footer ---------------- */
.site-footer { background: #0d1f33; color: #8aafcf; padding: 56px 0 120px; font-size: 14px; line-height: 1.7; text-align: left; }
@media (min-width: 760px) { .site-footer { padding-bottom: 36px; } }
.ft-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 620px) { .ft-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .ft-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; } }
.site-footer .brand-link { display: inline-flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15.5px; }
.site-footer .brand-link svg { width: 22px; height: 22px; }
.site-footer p { margin: 10px 0 0; }
.site-footer a { color: #dbe7f2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.ft-h { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #b8cfe4; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 7px; }
.site-footer .ft-bottom { margin: 36px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; }

/* ---------------- sticky top bar ---------------- */
:root { --bar-h: 68px; }
.site-bar {
  position: sticky; top: 0; z-index: 70;
  height: var(--bar-h); margin-bottom: calc(-1 * var(--bar-h));   /* lies over the top of the hero */
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.site-bar .site-nav { height: var(--bar-h); padding: 0; }
.site-bar.scrolled {
  background-color: rgba(13, 31, 51, 0.94);
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 30px -16px rgba(0, 0, 0, 0.55);
}
.site-bar + .hero { padding-top: var(--bar-h); }
/* homepage: the whole bar stays hidden over the hero and slides in once the hero has scrolled away */
.site-bar.bar-auto { opacity: 0; visibility: hidden; transform: translateY(-100%); transition: opacity 0.25s ease, transform 0.3s ease, visibility 0s linear 0.3s, background-color 0.25s ease; }
.site-bar.bar-auto.past-hero { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s ease, transform 0.3s ease, visibility 0s, background-color 0.25s ease; }
.site-bar.bar-auto + .hero { padding-top: 0; }
/* jump links land below the bar, not under it */
[id] { scroll-margin-top: calc(var(--bar-h) + 12px); }
@media (prefers-reduced-motion: reduce) {
  .site-bar, .site-bar.bar-auto, .site-bar.bar-auto.past-hero { transition: none; }
}
