/* Hero shared by every ordinary family category. */
body#category:has(.sauleda-category-hero) #header.header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1070;
}

body#category:has(.sauleda-category-hero) .breadcrumb__wrapper {
  display: none;
}

.sauleda-category-hero {
  position: relative;
  display: flex;
  width: 100vw;
  height: 84vh;
  min-height: 560px;
  max-height: 760px;
  margin-left: calc(50% - 50vw);
  align-items: center;
  overflow: hidden;
  background: #2a2a28;
  color: #fff;
}

.sauleda-category-hero--fallback {
  min-height: 560px;
}

.sauleda-category-hero__image,
.sauleda-category-hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sauleda-category-hero__image {
  display: block;
  object-fit: cover;
  object-position: center;
}

.sauleda-category-hero__overlay {
  background: linear-gradient(100deg, rgb(20 20 18 / 86%) 10%, rgb(20 20 18 / 35%) 60%, rgb(20 20 18 / 15%) 100%);
}

.sauleda-category-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
}

.sauleda-category-hero__breadcrumb {
  position: static;
  z-index: 3;
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgb(255 255 255 / 70%);
  font-size: .7rem;
  letter-spacing: .06em;
  line-height: 1.5;
}

.sauleda-category-hero__breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}

.sauleda-category-hero__breadcrumb a:hover {
  color: #fff;
}

.sauleda-category-hero__breadcrumb a:focus-visible,
.sauleda-category-hero__button:focus-visible {
  outline: 3px solid rgb(255 255 255 / 55%);
  outline-offset: 3px;
}

.sauleda-category-hero__content {
  width: 100%;
  max-width: 620px;
}

.sauleda-category-hero__eyebrow {
  display: inline-block;
  margin: 0 0 22px;
  padding: 7px 16px;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 999px;
  background: rgb(255 255 255 / 12%);
  color: #fff;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.sauleda-category-hero__title,
.sauleda-category-hero__description h1 {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.04;
}

body#category .sauleda-category-hero .sauleda-category-hero__title {
  display: block;
  padding: 0;
  background: transparent;
  text-transform: none;
}

.sauleda-category-hero__description {
  max-width: 480px;
  color: rgb(255 255 255 / 82%);
  font-size: 1rem;
  line-height: 1.75;
}

.sauleda-category-hero__description p {
  margin: 0 0 12px;
}

.sauleda-category-hero__description > :last-child {
  margin-bottom: 0;
}

.sauleda-category-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.sauleda-category-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: .78rem;
  letter-spacing: .05em;
  text-decoration: none;
  transition: color .25s, background-color .25s, border-color .25s, transform .25s;
}

.sauleda-category-hero__button:hover {
  transform: translateY(-1px);
}

.sauleda-category-hero__button--primary {
  border: 0;
  background: #b82828;
  color: #fff;
  font-weight: 500;
}

.sauleda-category-hero__button--primary:hover {
  background: #8c1f1f;
  color: #fff;
}

.sauleda-category-hero__button--secondary {
  border: 1.5px solid rgb(255 255 255 / 55%);
  background: rgb(255 255 255 / 10%);
  color: #fff;
  font-weight: 400;
}

.sauleda-category-hero__button--secondary:hover {
  border-color: #fff;
  background: rgb(255 255 255 / 20%);
  color: #fff;
}

.sauleda-category-hero--fallback .sauleda-category-hero__overlay {
  background:
    radial-gradient(circle at 78% 24%, rgb(184 40 40 / 24%), transparent 38%),
    linear-gradient(100deg, #1a1a18 10%, #33312d 62%, #4a4540 100%);
}

@media (max-width: 767.98px) {
  .sauleda-category-hero {
    min-height: 560px;
  }

  .sauleda-category-hero__inner {
    padding-top: 96px;
    padding-bottom: 42px;
    gap: 20px;
  }

  .sauleda-category-hero__overlay {
    background: linear-gradient(180deg, rgb(20 20 18 / 78%) 0%, rgb(20 20 18 / 40%) 48%, rgb(20 20 18 / 74%) 100%);
  }

  .sauleda-category-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .sauleda-category-hero__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sauleda-category-hero__button,
  .sauleda-category-hero__breadcrumb a {
    transition: none;
  }
}
