/* Reltano premium QA layer: responsive navigation, focus states and small UX refinements. */

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 96px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
}

.mobile-nav-shell {
  display: none;
  align-items: center;
  gap: 0.55rem;
}

.mobile-contact-cta,
.mobile-nav summary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.72rem;
  font-size: 0.86rem;
  font-weight: 760;
}

.mobile-contact-cta {
  padding: 0.62rem 0.85rem;
  color: #fff;
  background: var(--brand-ink);
}

.mobile-nav {
  position: relative;
}

.mobile-nav summary {
  gap: 0.45rem;
  padding: 0.62rem 0.78rem;
  color: var(--brand-ink-soft);
  background: #fff;
  border: 1px solid #d6dee8;
  cursor: pointer;
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav-icon {
  color: #7b8799;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.mobile-nav[open] summary {
  color: var(--brand-blue-dark);
  border-color: #b9c7d9;
  box-shadow: 0 0 0 3px rgb(47 91 211 / 8%);
}

.mobile-nav-panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  display: grid !important;
  width: min(78vw, 290px);
  padding: 0.55rem;
  background: rgb(255 255 255 / 98%);
  border: 1px solid #dce4ed;
  border-radius: 1rem;
  box-shadow: 0 22px 60px rgb(18 32 63 / 18%);
  backdrop-filter: blur(18px);
}

.mobile-nav-panel a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0.72rem 0.82rem;
  color: #39465d !important;
  border-radius: 0.7rem;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
}

.mobile-nav-panel a:hover {
  color: var(--brand-blue-dark) !important;
  background: #f4f7fb;
}

/* Keyboard users should always see where focus is. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgb(47 91 211 / 30%);
  outline-offset: 3px;
}

/* Avoid accidental horizontal jitter on narrow screens. */
body {
  overflow-x: hidden;
}

@media (max-width: 720px) {
  .desktop-nav {
    display: none !important;
  }

  .mobile-nav-shell {
    display: flex;
  }

  .site-header-inner {
    gap: 0.75rem;
  }

  .brand {
    min-width: 0;
  }

  .brand-word {
    font-size: 1rem;
  }

  .landing-footer .footer-grid {
    gap: 1.5rem;
  }

  .footer-links a {
    min-height: 38px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 390px) {
  .mobile-contact-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
