/* ============================================================
   Custom Page Styles (B2B)
   File: /assets/css/custom.css
   Depends on: /assets/css/gateway.css
   ============================================================ */

:root{
  --custom-alert-h: 40px;
  --custom-alert-h-mobile: 55px;
}

.custom-page{
  background:#ffffff;
}

/* Never underline CTA buttons */
.custom-page a.vt-btn,
.custom-page a.vt-btn:visited,
.custom-page a.vt-btn:hover,
.custom-page a.vt-btn:active{
  text-decoration:none;
}

/* ============================================================
   TOP ANNOUNCEMENT BAR
   ============================================================ */

.custom-topAlert{
  position:relative;
  z-index:40;
  min-height:var(--custom-alert-h);
  background:#b91c1c;
  color:#ffffff;
  border-bottom:1px solid rgba(255,255,255,0.14);
}

.custom-topAlert__inner{
  min-height:var(--custom-alert-h);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  padding:6px 16px;
}

.custom-topAlert__text{
  font-size:13px;
  line-height:1.35;
  font-weight:800;
  text-align:center;
}

.custom-topAlert__link{
  flex:0 0 auto;
  color:#ffffff;
  text-decoration:none;
  font-size:13px;
  line-height:1.2;
  font-weight:900;
  border-bottom:1px solid rgba(255,255,255,0.65);
}

.custom-topAlert__link:hover{
  color:#ffffff;
  border-bottom-color:#ffffff;
}

@media (max-width:767px){
  .custom-topAlert{
    min-height:var(--custom-alert-h-mobile);
  }

  .custom-topAlert__inner{
    min-height:var(--custom-alert-h-mobile);
    padding:7px 14px;
  }

  .custom-topAlert__text{
    font-size:12px;
  }
}

/* Push transparent header down only when alert is enabled */
body.vt-has-custom-alert .vt-header{
  top:var(--custom-alert-h);
}

@media (max-width:767px){
  body.vt-has-custom-alert .vt-header{
    top:var(--custom-alert-h-mobile);
  }
}

/* ============================================================
   HERO
   ============================================================ */

.custom-hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  background-color:#0b0f19;
}

body.vt-has-custom-alert .custom-hero{
  min-height:calc(100vh - var(--custom-alert-h));
}

@media (max-width:767px){
  body.vt-has-custom-alert .custom-hero{
    min-height:calc(92vh - var(--custom-alert-h-mobile));
  }
}

.custom-hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background-image:var(--custom-hero-mobile, url("/assets/images/hero/custom-hero-mobile.jpg"));
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
  transform:scale(1.14);
  animation:customHeroZoomOut 1100ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  will-change:transform;
}

@media (min-width:1025px){
  .custom-hero::before{
    background-image:var(--custom-hero-desktop, url("/assets/images/hero/custom-hero.jpg"));
    background-position:center center;
  }
}

@keyframes customHeroZoomOut{
  0%   { transform:scale(1.18); }
  100% { transform:scale(1.00); }
}

@keyframes customHeroTextFade{
  from{
    opacity:0;
    transform:translateY(16px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

@media (prefers-reduced-motion: reduce){
  .custom-hero::before{
    animation:none !important;
    transform:scale(1) !important;
  }

  .custom-hero__content{
    animation:none !important;
  }
}

.custom-hero__overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(
    180deg,
    rgba(0,0,0,0.03) 0%,
    rgba(0,0,0,0.07) 38%,
    rgba(0,0,0,0.18) 70%,
    rgba(0,0,0,0.45) 90%
  );
}

.custom-hero__inner{
  position:relative;
  z-index:2;
  width:100%;
  padding:120px 0 34px;
}

@media (min-width:860px){
  .custom-hero__inner{
    padding:140px 0 46px;
  }
}

.custom-hero__content{
  width:100%;
  max-width:none;
  margin:0 auto;
  padding:0 24px;
  text-align:center;
  animation:customHeroTextFade 900ms ease-out 500ms both;
}

.custom-hero__title{
  display:block;
  width:100%;
  margin:0 0 10px;
  font-weight:900;
  letter-spacing:-0.03em;
  line-height:1.04;
  font-size:34px;
  color:#ffffff;
  text-align:center;
  text-shadow:0 3px 22px rgba(0,0,0,0.75);
}

.custom-hero__sub{
  display:block;
  width:100%;
  max-width:none;
  margin:0 auto;
  font-weight:650;
  line-height:1.5;
  font-size:16px;
  color:rgba(255,255,255,0.96);
  text-align:center;
  text-shadow:0 2px 18px rgba(0,0,0,0.70);
}

@media (min-width:1400px){
  .custom-hero__title{
    font-size:50px;
  }

  .custom-hero__sub{
    font-size:18px;
  }
}

@media (min-width:768px) and (max-width:1399px){
  .custom-hero__title{
    font-size:40px;
  }

  .custom-hero__sub{
    font-size:17px;
  }
}

@media (min-width:768px) and (max-width:1024px){
  .custom-hero{
    min-height:94vh;
  }

  .custom-hero::before{
    background-position:center 25%;
  }

  body.vt-has-custom-alert .custom-hero{
    min-height:calc(94vh - var(--custom-alert-h));
  }

  .custom-hero__inner{
    padding:118px 0 34px;
  }

  .custom-hero__title{
    font-size:42px;
    line-height:1.08;
  }

  .custom-hero__sub{
    font-size:16px;
    line-height:1.45;
  }
}

@media (max-width:767px){
  .custom-hero{
    min-height:92vh;
  }

  .custom-hero__inner{
    padding:90px 0 20px;
  }

  .custom-hero__content{
    padding:0 18px;
  }

  .custom-hero__title{
    font-size:30px;
    line-height:1.08;
  }

  .custom-hero__sub{
    display:none;
  }
}

@media (max-width:430px){
  .custom-hero{
    min-height:90vh;
  }

  body.vt-has-custom-alert .custom-hero{
    min-height:calc(90vh - var(--custom-alert-h-mobile));
  }

  .custom-hero__inner{
    padding:84px 0 18px;
  }

  .custom-hero__title{
    font-size:26px;
  }
}

.custom-strip{
  display:none;
}

/* ============================================================
   PANELS
   ============================================================ */

.custom-panel{
  padding:52px 0;
  background:#ffffff;
}

@media (min-width:900px){
  .custom-panel{
    padding:70px 0;
  }
}

.custom-panel--alt{
  background:#f8fafc;
}

.custom-panel__grid{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
  align-items:center;
}

@media (min-width:980px){
  .custom-panel__grid{
    grid-template-columns:1.05fr 0.95fr;
    gap:38px;
  }
}

@media (min-width:980px){
  .custom-panel__grid--alt{
    grid-template-columns:0.95fr 1.05fr;
  }
}

.custom-panel__content{
  max-width:720px;
}

.custom-panel__content--center{
  margin-left:auto;
  margin-right:auto;
  text-align:center;
  max-width:1280px;
}

.custom-panel__content--center .custom-panel__lead{
  margin-left:auto;
  margin-right:auto;
  max-width:860px;
}

.custom-panel__lead--left{
  text-align:left;
}

.custom-panel__title{
  margin:0 0 10px;
  font-weight:950;
  letter-spacing:-0.02em;
  font-size:28px;
  color:#111827;
}

@media (min-width:900px){
  .custom-panel__title{
    font-size:34px;
  }
}

.custom-panel__lead{
  margin:0 0 14px;
  font-weight:650;
  font-size:15px;
  line-height:1.6;
  color:rgba(17,24,39,0.78);
}

.custom-richText{
  margin:0 0 16px;
  font-size:14px;
  line-height:1.55;
  color:rgba(17,24,39,0.78);
}

.custom-richText p{
  margin:0 0 12px;
}

.custom-richText ul,
.custom-richText ol{
  margin:0 0 16px;
  padding-left:18px;
  display:grid;
  gap:10px;
}

.custom-richText li{
  margin:0;
}

.custom-richText a{
  color:inherit;
  text-decoration:underline;
}

.custom-panel__ctaRow{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}

.custom-panel__note{
  margin:14px 0 0;
  font-size:13px;
  line-height:1.55;
  color:rgba(17,24,39,0.62);
}

.custom-noteHtml p{
  margin:0 0 10px;
}

.custom-noteHtml p:last-child{
  margin-bottom:0;
}

/* ============================================================
   MEDIA FRAME
   Changed so section images keep their natural ratio
   instead of being forced into a square crop.
   ============================================================ */

.custom-panel__media{
  display:flex;
  justify-content:center;
}

.custom-mediaFrame{
  width:min(520px,100%);
  border-radius:22px;
  overflow:hidden;
  border:1px solid rgba(17,24,39,0.10);
  box-shadow:0 24px 70px rgba(0,0,0,0.14);
  background:#e5e7eb;
}

.custom-mediaFrame img{
  width:100%;
  height:auto;
  display:block;
  object-fit:contain;
}

/* ============================================================
   MOBILE PANEL ORDER
   ============================================================ */

@media (max-width:979px){
  .custom-panel__grid{
    grid-template-areas:
      "media"
      "content";
  }

  .custom-panel__media{ grid-area:media; }
  .custom-panel__content{ grid-area:content; }
}

/* ============================================================
   MY DESIGNS PANEL
   ============================================================ */

.custom-panel--mydesigns{
  background:#ffffff;
}

.custom-designsGrid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
  gap:16px;
  max-width:1120px;
  margin:18px auto 0;
  align-items:start;
}

.custom-designsGrid--single{
  grid-template-columns:minmax(250px, 360px);
  max-width:360px;
  justify-content:center;
}

@media (max-width:640px){
  .custom-designsGrid,
  .custom-designsGrid--single{
    grid-template-columns:1fr;
    max-width:none;
  }
}

.custom-designCard{
  border-radius:20px;
  overflow:hidden;
  border:1px solid rgba(17,24,39,0.12);
  box-shadow:0 14px 42px rgba(0,0,0,0.10);
  background:#fafafa;
  text-align:left;
  height:100%;
}

.custom-designCard--singleImage{
  max-width:none;
  margin-left:0;
  margin-right:0;
}

.custom-designCard__code{
  padding:14px 16px;
  font-weight:950;
  font-size:14px;
  letter-spacing:0.04em;
  text-transform:uppercase;
  color:#111827;
  background:#ffffff;
  text-align:center;
  border-bottom:1px solid rgba(17,24,39,0.08);
}

.custom-designCard__images{
  display:grid;
  gap:14px;
  padding:16px;
  justify-content:center;
  align-items:start;
}

.custom-designCard__images--1{
  grid-template-columns:minmax(180px, 260px);
  justify-content:center;
}

.custom-designCard__images--2{
  grid-template-columns:repeat(2, minmax(160px, 1fr));
}

.custom-designCard__images--3{
  grid-template-columns:repeat(3, minmax(130px, 1fr));
}

@media (max-width:700px){
  .custom-designCard__images--2,
  .custom-designCard__images--3{
    grid-template-columns:1fr;
  }

  .custom-designCard__images--1{
    grid-template-columns:1fr;
  }
}

@media (min-width:1100px){
  .custom-designCard:has(.custom-designCard__images--2),
  .custom-designCard:has(.custom-designCard__images--3){
    grid-column:span 2;
  }
}

.custom-designPrint{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.custom-designPrint__label{
  font-weight:800;
  font-size:12px;
  color:#111827;
  text-align:center;
}

.custom-designPrint__frame{
  background:var(--design-bg, #f3f4f6);
  border:1px solid rgba(17,24,39,0.10);
  border-radius:16px;
  padding:12px;
  min-height:170px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.custom-designPrint__frame img{
  max-width:100%;
  max-height:220px;
  width:auto;
  height:auto;
  display:block;
}

.custom-designCard__empty{
  padding:20px 16px;
  text-align:center;
  font-weight:700;
  font-size:14px;
  color:rgba(17,24,39,0.62);
}

.custom-designCard__desc{
  padding:14px 16px 16px;
  font-weight:700;
  font-size:13px;
  line-height:1.45;
  color:rgba(17,24,39,0.82);
  background:#ffffff;
  border-top:1px solid rgba(17,24,39,0.08);
  text-align:center;
  min-height:56px;
}

.custom-designsCtaRow{
  justify-content:center;
  margin-top:22px;
}

/* Footer */
.vt-footer{
  margin-top:0;
}