.ats-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
}

.ats-brand-logo {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 4px;
  border: 1px solid rgba(24, 228, 208, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 30px rgba(24, 228, 208, 0.08);
}

.ats-brand-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 12px;
}

.ats-brand-logo picture {
  display: block;
  width: 100%;
  height: 100%;
}

.ats-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ats-brand-copy strong {
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.7px;
  white-space: nowrap;
}

.ats-brand-copy small {
  display: block;
  margin-top: 5px;
  color: #b6c7ca;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 1.8px;
  white-space: nowrap;
}

.ats-header-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1vw, 16px);
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

/* About and directions live in the mobile menu and footer, not the desktop header. */
.ats-header-links a[href="/about.html"],
.ats-header-links a[href="about.html"],
.ats-header-links a[href*="google.com/maps"],
.nav-links a[href="/about.html"],
.nav-links a[href="about.html"],
.nav-links a[href*="google.com/maps"] {
  display: none !important;
}

.ats-social-links {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  flex: 0 0 auto;
}

.ats-social-links + .ats-header-links,
.ats-social-links + .nav-links {
  margin-left: 0;
}

.ats-social-links a {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(24, 228, 208, 0.18);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
  color: #b9cdcf;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.ats-social-links a:hover,
.ats-social-links a:focus-visible {
  color: var(--accent, #18e4d0);
  border-color: rgba(24, 228, 208, 0.52);
  background: rgba(24, 228, 208, 0.08);
  transform: translateY(-1px);
}

.ats-social-links svg {
  width: 15px;
  height: 15px;
  display: block;
  fill: currentColor;
}

.ats-social-links img {
  width: 26px;
  height: 26px;
  display: block;
  opacity: 0.9;
}

.ats-social-links a[title="Facebook"] {
  border-color: rgba(24, 119, 242, 0.34);
  background: rgba(24, 119, 242, 0.07);
}

.ats-social-links a[title="Instagram"] {
  border-color: rgba(225, 48, 108, 0.32);
  background: linear-gradient(145deg, rgba(131, 58, 180, 0.08), rgba(253, 29, 29, 0.05), rgba(252, 175, 69, 0.08));
}

.ats-social-links a[title="TikTok"] {
  border-color: rgba(37, 244, 238, 0.3);
  background: rgba(255, 255, 255, 0.035);
}

/* Mobile navigation stays out of the desktop layout until its breakpoint. */
.mobile-menu-toggle,
.mobile-nav-panel {
  display: none;
}

.ats-menu-label {
  display: none !important;
}

.ats-header-links a {
  color: #dce8ea;
  text-decoration: none;
  transition: color 160ms ease;
}

.ats-header-links a:hover,
.ats-header-links a:focus-visible,
.ats-header-links a[aria-current="page"] {
  color: #20d9ca;
}

/* Give the website-design service a tasteful, high-visibility treatment. */
.ats-header-links a[href="/website-design.html"],
.ats-header-links a[href$="website-design.html"],
.nav-links a[href="/website-design.html"],
.nav-links a[href$="website-design.html"] {
  color: var(--accent, #18e4d0);
  font-size: 1.08em;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(24, 228, 208, 0.24);
}

.ats-header-links a[href="/website-design.html"]:hover,
.ats-header-links a[href="/website-design.html"]:focus-visible,
.ats-header-links a[href$="website-design.html"]:hover,
.ats-header-links a[href$="website-design.html"]:focus-visible,
.nav-links a[href="/website-design.html"]:hover,
.nav-links a[href="/website-design.html"]:focus-visible,
.nav-links a[href$="website-design.html"]:hover,
.nav-links a[href$="website-design.html"]:focus-visible {
  color: #73fff2;
  text-shadow: 0 0 17px rgba(24, 228, 208, 0.5);
}

50% { opacity: 1; text-shadow: 0 0 17px rgba(24, 228, 208, 0.46); }
}

@media (prefers-reduced-motion: reduce) {
  .ats-header-links a[href="/website-design.html"],
  .ats-header-links a[href$="website-design.html"],
  .nav-links a[href="/website-design.html"],
  .nav-links a[href$="website-design.html"] { animation: none; }
}

/* Keep the homepage navigation as tidy and consistent as the service pages. */
.nav-links {
  gap: clamp(8px, 1vw, 16px);
  font-size: 0.78rem;
  white-space: nowrap;
}

/* Let the large 3D emblem float naturally instead of sitting inside a card. */
.hero-card {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Use one square display ratio for the large emblem on every page. */
.hero-card img,
.hero-logo,
.visual-placeholder .hero-logo {
  width: min(380px, 88%) !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: contain !important;
  flex: 0 0 auto;
  filter:
    drop-shadow(0 20px 30px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 28px rgba(24, 228, 208, 0.18)) !important;
}

@media (max-width: 1120px) {
  .ats-header-row {
    position: relative;
  }

  .ats-header-links,
  .nav-links {
    display: none;
  }

  .ats-mobile-nav-ready .ats-brand-lockup ~ .call-top,
  .ats-mobile-nav-ready .ats-brand-lockup ~ .calltop {
    display: none;
  }

  .ats-social-links {
    display: inline-flex;
    gap: 5px;
    margin-left: auto;
  }

  .ats-social-links a {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .ats-social-links img {
    width: 20px;
    height: 20px;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    margin-left: 0;
    padding: 0;
    flex: 0 0 40px;
    border: 1px solid rgba(24, 228, 208, 0.35);
    border-radius: 10px;
    background: rgba(24, 228, 208, 0.08);
    color: var(--accent, #18e4d0);
    font: inherit;
    font-size: 0;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    cursor: pointer;
  }

  .mobile-menu-toggle .menu-icon {
    width: 22px;
    height: 18px;
    display: flex;
    flex: 0 0 22px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 0;
  }

  .mobile-menu-toggle .menu-icon span {
    display: block;
    flex: 0 0 2px;
    width: 22px;
    height: 2px;
    margin: 0;
    padding: 0;
    border-radius: 3px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .mobile-menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .mobile-menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .mobile-nav-panel {
    display: block;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    border-bottom: 1px solid rgba(24, 228, 208, 0.22);
    background: #07161b;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
    transition: max-height 0.28s ease, opacity 0.2s ease, visibility 0.2s;
  }

  .mobile-nav-panel.open {
    max-height: min(620px, calc(100dvh - 120px));
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: visible;
    opacity: 1;
  }

  .mobile-nav-inner {
    width: min(1180px, 92%);
    margin: auto;
    padding: 10px 0 12px;
    display: grid;
    gap: 4px;
  }

  .mobile-nav-inner a {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #edf7f8;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-nav-inner a::after {
    content: "\203A";
    color: var(--accent, #18e4d0);
    font-size: 20px;
  }

  .mobile-nav-inner a:hover,
  .mobile-nav-inner a:focus-visible,
  .mobile-nav-inner a[aria-current="page"] {
    border-color: rgba(24, 228, 208, 0.18);
    background: rgba(24, 228, 208, 0.08);
  }

  .mobile-nav-inner .mobile-call-link {
    width: auto;
    height: auto;
    margin-top: 3px;
    padding: 0 14px;
    border-radius: 10px;
    background: var(--accent, #18e4d0);
    color: #041012 !important;
    font-size: 14px;
    letter-spacing: normal;
    flex-direction: row;
  }

  .mobile-nav-inner .mobile-call-link::before,
  .mobile-nav-inner .mobile-call-link::after {
    content: "";
  }
}

@media (max-width: 620px) {
  .ats-brand-lockup { gap: 8px; }
  .ats-brand-logo { width: 48px; height: 48px; flex-basis: 48px; border-radius: 13px; }
  .ats-brand-copy { display: flex; }
  .ats-brand-copy strong { font-size: 16px; letter-spacing: 0.35px; }
  .ats-brand-copy small { display: none; }
  .ats-social-links { gap: 3px; }
  .ats-social-links a { width: 36px; height: 36px; border-radius: 11px; }
  .ats-social-links img { width: 22px; height: 22px; }
}

@media (max-width: 390px) {
  .ats-social-links { gap: 3px; }
  .ats-social-links a { width: 36px; height: 36px; border-radius: 11px; }
  .ats-social-links img { width: 22px; height: 22px; }
  .ats-brand-copy strong { font-size: 15px; letter-spacing: 0.2px; }
}

/* Keep all eleven navigation choices visible on compact phone screens.
   Extremely short viewports remain scrollable instead of clipping links. */
@media (max-width: 900px) and (max-height: 600px) {
  .mobile-nav-panel.open {
    max-height: calc(100dvh - 88px);
    overflow-y: auto;
    scrollbar-color: rgba(24, 228, 208, 0.7) rgba(255, 255, 255, 0.05);
    scrollbar-width: thin;
  }

  .mobile-nav-inner {
    padding: 8px 0 10px;
    gap: 2px;
  }

  .mobile-nav-inner a {
    min-height: 37px;
  }

  .mobile-nav-inner .mobile-call-link {
    margin-top: 1px;
  }
}

/* Keep the call control visually consistent with the transparent logo panel. */
.nav-call,
.call-top,
.calltop {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 4px;
  border: 1px solid rgba(24, 228, 208, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--accent, #18e4d0) !important;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.7px;
  text-align: center;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-call::before,
.call-top::before,
.calltop::before {
  content: "☎";
  display: block;
  color: var(--accent, #18e4d0);
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.nav-call:hover,
.nav-call:focus-visible,
.call-top:hover,
.call-top:focus-visible,
.calltop:hover,
.calltop:focus-visible {
  border-color: var(--accent, #18e4d0);
  background: rgba(24, 228, 208, 0.08);
  color: var(--accent, #18e4d0);
}

/* Lightweight HD logo stage: responsive AVIF with WebP fallback plus trace overlay. */
.logo-motion{position:relative;display:block;width:min(380px,88%);aspect-ratio:1/1;margin-inline:auto;isolation:isolate}
.hero-card .logo-motion>picture,.visual-placeholder .logo-motion>picture{position:absolute!important;inset:0;width:100%!important;height:100%!important;display:block!important}
.hero-card .logo-motion>img.logo-hd,.visual-placeholder .logo-motion>img.logo-hd,.hero-card .logo-motion>picture>img.logo-hd,.visual-placeholder .logo-motion>picture>img.logo-hd{position:absolute!important;inset:0;width:100%!important;height:100%!important;max-width:none!important;aspect-ratio:1/1;object-fit:contain!important;filter:drop-shadow(0 20px 30px rgba(0,0,0,.42)) drop-shadow(0 0 26px rgba(24,228,208,.22))!important}
.hero-card .logo-motion>.trace-current,.visual-placeholder .logo-motion>.trace-current{position:absolute!important;inset:0;z-index:2;width:100%!important;height:100%!important;max-width:none!important;aspect-ratio:1/1;object-fit:contain!important;pointer-events:none;filter:none!important;border:0;background:transparent}
@media (prefers-reduced-motion:reduce){.trace-current{display:none!important}}


/* ATLTECHSPOT unified booking action */
.ats-header-links .ats-book-service-link,
.nav-links .ats-book-service-link {
  padding: 7px 10px;
  border: 1px solid rgba(24, 228, 208, 0.38);
  border-radius: 9px;
  color: var(--accent, #18e4d0);
  background: rgba(24, 228, 208, 0.055);
  font-weight: 900;
  text-shadow: none;
}
.ats-header-links .ats-book-service-link:hover,
.ats-header-links .ats-book-service-link:focus-visible,
.nav-links .ats-book-service-link:hover,
.nav-links .ats-book-service-link:focus-visible,
.ats-header-links .ats-book-service-link[aria-current="page"],
.nav-links .ats-book-service-link[aria-current="page"] {
  color: #041012;
  background: var(--accent, #18e4d0);
  border-color: var(--accent, #18e4d0);
}
.ats-footer-actions .ats-footer-booking {
  color: var(--accent, #18e4d0);
  font-weight: 900;
}


/* Compact two-line desktop navigation.
   Keeps the header height unchanged while preserving Call Now at the right edge. */
.ats-header-row,
.nav-inner {
  gap: 7px;
}

.ats-social-links {
  gap: 4px;
  margin-left: 10px;
}

.ats-social-links a {
  width: 44px;
  height: 44px;
  border-radius: 13px;
}

.ats-social-links img {
  width: 23px;
  height: 23px;
}

.ats-social-links + .ats-header-links,
.ats-social-links + .nav-links {
  margin-left: 8px;
}

.ats-header-links,
.nav-links {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: space-evenly;
  gap: 3px;
  margin-left: 8px;
  font-size: 0.70rem;
  white-space: normal;
}

.ats-header-links a,
.nav-links a {
  flex: 0 1 auto;
}

.ats-header-links .ats-nav-stack,
.nav-links .ats-nav-stack {
  min-width: 62px;
  min-height: 38px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 3px 5px;
  line-height: 1.02;
  text-align: center;
  white-space: nowrap;
}

.ats-nav-line {
  display: block;
}

.ats-header-links .ats-book-service-link,
.nav-links .ats-book-service-link {
  padding: 3px 7px;
}

.ats-header-links a[href="/website-design.html"],
.ats-header-links a[href$="website-design.html"],
.nav-links a[href="/website-design.html"],
.nav-links a[href$="website-design.html"] {
  font-size: 1em;
}

.nav-call,
.call-top,
.calltop {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
  margin-left: 5px;
}

/* With the tighter desktop wording, keep the full header visible on more laptop widths. */
@media (max-width: 1120px) {
  .ats-header-row {
    position: relative;
  }

  .ats-header-links,
  .nav-links {
    display: none;
  }

  .ats-mobile-nav-ready .ats-brand-lockup ~ .call-top,
  .ats-mobile-nav-ready .ats-brand-lockup ~ .calltop {
    display: none;
  }
}
