/* Shen Home — email subscribe strip (sits flush on the footer) */

.content-container:has(.hm-subscribe) {
  padding-bottom: 0 !important;
}

.shen-home-v2 .hm-subscribe {
  position: relative;
  overflow: hidden;
  padding: 36px 0 34px;
  background:
    radial-gradient(520px 220px at 0% 0%, rgba(143, 38, 29, .08), transparent 70%),
    radial-gradient(520px 220px at 100% 100%, rgba(143, 38, 29, .06), transparent 70%),
    #f4f0eb;
  color: var(--ink);
}

.shen-home-v2 .hm-subscribe__layout {
  display: grid;
  grid-template-columns: 48px minmax(240px, 380px) minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "badge eyebrow form social"
    "badge title   form social";
  align-items: start;
  column-gap: 16px;
  row-gap: 4px;
}

.shen-home-v2 .hm-subscribe__layout--no-social {
  grid-template-columns: 48px minmax(240px, 380px) minmax(0, 1fr);
  grid-template-areas:
    "badge eyebrow form"
    "badge title   form";
}

.shen-home-v2 .hm-subscribe__badge {
  grid-area: badge;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 8px 18px rgba(143, 38, 29, .22);
}

.shen-home-v2 .hm-subscribe__badge svg {
  width: 22px;
  height: 22px;
}

.shen-home-v2 .hm-subscribe__eyebrow {
  grid-area: eyebrow;
  align-self: end;
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary-color);
}

.shen-home-v2 .hm-subscribe__title {
  grid-area: title;
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
}

.shen-home-v2 .hm-subscribe__title em {
  font-style: normal;
  color: var(--primary-color);
}

.shen-home-v2 .hm-subscribe__form {
  grid-area: form;
  justify-self: center;
  width: 100%;
  max-width: 600px;
  min-width: 0;
  margin: 0 0 0 32px;
}

.shen-home-v2 .hm-subscribe__row {
  display: flex;
  gap: 10px;
}

.shen-home-v2 .hm-subscribe__sr,
.shen-home-v2 .hm-subscribe__trap {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
  white-space: nowrap;
}

.shen-home-v2 .hm-subscribe__field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
}

.shen-home-v2 .hm-subscribe__field-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  color: #a39a92;
  pointer-events: none;
  transition: color .2s ease;
}

.shen-home-v2 .hm-subscribe__field:focus-within .hm-subscribe__field-icon {
  color: var(--primary-color);
}

.shen-home-v2 .hm-subscribe__input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 48px;
  margin: 0;
  padding: 0 16px 0 44px;
  border: 1px solid #e3ddd6;
  border-radius: var(--inputs-buttons-border-radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  box-shadow: 0 1px 2px rgba(23, 19, 15, .04);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.shen-home-v2 .hm-subscribe__input::placeholder {
  color: #9a948e;
}

.shen-home-v2 .hm-subscribe__input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(143, 38, 29, .12);
}

.shen-home-v2 .hm-subscribe__input[aria-invalid="true"] {
  border-color: #c62828;
}

.shen-home-v2 .hm-subscribe__button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  margin: 0;
  padding: 0 24px;
  border: 0;
  border-radius: var(--inputs-buttons-border-radius);
  background: var(--button-color);
  color: var(--button-text-color);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(143, 38, 29, .2);
  transition: background-color .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.shen-home-v2 .hm-subscribe__button svg {
  width: 18px;
  height: 18px;
  transition: transform .2s ease;
}

.shen-home-v2 .hm-subscribe__button:hover {
  background: var(--button-color-hover);
  box-shadow: 0 8px 18px rgba(143, 38, 29, .26);
}

.shen-home-v2 .hm-subscribe__button:hover svg {
  transform: translateX(3px);
}

.shen-home-v2 .hm-subscribe__button:focus-visible,
.shen-home-v2 .hm-subscribe__social-link:focus-visible,
.shen-home-v2 .hm-subscribe__consent a:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

.shen-home-v2 .hm-subscribe__button[disabled] {
  opacity: .6;
  cursor: progress;
}

.shen-home-v2 .hm-subscribe__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}

.shen-home-v2 .hm-subscribe__consent input {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  flex: 0 0 auto;
  display: inline-block;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 1.5px solid #b9b2ab;
  border-radius: 4px;
  background: #fff;
  opacity: 1;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}

.shen-home-v2 .hm-subscribe__consent input:checked {
  border-color: var(--primary-color);
  background: var(--primary-color);
}

.shen-home-v2 .hm-subscribe__consent input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.shen-home-v2 .hm-subscribe__consent input:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.shen-home-v2 .hm-subscribe__consent.is-invalid {
  color: #c62828;
}

.shen-home-v2 .hm-subscribe__consent.is-invalid input {
  border-color: #c62828;
}

.shen-home-v2 .hm-subscribe__consent a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(107, 101, 96, .45);
  text-underline-offset: 2px;
}

.shen-home-v2 .hm-subscribe__consent a:hover {
  color: var(--primary-color);
  text-decoration-color: currentColor;
}

.shen-home-v2 .hm-subscribe__msg {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.4;
}

.shen-home-v2 .hm-subscribe__msg:empty {
  display: none;
}

.shen-home-v2 .hm-subscribe__msg.is-success {
  color: #2e7d32;
}

.shen-home-v2 .hm-subscribe__msg.is-error {
  color: #c62828;
}

.shen-home-v2 .hm-subscribe__social {
  grid-area: social;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-left: 32px;
}

.shen-home-v2 .hm-subscribe__social-label {
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8f8780;
  white-space: nowrap;
}

.shen-home-v2 .hm-subscribe__social-list {
  display: flex;
  gap: 10px;
}

.shen-home-v2 .hm-subscribe__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #e3ddd6;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.shen-home-v2 .hm-subscribe__social-link:hover {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
}

.shen-home-v2 .hm-subscribe__social-link svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 1000px) {
  .shen-home-v2 .hm-subscribe__layout,
  .shen-home-v2 .hm-subscribe__layout--no-social {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "badge eyebrow social"
      "badge title   social"
      "form  form    form";
  }
  .shen-home-v2 .hm-subscribe__form {
    max-width: none;
    margin: 14px 0 0;
  }
  .shen-home-v2 .hm-subscribe__social {
    margin-left: 16px;
  }
}

@media (max-width: 600px) {
  .shen-home-v2 .hm-subscribe {
    padding: 28px 0;
  }
  .shen-home-v2 .hm-subscribe__layout,
  .shen-home-v2 .hm-subscribe__layout--no-social {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-areas:
      "badge eyebrow social"
      "title title   title"
      "form  form    form";
    column-gap: 12px;
    row-gap: 12px;
  }
  .shen-home-v2 .hm-subscribe__badge {
    width: 40px;
    height: 40px;
    box-shadow: 0 6px 14px rgba(143, 38, 29, .2);
  }
  .shen-home-v2 .hm-subscribe__badge svg {
    width: 19px;
    height: 19px;
  }
  .shen-home-v2 .hm-subscribe__eyebrow {
    align-self: center;
  }
  .shen-home-v2 .hm-subscribe__title {
    font-size: 17px;
  }
  .shen-home-v2 .hm-subscribe__form {
    margin: 2px 0 0;
  }
  .shen-home-v2 .hm-subscribe__row {
    gap: 8px;
  }
  .shen-home-v2 .hm-subscribe__field-icon {
    left: 13px;
  }
  .shen-home-v2 .hm-subscribe__input {
    padding: 0 12px 0 40px;
  }
  .shen-home-v2 .hm-subscribe__button {
    padding: 0 16px;
  }
  .shen-home-v2 .hm-subscribe__button svg {
    display: none;
  }
  .shen-home-v2 .hm-subscribe__social {
    align-self: center;
    margin-left: 0;
  }
  .shen-home-v2 .hm-subscribe__social-label {
    display: none;
  }
  .shen-home-v2 .hm-subscribe__social-link {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 359px) {
  .shen-home-v2 .hm-subscribe__row {
    flex-direction: column;
  }
  .shen-home-v2 .hm-subscribe__button {
    width: 100%;
  }
}
