/**
 * Hoover+ front-page transition template.
 * Scoped to body.page-hoover-transition so other pages are unaffected.
 */

body.page-hoover-transition {
  background: #fff;
  color: #000;
  margin: 0;
  overflow-x: hidden;
  font-family: 'Futura';
  font-weight: 500;
}

body.page-hoover-transition h1 {
  color: #fff;
}

body.page-hoover-transition .ht-page {
  min-height: 100vh;
  background: #fff;
  font-family: 'Futura';
  font-weight: 500;
}

body.page-hoover-transition .ht-page a:focus-visible,
body.page-hoover-transition .ht-page .ht-btn:focus-visible,
body.page-hoover-transition .ht-page .ht-card:focus-visible {
  outline: 2px solid #00f1e6;
  outline-offset: 3px;
}

/* Alert */
.ht-alert {
  background: #951e34;
  color: #fff;
  /* text-align: center; */
  padding: 9px 15px;
}

.ht-alert__inner {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}

.ht-alert__icon {
  flex: 0 0 auto;
  margin-top: 2px;
  line-height: 0;
}

.ht-alert p {
  margin: 0;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2%;
  color: #fff;
  font-family: Helvetica, Arial, sans-serif;
}

/* Header — logo only, reuses Drupal $logo */
.ht-header {
  background: #fff;
}

.ht-header__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 20px 16px 14px;
}

.ht-header__logo {
  display: inline-block;
  line-height: 0;
}

.ht-header__logo img {
  display: block;
  width: 125px;
  height: auto;
}

/* Hero */
.ht-hero {
  background-color: #021e34;
  background-image: url("../images/hoover-transition/hero-banner.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.ht-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ht-hero__copy {
  /* max-width: 640px; */
  /* width: 89%; */
  margin: 0 auto;
  text-align: center;
}

.ht-hero__copy h1 {
  margin: 0 0 11px;
  color: #fff;
  /* font-family: 'futura-pt', Helvetica, Arial, sans-serif; */
  font-size: 20px;
  line-height: 100%;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  /* text-align: left; */
}

.ht-hero__copy p {
  margin: 0 auto;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.ht-btn--cyan {
  margin-top: 26px;
}

.ht-hero__redirect {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px auto 0 !important;
  font-size: 12px !important;
  font-weight: 500;
  color: #fff;
  text-align: center;
}

.ht-hero__clock {
  display: inline-flex;
  line-height: 0;
  flex: 0 0 auto;
}

.ht-hero__art {
  display: flex;
  justify-content: center;
}

.ht-hero__bulb {
  display: block;
  width: min(117px, 72vw);
  height: auto;
}

/* Buttons */
.ht-btn {
  display: inline-block;
  border-radius: 8px;
  /* font-family: 'futura-pt', Helvetica, Arial, sans-serif; */
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

a.ht-btn:link,
a.ht-btn:visited,
a.ht-btn:hover,
a.ht-btn:focus {
  text-decoration: none;
}

a.ht-btn--cyan,
a.ht-btn--cyan:link,
a.ht-btn--cyan:visited {
  background: #00f1e6;
  color: #000;
}

a.ht-btn--cyan:hover,
a.ht-btn--cyan:focus {
  background: #00d8ce;
  color: #000;
}

a.ht-btn--red,
a.ht-btn--red:link,
a.ht-btn--red:visited {
  background: #951e34;
  color: #fff;
  min-width: 158px;
}

a.ht-btn--red:hover,
a.ht-btn--red:focus {
  background: #7d182b;
  color: #fff;
}

/* Where things went */
.ht-went {
  display: grid;
  grid-template-areas:
    "devices"
    "title"
    "cards"
    "cta";
  gap: 26px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 31px 20px 41px;
}

.ht-went__devices {
  grid-area: devices;
  text-align: center;
}

.ht-went__devices img {
  display: inline-block;
  max-width: 256px;
  width: 100%;
  height: auto;
}

.ht-went__title {
  grid-area: title;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  color: #2C373D;
  /* font-family: 'futura-pt', Helvetica, Arial, sans-serif; */
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 100%;
  text-transform: uppercase;
  text-align: center;
}

.ht-went__title::before,
.ht-went__title::after {
  content: "";
  flex: 1 1 auto;
  height: 2px;
  background: #66666680;
}

.ht-went__title span {
  flex: 0 0 auto;
}

.ht-went__cards {
  grid-area: cards;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 72%;
  margin: 0 auto;
  gap: 24px 32px;
}

@media (max-width: 400px) {
  .ht-went__cards {
    gap: 12px;
    width: 100%;
  }
}

.ht-went__cta {
  grid-area: cta;
  text-align: center;
}

a.ht-card,
a.ht-card:link,
a.ht-card:visited,
a.ht-card:hover,
a.ht-card:focus {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 3 / 4;
  background: #111;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

body.page-hoover-transition .ht-card__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  overflow: hidden;
  background: #1a1a1a;
}

body.page-hoover-transition .ht-card__media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), transparent);
  pointer-events: none;
  z-index: 1;
}

body.page-hoover-transition .ht-card__photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

body.page-hoover-transition a.ht-card .ht-card__logo {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  max-width: none;
}

body.page-hoover-transition .ht-card__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-height: 48px;
  padding: 20px 10px;
  background: transparent;
}

.ht-card__cta-container {
  display: flex;
  align-items: flex-end;
  width: 100%;
  /* justify-content: space-between;
  gap: 8px; */
}

.ht-card__cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.ht-card:hover .ht-card__name {
  color: #00f1e6;
}

.ht-card__name {
  font-size: 11px;
  line-height: 1.1;
  font-weight: 500;
  text-align: center;
  flex-grow: 1;
  transition: color 0.3s ease;
}

.ht-card__arrow {
  flex: 0 0 auto;
  line-height: 0;
}

/* Footer */
.ht-footer {
  background: #000;
  color: #cfcfcf;
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.ht-footer__legal {
  margin: 0;
  font-size: 9px;
  font-weight: 500;
  color: #ffffff;
  opacity: 0.6;
}

.ht-footer__legal a,
.ht-footer__legal a:visited {
  color: #c8c8c8;
  text-decoration: underline;
}

.ht-footer__legal a:hover,
.ht-footer__legal a:focus {
  color: #fff;
}

.ht-footer__sep {
  margin: 0 6px;
}

.ht-footer__brands {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ht-footer__logo {
  display: block;
  height: 38px;
  width: auto;
  max-width: 100%;
  opacity: 0.6;
}

@media (min-width: 768px) {
  .ht-alert {
    padding: 9px 24px;
  }

  .ht-alert p {
    font-size: 12px;
  }

  .ht-header__inner {
    padding: 18px 24px 16px;
  }

  .ht-header__logo img {
    width: 150px;
  }

  .ht-btn {
    font-size: 14px;
  }

  .ht-hero__inner {
    flex-direction: row;
    /* align-items: center; */
    justify-content: space-between;
    padding: 40px 16px 36px;
    gap: 24px;
  }

  .ht-hero__copy {
    flex: 0 0 68%;
    margin: 0 auto;
  }

  .ht-hero__copy h1 {
    font-size: 22px;
  }

  .ht-hero__copy p {
    font-size: 16px;
    /* max-width: 520px; */
  }

  .ht-hero__redirect {
    font-size: 14px !important;
  }

  .ht-btn--cyan {
    margin-top: 34px;
  }

  .ht-hero__art {
    flex: 0 0 17%;
    align-items: center;
  }

  .ht-hero__bulb {
    width: min(152px, 36vw);
  }

  .ht-went {
    padding: 32px 40px 34px;
    gap: 28px;
  }

  .ht-went__title {
    font-size: 16px;
  }

  .ht-went__devices img {
    /* max-width: 480px; */
  }

  .ht-went__cards {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 95%;
  }

  .ht-card__name {
    font-size: 13px;
  }

  .ht-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 16px 24px;
  }

  .ht-footer__logo {
    height: 39px;
  }

  .ht-footer__legal {
    font-size: 12px;
  }
}

@media (min-width: 1120px) {
  .ht-alert p {
    font-size: 14px;
  }

  .ht-btn {
    font-size: 16px;
  }

  .ht-header__inner {
    padding: 18px 60px 16px;
  }

  .ht-header__logo img {
    width: 205px;
  }

  .ht-hero__copy h1 {
    font-size: 26px;
  }

  .ht-hero__inner {
    padding: 57px 16px 43px;
  }

  .ht-hero__copy {
    flex: 0 0 60.8%;
    margin: 0 0 0 auto;
  }

  .ht-btn--cyan {
    margin-top: 40px;
  }

  .ht-hero__art {
    flex: 0 0 27%;
    justify-content: flex-start;
  }

  .ht-hero__bulb {
    width: min(198px, 36vw);
  }

  .ht-went {
    grid-template-columns: minmax(220px, 280px) 1fr;
    grid-template-areas:
      "title title"
      "devices cards"
      "cta cta";
    align-items: center;
    column-gap: 45px;
    row-gap: 27px;
    padding: 36px 62px 56px;
  }

  .ht-went__title {
    font-size: 18px;
    width: 68%;
    margin-left: auto;
  }

  .ht-went__devices {
    text-align: left;
  }

  .ht-went__devices img {
    max-width: 100%;
  }

  .ht-went__cards {
    width: 100%;
    gap: 16px;
  }

  .ht-card {
    aspect-ratio: 3 / 4.1;
  }

  .ht-card__name {
    font-size: 14px;
  }

  .ht-went__cta {
    width: 70%;
    margin-left: auto;
  }

  .ht-footer {
    padding: 16px 60px;
  }

  .ht-footer__legal {
    font-size: 16px;
  }
}

@media (min-width: 1360px) {
  .ht-alert p {
    font-size: 16px;
  }

  .ht-header__inner {
    max-width: 1400px;
    padding: 18px 60px 18px;
  }

  .ht-hero__inner {
    padding: 57px 16px 52px;
    gap: 24px;
  }

  .ht-hero__copy {
    flex: 0 0 63%;
  }

  .ht-hero__art {
    flex: 0 0 26%;
  }

  .ht-hero__bulb {
    width: min(186px, 36vw);
  }

  .ht-went {
    max-width: 1226px;
    column-gap: 70px;
    padding: 38px 62px 56px;
  }

  .ht-card__name {
    /* font-size: 16px; */
    /* padding-left: 14px; */
  }
  
  .ht-footer {
    padding: 16px 80px;
  }
} 

@media (max-width: 767px) {
  .ht-alert__inner {
    align-items: flex-start;
  }

  .ht-hero__copy h1,
  .ht-hero__copy p {
    /* text-align: left; */
  }

  .ht-btn {
    width: auto;
  }

  .ht-hero {
    background-position: center bottom;
  }
}
