:root {
  --ecs-shadow: 0 14px 40px rgb(31 37 40 / 10%);
  --ecs-border: 1px solid rgb(31 37 40 / 12%);
  --ecs-radius: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-wrap: break-word;
}

img {
  height: auto;
}

a {
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #cf2734;
  outline-offset: 3px;
}

.ecs-skip-link {
  left: 1rem;
  position: fixed;
  top: -10rem;
  z-index: 10000;
}

.ecs-skip-link:focus {
  background: #fff;
  color: #1f2528;
  padding: 0.75rem 1rem;
  top: 1rem;
}

.ecs-site-header {
  background: rgb(255 255 255 / 96%);
  border-bottom: var(--ecs-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-bar .ecs-site-header {
  top: 32px;
}

.ecs-header-inner {
  min-height: 82px;
}

.ecs-header-inner .wp-block-site-logo img {
  max-height: 64px;
  object-fit: contain;
  width: auto;
}

.ecs-main {
  min-height: 55vh;
}

.ecs-page-hero,
.ecs-product-hero {
  background: linear-gradient(135deg, #f3f4f2, #fff);
  border-bottom: var(--ecs-border);
}

.ecs-page-hero {
  border-bottom: 0;
}

.ecs-page-content > :first-child {
  margin-top: 0;
}

.ecs-page-content > :last-child {
  margin-bottom: 0;
}

.ecs-site-footer {
  background: #1f2528;
  color: #fff;
  margin-top: clamp(3rem, 7vw, 7rem);
}

.ecs-site-footer a,
.ecs-site-footer h2,
.ecs-site-footer h3 {
  color: #fff;
}

.ecs-footer-meta {
  border-top: 1px solid rgb(255 255 255 / 18%);
}

.ecs-nav-list,
.ecs-language-list,
.ecs-footer-nav,
.ecs-product-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ecs-primary-nav {
  align-items: center;
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.ecs-nav-list {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.15rem;
}

.ecs-nav-list a {
  color: #1f2528;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.ecs-nav-list a:hover,
.ecs-nav-list .current-menu-item > a {
  color: #cf2734;
}

.ecs-nav-products {
  position: relative;
}

.ecs-nav-products > details > summary {
  color: #1f2528;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  list-style: none;
}

.ecs-nav-products > details > summary::-webkit-details-marker {
  display: none;
}

.ecs-nav-products > details > summary::after {
  content: " ▾";
}

.ecs-product-submenu {
  background: #fff;
  border: var(--ecs-border);
  border-radius: 6px;
  box-shadow: var(--ecs-shadow);
  display: grid;
  gap: 0.55rem;
  left: 0;
  min-width: 260px;
  padding: 1rem;
  position: absolute;
  top: calc(100% + 0.6rem);
}

.ecs-language-list {
  display: flex;
  gap: 0.25rem;
}

.ecs-language-list a,
.ecs-language-list span {
  border: 1px solid rgb(31 37 40 / 20%);
  border-radius: 3px;
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.45rem 0.5rem;
  text-decoration: none;
}

.ecs-language-list .is-current {
  background: #cf2734;
  border-color: #cf2734;
  color: #fff;
}

.ecs-hero-slider {
  background: #1f2528;
  color: #fff;
  height: clamp(520px, calc(100svh - 82px), 760px);
  margin-block: 0;
  min-height: 520px;
  overflow: hidden;
  position: relative;
}

.ecs-hero-slider__slides,
.ecs-hero-slide,
.ecs-hero-slide__shade {
  inset: 0;
  position: absolute;
}

.ecs-hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms ease, visibility 700ms ease;
}

.ecs-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.ecs-hero-slide__image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  position: absolute;
  width: 100%;
}

.ecs-hero-slide__shade {
  background:
    linear-gradient(90deg, rgb(14 18 20 / 78%) 0%, rgb(14 18 20 / 48%) 43%, rgb(14 18 20 / 10%) 76%),
    linear-gradient(0deg, rgb(14 18 20 / 34%) 0%, transparent 44%);
}

.ecs-hero-slide__content {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  margin-inline: auto;
  max-width: 1180px;
  padding: clamp(3.5rem, 8vw, 7rem) clamp(4rem, 8vw, 7rem);
  position: relative;
  text-shadow: 0 2px 20px rgb(0 0 0 / 48%);
  z-index: 2;
}

.ecs-hero-slide__content h1,
.ecs-hero-slide__content h2 {
  color: #fff;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0;
  max-width: 12ch;
  text-wrap: balance;
}

.ecs-hero-slide__content p {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.45;
  margin: 1.25rem 0 0;
  max-width: 34rem;
}

.ecs-hero-slide__button {
  background: #cf2734;
  border: 2px solid #cf2734;
  border-radius: 3px;
  color: #fff;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  margin-top: 2rem;
  padding: 0.85rem 1.2rem;
  text-decoration: none;
  text-shadow: none;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.ecs-hero-slide__button:hover {
  background: #a91e29;
  border-color: #a91e29;
  color: #fff;
  transform: translateY(-2px);
}

.ecs-hero-slider__arrow,
.ecs-hero-slider__pause,
.ecs-hero-slider__dots button {
  appearance: none;
  background: rgb(16 20 22 / 52%);
  border: 1px solid rgb(255 255 255 / 48%);
  color: #fff;
  cursor: pointer;
}

.ecs-hero-slider__arrow {
  align-items: center;
  border-radius: 50%;
  display: flex;
  font-size: 2.5rem;
  height: 3rem;
  justify-content: center;
  line-height: 1;
  padding: 0 0 0.2rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  z-index: 3;
}

.ecs-hero-slider__arrow:hover,
.ecs-hero-slider__pause:hover {
  background: rgb(207 39 52 / 90%);
  border-color: #cf2734;
}

.ecs-hero-slider__arrow.is-previous {
  left: clamp(0.75rem, 2vw, 2rem);
}

.ecs-hero-slider__arrow.is-next {
  right: clamp(0.75rem, 2vw, 2rem);
}

.ecs-hero-slider__controls {
  align-items: center;
  bottom: clamp(1rem, 3vw, 2rem);
  display: flex;
  gap: 0.75rem;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  z-index: 3;
}

.ecs-hero-slider__dots {
  align-items: center;
  display: flex;
  gap: 0.55rem;
}

.ecs-hero-slider__dots button {
  border-radius: 50%;
  height: 0.75rem;
  padding: 0;
  width: 0.75rem;
}

.ecs-hero-slider__dots button[aria-current="true"] {
  background: #cf2734;
  border-color: #fff;
  transform: scale(1.25);
}

.ecs-hero-slider__pause {
  align-items: center;
  border-radius: 50%;
  display: flex;
  font-size: 0.75rem;
  height: 2rem;
  justify-content: center;
  padding: 0;
  width: 2rem;
}

.ecs-product-grid-block.alignwide {
  left: 50%;
  position: relative;
  transform: translateX(-50%);
  width: min(1180px, calc(100vw - clamp(2rem, 8vw, 4rem)));
}

.ecs-product-grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 2rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ecs-product-card {
  background: #fff;
  border: var(--ecs-border);
  border-radius: var(--ecs-radius);
  box-shadow: 0 8px 24px rgb(31 37 40 / 6%);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.ecs-product-card:hover {
  box-shadow: var(--ecs-shadow);
  transform: translateY(-3px);
}

.ecs-product-card__image {
  aspect-ratio: 4 / 3;
  background: #f3f4f2;
  display: block;
  overflow: hidden;
}

.ecs-product-card__image img {
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
  width: 100%;
}

.ecs-product-card:hover .ecs-product-card__image img {
  transform: scale(1.025);
}

.ecs-product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1rem, 2vw, 1.5rem);
}

.ecs-product-card__title {
  font-size: 1.25rem;
  margin: 0;
}

.ecs-product-card__title a {
  color: #1f2528;
  text-decoration: none;
}

.ecs-product-card__excerpt {
  margin: 0;
}

.ecs-product-card__more {
  font-weight: 750;
  margin-top: auto;
}

.ecs-breadcrumbs {
  color: #626a6e;
  font-size: 0.875rem;
}

.ecs-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ecs-breadcrumbs li:not(:last-child)::after {
  color: #a0a5a8;
  content: "/";
  margin-left: 0.35rem;
}

.ecs-contact-card {
  background: #1f2528;
  border-radius: var(--ecs-radius);
  color: #fff;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.ecs-contact-card h2,
.ecs-contact-card a {
  color: #fff;
}

.ecs-native-gallery img {
  border-radius: 6px;
}

.ecs-brand-grid {
  display: grid !important;
  gap: clamp(0.75rem, 2vw, 1.25rem) !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ecs-brand-grid > .wp-block-image {
  align-items: center;
  aspect-ratio: 571 / 215;
  background: #fff;
  border: var(--ecs-border);
  border-radius: 7px;
  display: flex !important;
  justify-content: center;
  margin: 0 !important;
  padding: clamp(0.65rem, 1.5vw, 1.1rem);
  width: 100% !important;
}

.ecs-brand-grid > .wp-block-image img {
  height: 100% !important;
  max-height: 100%;
  object-fit: contain !important;
  width: 100% !important;
}

@media (max-width: 900px) {
  .ecs-header-inner {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 0.75rem !important;
    padding-bottom: 1rem;
    padding-top: 1rem;
  }

  .ecs-primary-nav,
  .ecs-nav-list {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
  }

  .ecs-product-submenu {
    border: 0;
    box-shadow: none;
    min-width: 0;
    padding: 0.75rem 0 0.25rem 1rem;
    position: static;
  }

  .ecs-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ecs-brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-bar .ecs-site-header {
    top: 46px;
  }
}

@media (max-width: 560px) {
  .ecs-hero-slider {
    height: 560px;
    min-height: 560px;
  }

  .ecs-hero-slide__shade {
    background: linear-gradient(0deg, rgb(14 18 20 / 84%) 0%, rgb(14 18 20 / 38%) 82%);
  }

  .ecs-hero-slide__content {
    justify-content: flex-end;
    padding: 4rem 1.25rem 5.5rem;
  }

  .ecs-hero-slide__content h1,
  .ecs-hero-slide__content h2 {
    font-size: clamp(2.25rem, 12vw, 3.5rem);
  }

  .ecs-hero-slide__content p {
    font-size: 1rem;
  }

  .ecs-hero-slider__arrow {
    height: 2.5rem;
    width: 2.5rem;
  }

  .ecs-product-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .ecs-hero-slide {
    transition: none;
  }
}
