/* Roof Revival header, Service Mate structure. Colours are upgrade.css tokens. */

body.upgrade-page .site-header.site-header--st {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  color: #fff;
  border-bottom: none;
  box-shadow: none;
  overflow: visible;
  font-family: var(--font);
}

body.upgrade-page .site-header a {
  color: inherit;
  text-decoration: none;
}

body.upgrade-page .site-header a:hover,
body.upgrade-page .mobile-nav-drawer a:hover {
  text-decoration: none;
}

body.upgrade-page .site-header__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  height: 92px;
  padding: 0 24px;
}

body.upgrade-page .site-header__brand-cluster {
  display: flex;
  align-items: center;
  align-self: center;
  min-width: 0;
}

body.upgrade-page .site-header .brand {
  display: inline-flex;
  align-items: center;
  align-self: center;
  flex-shrink: 0;
  line-height: 0;
}

body.upgrade-page .site-header .brand-mark__img {
  display: block;
  height: 62px;
  width: auto;
  max-width: min(375px, 32vw);
  object-fit: contain;
  object-position: left center;
}

body.upgrade-page .site-header .brand-mark__img--ink {
  display: none;
}

body.upgrade-page .nav--top {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

body.upgrade-page .header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  justify-self: end;
}

body.upgrade-page .header-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #fff;
}

body.upgrade-page .header-phone:hover {
  background: transparent;
}

body.upgrade-page .header-phone .pic {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: var(--navy);
  flex-shrink: 0;
}

body.upgrade-page .header-phone .pic svg {
  width: 18px;
  height: 18px;
}

body.upgrade-page .header-phone .meta {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

body.upgrade-page .header-phone .lbl {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}

body.upgrade-page .header-phone .num {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  margin-top: 2px;
}

body.upgrade-page .header-phone:hover .num {
  color: var(--blue);
}

body.upgrade-page .header-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 18px;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background: var(--action);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(16, 25, 44, .06);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

body.upgrade-page .header-book svg {
  width: 16px;
  height: 16px;
  margin-right: 4px;
}

body.upgrade-page .header-book:hover {
  color: #fff;
  background: #0058ba;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 25, 44, .08);
}

body.upgrade-page .nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

body.upgrade-page .nav-toggle__bar {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

body.upgrade-page .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.upgrade-page .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

body.upgrade-page .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.upgrade-page .services-bar {
  position: relative;
  z-index: 45;
  background: var(--navy);
  color: #fff;
  overflow: visible;
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: none;
  box-shadow: none;
}

body.upgrade-page .services-bar__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-evenly;
  flex-wrap: nowrap;
  gap: 8px;
  min-height: 52px;
  width: min(920px, calc(100% - 48px));
  margin-inline: auto;
}

body.upgrade-page .services-bar__tab {
  position: static;
  display: flex;
  align-items: stretch;
}

body.upgrade-page .services-bar__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  color: rgba(255, 255, 255, .92);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  transition: color .15s ease, background .15s ease;
}

body.upgrade-page .services-bar__link::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  transition: background .15s ease;
}

body.upgrade-page .services-bar__link:hover,
body.upgrade-page .services-bar__link:focus-visible,
body.upgrade-page .services-bar__link[aria-current] {
  color: #fff;
}

body.upgrade-page .services-bar__link:hover::before,
body.upgrade-page .services-bar__link:focus-visible::before,
body.upgrade-page .services-bar__link[aria-current]::before {
  background: var(--blue);
}

body.upgrade-page .services-bar__tab:hover .services-bar__link,
body.upgrade-page .services-bar__tab:focus-within .services-bar__link {
  color: var(--ink);
  background: #fff;
  border-radius: 10px 10px 0 0;
}

body.upgrade-page .services-bar__tab:hover .services-bar__link::before,
body.upgrade-page .services-bar__tab:focus-within .services-bar__link::before {
  background: transparent;
}

body.upgrade-page .services-bar__tab.is-dismissed:focus-within .services-bar__link {
  color: #fff;
  background: transparent;
  border-radius: 0;
}

body.upgrade-page .services-bar__tab.is-dismissed:focus-within .services-bar__link::before {
  background: var(--blue);
}

body.upgrade-page .services-bar__tab.is-dismissed:focus-within .mega-menu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(6px);
}

body.upgrade-page .mega-menu {
  position: absolute;
  left: 50%;
  top: 100%;
  width: min(980px, calc(100vw - 40px));
  max-width: min(980px, calc(100vw - 40px));
  max-height: 75vh;
  overflow: auto;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(7, 24, 39, .08);
  border-top-color: transparent;
  border-radius: 0 0 16px 16px;
  padding: 10px 12px;
  z-index: 50;
  text-align: left;
  box-shadow: 0 18px 42px rgba(16, 25, 44, .13), 0 4px 14px rgba(16, 25, 44, .06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

body.upgrade-page .mega-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 2px;
}

body.upgrade-page .services-bar__tab:hover .mega-menu,
body.upgrade-page .services-bar__tab:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

body.upgrade-page .mega-menu__body {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

body.upgrade-page .mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 18px;
  flex: 1 1 auto;
  min-width: 0;
}

body.upgrade-page .mega-menu h3 {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin: 8px 8px 4px;
}

body.upgrade-page .mega-menu__cell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

body.upgrade-page .mega-menu__cell:hover,
body.upgrade-page .mega-menu__cell:focus-visible {
  background: var(--soft);
  color: var(--ink);
}

body.upgrade-page .mega-menu__plate {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(0, 139, 255, .12);
  color: var(--action);
}

body.upgrade-page .mega-menu__cell:hover .mega-menu__plate,
body.upgrade-page .mega-menu__cell:focus-visible .mega-menu__plate {
  color: var(--link);
  background: rgba(0, 108, 219, .22);
}

body.upgrade-page .mega-menu__plate svg,
body.upgrade-page .mega-menu__cell svg,
body.upgrade-page .mega-menu__plate img {
  width: 22px;
  height: 22px;
  max-width: none;
  object-fit: contain;
  display: block;
}

body.upgrade-page .mega-menu__all {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 0 0 auto;
  align-self: stretch;
  padding: 8px 12px;
  border-left: 1px solid rgba(16, 25, 44, .1);
  border-radius: 0 12px 12px 0;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--action);
  white-space: nowrap;
}

body.upgrade-page .mega-menu__all svg {
  width: 14px;
  height: 14px;
  margin-right: 0;
}

body.upgrade-page .mega-menu__all:hover,
body.upgrade-page .mega-menu__all:focus-visible {
  background: rgba(0, 108, 219, .06);
  color: var(--link);
}

body.upgrade-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.upgrade-page .mobile-nav-overlay {
  display: none;
}

body.upgrade-page .mobile-nav-drawer {
  display: none;
}

body.upgrade-page.mobile-nav-open {
  overflow: hidden;
}

body.upgrade-page.mobile-nav-open .mobile-nav-overlay {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(7, 24, 39, .28);
  z-index: 1100;
  border: 0;
  padding: 0;
}

body.upgrade-page.mobile-nav-open .u-mobile-actions {
  display: none !important;
}

body.upgrade-page .u-mobile-actions > a {
  font-size: 12.5px;
  gap: 6px;
  white-space: nowrap;
  padding-inline: 6px;
}

body.upgrade-page .mobile-nav-acc__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  padding: 14px 2px;
  border: 0;
  border-bottom: 1px solid rgba(16, 25, 44, .08);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

body.upgrade-page .mobile-nav-acc__item.is-open .mobile-nav-acc__trigger {
  border-bottom-color: transparent;
}

body.upgrade-page .mobile-nav-acc__chev {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--action);
  transition: transform .2s ease;
}

body.upgrade-page .mobile-nav-acc__item.is-open .mobile-nav-acc__chev {
  transform: rotate(180deg);
}

body.upgrade-page .mobile-nav-acc__panel {
  padding: 0 0 8px 18px;
  border-bottom: 1px solid rgba(16, 25, 44, .08);
}

body.upgrade-page .mobile-nav-acc__panel[hidden] {
  display: none !important;
}

body.upgrade-page .mobile-nav-acc__panel:not([hidden]) {
  display: flex;
  flex-direction: column;
}

body.upgrade-page .mobile-nav-drawer a {
  color: var(--ink);
}

body.upgrade-page .mobile-nav-acc__link {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 10px 8px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
}

body.upgrade-page .mobile-nav-acc__link:hover,
body.upgrade-page .mobile-nav-acc__link:focus-visible,
body.upgrade-page .mobile-nav-acc__link--all {
  color: var(--action);
}

body.upgrade-page .mobile-nav-actions {
  flex: 0 0 auto;
  display: grid;
  gap: 10px;
  padding: 16px 22px calc(16px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid rgba(16, 25, 44, .08);
}

body.upgrade-page .mobile-nav-call,
body.upgrade-page .mobile-nav-book {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

body.upgrade-page .mobile-nav-call {
  background: var(--blue);
  color: var(--navy);
  border: 2px solid var(--blue);
}

body.upgrade-page .mobile-nav-call:hover {
  background: var(--action);
  color: #fff;
}

body.upgrade-page .mobile-nav-book {
  background: #fff;
  color: var(--action);
  border: 2px solid var(--action);
}

body.upgrade-page .mobile-nav-book:hover {
  background: rgba(0, 108, 219, .06);
  color: var(--action);
}

body.upgrade-page .site-header a:focus-visible,
body.upgrade-page .site-header button:focus-visible,
body.upgrade-page .mobile-nav-drawer a:focus-visible,
body.upgrade-page .mobile-nav-drawer button:focus-visible,
body.upgrade-page .mobile-nav-overlay:focus-visible {
  outline: 3px solid rgba(0, 108, 219, .45);
  outline-offset: 3px;
}

body.upgrade-page .mobile-nav-acc__trigger:focus-visible,
body.upgrade-page .mobile-nav-call:focus-visible,
body.upgrade-page .mobile-nav-book:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 2px;
}

html {
  scroll-padding-top: var(--header-scroll-offset, 152px);
}

body.upgrade-page #services {
  scroll-margin-top: 0;
}

body.upgrade-page .mobile-nav-acc__trigger[aria-current] {
  color: var(--action);
}

body.upgrade-page .u-hero-content { padding-top: 32px; }
body.upgrade-page .u-home-hero .u-hero-content { padding-top: 53px; }
body.upgrade-page .u-contact-hero .u-hero-content { padding-top: 28px; }
body.upgrade-page .u-services-hero .u-hero-content { padding-top: 36px; }
body.upgrade-page .u-concept-hero .u-hero-content { padding-top: 28px; }

@media (max-width: 1180px) {
  body.upgrade-page .header-phone .lbl { display: none; }
  body.upgrade-page .header-cta { gap: 10px; }
}

@media (max-width: 1100px) {
  html { scroll-padding-top: var(--header-scroll-offset, 144px); }
  body.upgrade-page .site-header__main { height: 84px; gap: 12px; }
  body.upgrade-page .site-header .brand-mark__img { height: 54px; max-width: min(326px, 40vw); }
  body.upgrade-page .services-bar__link { padding: 14px 18px; }
}

@media (max-width: 1023px) {
  body.upgrade-page .u-hero-content { padding-top: 32px; }
  body.upgrade-page .u-home-hero .u-hero-content { padding-top: 69px; }
}

@media (max-width: 960px) {
  body.upgrade-page .services-bar__link { padding: 12px 12px; font-size: 13px; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: var(--header-scroll-offset, 80px); }
  body.upgrade-page .site-header.site-header--st {
    padding-top: env(safe-area-inset-top, 0px);
  }
  body.upgrade-page .site-header__main {
    grid-template-columns: 1fr auto;
    gap: 10px;
    height: 72px;
  }
  body.upgrade-page .nav--top,
  body.upgrade-page .header-book,
  body.upgrade-page .services-bar {
    display: none;
  }
  body.upgrade-page .header-cta { gap: 10px; }
  body.upgrade-page .header-phone {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 10px;
    background: #ffffff05;
    color: #fff;
  }
  body.upgrade-page .header-phone:hover { background: #ffffff12; }
  body.upgrade-page .header-phone:focus-visible { outline: 3px solid #ffbf47; outline-offset: 3px; }
  body.upgrade-page .header-phone .pic {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: transparent;
    color: inherit;
  }
  body.upgrade-page .header-phone .meta {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  body.upgrade-page .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }
  body.upgrade-page .site-header .brand-mark__img {
    height: 44px;
    max-width: calc(100vw - 104px);
  }
  body.upgrade-page .mobile-nav-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1200;
    background: #fff;
    padding-top: var(--mobile-nav-top, 72px);
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
  }
  body.upgrade-page .mobile-nav-acc {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 22px 8px;
    -webkit-overflow-scrolling: touch;
  }
  body.upgrade-page.mobile-nav-open .mobile-nav-drawer,
  body.upgrade-page .mobile-nav-drawer[aria-hidden="false"] {
    visibility: visible;
    pointer-events: auto;
  }
  body.upgrade-page.mobile-nav-open .site-header.site-header--st {
    background: #fff;
    color: var(--ink);
    box-shadow: none;
    z-index: 1300;
  }
  body.upgrade-page.mobile-nav-open .site-header .brand-mark__img--light { display: none; }
  body.upgrade-page.mobile-nav-open .site-header .brand-mark__img--ink {
    display: block;
    height: 44px;
  }
  body.upgrade-page.mobile-nav-open .nav-toggle {
    color: var(--ink);
    border-color: rgba(16, 25, 44, .16);
    background: #fff;
  }
  body.upgrade-page.mobile-nav-open .header-phone {
    color: var(--ink);
    border-color: rgba(16,25,44,.16);
    background: #fff;
  }
}

@media (min-width: 861px) {
  body.upgrade-page .mobile-nav-drawer,
  body.upgrade-page.mobile-nav-open .mobile-nav-drawer,
  body.upgrade-page .mobile-nav-drawer[aria-hidden="false"] {
    display: none !important;
  }
}

@media (max-width: 767px) {
  body.upgrade-page .u-hero-content { padding-top: 24px; }
  body.upgrade-page .u-home-hero .u-hero-content { padding-top: 54px; }
  body.upgrade-page .u-contact-hero .u-hero-content { padding-top: 24px; }
  body.upgrade-page .u-services-hero .u-hero-content { padding-top: 34px; }
  body.upgrade-page .u-concept-hero .u-hero-content { padding-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  body.upgrade-page .nav-toggle__bar,
  body.upgrade-page .mobile-nav-acc__chev {
    transition: none;
  }
}

body.upgrade-page .mega-menu {
  overflow: visible;
  max-height: none;
}

body.upgrade-page .mega-menu__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
}

body.upgrade-page .mega-six {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
}

body.upgrade-page .mega-six__item {
  display: contents;
}

body.upgrade-page .mega-six__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  grid-row: 1;
  min-height: 92px;
  padding: 8px 6px 10px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

body.upgrade-page .mega-six__main span:last-child {
  max-width: 8.6em;
}

body.upgrade-page .mega-six__item:hover .mega-six__main,
body.upgrade-page .mega-six__item:focus-within .mega-six__main,
body.upgrade-page .mega-six__item.is-open .mega-six__main {
  background: var(--soft);
}

body.upgrade-page .mega-six__item:hover .mega-menu__plate,
body.upgrade-page .mega-six__item:focus-within .mega-menu__plate,
body.upgrade-page .mega-six__item.is-open .mega-menu__plate {
  color: var(--link);
  background: rgba(0, 108, 219, .22);
}

body.upgrade-page .mega-six__sub {
  display: none;
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

body.upgrade-page .mega-six__item:hover .mega-six__sub,
body.upgrade-page .mega-six__item:focus-within .mega-six__sub,
body.upgrade-page .mega-six__item.is-open .mega-six__sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}

body.upgrade-page .mega-six__sub a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

body.upgrade-page .mega-six__sub a:hover,
body.upgrade-page .mega-six__sub a:focus-visible {
  background: var(--soft);
  color: var(--ink);
}

body.upgrade-page .mega-menu__layout .mega-menu__all {
  align-self: stretch;
  margin-top: 8px;
}
