/* Above sticky header (z-50) and hero carousel dock (z-40). */
#contact-modal {
  z-index: 90;
}

#video-modal {
  z-index: 100;
}

html {
  scroll-padding-top: 3.5rem;
}
@media (min-width: 768px) {
  html {
    scroll-padding-top: 4rem;
  }
}

.site-header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: 3.5rem;
}
@media (min-width: 768px) {
  .site-header-nav {
    height: 4rem;
  }
}

.site-header-start {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
}
@media (min-width: 1024px) {
  .site-header-start {
    gap: 1.5rem;
  }
}

.site-header-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}
@media (min-width: 1024px) {
  .site-header-links {
    display: flex;
  }
}

.site-header-link {
  color: #4b5563;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.site-header-link:hover {
  color: #111827;
  background-color: #f9fafb;
}
.site-header-link--accent:hover {
  color: #4f46e5;
}

.site-header-dropdown {
  position: relative;
}
.site-header-dropdown::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.5rem;
}
.site-header-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  transform: none;
  min-width: 11rem;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 60;
}
.site-header-dropdown.is-open .site-header-dropdown__menu,
.site-header-dropdown:hover .site-header-dropdown__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.site-header-dropdown__item {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.site-header-dropdown__item:hover {
  background: #f3f4f6;
  color: #111827;
}
.site-header-dropdown__item--accent:hover {
  color: #4f46e5;
}

.site-header-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .site-header-actions {
    display: flex;
  }
}

.site-header-mobile-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .site-header-mobile-controls {
    display: none;
  }
}

.site-header-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  color: #374151;
  background: #fff;
  flex-shrink: 0;
}
.site-header-menu-btn:hover {
  background: #f9fafb;
}

.site-header-mobile {
  display: none;
  border-top: 1px solid #f3f4f6;
  padding: 0.75rem 0 1rem;
}
.site-header-mobile.is-open {
  display: block;
}
@media (min-width: 1024px) {
  .site-header-mobile {
    display: none !important;
  }
}
.site-header-mobile__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
}
.site-header-mobile__link {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
}
.site-header-mobile__link:hover {
  background: #f9fafb;
  color: #111827;
}
.site-header-mobile__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f3f4f6;
}
