/* ==========================================================================
   otterpro.com — page specific styles
   Header / footer visual parity comes from entire.css + site.css (copied from
   the reference site). Everything below only styles the new page body.
   ========================================================================== */

body {
  background: #fff;
}

/* keep the (very short) copyright bar at the bottom of short viewports */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.op-main {
  flex: 1 0 auto;
}

/* ---------------------------------------------------------------- hero ---- */
.op-hero {
  position: relative;
  background: #474c55;
  overflow: hidden;
}

.op-hero__img {
  display: block;
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------- categories ---- */
.op-cats {
  background: #fff;
  padding: 56px 0 74px;
}

.op-cats__inner {
  width: min(1410px, 55vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.op-card {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 454 / 469;
  background: #101214;
  isolation: isolate;
  text-decoration: none;
}

.op-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}

.op-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background: linear-gradient(to top, rgba(0, 0, 0, .58), rgba(0, 0, 0, 0));
  pointer-events: none;
  z-index: 1;
}

.op-card__label {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: clamp(14px, 1.55vw, 26px);
  z-index: 2;
  margin: 0;
  text-align: center;
  color: #fff;
  font-family: "Manrope Bold", "Manrope SemiBold", Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(13px, 1.2vw, 18px);
  line-height: 1.3;
  letter-spacing: .2px;
}

.op-card:hover .op-card__img,
.op-card:focus-visible .op-card__img {
  transform: scale(1.045);
}

.op-card:focus-visible {
  outline: 2px solid #0091ff;
  outline-offset: 3px;
}

/* ------------------------------------------------------- responsive ----- */
@media (max-width: 1199px) {
  .op-cats__inner {
    width: min(1100px, 88vw);
  }
}

@media (max-width: 767px) {
  /* zoom the lineup so machines stay legible on a phone */
  .op-hero__img {
    width: 152%;
    max-width: none;
    margin-left: -26%;
  }

  .op-cats {
    padding: 30px 0 44px;
  }

  .op-cats__inner {
    width: 88vw;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .op-card__label {
    bottom: 16px;
    font-size: 15px;
  }
}

/* --------------------------------------------------- header helpers ----- */
/* the reference site positions the desktop submenu with JS; make sure the
   panel can escape the swiper clipping the same way it does there */
.unit-header-nav__subNav {
  z-index: 10;
}

.unit-header-nav__subNav.show {
  pointer-events: auto;
}

/* language dropdown open/close state is toggled by site.js */
.unit-header-language__items.hide {
  display: none;
}

/* mobile menu accordion (state is toggled by site.js) */
.unit-header-menu__nav__item-content {
  display: none;
}

.unit-header-menu__nav__item-content.is-open {
  display: block;
}

.unit-header-menu__nav__item-drop.is-open {
  transform: rotate(180deg);
}
