/**
 * Services nav dropdown (Logo Design, Website Design & Development)
 */

/* Contact page: first section sits below fixed .header-home (full contacts block) */
body.page-contact .main > section.contacts {
  padding-top: clamp(9rem, 14vw + 4rem, 12rem);
}

@media (max-width: 991px) {
  body.page-contact .main > section.contacts {
    padding-top: clamp(7.25rem, 18vw + 2.5rem, 10rem);
  }
}

#menu > li.dropdown {
  position: relative;
}

#menu > li.dropdown > a.nav-services-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

#menu .nav-caret {
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  margin-top: 0.1rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.75;
}

#menu > li.dropdown:hover .nav-caret,
#menu > li.dropdown:focus-within .nav-caret {
  opacity: 1;
}

#menu .nav-services-dd {
  position: absolute;
  left: 50%;
  top: 100%;
  margin-top: 0.45rem;
  margin-left: 0;
  padding: 0.4rem 0;
  min-width: 17.5rem;
  list-style: none;
  text-align: left;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 14px 44px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(15, 23, 42, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 1200;
}

#menu > li.dropdown:hover .nav-services-dd,
#menu > li.dropdown:focus-within .nav-services-dd {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

#menu .nav-services-dd li {
  margin: 0;
  padding: 0;
}

#menu .nav-services-dd a {
  display: block;
  padding: 0.65rem 1.2rem;
  color: #1e293b !important;
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.35;
  border-left: 3px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

#menu .nav-services-dd a:hover,
#menu .nav-services-dd a:focus {
  background: rgba(37, 99, 235, 0.08);
  border-left-color: #2563eb;
  color: #0f172a !important;
}

/* Mobile / hamburger: stack submenu naturally */
@media (max-width: 991px) {
  #menu .nav-services-dd {
    position: static;
    left: auto;
    transform: none;
    margin-top: 0.35rem;
    margin-bottom: 0.25rem;
    min-width: 100%;
    padding: 0.15rem 0 0.35rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  #menu .nav-services-dd a {
    color: #e2e8f0 !important;
    padding-left: 1rem;
  }

  #menu .nav-services-dd a:hover,
  #menu .nav-services-dd a:focus {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #60a5fa;
    color: #fff !important;
  }
}

/* ----- Nav page links: center text; Contact Us (.btn) unchanged / stays at end ----- */
@media (min-width: 992px) {
  .menu-wrap #menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0 1.1rem;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    text-align: center;
  }

  .menu-wrap #menu > li {
    float: none !important;
    display: flex;
    justify-content: center;
    text-align: center;
  }

  .menu-wrap #menu > li > a:not(.btn) {
    text-align: center;
    justify-content: center;
  }

  /* Push “Contact Us” away from centered group (does not change button styling) */
  .menu-wrap #menu > li:last-child:has(> a.btn) {
    margin-left: auto;
  }
}

@media (max-width: 991px) {
  .menu-wrap #menu > li {
    text-align: center;
  }

  .menu-wrap #menu > li > a:not(.btn),
  .menu-wrap #menu > li.dropdown > a.nav-services-trigger {
    justify-content: center;
    width: 100%;
    text-align: center;
  }
}

/* ----- Site footer (nav-aligned links; does not affect header) ----- */
footer.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 1.75rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #fafbfc 0%, #f4f5f7 100%);
  color: #334155;
}

footer.site-footer .footer-main-row {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

footer.site-footer .footer-heading {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f172a;
  margin: 0 0 1rem;
  padding: 0;
}

footer.site-footer .footer-heading .fa-plus {
  display: none;
}

footer.site-footer .footer-heading-spaced {
  margin-top: 1.5rem;
}

footer.site-footer ul.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer.site-footer ul.footer-links li {
  margin: 0 0 0.5rem;
  padding: 0;
}

footer.site-footer ul.footer-links a {
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

footer.site-footer ul.footer-links a:hover,
footer.site-footer ul.footer-links a:focus {
  color: #2563eb;
}

footer.site-footer .footer-addresses p {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #64748b;
}

footer.site-footer .footer-social.footer-social-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: 0 0 0.25rem;
  padding: 0;
  list-style: none;
}

footer.site-footer .footer-social.footer-social-inline li {
  margin: 0;
}

footer.site-footer .footer-social.footer-social-inline a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

footer.site-footer .footer-social.footer-social-inline a:hover,
footer.site-footer .footer-social.footer-social-inline a:focus {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
  transform: translateY(-1px);
}

/* Font Awesome 4 icons in social buttons (global style.css hides footer ul on small screens) */
footer.site-footer .footer-social.footer-social-inline a .fa {
  display: inline-block !important;
  font-style: normal !important;
  font-weight: normal !important;
  font-size: 1.35rem !important;
  line-height: 1 !important;
  font-family: FontAwesome !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: inherit;
  vertical-align: middle;
}

/* Undo legacy theme rules: show footer lists & headings on small screens */
@media (max-width: 767px) {
  footer.site-footer ul {
    display: block !important;
  }

  footer.site-footer ul.footer-social.footer-social-inline {
    display: flex !important;
  }

  footer.site-footer h3.footer-heading {
    display: block !important;
  }
}

footer.site-footer .footer-bottom {
  padding-top: 1.25rem;
}

footer.site-footer .footer-copyright {
  font-size: 0.85rem;
  color: #94a3b8;
}

footer.site-footer img.footer-mark {
  box-sizing: border-box;
  max-width: min(100%, 200px);
  max-height: 100px;
  width: auto;
  height: auto;
  display: block;
  margin-top: 1.25rem;
  object-fit: contain;
}

/* Home footer: logo directly under mailing address (right column) */
footer.site-footer .footer-logo-slot {
  margin-top: 1.15rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  text-align: center;
}

footer.site-footer .footer-logo-slot img.footer-mark.footer-mark-below-address {
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  max-width: min(100%, 220px);
  max-height: 88px;
  filter: drop-shadow(0 8px 22px rgba(15, 23, 42, 0.1));
}
