/* =================================================================
   Fortify Security header
   Desktop: 1200px and up. Mobile and tablet: below 1200px.
   To change the breakpoint, search this file for "1200" and "1199.98".
   ================================================================= */

.fxh {
  /* Brand tokens */
  --fxh-navy: #243241;
  --fxh-navy-deep: #1B2632;
  --fxh-ink: #13202B;
  --fxh-teal: #64BEAB;
  --fxh-teal-hover: #78CBB9;
  --fxh-teal-text: #3E8E7C;
  --fxh-white: #ffffff;
  --fxh-muted: #C9D3DC;
  --fxh-muted-2: #9FAEBC;
  --fxh-rule: #E3E8ED;
  --fxh-body: #5D6D7C;

  /* Layout tokens */
  --fxh-h: 88px;           /* desktop bar height */
  --fxh-h-m: 68px;         /* mobile bar height */
  --fxh-max: 1440px;       /* max content width inside the bar */
  --fxh-pad: 48px;         /* side padding */
  --fxh-ease: cubic-bezier(.65, 0, .35, 1);

  /* Bar colors (solid by default) */
  --fxh-bar-bg: var(--fxh-navy);
  --fxh-bar-line: rgba(255, 255, 255, .08);

  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 990;
  color: var(--fxh-white);
  font-family: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* Resets use :where() so they never outweigh the component styles below */
:where(.fxh) *, :where(.fxh) *::before, :where(.fxh) *::after { box-sizing: border-box; }
:where(.fxh) ul { list-style: none; margin: 0; padding: 0; }
:where(.fxh) p { margin: 0; }
:where(.fxh) a, :where(.fxh) a:hover { text-decoration: none; }
:where(.fxh) button { font: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; color: inherit; }
:where(.fxh) svg { display: block; flex-shrink: 0; }
.fxh :focus-visible { outline: 2px solid var(--fxh-teal); outline-offset: 3px; border-radius: 4px; }

/* Transparent mode over hero sections (page has a section with class fx-overlay) */
body:has(.fx-overlay) .fxh,
.fxh-overlay-page .fxh {
  --fxh-bar-bg: rgba(17, 26, 35, .28);
  --fxh-bar-line: rgba(255, 255, 255, .12);
}
/* Goes solid once the page scrolls or the mobile menu opens */
.fxh.is-scrolled,
.fxh.is-menu-open { --fxh-bar-bg: var(--fxh-navy) !important; --fxh-bar-line: rgba(255, 255, 255, .08) !important; }

.fxh-bar {
  background: var(--fxh-bar-bg);
  border-bottom: 1px solid var(--fxh-bar-line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .3s ease, border-color .3s ease;
}
.fxh-inner {
  max-width: var(--fxh-max);
  height: var(--fxh-h);
  margin: 0 auto;
  padding: 0 var(--fxh-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

/* Logo */
.fxh-logo { display: flex; align-items: center; flex-shrink: 0; }
.fxh-logo img { display: block; height: 42px; width: auto; max-width: none; }

/* Spacer keeps page content below the fixed bar (hidden on hero pages) */
.fxh-spacer { height: var(--fxh-h); }
body:has(.fx-overlay) .fxh-spacer,
.fxh-overlay-page .fxh-spacer { display: none; }

/* -----------------------------------------------------------------
   Shared: teal underline sweep (nav, phone number, tile titles)
   ----------------------------------------------------------------- */
.fxh-link-text, .fxh-phone-num, .fxh-tile-title { position: relative; }
.fxh-link-text::after, .fxh-phone-num::after, .fxh-tile-title::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; border-radius: 2px;
  background: var(--fxh-teal);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--fxh-ease);
}
.fxh-phone-num::after, .fxh-tile-title::after { bottom: -3px; }

/* -----------------------------------------------------------------
   Buttons (Book a Site Walk style)
   ----------------------------------------------------------------- */
.fxh-btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 48px; padding: 0 8px 0 20px;
  border-radius: 10px;
  background: var(--fxh-teal); color: var(--fxh-ink);
  font-weight: 800; font-size: 15px; line-height: 1; white-space: nowrap;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.fxh-btn:hover, .fxh-btn:focus-visible { background: var(--fxh-teal-hover); color: var(--fxh-ink); box-shadow: 0 8px 24px rgba(100, 190, 171, .3); }
.fxh-chip {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--fxh-navy); color: var(--fxh-teal);
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
}
.fxh-chip svg { transition: transform .3s var(--fxh-ease); }
.fxh-btn:hover .fxh-chip svg { transform: translateX(3px); }
.fxh-btn--sm { height: 42px; padding: 0 6px 0 16px; font-size: 14px; font-weight: 700; gap: 10px; border-radius: 8px; }
.fxh-btn--sm .fxh-chip { width: 30px; height: 30px; border-radius: 6px; }
.fxh-btn--block { width: 100%; justify-content: space-between; height: 56px; font-size: 16px; padding: 0 10px 0 22px; }
.fxh-btn--block .fxh-chip { width: 38px; height: 38px; }

/* =================================================================
   DESKTOP (1200px and up)
   ================================================================= */
.fxh-menu { display: flex; align-items: stretch; height: var(--fxh-h); gap: 2px; }
.fxh-item { display: flex; align-items: center; }
.fxh-link {
  display: inline-flex; align-items: center; gap: 6px;
  height: var(--fxh-h); padding: 0 14px;
  color: var(--fxh-muted);
  font-weight: 500; font-size: 15.5px; line-height: 1.2; white-space: nowrap;
  transition: color .2s ease;
}
.fxh-link:hover, .fxh-link:focus-visible,
.fxh-item.is-open > .fxh-link { color: var(--fxh-white); }
.fxh-link:hover .fxh-link-text::after,
.fxh-link:focus-visible .fxh-link-text::after,
.fxh-item.is-open > .fxh-link .fxh-link-text::after { transform: scaleX(1); transform-origin: left; }
.fxh-link.is-active { color: var(--fxh-white); font-weight: 700; }
.fxh-link.is-active .fxh-link-text::after { transform: scaleX(1); }
.fxh-chev { transition: transform .25s ease; }
.fxh-item.is-open > .fxh-link .fxh-chev { transform: rotate(180deg); }

/* Mega menu */
.fxh-mega {
  position: absolute; top: 100%; left: 50%;
  width: min(980px, calc(100vw - 48px));
  padding-top: 8px;                                   /* hover bridge */
  transform: translate(-50%, -8px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s ease, transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .28s;
}
.fxh-item.is-open > .fxh-mega {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}
.fxh-panel {
  display: flex; overflow: hidden;
  background: var(--fxh-white);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.fxh .fxh-tiles {
  flex: 1;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  column-gap: 36px; align-content: start;
  padding: 14px 32px 22px;
}
.fxh-tile { display: block; position: relative; padding: 16px 36px 18px 0; border-top: 1px solid var(--fxh-rule); }
.fxh-tile-title { display: inline-block; font-size: 16px; font-weight: 700; color: var(--fxh-navy); letter-spacing: -.005em; }
.fxh-tile-desc { display: block; margin-top: 5px; font-size: 13.5px; line-height: 1.45; color: var(--fxh-body); }
.fxh-tile-arrow {
  position: absolute; right: 6px; top: 19px; color: var(--fxh-teal-text);
  opacity: 0; transform: translateX(-6px);
  transition: opacity .25s ease, transform .3s var(--fxh-ease);
}
.fxh-tile:hover .fxh-tile-title::after, .fxh-tile:focus-visible .fxh-tile-title::after,
.fxh-tile.is-active .fxh-tile-title::after { transform: scaleX(1); transform-origin: left; }
.fxh-tile:hover .fxh-tile-arrow, .fxh-tile:focus-visible .fxh-tile-arrow { opacity: 1; transform: translateX(0); }

.fxh-callout {
  width: 270px; flex-shrink: 0;
  background: var(--fxh-navy); padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
}
.fxh-callout-kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fxh-teal); margin-bottom: 10px !important; }
.fxh-callout-text { font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--fxh-white); }
.fxh-callout .fxh-btn { align-self: flex-start; }

/* Phone + CTA */
.fxh-actions { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.fxh-phone { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 4px 2px; color: var(--fxh-white); }
.fxh-phone:hover, .fxh-phone:focus-visible { color: var(--fxh-white); }
.fxh-phone-label { font-size: 12px; font-weight: 500; color: var(--fxh-muted-2); letter-spacing: .01em; line-height: 1.3; }
.fxh-phone-num { font-size: 16.5px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .01em; line-height: 1.3; }
.fxh-phone:hover .fxh-phone-num::after, .fxh-phone:focus-visible .fxh-phone-num::after { transform: scaleX(1); transform-origin: left; }
.fxh-divider { width: 1px; height: 34px; background: rgba(255, 255, 255, .2); }

/* Works without JavaScript too */
.fxh:not(.fxh-js) .fxh-has-mega:hover > .fxh-mega,
.fxh:not(.fxh-js) .fxh-has-mega:focus-within > .fxh-mega {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition-delay: 0s;
}

/* Mobile-only pieces hidden on desktop */
.fxh-mactions, .fxh-drawer { display: none; }

/* Smaller desktops / laptops */
@media (min-width: 1200px) and (max-width: 1365.98px) {
  .fxh { --fxh-pad: 28px; }
  .fxh-link { padding: 0 10px; font-size: 15px; }
  .fxh-phone-label { display: none; }
  .fxh-actions { gap: 16px; }
  .fxh-logo img { height: 38px; }
}

@media (min-width: 1200px) {
  html { scroll-padding-top: var(--fxh-h, 88px); }
}

/* =================================================================
   MOBILE AND TABLET (below 1200px)
   ================================================================= */
@media (max-width: 1199.98px) {
  .fxh { --fxh-pad: 20px; }
  .fxh-inner { height: var(--fxh-h-m); gap: 12px; }
  .fxh-logo img { height: 34px; }
  .fxh-nav, .fxh-actions { display: none; }
  .fxh-spacer { height: var(--fxh-h-m); }
  html { scroll-padding-top: 68px; }

  .fxh-mactions { display: flex; align-items: center; gap: 4px; margin-right: -10px; }
  .fxh-mcall, .fxh-toggle {
    width: 46px; height: 46px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--fxh-white); border-radius: 8px;
  }
  .fxh-mcall:hover, .fxh-mcall:focus-visible { color: var(--fxh-teal); }

  /* Hamburger to X */
  .fxh-toggle-lines { position: relative; width: 24px; height: 16px; display: block; }
  .fxh-toggle-lines span {
    position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
    background: currentColor;
    transition: transform .3s var(--fxh-ease), opacity .2s ease, top .3s var(--fxh-ease);
  }
  .fxh-toggle-lines span:nth-child(1) { top: 0; }
  .fxh-toggle-lines span:nth-child(2) { top: 7px; }
  .fxh-toggle-lines span:nth-child(3) { top: 14px; }
  .fxh-toggle[aria-expanded="true"] .fxh-toggle-lines span:nth-child(1) { top: 7px; transform: rotate(45deg); }
  .fxh-toggle[aria-expanded="true"] .fxh-toggle-lines span:nth-child(2) { opacity: 0; }
  .fxh-toggle[aria-expanded="true"] .fxh-toggle-lines span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

  /* Drawer */
  .fxh-drawer {
    display: flex; flex-direction: column;
    position: fixed; left: 0; right: 0; bottom: 0;
    top: calc(var(--fxh-h-m) + env(safe-area-inset-top, 0px));
    background: var(--fxh-navy-deep);
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    opacity: 0; transform: translateY(-8px);
    transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
  }
  .fxh-drawer[hidden] { display: none; }
  .fxh.is-menu-open .fxh-drawer { opacity: 1; transform: none; }

  .fxh-mnav { padding: 8px var(--fxh-pad) 0; }
  .fxh-mitem { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .fxh-mrow { display: flex; align-items: center; justify-content: space-between; min-height: 62px; }
  .fxh-mlink {
    flex: 1; display: flex; align-items: center; min-height: 62px;
    color: var(--fxh-white); font-size: 20px; font-weight: 600; letter-spacing: -.01em; text-align: left;
  }
  .fxh-mlink:hover, .fxh-mlink:focus-visible { color: var(--fxh-white); }
  .fxh-mlink.is-active { color: var(--fxh-teal); }
  .fxh-mexpand {
    width: 48px; height: 48px; margin-right: -12px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--fxh-muted);
  }
  .fxh-mexpand .fxh-chev { width: 20px; height: 20px; }
  .fxh-mexpand[aria-expanded="true"] .fxh-chev { transform: rotate(180deg); }

  .fxh-msub { padding: 0 0 18px; }
  .fxh-msub[hidden] { display: none; }
  .fxh .fxh-msub ul { border-left: 2px solid rgba(100, 190, 171, .45); margin-left: 2px; }
  .fxh-msublink { display: block; padding: 11px 0 11px 18px; }
  .fxh-msub-title { display: block; color: var(--fxh-white); font-size: 16px; font-weight: 600; }
  .fxh-msub-desc { display: block; margin-top: 3px; color: var(--fxh-muted-2); font-size: 13.5px; line-height: 1.4; }
  .fxh-msublink.is-active .fxh-msub-title { color: var(--fxh-teal); }
  .fxh-mcallout { display: block; margin-top: 14px; padding: 16px 18px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
  .fxh-mcallout-kicker { display: block; color: var(--fxh-muted-2); font-size: 13px; margin-bottom: 4px; }
  .fxh-mcallout-link { display: inline-flex; align-items: center; gap: 8px; color: var(--fxh-teal); font-weight: 700; font-size: 15px; }

  .fxh-mfoot {
    margin-top: auto;
    padding: 28px var(--fxh-pad) calc(28px + env(safe-area-inset-bottom, 0px));
    display: flex; flex-direction: column; gap: 18px;
  }
  .fxh-mphone { display: flex; flex-direction: column; gap: 2px; color: var(--fxh-white); }
  .fxh-mphone:hover { color: var(--fxh-white); }
  .fxh-mphone-num { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

  /* Lock page scroll while the drawer is open */
  html.fxh-locked, html.fxh-locked body { overflow: hidden; }
}

@media (max-width: 400px) {
  .fxh-logo img { height: 30px; }
  .fxh-mlink { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .fxh *, .fxh *::before, .fxh *::after { transition: none !important; animation: none !important; }
}
