/* CM-Vetrina Home Banner. All component rules stay inside this wrapper. */
@font-face {
  font-family: "CMHomeBannerKanit";
  src: url("./fonts/kanit-light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "CMHomeBannerKanit";
  src: url("./fonts/kanit-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "CMHomeBannerKanit";
  src: url("./fonts/kanit-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

.cm-home-banner {
  --cmhb-font-family: "Kanit", "CMHomeBannerKanit", Arial, sans-serif;
  --cmhb-ink: #142632;
  --cmhb-muted: #56666f;
  --cmhb-paper: #fff;
  --cmhb-line: #c9d5de;
  --cmhb-gutter: 12px;
  --cmhb-header-height: 94px;
  --cmhb-sticky-offset: 112px;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 43% 57%;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 var(--cmhb-gutter);
  border: 0;
  border-radius: 0;
  background: var(--cmhb-paper);
  color: var(--cmhb-ink);
  font: 300 16px/1.6 var(--cmhb-font-family);
  font-synthesis: none;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  overflow: visible;
}

.cm-home-banner,
.cm-home-banner *,
.cm-home-banner *::before,
.cm-home-banner *::after {
  box-sizing: border-box;
}

.cm-home-banner .cmhb-narrative {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding-right: 32px;
}

.cm-home-banner .cmhb-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--cmhb-header-height));
  min-height: calc(100svh - var(--cmhb-header-height));
  padding: 70px 0 38px;
}

.cm-home-banner .cmhb-eyebrow {
  margin: 0 0 28px;
  padding: 0;
  color: inherit;
  font: 400 14px/1.5 var(--cmhb-font-family);
  letter-spacing: .12em;
  text-align: left;
  text-transform: none;
}

.cm-home-banner .cmhb-title {
  margin: 0 0 32px;
  padding: 0;
  border: 0;
  color: var(--cmhb-ink);
  font: 400 72px/.97 var(--cmhb-font-family);
  letter-spacing: -.055em;
  text-align: left;
  text-transform: none;
  overflow-wrap: normal;
}

.cm-home-banner .cmhb-title span {
  color: #5a7d99;
  font: inherit;
  letter-spacing: inherit;
}

.cm-home-banner .cmhb-hero-lead {
  max-width: 480px;
  margin: 0 0 30px;
  padding: 0;
  color: var(--cmhb-ink);
  font: 300 20px/1.5 var(--cmhb-font-family);
  text-align: left;
}

.cm-home-banner .cmhb-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.cm-home-banner .cmhb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin: 0;
  padding: 15px 25px;
  border: 1px solid var(--cmhb-ink);
  border-radius: 0;
  background: var(--cmhb-ink);
  color: #fff;
  box-shadow: none;
  font: 400 16px/1.3 var(--cmhb-font-family);
  text-align: center;
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
  transition: background-color .2s, border-color .2s;
}

.cm-home-banner .cmhb-button:hover {
  border-color: #3f6480;
  background: #3f6480;
  color: #fff;
}

.cm-home-banner .cmhb-link {
  display: inline-block;
  align-self: flex-start;
  margin: 0;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: var(--cmhb-ink);
  box-shadow: none;
  font: 400 16px/1.3 var(--cmhb-font-family);
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
  transition: color .2s;
}

.cm-home-banner .cmhb-actions .cmhb-link {
  align-self: auto;
  font-size: 15px;
}

.cm-home-banner .cmhb-link:hover {
  color: #426aac;
}

.cm-home-banner a:focus-visible {
  outline: 3px solid #325cbd;
  outline-offset: 5px;
}

.cm-home-banner .cmhb-story {
  margin: 0;
  padding: 30px 0 50px;
  border: 0;
  background: transparent;
}

.cm-home-banner .cmhb-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 76vh;
  min-height: 76svh;
  max-width: 490px;
  margin: 0;
  padding: 70px 0;
  border: 0;
  border-top: 1px solid var(--cmhb-line);
  background: transparent;
}

.cm-home-banner .cmhb-step:first-child {
  border-top: 0;
}

.cm-home-banner .cmhb-step .cmhb-eyebrow {
  margin-bottom: 20px;
  color: #4c6f89;
}

.cm-home-banner .cmhb-step-title {
  margin: 0 0 26px;
  padding: 0;
  border: 0;
  color: var(--cmhb-ink);
  font: 400 38px/1.08 var(--cmhb-font-family);
  letter-spacing: -.035em;
  text-align: left;
  text-transform: none;
}

.cm-home-banner .cmhb-step-copy {
  max-width: 420px;
  margin: 0 0 22px;
  padding: 0;
  color: var(--cmhb-ink);
  font: 300 19px/1.6 var(--cmhb-font-family);
  text-align: left;
}

.cm-home-banner .cmhb-stage-column {
  position: relative;
  min-width: 0;
}

.cm-home-banner .cmhb-stage {
  position: sticky;
  top: var(--cmhb-sticky-offset);
  width: 100%;
  height: calc(100vh - var(--cmhb-sticky-offset) - 33px);
  height: calc(100svh - var(--cmhb-sticky-offset) - 33px);
  min-height: 0;
  max-height: 720px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: var(--cmhb-paper);
  background-image: none;
}

.cm-home-banner .cmhb-fallback {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0;
  padding: 24px 0;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  opacity: 1;
  transition: opacity .2s;
}

.cm-home-banner.cmhb-webgl-ready .cmhb-fallback {
  opacity: 0;
}

.cm-home-banner .cmhb-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  transition: none;
}

.cm-home-banner .cmhb-canvas[hidden] {
  display: none;
}

.cm-home-banner .cmhb-stage-caption {
  position: absolute;
  z-index: 3;
  bottom: 16px;
  left: 22px;
  max-width: calc(100% - 44px);
  margin: 0;
  padding: 0;
  color: #596d7a;
  font: 300 12px/1.5 var(--cmhb-font-family);
  letter-spacing: normal;
  pointer-events: none;
}

/* Match the existing Home .container, without changing its shared styles. */
@media (min-width: 576px) {
  .cm-home-banner { max-width: 540px; }
}
@media (min-width: 768px) {
  .cm-home-banner { max-width: 720px; }
}
@media (min-width: 992px) {
  .cm-home-banner { max-width: 960px; }
}
@media (min-width: 1200px) {
  .cm-home-banner { max-width: 1140px; }
  .cm-home-banner .cmhb-title { font-size: 84px; }
  .cm-home-banner .cmhb-step-title { font-size: 44px; }
}
@media (min-width: 1400px) {
  .cm-home-banner { max-width: 1320px; }
  .cm-home-banner .cmhb-title { font-size: 96px; }
  .cm-home-banner .cmhb-step-title { font-size: 48px; }
}
@media (max-width: 991px) {
  .cm-home-banner {
    --cmhb-mobile-stage-height: clamp(180px, 30vh, 260px);
    display: flex;
    flex-direction: column;
  }
  .cm-home-banner .cmhb-narrative { display: contents; }
  .cm-home-banner .cmhb-hero-copy {
    order: 0;
    min-height: 0;
    padding: 32px 0 20px;
  }
  .cm-home-banner .cmhb-title {
    margin-bottom: 20px;
    font-size: clamp(52px, 8.3vw, 64px);
  }
  .cm-home-banner .cmhb-hero-lead {
    max-width: 600px;
    margin-bottom: 22px;
    font-size: 17px;
  }
  .cm-home-banner .cmhb-actions { gap: 13px; }
  .cm-home-banner .cmhb-button {
    min-height: 48px;
    padding: 12px 18px;
    font-size: 15px;
  }
  .cm-home-banner .cmhb-actions .cmhb-link { font-size: 14px; }
  .cm-home-banner .cmhb-stage-column {
    order: 1;
    position: sticky;
    top: max(0px, calc(var(--cmhb-sticky-offset) - 18px));
    z-index: 3;
    flex-shrink: 0;
    align-self: stretch;
    width: 100%;
    margin: 0;
    background: var(--cmhb-paper);
  }
  .cm-home-banner .cmhb-stage {
    position: relative;
    top: 0;
    height: var(--cmhb-mobile-stage-height);
    max-height: none;
  }
  .cm-home-banner .cmhb-fallback { padding: 4px 0 24px; }
  .cm-home-banner .cmhb-stage-caption {
    left: 0;
    bottom: 4px;
    max-width: 100%;
    width: 100%;
    text-align: center;
    font-size: 10px;
  }
  .cm-home-banner .cmhb-story {
    order: 2;
    display: grid;
    grid-template-columns: 1fr;
    padding: 8px 0 20px;
  }
  .cm-home-banner .cmhb-step {
    min-height: clamp(300px, calc(78vh - var(--cmhb-sticky-offset) - var(--cmhb-mobile-stage-height)), 360px);
    max-width: none;
    padding: 24px 0;
    scroll-margin-top: calc(var(--cmhb-sticky-offset) + var(--cmhb-mobile-stage-height) + 16px);
  }
  .cm-home-banner .cmhb-step .cmhb-eyebrow {
    margin-bottom: 12px;
    font-size: 12px;
  }
  .cm-home-banner .cmhb-step-title { margin-bottom: 14px; font-size: 32px; }
  .cm-home-banner .cmhb-step-copy { margin-bottom: 14px; font-size: 16px; }
}
@supports (height: 1svh) {
  @media (max-width: 991px) {
    .cm-home-banner { --cmhb-mobile-stage-height: clamp(180px, 30svh, 260px); }
    .cm-home-banner .cmhb-step {
      min-height: clamp(300px, calc(78svh - var(--cmhb-sticky-offset) - var(--cmhb-mobile-stage-height)), 360px);
    }
  }
}
@media (max-width: 575px) {
  .cm-home-banner .cmhb-title { font-size: clamp(40px, 11vw, 50px); }
  .cm-home-banner .cmhb-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
  .cm-home-banner .cmhb-step-title { font-size: 30px; }
}
@media (max-width: 991px) and (max-height: 520px) {
  .cm-home-banner .cmhb-stage-column { position: relative; top: 0; }
  .cm-home-banner .cmhb-step { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cm-home-banner *,
  .cm-home-banner *::before,
  .cm-home-banner *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .cm-home-banner { display: block; background: #fff; }
  .cm-home-banner .cmhb-stage-column { display: none; }
  .cm-home-banner .cmhb-hero-copy,
  .cm-home-banner .cmhb-step { min-height: 0; padding-block: 25px; }
}
