/*
 * Fixes layered on top of the Next.js build (synuthane.com audit, Nov 2026).
 * Unlayered on purpose: these rules win over Tailwind's @layer utilities.
 */

:root {
  --sx-red-on-dark: #ff5a6b;
}

/* Homepage "The latest" cards: darker top so the red labels read on light photos. */
a.group.relative.h-96 > .absolute.inset-0 {
  background-image: linear-gradient(to bottom, rgb(0 0 0 / 0.8) 0%, rgb(0 0 0 / 0.45) 35%, transparent 60%, rgb(0 0 0 / 0.4) 100%);
}
a.group.relative.h-96 .relative.p-6 > p:first-child {
  color: var(--sx-red-on-dark);
}

/* Header menu: company links stack under the systems on phones, and sit in one row on desktop. */
@media (min-width: 64rem) {
  .sx-menu-company {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0;
    padding-top: 0;
    border-top-width: 0;
  }
}

/* Contact page: WhatsApp link under the phone number. */
.sx-whatsapp {
  display: inline-block;
}

/* Search overlay, opened by the header search button. */
html.sx-search-open {
  overflow: hidden;
}
.sx-search {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: max(4.5rem, calc(env(safe-area-inset-top, 0px) + 1rem)) max(1rem, env(safe-area-inset-right, 0px)) 1rem max(1rem, env(safe-area-inset-left, 0px));
  background: rgb(0 0 0 / 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.sx-search[hidden] {
  display: none;
}
.sx-search__panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 40rem;
  max-height: calc(100dvh - 6rem);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 1.5rem;
  background: rgb(0 0 0 / 0.86);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.4);
  color: #fff;
}
.sx-search__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}
.sx-search__bar > svg {
  flex: none;
  color: rgb(255 255 255 / 0.5);
}
.sx-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 1rem;
}
.sx-search__input::placeholder {
  color: rgb(255 255 255 / 0.45);
}
/* The Esc button closes the overlay; the browser's own clear button only adds clutter. */
.sx-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.sx-search__close {
  flex: none;
  padding: 0.3rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  color: rgb(255 255 255 / 0.7);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}
.sx-search__close:hover {
  color: #fff;
}
.sx-search__results {
  margin: 0;
  padding: 0.5rem;
  overflow-y: auto;
  list-style: none;
}
.sx-search__label {
  padding: 0.7rem 0.75rem 0.3rem;
  color: var(--sx-red-on-dark);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.sx-search__item a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 0.9rem;
  color: rgb(255 255 255 / 0.85);
  text-decoration: none;
}
.sx-search__item a:hover,
.sx-search__item[aria-selected="true"] a {
  background: rgb(255 255 255 / 0.08);
  color: #fff;
}
.sx-search__title {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
}
.sx-search__sub {
  display: block;
  margin-top: 0.15rem;
  color: rgb(255 255 255 / 0.5);
  font-size: 0.75rem;
}
.sx-search__empty {
  padding: 1.25rem 0.75rem;
  color: rgb(255 255 255 / 0.6);
  font-size: 0.875rem;
}
.sx-search__item a:focus-visible,
.sx-search__close:focus-visible {
  outline: 2px solid var(--sx-red-on-dark);
  outline-offset: 2px;
}
