/* ================================================================
   COOL FACTOR CAMPAIGN HOMEPAGE
   Goes with the $cool_factor flag in new-homepage.php.
   Values measured from the 1x Figma export (COOL FACTOR 48).
   Safe to delete this whole block when the campaign ends.
   ================================================================ */
.cf-home {
  --cf-blue: #659cca;
  --cf-blue-hover: #4a7cb5;
  --cf-beige: #f1efec;
  --cf-ink: #52433d;
  font-family: 'Montserrat', "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #fff;
}

.cf-home *,
.cf-home *::before,
.cf-home *::after {
  box-sizing: border-box;
}
.new-dialog.sev-header__dialog{
	background:#659cca;
}
/* neutralize the generic section padding applied by the compiled theme css */
.page-template-template-cool-free-laser main.cf-home section {
  padding: 0;
}

/* content column: 1660px like the design, gutters 24/48 */
.cf-container {
  max-width: 1756px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 981px) {
  .cf-container {
    padding-left: 48px;
    padding-right: 48px;
  }
}

/* ---- buttons ---- */
.cf-home a.cf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.cf-home a.cf-btn--blue {
  height: 48px;
  padding: 0 40px;
  font-size: 15px;
  background: var(--cf-blue);
  color: #fff;
}

.cf-home a.cf-btn--blue:hover {
  background: var(--cf-blue-hover);
  color: #fff;
}

.cf-home a.cf-btn--light {
  height: 40px;
  padding: 0 28px;
  font-size: 14px;
  background: var(--cf-beige);
  color: var(--cf-ink);
}

.cf-home a.cf-btn--light:hover {
  background: #fff;
  color: var(--cf-ink);
}

/* ---- hero ---- */
.page-template-template-cool-free-laser main.cf-home .cf-hero {
  margin-top: 139px; /* fixed header offset, same as the old hero */
}

.cf-hero__media {
  position: relative;
  height: min(56.8vw, 1002px);
  overflow: hidden;
}

.cf-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 50%;
  display: block;
}

/* container-aligned overlay */
.cf-hero__inner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
}

.cf-hero__card {
  width: 518px;
  max-width: 100%;
  margin-left: 36px; /* design: card sits 36px in from the container line */
  background: #fff;
  border-radius: 24px;
  padding: 56px;
  box-shadow: 0 12px 40px rgba(24, 48, 80, 0.12);
}

.cf-hero__title {
  margin: 0 0 28px;
  color: var(--cf-blue);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cf-hero__desc {
  margin: 0 0 36px;
  color: var(--cf-blue);
  font-size: 17px;
  line-height: 1.65;
}

.cf-hero__note {
  position: absolute;
  right: 24px;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.cf-hero__cta-mobile {
  display: none;
}

/* ---- savings cards ---- */
.page-template-template-cool-free-laser main.cf-home .cf-savings {
  padding: 100px 0;
}

/* high specificity: the theme's global h2 rule centers headings */
.page-template-template-cool-free-laser main.cf-home .cf-savings__title {
  margin: 0 0 64px;
  color: var(--cf-ink);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-align: left;
}

.cf-savings__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.cf-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.cf-card__media {
  position: relative;
}

/* 'Synthetic performer' disclaimer on the freeze card (approved design update) */
.cf-card__note {
  position: absolute;
  right: 48px;
  bottom: 20px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.cf-card--performer .cf-card__body {
  padding-bottom: 80px; /* button clears the caption */
}

.cf-card__media img {
  width: 100%;
  height: auto;
  display: block;
}

.cf-card__media::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(0deg, rgba(20, 35, 55, 0.55) 0%, rgba(20, 35, 55, 0) 45%);
  pointer-events: none;
}

.cf-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 0 48px 48px;
  color: #fff;
}

.cf-card__title {
  margin: 0 0 18px;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cf-card__desc {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 16px;
  line-height: 1.6;
}

/* ---- terms & conditions ---- */
.page-template-template-cool-free-laser main.cf-home .cf-terms {
  padding: 88px 0 56px;
  background: var(--cf-ink);
  text-align: center;
}

.cf-terms__title {
  margin: 0 0 24px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cf-terms__text {
  margin: 0 auto;
  max-width: 1240px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.7;
}

/* ================= mobile ================= */
@media (max-width: 980px) {

  .page-template-template-cool-free-laser main.cf-home .cf-hero {
    margin-top: 0;
  }

  .cf-hero__media {
    height: auto;
    aspect-ratio: 375 / 593;
  }

  .cf-hero__media img {
    object-position: center;
  }

  .cf-hero__inner {
    padding: 0;
    align-items: flex-end;
  }

  /* figma: padding 40/24/14, gap 27 between title, text and caption */
  .cf-hero__card {
    width: 100%;
    max-width: none;
    margin-left: 0;
    border-radius: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 100%);
    box-shadow: none;
    padding: 40px 24px 14px;
    text-align: center;
  }

  .cf-hero__title {
    color: #fff;
    font-size: 24px;
    margin-bottom: 27px;
  }

  .cf-hero__desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    margin-bottom: 27px;
  }

  .cf-home .cf-hero__card a.cf-hero__cta {
    display: none; /* on mobile the button moves below the photo */
  }

  .cf-hero__cta-mobile {
    display: block;
    padding: 40px 24px 0;
  }

  .cf-hero__cta-mobile .cf-btn {
    width: 100%;
  }

  .cf-hero__note {
    right: auto;
    left: 24px;
    bottom: 20px;
    text-align: left;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
  }

  .page-template-template-cool-free-laser main.cf-home .cf-savings {
    padding: 40px 0 48px;
  }

  .page-template-template-cool-free-laser main.cf-home .cf-savings__title {
    display: none; /* heading is desktop-only in the design */
  }

  .cf-savings__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* text is below the image here, so the image wrapper gets the radius */
  .cf-card {
    border-radius: 0;
  }

  .cf-card__media {
    border-radius: 12px;
    overflow: hidden;
  }

  .cf-card__media::after {
    display: none;
  }

  .cf-card__note {
    right: auto;
    left: 12px;
    bottom: 12px;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.7);
  }

  .cf-card--performer .cf-card__body {
    padding-bottom: 0;
  }

  .cf-card__body {
    position: static;
    padding: 48px 16px 0;
    color: inherit;
  }

  .cf-card__title {
    color: var(--cf-blue);
    font-size: 27px;
    line-height: 1.3;
    letter-spacing: 0;
  }

  .cf-card__desc {
    color: var(--cf-blue);
    font-size: 16px;
    line-height: 1.65;
  }

  .cf-card__body .cf-btn {
    width: 100%;
  }

  .page-template-template-cool-free-laser main.cf-home .cf-terms {
    padding: 48px 0;
  }

  .cf-terms__title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .cf-terms__text {
    font-size: 13px;
    line-height: 1.8;
  }
}
