.sfc-site-header {
  position: sticky;
  z-index: 10000;
  top: 0;
  width: 100%;
  background: var(--sfc-blue);
  color: var(--sfc-white);
  box-shadow: 0 10px 30px rgba(7, 22, 34, .14);
}

body.admin-bar .sfc-site-header { top: 32px; }

.sfc-header__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(0, 1fr) auto;
  align-items: center;
  min-height: 92px;
  gap: clamp(16px, 2vw, 30px);
}

.sfc-header__logo {
  position: relative;
  z-index: 10002;
  display: inline-flex !important;
  align-items: center;
  justify-self: start;
  flex: 0 0 auto;
  width: auto;
  max-width: 310px;
  min-width: 150px;
  line-height: 0;
  visibility: visible !important;
  opacity: 1 !important;
}

.sfc-header__logo img {
  display: block !important;
  /* width: clamp(150px, 17vw, 280px); */
  height: auto;
  max-width: 100%;
  max-height: 84px;
  object-fit: contain;
  visibility: visible !important;
  opacity: 1 !important;
}

.sfc-primary-nav {
  justify-self: end;
  min-width: 0;
}

.sfc-menu,
.sfc-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sfc-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
}

.sfc-menu__item {
  position: relative;
}

.sfc-menu__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 92px;
  padding: 0 clamp(8px, .72vw, 14px);
  color: var(--sfc-white);
  font-size: clamp(12px, .84vw, 14px);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transition: color .18s ease;
}

.sfc-menu__link:hover,
.sfc-menu__item:hover > .sfc-menu__link,
.sfc-menu__item:focus-within > .sfc-menu__link {
  color: var(--sfc-red);
}

.sfc-menu__chevron {
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.sfc-submenu-toggle {
  display: none;
}

.sfc-mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  width: max-content;
  max-width: calc(100vw - 40px);
  padding: 29px 35px 30px;
  color: var(--sfc-black);
  background: var(--sfc-white);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(7, 22, 34, .22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 13px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.sfc-menu__item:hover > .sfc-mega-menu,
.sfc-menu__item:focus-within > .sfc-mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -4px);
}

.sfc-mega--services .sfc-mega-menu { width: 620px; }
.sfc-mega--about .sfc-mega-menu { width: 520px; }
.sfc-mega--resources .sfc-mega-menu { width: 560px; }
.sfc-mega--journey .sfc-mega-menu { width: 300px; padding-inline: 35px; }

.sfc-mega-menu__grid {
  display: grid;
  gap: 15px 58px;
}

.sfc-mega-menu__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sfc-mega-menu__grid--1 { grid-template-columns: 1fr; }

.sfc-mega-menu__list {
  display: grid;
  gap: 13px;
}

.sfc-mega-menu__list a {
  position: relative;
  display: block;
  padding-left: 18px;
  color: var(--sfc-black);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.28;
  transition: color .18s ease, transform .18s ease;
}

.sfc-mega-menu__list a::before {
  content: "›";
  position: absolute;
  top: 50%;
  left: 0;
  color: var(--sfc-blue-dark);
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-52%);
}

.sfc-mega-menu__list a:hover,
.sfc-mega-menu__list a:focus {
  color: var(--sfc-red);
  transform: translateX(3px);
}

.sfc-header__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 1.2vw, 20px);
  white-space: nowrap;
}

.sfc-header__phone {
  color: var(--sfc-white);
  font-size: clamp(13px, .92vw, 15px);
  font-weight: 900;
  line-height: 1;
}

.sfc-header__phone:hover { color: var(--sfc-red); }

.sfc-header__search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--sfc-white);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
}

.sfc-header__search-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.sfc-header__search-toggle:hover,
.sfc-header__search-toggle[aria-expanded="true"] {
  color: var(--sfc-red);
  background: rgba(255,255,255,.08);
}

.sfc-header__cta {
  min-height: 42px;
  padding: 12px 24px;
  border-radius: 5px;
  font-size: 12px;
  box-shadow: none;
}

.sfc-header-search {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(420px, calc(100vw - 40px));
  padding: 16px;
  background: var(--sfc-white);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(7, 22, 34, .22);
}

.sfc-header-search__form {
  display: flex;
  gap: 10px;
}

.sfc-header-search__form input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--sfc-black);
  background: var(--sfc-sky);
  border: 1px solid var(--sfc-border);
  border-radius: 7px;
  outline: none;
}

.sfc-header-search__form input:focus {
  border-color: var(--sfc-light-blue);
  box-shadow: 0 0 0 3px rgba(32, 151, 212, .18);
}

.sfc-header-search__form button {
  min-height: 46px;
  padding: 0 18px;
  color: var(--sfc-white);
  background: var(--sfc-red);
  border: 0;
  border-radius: 7px;
  font-weight: 900;
  cursor: pointer;
}


.sfc-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--sfc-red);
  cursor: pointer;
}

.sfc-menu-toggle__bars {
  display: grid;
  gap: 5px;
  width: 24px;
  pointer-events: none;
}

.sfc-menu-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sfc-white);
  border-radius: 2px;
  opacity: 1;
  transform: none;
}

.sfc-menu-toggle[aria-expanded="true"] .sfc-menu-toggle__bar {
  opacity: 1;
  transform: none;
}

.sfc-mobile-nav-actions { display: none; }

@media (max-width: 1280px) {
  .sfc-header__inner { gap: 16px; }
  .sfc-header__logo { min-width: 126px; }
  .sfc-header__logo img { width: clamp(135px, 16vw, 220px); }
  .sfc-header__actions { gap: 12px; }
  .sfc-header__cta { padding-inline: 18px; }
}

@media (max-width: 1120px) {
  .sfc-site-header { --sfc-mobile-header-height: 76px; }
  .sfc-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--sfc-mobile-header-height);
    gap: 18px;
  }

  .sfc-header__logo {
    display: inline-flex !important;
    flex: 0 1 auto;
    min-width: 120px;
    max-width: calc(100% - 72px);
    visibility: visible !important;
    opacity: 1 !important;
  }

  .sfc-header__logo img {
    display: block !important;
    width: clamp(130px, 22vw, 205px);
    height: auto;
    max-width: 100%;
    max-height: 64px;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .sfc-menu-toggle { display: inline-flex; flex: 0 0 48px; order: 3; }

  .sfc-header__actions { display: none; }

  .sfc-primary-nav {
    position: fixed;
    top: var(--sfc-mobile-header-height);
    right: 0;
    bottom: 0;
    width: min(430px, 100vw);
    padding: 18px 22px 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--sfc-blue-dark);
    box-shadow: -22px 0 50px rgba(7, 22, 34, .24);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .25s ease, visibility .25s ease;
  }

  body.admin-bar .sfc-primary-nav { top: calc(var(--sfc-mobile-header-height) + 32px); }

  .sfc-primary-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .sfc-menu {
    display: grid;
    align-items: stretch;
    justify-content: stretch;
    gap: 0;
  }

  .sfc-menu__item {
    border-bottom: 1px solid rgba(255,255,255,.11);
  }

  .sfc-menu__link {
    width: calc(100% - 52px);
    min-height: 0;
    padding: 18px 0;
    color: var(--sfc-white);
    font-size: 16px;
    line-height: 1.25;
    white-space: normal;
  }

  .sfc-menu__link:hover,
  .sfc-menu__item:hover > .sfc-menu__link,
  .sfc-menu__item:focus-within > .sfc-menu__link {
    color: var(--sfc-white);
  }

  .sfc-menu__chevron { display: none; }

  .sfc-submenu-toggle {
    position: absolute;
    top: 7px;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: rgba(255,255,255,.09);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
  }

  .sfc-submenu-toggle::before,
  .sfc-submenu-toggle::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 2px;
    background: var(--sfc-white);
    border-radius: 2px;
    transition: transform .2s ease;
  }

  .sfc-submenu-toggle::after { transform: rotate(90deg); }
  .sfc-menu__item.is-submenu-open > .sfc-submenu-toggle::after { transform: rotate(0); }

  .sfc-mega-menu,
  .sfc-mega--services .sfc-mega-menu,
  .sfc-mega--about .sfc-mega-menu,
  .sfc-mega--resources .sfc-mega-menu,
  .sfc-mega--journey .sfc-mega-menu {
    position: static;
    width: 100%;
    max-width: none;
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: var(--sfc-white);
    background: rgba(255,255,255,.07);
    border-radius: 10px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: max-height .28s ease, padding .28s ease, margin .28s ease;
  }

  .sfc-menu__item:hover > .sfc-mega-menu,
  .sfc-menu__item:focus-within > .sfc-mega-menu {
    transform: none;
  }

  .sfc-menu__item.is-submenu-open > .sfc-mega-menu {
    max-height: 900px;
    margin: 0 0 18px;
    padding: 14px 16px 16px;
  }

  .sfc-mega-menu__grid,
  .sfc-mega-menu__grid--2,
  .sfc-mega-menu__grid--1 {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .sfc-mega-menu__list { gap: 0; }

  .sfc-mega-menu__list a {
    padding: 10px 0 10px 18px;
    color: rgba(255,255,255,.88);
    font-size: 14px;
    font-weight: 800;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .sfc-mega-menu__list li:last-child a { border-bottom: 0; }
  .sfc-mega-menu__list a::before { color: var(--sfc-red); }
  .sfc-mega-menu__list a:hover { color: var(--sfc-white); }

  .sfc-mobile-nav-actions {
    display: grid;
    gap: 14px;
    margin-top: 24px;
  }

  .sfc-mobile-nav-actions__phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 16px;
    color: var(--sfc-white);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    font-weight: 900;
  }

  .sfc-mobile-nav-actions .sfc-header__cta { width: 100%; }
  .sfc-header-search { display: none; }
}

@media (max-width: 782px) {
  body.admin-bar .sfc-site-header { top: 46px; }
  body.admin-bar .sfc-primary-nav { top: calc(var(--sfc-mobile-header-height) + 46px); }
}

@media (max-width: 600px) {
  body.admin-bar .sfc-site-header { top: 0; }
  body.admin-bar .sfc-primary-nav { top: var(--sfc-mobile-header-height); }
}

@media (max-width: 480px) {
  .sfc-site-header { --sfc-mobile-header-height: 72px; }
  .sfc-header__logo {
    min-width: 90px;
    max-width: 0;
  }
  .sfc-header__logo img { width: clamp(112px, 47vw, 170px); max-height: 58px; }
  .sfc-menu-toggle { width: 44px; height: 44px; flex-basis: 44px; }
  .sfc-primary-nav { padding-inline: 18px; }
}
