/* Public home (DESIGN.md, Naslovnica): a deep blue hero that is navigation (headline, search, the
   main families as product tiles), the strip for business customers, every category as an index,
   shopping by job, manufacturers and help. Shared parts (logo wall, display headings, blockhead)
   live in shop.css. Tokens: tokens.css. One carousel (the hero slider), no company figures. */

/* ---------- Hero: deep blue, a blue diagonal plane behind the family tiles ---------- */

.sj-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--sj-blue-deep);
  color: var(--sj-white);
}
.sj-hero__band {
  position: absolute;
  z-index: -1;
  inset: 0 -20% 0 60%;
  background: var(--sj-blue);
  transform: skewX(-14deg);
  transform-origin: bottom left;
}
.sj-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 36rem);
  align-items: center;
  gap: var(--sj-s7);
  padding-block: var(--sj-s7);
}
.sj-hero__text {
  display: grid;
  gap: var(--sj-s4);
  max-width: 40rem;
}
.sj-hero h1 {
  font: 700 clamp(2rem, 4vw, 3.5rem) / 0.98 var(--sj-font-head);
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

.sj-hero__popular {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sj-s1) var(--sj-s3);
  font-size: var(--sj-text-sm);
}
.sj-hero__popular h2 {
  font: 700 var(--sj-text-xs) var(--sj-font-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sj-blue-deep-text);
}
.sj-hero__popular ul {
  display: contents;
  list-style: none;
}
.sj-hero__popular a {
  color: var(--sj-white);
  text-decoration: underline;
  text-decoration-color: var(--sj-blue-deep-line);
  text-underline-offset: 3px;
}
.sj-hero__popular a:hover {
  text-decoration-color: currentColor;
}

/* Family tiles: the studio photo fills the tile, deep blue rises from the bottom under the name
   and the article count (the one gradient DESIGN.md allows: deep blue over a photograph). */
.sj-families ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sj-s3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.sj-family {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--sj-s1);
  height: 100%;
  min-height: 13.5rem;
  padding: var(--sj-s4);
  overflow: hidden;
  border-radius: var(--sj-radius);
  background: var(--sj-blue-tint);
  color: var(--sj-white);
  text-decoration: none;
  transition: box-shadow var(--sj-base) var(--sj-ease-out);
}
.sj-family:hover {
  box-shadow: 0 10px 24px -12px var(--sj-shade);
}
.sj-family__img {
  position: absolute;
  inset: 0;
  z-index: -1;
  color: var(--sj-line-strong);
}
.sj-family__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgb(0 75 124 / 0.94) 0%,
    rgb(0 75 124 / 0.62) 30%,
    rgb(0 75 124 / 0) 62%
  );
}
.sj-family__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 480ms var(--sj-ease-out);
}
.sj-family:hover .sj-family__img img {
  transform: scale(1.05);
}
.sj-family__img .sj-icon {
  position: absolute;
  inset: 30% auto auto 50%;
  width: 2.5rem;
  height: 2.5rem;
  translate: -50% 0;
}
.sj-family__name {
  font: 700 1.5rem / 1.05 var(--sj-font-head);
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 1px 2px rgb(0 40 70 / 0.35);
}
.sj-family__n {
  display: inline-flex;
  align-items: center;
  gap: var(--sj-s1);
  color: rgb(255 255 255 / 0.88);
  font-size: var(--sj-text-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.sj-family__n .sj-icon {
  width: 1rem;
  height: 1rem;
  color: currentColor;
  transition: translate var(--sj-base) var(--sj-ease-out);
}
.sj-family:hover .sj-family__n .sj-icon {
  translate: 3px 0;
}
.sj-family:focus-visible {
  outline: 2px solid var(--sj-white);
  outline-offset: 2px;
}
.sj-families__all {
  display: inline-flex;
  align-items: center;
  gap: var(--sj-s2);
  margin-top: var(--sj-s3);
  color: var(--sj-white);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sj-families__all .sj-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* ---------- Business customers: one light blue strip right under the hero ---------- */

.sj-pro {
  background: var(--sj-blue-tint);
  border-bottom: var(--sj-rule);
}
.sj-pro__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "text actions"
    "list list";
  align-items: center;
  gap: var(--sj-s5) var(--sj-s6);
  padding-block: var(--sj-s6);
}
.sj-pro__text {
  grid-area: text;
}
.sj-pro__actions {
  grid-area: actions;
}
.sj-pro__list {
  grid-area: list;
}
.sj-pro__text h2 {
  font: 700 var(--sj-text-xl) / 1.1 var(--sj-font-head);
  text-transform: uppercase;
}
.sj-pro__text p {
  color: var(--sj-text-2);
}
.sj-pro__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sj-s3) var(--sj-s5);
  border-top: 1px solid rgb(0 105 170 / 0.18);
  margin: 0;
  padding: var(--sj-s5) 0 0;
  list-style: none;
  font-weight: 600;
  font-size: var(--sj-text-sm);
}
.sj-pro__list li {
  display: inline-flex;
  align-items: center;
  gap: var(--sj-s2);
}
.sj-pro__list .sj-icon {
  flex: none;
  width: 2rem;
  height: 2rem;
  padding: 0.375rem;
  border-radius: var(--sj-radius);
  background: var(--sj-blue);
  color: var(--sj-white);
}
.sj-pro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sj-s3);
}

/* ---------- Categories: every category with its count and first subcategories ---------- */

.sj-catindex {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--sj-rule);
  border-left: var(--sj-rule);
}
.sj-catindex__item {
  display: grid;
  align-content: start;
  gap: var(--sj-s2);
  padding: var(--sj-s4);
  border-right: var(--sj-rule);
  border-bottom: var(--sj-rule);
  transition: background-color var(--sj-base) var(--sj-ease-out);
}
.sj-catindex__item:hover {
  background: var(--sj-panel);
}
.sj-catindex__head {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sj-s3);
  color: var(--sj-text);
  text-decoration: none;
}
/* The studio photos have a wide light margin: the picture is zoomed so the product, not the
   backdrop, fills the frame. */
.sj-catindex__img {
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: var(--sj-radius);
  background: #e8eff5;
  color: var(--sj-line-strong);
  overflow: hidden;
}
.sj-catindex__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1.3;
  transition: transform var(--sj-base) var(--sj-ease-out);
}
.sj-catindex__img .sj-icon {
  width: 1.75rem;
  height: 1.75rem;
}
.sj-catindex__item:hover .sj-catindex__img img {
  transform: scale(1.06);
}
.sj-catindex__name {
  font: 700 var(--sj-text-md) / 1.2 var(--sj-font-head);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.sj-catindex__head:hover .sj-catindex__name {
  color: var(--sj-blue);
}
.sj-catindex__n {
  font-size: var(--sj-text-sm);
  color: var(--sj-text-3);
  font-variant-numeric: tabular-nums;
}
.sj-catindex__go {
  display: none;
}
.sj-catindex__subs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--sj-s3);
  margin: 0;
  padding: 0 0 0 calc(5.5rem + var(--sj-s3));
  list-style: none;
  font-size: var(--sj-text-sm);
  line-height: 1.6;
}
.sj-catindex__subs a {
  color: var(--sj-text-2);
  text-decoration: none;
}
.sj-catindex__subs a:hover {
  color: var(--sj-blue);
  text-decoration: underline;
}
.sj-catindex__more {
  font-weight: 600;
}

/* ---------- Shopping by job: photo, what the job is, what it needs ---------- */

.sj-jobs {
  margin-top: var(--sj-s8);
  padding-block: var(--sj-s8);
  background: var(--sj-panel);
}
.sj-jobs__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sj-s5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.sj-job {
  display: grid;
  grid-template-rows: auto 1fr;
  border: var(--sj-rule);
  border-radius: var(--sj-radius);
  background: var(--sj-white);
  overflow: hidden;
}
.sj-job__img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}
.sj-job__body {
  display: grid;
  align-content: start;
  gap: var(--sj-s2);
  padding: var(--sj-s4) var(--sj-s5) var(--sj-s5);
  border-top: 4px solid var(--sj-blue);
}
.sj-job__title {
  font: 700 var(--sj-text-lg) / 1.15 var(--sj-font-head);
  text-transform: uppercase;
}
.sj-job__lead {
  color: var(--sj-text-2);
  font-size: var(--sj-text-sm);
}
.sj-job__need {
  margin-top: var(--sj-s2);
  font: 700 var(--sj-text-xs) var(--sj-font-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sj-text-2);
}
.sj-job__links {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--sj-rule);
}
.sj-job__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--sj-tap);
  border-bottom: var(--sj-rule);
  color: var(--sj-text);
  font-weight: 600;
  font-size: var(--sj-text-sm);
  text-decoration: none;
}
.sj-job__links a:hover {
  color: var(--sj-blue);
}
.sj-job__links .sj-icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--sj-blue);
  transition: transform var(--sj-fast) var(--sj-ease-out);
}
.sj-job__links a:hover .sj-icon {
  transform: translateX(3px);
}

/* ---------- Help: phone, enquiry, branch ---------- */

.sj-help {
  padding-bottom: 0;
}
.sj-help .sj-display {
  margin-bottom: var(--sj-s5);
}
.sj-help__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sj-s4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.sj-help__card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--sj-s4);
  align-items: center;
  height: 100%;
  padding: var(--sj-s4) var(--sj-s5);
  border: var(--sj-rule);
  border-radius: var(--sj-radius);
  color: var(--sj-text);
  text-decoration: none;
  transition:
    border-color var(--sj-fast),
    background-color var(--sj-fast);
}
.sj-help__card:hover {
  border-color: var(--sj-blue);
  background: var(--sj-blue-tint);
}
.sj-help__card .sj-icon {
  grid-row: 1 / 3;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.625rem;
  border-radius: var(--sj-radius);
  background: var(--sj-blue);
  color: var(--sj-white);
}
.sj-help__card strong {
  font: 700 var(--sj-text-lg) var(--sj-font-head);
  text-transform: uppercase;
}
.sj-help__card span {
  color: var(--sj-blue);
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ---------- Motion: the hero settles in from visible; nothing hidden by default ---------- */

@media (prefers-reduced-motion: no-preference) {
  .sj-hero__text > *,
  .sj-families li {
    animation: sj-rise 700ms var(--sj-ease-out) both;
  }
  .sj-hero__text > :nth-child(2),
  .sj-families li:nth-child(2) {
    animation-delay: 60ms;
  }
  .sj-hero__text > :nth-child(n + 3),
  .sj-families li:nth-child(3) {
    animation-delay: 120ms;
  }
  .sj-families li:nth-child(4) {
    animation-delay: 180ms;
  }
  .sj-hero__band {
    animation: sj-sweep 900ms var(--sj-ease-out) both;
  }
}
@keyframes sj-rise {
  from {
    transform: translateY(0.75rem);
  }
}
@keyframes sj-sweep {
  from {
    transform: skewX(-14deg) translateX(3rem);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 79.99rem) {
  .sj-pro__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 63.99rem) {
  .sj-hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .sj-hero__band {
    inset: 50% -40% 0 25%;
  }
  .sj-families ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .sj-jobs__list {
    grid-template-columns: minmax(0, 1fr);
  }
  .sj-job {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    grid-template-rows: auto;
  }
  .sj-job__img {
    height: 100%;
    aspect-ratio: auto;
  }
  .sj-job__body {
    border-top: 0;
  }
}
@media (max-width: 47.99rem) {
  .sj-home-block {
    padding-top: var(--sj-s7);
  }
  .sj-hero__inner {
    gap: var(--sj-s5);
    padding-block: var(--sj-s6);
  }

  .sj-families ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sj-s2);
  }
  .sj-family {
    min-height: 9.5rem;
    padding: var(--sj-s3);
  }
  .sj-family__name {
    font-size: var(--sj-text-md);
  }
  .sj-pro__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "text"
      "list"
      "actions";
  }
  .sj-pro__list {
    grid-template-columns: minmax(0, 1fr);
  }
  .sj-pro__actions .sj-btn {
    flex: 1;
  }
  /* Categories become a list: picture, name, count, chevron */
  .sj-catindex {
    grid-template-columns: minmax(0, 1fr);
  }
  .sj-catindex__item {
    padding: var(--sj-s2) var(--sj-s3);
  }
  .sj-catindex__head {
    grid-template-columns: 4rem minmax(0, 1fr) auto auto;
  }
  .sj-catindex__img {
    width: 4rem;
    height: 4rem;
  }
  .sj-catindex__go {
    display: block;
    color: var(--sj-blue);
  }
  .sj-catindex__go .sj-icon {
    width: 1.25rem;
    height: 1.25rem;
  }
  .sj-catindex__subs {
    display: none;
  }
  .sj-jobs {
    margin-top: var(--sj-s7);
    padding-block: var(--sj-s7);
  }
  .sj-job {
    grid-template-columns: minmax(0, 1fr);
  }
  .sj-job__img {
    aspect-ratio: 16 / 7;
    height: auto;
  }
  .sj-job__body {
    border-top: 4px solid var(--sj-blue);
    padding: var(--sj-s4);
  }
  .sj-help__list {
    grid-template-columns: minmax(0, 1fr);
  }
  .home .sj-catindex__item:nth-child(n + 9) {
    display: none;
  }
  .home .sj-logowall li:nth-child(n + 9):not(.sj-logowall__all) {
    display: none;
  }
  .sj-catindex__all {
    display: flex;
  }
}
.sj-spot {
  padding-block: var(--sj-s8);
  background: var(--sj-blue-tint);
}
/* Featured manufacturer: a photograph panel carrying the maker's logo, story and way in, beside
   four of its articles in stock. Deep blue rises over the photo from below (the hero's gradient). */
.sj-spot__inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: stretch;
  gap: var(--sj-s4);
}
.sj-spot__feature {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 28rem;
  overflow: hidden;
  border-radius: var(--sj-radius);
  background: var(--sj-blue-deep);
  color: var(--sj-white);
}
.sj-spot__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
/* Credit an open licence asks for, small in the corner */
.sj-spot__credit {
  position: absolute;
  z-index: 3;
  top: var(--sj-s2);
  right: var(--sj-s2);
  padding: 0.125rem var(--sj-s2);
  border-radius: var(--sj-radius);
  background: rgb(0 0 0 / 0.45);
  color: rgb(255 255 255 / 0.85);
  font-size: 0.6875rem;
  text-decoration: none;
}
.sj-spot__credit:hover {
  color: var(--sj-white);
  text-decoration: underline;
}
.sj-spot__feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(0 75 124 / 0) 20%,
    rgb(0 75 124 / 0.82) 55%,
    var(--sj-blue-deep) 100%
  );
}
.sj-fanmark--spot {
  right: -6rem;
  bottom: -8rem;
  width: 22rem;
  height: 22rem;
  z-index: 1;
}
.sj-spot__text {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: start;
  gap: var(--sj-s3);
  padding: var(--sj-s6);
}
.sj-spot__logo {
  display: flex;
  align-items: center;
  height: 3.5rem;
  padding: var(--sj-s2) var(--sj-s4);
  border-radius: var(--sj-radius);
  background: var(--sj-white);
}
.sj-spot__logo img {
  max-height: 100%;
  width: auto;
}
.sj-spot__title {
  font: 700 clamp(1.625rem, 2.6vw, 2.25rem) / 1.02 var(--sj-font-head);
  text-transform: uppercase;
  text-wrap: balance;
}
.sj-spot__intro {
  max-width: 44ch;
  color: var(--sj-blue-deep-text);
}
.sj-spot__text .sj-btn {
  margin-top: var(--sj-s2);
}
.sj-spot__items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sj-s3);
}
.sj-spot__items .sj-pcard {
  border-color: transparent;
}
@media (max-width: 79.99rem) {
  .sj-spot__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .sj-spot__feature {
    min-height: 26rem;
  }
  .sj-spot__items {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 47.99rem) {
  .sj-spot {
    padding-block: var(--sj-s7);
  }
  .sj-spot__text {
    padding: var(--sj-s5) var(--sj-s4);
  }
  .sj-spot__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Ways into the catalogue ---------- */

.sj-catcta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sj-s4) var(--sj-s6);
  margin-top: var(--sj-s6);
  padding: var(--sj-s5) var(--sj-s6);
  border: var(--sj-rule);
  border-left: 0;
  border-right: 0;
  background: var(--sj-panel);
}
.sj-catcta h2 {
  font: 700 var(--sj-text-xl) / 1.1 var(--sj-font-head);
  text-transform: uppercase;
}
.sj-catcta p {
  max-width: 60ch;
  color: var(--sj-text-2);
}
.sj-catcta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sj-s3);
}
@media (max-width: 63.99rem) {
  .sj-catcta {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 47.99rem) {
  .sj-catcta {
    padding: var(--sj-s4);
  }
  .sj-catcta__actions .sj-btn {
    flex: 1 1 100%;
  }
}

/* ---------- Promotional banners: photo, deep blue from the bottom, title and the way in ---------- */

.sj-promos {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(13rem, auto));
  gap: var(--sj-s3);
  margin-top: var(--sj-s6);
}
.sj-promo {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 13rem;
  overflow: hidden;
  border-radius: var(--sj-radius);
  background: var(--sj-blue-deep);
  color: var(--sj-white);
  text-decoration: none;
}
.sj-promo--wide {
  grid-row: 1 / 3;
  min-height: 27rem;
}
.sj-promo img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--sj-ease-out);
}
.sj-promo::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 75 124 / 0) 35%, rgb(0 75 124 / 0.92) 100%);
}
.sj-promo:hover,
.sj-promo:focus-visible {
  color: var(--sj-white);
}
.sj-promo:hover img {
  transform: scale(1.04);
}
.sj-promo__text {
  display: grid;
  gap: var(--sj-s1);
  padding: var(--sj-s5);
}
.sj-promo__title {
  font: 700 var(--sj-text-xl) / 1.05 var(--sj-font-head);
  text-transform: uppercase;
}
.sj-promo--wide .sj-promo__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}
.sj-promo__line {
  max-width: 40ch;
  color: var(--sj-blue-deep-text);
  font-size: var(--sj-text-sm);
}
.sj-promo__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sj-s2);
  margin-top: var(--sj-s2);
  font-weight: 600;
}
.sj-promo__cta .sj-icon {
  width: 1.125rem;
  height: 1.125rem;
  transition: transform var(--sj-fast) var(--sj-ease-out);
}
.sj-promo:hover .sj-promo__cta .sj-icon {
  transform: translateX(4px);
}
@media (max-width: 63.99rem) {
  .sj-promos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }
  .sj-promo--wide {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 20rem;
  }
}
@media (max-width: 47.99rem) {
  .sj-promos {
    grid-template-columns: minmax(0, 1fr);
    margin-top: var(--sj-s5);
  }
  .sj-promo,
  .sj-promo--wide {
    min-height: 15rem;
  }
  .sj-promo__text {
    padding: var(--sj-s4);
  }
}

.sj-catindex__all {
  display: none;
  justify-content: center;
  margin-top: var(--sj-s3);
}
.sj-catindex__all .sj-btn {
  flex: 1;
}

/* Logo fan in the hero, behind the headline side */
.sj-fanmark--hero {
  left: -10rem;
  bottom: -16rem;
  width: 34rem;
  height: 34rem;
}
.sj-hero__inner {
  position: relative;
  z-index: 1;
}

/* ---------- Hero carousel (11. 11. 2026., user: a hero like the big regional retailers) ----------
   Slides edited in the admin (inc/promo.php). The photograph fills the slide; deep blue rises
   from the lower left under the title, the sentence and one white button. The track is a
   scroll-snap row, so it swipes by hand; site.js turns it every 6 s until it is touched. */

.sj-hero__text {
  max-width: none;
  min-width: 0;
}
.sj-slider {
  display: grid;
  gap: var(--sj-s3);
  min-width: 0;
}
.sj-slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: var(--sj-radius);
  box-shadow: 0 18px 40px -24px rgb(0 20 40 / 0.6);
}
.sj-slider__track::-webkit-scrollbar {
  display: none;
}
.sj-slide {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 16 / 10;
  scroll-snap-align: start;
  overflow: hidden;
  background: var(--sj-blue);
}
.sj-slide__img,
.sj-slide__img img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sj-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgb(0 75 124 / 0.92) 0%, rgb(0 75 124 / 0.55) 38%, rgb(0 75 124 / 0) 68%),
    linear-gradient(to right, rgb(0 75 124 / 0.55) 0%, rgb(0 75 124 / 0) 55%);
}
.sj-slide__body {
  display: grid;
  justify-items: start;
  gap: var(--sj-s3);
  max-width: 34rem;
  padding: var(--sj-s6);
}
.sj-slide__title {
  font: 700 clamp(1.75rem, 3.2vw, 2.75rem) / 0.98 var(--sj-font-head);
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 1px 3px rgb(0 30 50 / 0.35);
}
.sj-slide__text {
  max-width: 30rem;
  color: rgb(255 255 255 / 0.9);
  font-size: var(--sj-text-md);
  line-height: 1.45;
}
.sj-slide .sj-btn .sj-icon {
  transition: translate var(--sj-base) var(--sj-ease-out);
}
.sj-slide .sj-btn:hover .sj-icon {
  translate: 3px 0;
}
.sj-slide__credit {
  position: absolute;
  right: var(--sj-s2);
  bottom: var(--sj-s1);
  color: rgb(255 255 255 / 0.7);
  font-size: 0.6875rem;
}
.sj-slider__nav {
  display: flex;
  align-items: center;
  gap: var(--sj-s3);
}
.sj-slider__arrow {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: var(--sj-radius);
  background: transparent;
  color: var(--sj-white);
  cursor: pointer;
  transition: background-color var(--sj-base) var(--sj-ease-out);
}
.sj-slider__arrow:hover {
  background: rgb(255 255 255 / 0.12);
}
.sj-slider__arrow--prev .sj-icon {
  scale: -1 1;
}
.sj-slider__dots {
  display: flex;
  gap: var(--sj-s2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.sj-slider__dots button {
  display: block;
  width: 1.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.sj-slider__dots button::before {
  content: "";
  display: block;
  height: 4px;
  background: rgb(255 255 255 / 0.35);
  transition:
    background-color var(--sj-base) var(--sj-ease-out),
    height var(--sj-base) var(--sj-ease-out);
}
.sj-slider__dots button[aria-current="true"]::before {
  background: var(--sj-white);
}
.sj-hero__text .sj-hero__popular {
  margin-top: var(--sj-s1);
}
@media (max-width: 47.99rem) {
  .sj-hero__inner {
    padding-block: var(--sj-s4) var(--sj-s5);
    gap: var(--sj-s4);
  }
  .sj-slide {
    aspect-ratio: 4 / 4.2;
  }
  .sj-slide__body {
    padding: var(--sj-s4);
    gap: var(--sj-s2);
  }
  .sj-slide__text {
    font-size: var(--sj-text-sm);
  }
  .sj-slider__arrow {
    display: none;
  }
  .sj-slider__nav {
    justify-content: center;
  }
}

/* ---------- Hero contrast and the turning slider (11. 11. 2026., user: more contrast, cards turn by
   themselves every 5 s). The slide and tile scrims go darker and deeper, so white text holds on light
   photos; arrows and dots read clearly on deep blue; the active dot fills over the 5 s while the
   slider turns, which tells the visitor it moves and when. */
.sj-slide::before {
  background:
    linear-gradient(
      to top,
      rgb(0 38 66 / 0.96) 0%,
      rgb(0 50 86 / 0.78) 34%,
      rgb(0 60 100 / 0.28) 62%,
      rgb(0 60 100 / 0) 80%
    ),
    linear-gradient(to right, rgb(0 38 66 / 0.7) 0%, rgb(0 38 66 / 0) 60%);
}
.sj-slide__title {
  text-shadow: 0 2px 10px rgb(0 20 40 / 0.55);
}
.sj-slide__text {
  color: var(--sj-white);
  text-shadow: 0 1px 6px rgb(0 20 40 / 0.5);
}
.sj-family__img::after {
  background: linear-gradient(to top, rgb(0 38 66 / 0.97) 0%, rgb(0 50 86 / 0.72) 34%, rgb(0 60 100 / 0) 66%);
}
.sj-family__name {
  text-shadow: 0 2px 8px rgb(0 20 40 / 0.5);
}
.sj-family__n {
  color: var(--sj-white);
}
.sj-slider__arrow {
  border-color: rgb(255 255 255 / 0.7);
  background: rgb(0 38 66 / 0.35);
}
.sj-slider__arrow:hover {
  background: rgb(255 255 255 / 0.2);
}
.sj-slider__dots button::before {
  background: rgb(255 255 255 / 0.5);
}
.sj-slider__dots button[aria-current="true"]::before {
  background: linear-gradient(to right, var(--sj-white) 50%, rgb(255 255 255 / 0.5) 50%) 0 0 / 200% 100%;
  background-position: 0 0;
}
.sj-slider.is-playing .sj-slider__dots button[aria-current="true"]::before {
  background-position: 100% 0;
  animation: sj-slide-fill 5s linear forwards;
}
@keyframes sj-slide-fill {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sj-slider.is-playing .sj-slider__dots button[aria-current="true"]::before {
    animation: none;
    background-position: 0 0;
  }
}
