/* Static-mirror shim: restores header navigation without the GoDaddy builder JS. */

/* ---------- desktop nav ---------- */
@media (min-width: 1024px) {
  [id^="navBarId-"] {
    display: flex !important;
    align-items: center;
    margin-left: auto;
    width: auto !important;
  }

  /* builder hides nav item text until its JS marks the header ready */
  [id^="navBarId-"] li,
  [id^="navBarId-"] li a {
    visibility: visible !important;
  }

  [id^="navBarId-"] nav[data-ux="Nav"] { width: auto; }

  /* builder-only "more" overflow menu, not shown on the live desktop header */
  li.nav-item:has(a[data-aid="NAV_MORE"]) { display: none !important; }

  [id^="navBarId-"] ul[data-ux="List"] {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  li.nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
  }

  li.nav-item > ul[data-ux="Dropdown"] {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
    padding: 6px 0;
    display: none !important;
    z-index: 60;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  li.nav-item:hover > ul[data-ux="Dropdown"],
  li.nav-item:focus-within > ul[data-ux="Dropdown"] {
    display: block !important;
  }

  li.nav-item > ul[data-ux="Dropdown"] > li {
    display: block !important;
    width: 100%;
    height: auto !important;
    margin: 0;
    padding: 0;
  }

  li.nav-item > ul[data-ux="Dropdown"] > li > a {
    display: block !important;
    padding: 9px 20px;
    white-space: nowrap;
  }

  [id^="navBarId-"] a[data-aid="HAMBURGER_MENU_LINK"] { display: none !important; }
}


/* hydration re-renders dropdown labels with a second stylesheet (c2-*) that
   drops the uppercase/letter-spacing of the original nav; restore it */
@media (min-width: 1024px) {
  [id^="navBarId-"] li.nav-item a,
  [id^="navBarId-"] li.nav-item a span {
    text-transform: uppercase !important;
  }
  [id^="navBarId-"] li.nav-item > div > span > a,
  [id^="navBarId-"] li.nav-item > div > a {
    text-decoration: none !important;
  }
}

/* ---------- mobile menu (hamburger) ---------- */
@media (max-width: 1023px) {
  /* keep the builder's hamburger visible on small screens (it is hidden
     by the builder until its JS boots) */
  [data-aid="HAMBURGER_MENU_LINK"] {
    display: flex !important;
    align-items: center;
  }

  body.wangs-nav-open { overflow: hidden; }

  body.wangs-nav-open [id^="navBarId-"] {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    overflow-y: auto;
    background: #fff;
    padding: 64px 20px 40px;
    z-index: 2147483000;
  }

  body.wangs-nav-open [id^="navBarId-"] > div,
  body.wangs-nav-open [id^="navBarId-"] > div > div,
  body.wangs-nav-open [id^="navBarId-"] nav[data-ux="Nav"] {
    display: block !important;
    width: 100%;
  }

  body.wangs-nav-open [id^="navBarId-"] ul[data-ux="List"] {
    display: block !important;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  body.wangs-nav-open li.nav-item {
    display: block !important;
    width: 100%;
    border-bottom: 1px solid #ececec;
  }

  body.wangs-nav-open li.nav-item > a,
  body.wangs-nav-open li.nav-item > div > a {
    display: block !important;
    padding: 14px 4px;
  }

  body.wangs-nav-open li.nav-item > ul[data-ux="Dropdown"] {
    display: block !important;
    position: static;
    box-shadow: none;
    padding: 0 0 8px 14px;
    min-width: 0;
  }

  body.wangs-nav-open li.nav-item > ul[data-ux="Dropdown"] > li > a {
    display: block !important;
    padding: 10px 4px;
  }

  .wangs-nav-close {
    position: fixed;
    top: 16px;
    right: 18px;
    z-index: 2147483001;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #f2f2f2;
    color: #111;
    font-size: 22px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
  }
}


/* ---------- static carousel (fade, seamless loop) ---------- */
.mg-carousel { position: relative; overflow: hidden; background: #000; }
.mg-track { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.mg-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .7s ease;
  pointer-events: none;
}
.mg-slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.mg-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mg-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .82); color: #111;
  font-size: 28px; line-height: 44px; text-align: center; cursor: pointer; z-index: 3;
}
.mg-nav:hover { background: #fff; }
.mg-prev { left: 14px; }
.mg-next { right: 14px; }
.mg-dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; gap: 8px; justify-content: center; z-index: 3; }
.mg-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .5); cursor: pointer; }
.mg-dots button.is-active { background: #fff; }

/* caption under the big image: centred, 16px bold, clickable (matches live) */
.mg-cap {
  position: absolute; left: 0; right: 0; bottom: 46px;
  padding: 0 70px;
  text-align: center;
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px; font-weight: 700; line-height: 1.4;
  letter-spacing: .02em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
  z-index: 2;
}
.mg-cap a { color: #fff; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.mg-cap a:hover { border-bottom-color: rgba(255, 255, 255, .8); }
@media (max-width: 767px) {
  .mg-nav { display: none; }
  .mg-cap { font-size: 13px; bottom: 16px; padding: 0 40px; }
}

/* GoDaddy widgets that load content from their API leave a spinner behind;
   nothing can be mirrored for them, so hide the spinner. */
[data-ux="Loader"] { display: none !important; }

/* ---------- "Solutions & More" RSS widget (values measured off the live site) ---------- */
.mg-feed {
  background: #f6f6f6;
  padding: 56px 0;
}
.mg-feed-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.mg-feed-title {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 55px;
  color: #151515;
  text-align: center;
  margin: 0 0 56px;
}

/* category tabs: 16px Open Sans, active = bold brown */
.mg-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 24px;
  min-height: 46px;
  margin: 0 0 32px;
}
.mg-tab {
  position: relative;
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  color: #151515;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s ease;
}
.mg-tab:hover { color: #826c6c; }
/* the active label is drawn by an absolutely positioned bold copy: the button
   keeps the normal-text width, so switching tabs can never reflow the rows */
.mg-tab::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  color: #826c6c;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.mg-tab.is-active { color: transparent; }
.mg-tab.is-active::after { opacity: 1; }

/* infinite card strip */
.mg-feed-slider { position: relative; }
.mg-feed.is-empty .mg-feed-slider { display: none; }
/* /solutions-1 lists one widget per category: the tabs are redundant there */
.mg-feed.is-cat .mg-tabs { display: none; }
.mg-feed.is-cat .mg-feed-title { margin-bottom: 40px; }
.mg-feed-viewport { overflow: hidden; }
.mg-feed-track {
  display: flex;
  align-items: stretch;
  will-change: transform;
}
.mg-card {
  flex: 0 0 auto;
  width: 245px;
  min-height: 308px;
  margin: 0 12.5px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s ease;
}
.mg-card:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .12); }
.mg-card-img {
  flex: 0 0 140px;
  height: 140px;
  overflow: hidden;
  background: #eee;
}
.mg-card-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mg-card-body {
  flex: 1 1 auto;
  padding: 25px 17px 25px;
  text-align: center;
}
.mg-card-date {
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #595959;
  margin: 0;
}
.mg-card-title {
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.125;
  color: #1b1b1b;
  margin: 0;
  max-height: 3.375em;   /* 3 lines, then hard clip (live behaviour) */
  overflow: hidden;
}
.mg-card-more {
  display: inline-block;
  margin-top: 2px;
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 22px;
  color: #8f6e6e;
  text-decoration: none;
}
.mg-card:hover .mg-card-more { text-decoration: underline; }

.mg-feed-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: #3c3c3c;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  opacity: .85;
  transition: opacity .2s ease, color .2s ease;
}
.mg-feed-nav svg { display: block; }
.mg-feed-nav:hover { opacity: 1; color: #000; }
.mg-feed-prev { left: -22px; }
.mg-feed-next { right: -22px; }

@media (max-width: 1023px) {
  .mg-feed { padding: 44px 0; }
  .mg-feed-title { font-size: 34px; line-height: 1.2; margin-bottom: 34px; }
  .mg-tabs { gap: 0 14px; }
  .mg-tab { font-size: 14px; }
  .mg-card { width: 220px; min-height: 292px; }
  .mg-card-img { flex-basis: 126px; height: 126px; }
  .mg-card-body { padding: 18px 14px 18px; }
  .mg-card-title { font-size: 18px; }
  .mg-card-more { font-size: 14px; }
}
@media (max-width: 700px) {
  .mg-feed-nav { display: none; }
  .mg-feed-title { font-size: 28px; }
  .mg-card { width: 240px; }
}

/* ---------- sticky header (builder does this with JS) ---------- */
[data-stickynav] {
  transition: box-shadow .28s ease, background-color .28s ease, padding .28s ease;
}
body.mg-stuck [data-ux="PromoBanner"] {
  max-height: 0 !important;
  overflow: hidden !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  opacity: 0 !important;
  transition: max-height .28s ease, opacity .2s ease, padding .28s ease;
}
body.mg-stuck [data-stickynav] {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .09);
}
body.mg-stuck [data-stickynav] img[data-aid="HEADER_LOGO_IMAGE_RENDERED"] {
  height: 56px !important;
}

/* logo: 104px at rest, shrinks to ~56px once the header is stuck (live behaviour) */
img[data-aid="HEADER_LOGO_IMAGE_RENDERED"] {
  height: 104px !important;
  width: auto !important;
  max-height: none !important;
  transition: height .28s cubic-bezier(.4, 0, .2, 1);
}
