/* Homepage */

.ms-home {
  padding-bottom: 36px;
}

.ms-home-hero {
  margin-bottom: 36px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.ms-home-hero__media {
  width: 100%;
  overflow: hidden;
  background: #c8d1d6;
}

.ms-home-hero__image {
  display: block;
  width: 100%;
  height: auto;
}

.ms-home-hero__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(360px, 46vw, 760px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16) 25%, transparent 25%) 0
      0/80px 80px,
    linear-gradient(135deg, transparent 75%, rgba(255, 255, 255, 0.16) 75%) 0
      0/80px 80px,
    #bfc8ce;
  color: #fff;
  font-size: clamp(24px, 4vw, 54px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ms-home-products {
  margin-bottom: 36px;
}

.ms-home-products .woocommerce-notices-wrapper {
  margin: 0 0 28px;
  padding: 0;
}

.ms-home-products .woocommerce-info,
.ms-home-products .woocommerce-message,
.ms-home-products .woocommerce-error {
  margin: 0 0 28px;
}

.ms-home-products__grid,
.ms-product-grid,
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 35px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ms-home-products .ms-product-card,
.woocommerce ul.products li.product.ms-product-card {
  margin: 0;
  width: auto;
  float: none;
}

.ms-home-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  margin-bottom: 36px;
}

.ms-home-tile {
  position: relative;
  background: var(--ms-color-panel);
}

.ms-home-tile__media {
  min-height: clamp(260px, 31vw, 430px);
  background-color: #c8d1d6;
  overflow: hidden;
}

.ms-home-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ms-home-tile__label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  background: var(--ms-color-navy);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ms-newsletter {
  min-height: 120px;
  background-size: contain;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.ms-newsletter__form {
  width: 100%;
  display: flex;
}

.ms-newsletter__form form {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mc4wp-form-fields {
  display: flex;
  width: 75%;
}

.ms-newsletter__form .mc4wp-form-fields input {
  flex: 1;
  min-height: 52px;
  border: 0;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.ms-newsletter__form .mc4wp-form-fields .ms-button {
  min-height: 52px;
  flex-shrink: 0;
}

.ms-newsletter__form .mc4wp-response div {
  width: 100%;
  padding: 0 20px;
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.88);
  display: flex;
  justify-content: center;
  font-size: 1rem;
}

@media (max-width: 760px) {
  .home header {
    position: relative !important;
  }

  .home section.ms-home-hero {
    display: none;
  }

  .mc4wp-form-fields {
    display: flex;
    width: 100%;
  }
}
