:root{
  --font-family: "Lato", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --bg-color: #a12885;
  --header-h-desktop: 68px;
  --header-h-small: 56px;
}

/* ================= Base ================= */

html, body{
  height: 100%;
}

body{
  margin: 0;
  font-family: var(--font-family);
}

.bg-video{
  position: fixed;
  inset: 0;
  z-index: 0;        /* stays behind UI */
  overflow: hidden;
}

.bg-video__media{
  width: 100%;
  height: 100%;
  object-fit: cover; /* fills the viewport without distortion */
  object-position: center;
  display: block;
}


.bg-video::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.20);
}

/* Respect user settings: reduce motion */
@media (prefers-reduced-motion: reduce){
  .bg-video{ display: none; }
}

/* ================= Header ================= */

.site-header{
  position: fixed;
  top: 0;
  width: 100%;
  background: #FFF;
  box-shadow: 0 2px 4px rgba(0,0,0,.06),
              0 1px 1px rgba(0,0,0,.08);
  z-index: 10;
}

/* Desktop */
@media (min-width:1024px){
  .site-header{ height: var(--header-h-desktop); }
  .site-header__inner{ padding: 0 60px; }
  .site-header__logo{ height: 32px; }
}

/* Tablet + Mobile */
@media (max-width:1023px){
  .site-header{ height: var(--header-h-small); }
  .site-header__inner{ padding: 0 10px; }
  .site-header__logo{ height: 24px; }
}

.site-header__inner{
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Language trigger */
.lang-trigger{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.lang-trigger:focus,
.lang-trigger:focus-visible{
  outline: none;
  box-shadow: none;
}

.lang-flag{
  width: 18px;
  height: 18px;
}

.lang-trigger__label{
  color: #080206;
  font-size: 14px;
  font-weight: 400;
  line-height: 15px;
  letter-spacing: 0.4px;
}

/* ================= Page Layout (Content + Footer) ================= */

/*
  The page container is exactly viewport height (100vh). The header is fixed, so
  we reserve its space via padding-top. This prevents any extra pixels below
  the footer and guarantees footer sits at the bottom of the visible screen.
*/
.page{
  position: relative;
  z-index: 1;

  height: 100vh;
  min-height: 100vh;

  display: flex;
  flex-direction: column;

  padding-top: var(--header-h-desktop);
  box-sizing: border-box;
}

@media (max-width:1023px){
  .page{
    padding-top: var(--header-h-small);
  }
}

/* ================= Main / Maintenance ================= */

.site-main{
  flex: 1;
  display: flex;
  min-height: 0;
}

/*
  Centered container inside the available area between header and footer.
  This ensures equal visual spacing above and below the message block.
*/
.maintenance{
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;

  padding: 0 10px; /* horizontal safe padding only */
  box-sizing: border-box;
}

.maintenance__content{
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Maintenance illustration */
.maintenance__image{
  width: 160px;
  height: 160px;
  object-fit: contain;
}

/* Title */
.maintenance__title{
  font-weight: 700;
  color: #ffffff;
}

@media (min-width:1024px){
  .maintenance__title{
    font-size: 3rem;
    line-height: 1.15;
  }
}

@media (max-width:1023px){
  .maintenance__title{
    font-size: 2.25rem;
    line-height: 1.2;
  }
}

/* Subtitle */
.maintenance__subtitle{
  margin: 8px 0 0;
  max-width: 960px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
}

@media (min-width:1024px){
  .maintenance__subtitle{
    font-size: 1.5rem;
    line-height: 1.5;
  }
}

@media (max-width:1023px){
  .maintenance__subtitle{
    font-size: 1.125rem;
    line-height: 1.45;
  }
}

/* ================= Footer ================= */

.site-footer{
  background: #000;
}

.site-footer__inner{
  padding: 20px 10px; /* matches header small padding */
  box-sizing: border-box;
}

@media (min-width:1024px){
  .site-footer__inner{
    padding: 20px 60px; /* matches header desktop padding */
  }
}

.site-footer__text{
  margin: 0;
  color: #FFF;
  font-family: var(--font-family);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

/* Desktop: left aligned */
@media (min-width:1024px){
  .site-footer__text{ text-align: left; }
}

/* Tablet + Mobile: centered */
@media (max-width:1023px){
  .site-footer__text{ text-align: center; }
}

/* ================= Modal ================= */

.modal-backdrop{
  background: #000 !important;
}
.modal-backdrop.show{
  opacity: 0.6 !important;
}

/* Tablet + Desktop modal width (same width) */
@media (min-width:768px){
  .lang-modal-dialog{
    width: 380px;
    max-width: 380px;
  }
}

.lang-modal{
  background: #FFF;
  border-radius: 12px;
  box-shadow:
    2px 0 8px rgba(0,0,0,.06),
    0 20px 25px rgba(0,0,0,.08);
  border: none;
  overflow: hidden;
}

.modal-header,
.modal-footer{
  border: none !important;
}

/* Desktop + Tablet: centered, scale from center */
@media (min-width:768px){
  .modal .modal-dialog{
    transform-origin: center center;
    transform: scale(0.96);
    opacity: 0;
    transition: transform 220ms ease, opacity 220ms ease;
    will-change: transform, opacity;
  }

  .modal.show .modal-dialog{
    transform: scale(1);
    opacity: 1;
  }
}

/* Mobile: full-width bottom sheet, anchored to bottom */
@media (max-width:767px){
  .modal{
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center;
    padding: 0 !important;
  }

  .modal-dialog{
    width: 100vw;
    max-width: 100vw;
    margin: 0 !important;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateY(100%);
    transition: transform 260ms ease;
    will-change: transform;
  }

  .modal.show .modal-dialog{
    transform: translateY(0);
  }

  .lang-modal{
    width: 100%;
    border-radius: 12px 12px 0 0;
  }
}

/* Modal header */
.lang-modal__header{
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
}

.lang-modal__title{
  margin: 0;
  color: #080206;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

/* Close button */
.lang-modal__close{
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: 0;
}
.lang-modal__close:focus,
.lang-modal__close:focus-visible{
  outline: none;
  box-shadow: none;
}

/* Modal body */
.lang-modal__body{
  padding: 0 20px 0;
}

.lang-section__label{
  color: rgba(0,0,0,.6);
  font-size: 14px;
  font-weight: 400;
  line-height: 15px;
}

/* Language cards */
.lang-cards{
  margin-top: 6px;
  display: flex;
  gap: 24px;
  width: 100%;
}

.lang-card{
  flex: 1 1 0;
  min-width: 0;
  height: 52px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  border: 1.5px solid rgba(0,0,0,.1);
  background: #FFF;
  cursor: pointer;
}

.lang-card:hover{
  background: #F5F5F5;
}
.lang-card.is-selected:hover{
  background: #FBF6FA;
}

.lang-card input{ display: none; }

.lang-card__flag{
  width: 26px;
  height: 26px;
}

.lang-card__text{
  overflow: hidden;
  color: #080206;
  font-variant-numeric: lining-nums proportional-nums;
  text-overflow: ellipsis;
  font-family: var(--font-family);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.lang-card.is-selected{
  border: 2px solid #A12885;
  background: #FBF6FA;
}

.lang-card.is-selected .lang-card__text{
  color: #A12885;
  font-weight: 700;
}

/* Modal footer */
.lang-modal__footer{
  margin: 0;
  gap: 0;
  padding: 32px 20px 32px;
  display: flex;
}

/* Apply button */
.lang-apply-btn{
  width: 100%;
  height: 58px;
  margin: 0;

  display: inline-flex;
  justify-content: center;
  align-items: center;

  border-radius: 60px;
  border: none;
  background: #A12885;

  padding: 0 30px;

  color: #FFF;
  text-align: center;
  font-variant-numeric: lining-nums proportional-nums;
  font-family: var(--font-family);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 19px;
  letter-spacing: 0.4px;

  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease;
}

.lang-apply-btn:hover{
  background: #80206A;
  box-shadow: 0 8px 20px rgba(154, 25, 120, 0.22);
}

.lang-apply-btn:active{
  background: #60184F;
}

.lang-apply-btn:focus,
.lang-apply-btn:focus-visible{
  outline: none;
  box-shadow: none;
}

/* ================= Call center contact details ================= */
.call-center[hidden]{ display: none; }
.call-center{
  margin-top: 64px;
  width: 100%;
  max-width: 760px;
  color: rgba(255,255,255,.70);
  text-align: center;
}
.call-center__title{
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
}
.call-center__grid{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.call-center__link{
  color: inherit;
  text-decoration: none;
  font-size: .9375rem;
  line-height: 1.5;
}
.call-center__link:hover,
.call-center__link:focus-visible{
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.call-center__country{ font-weight: 400; margin-right: 6px; }
.call-center__number{ font-weight: 400; overflow-wrap: anywhere; }
@media (max-width: 767px){
  .page{ height: auto; min-height: 100vh; }
  .maintenance{ padding: 32px 16px; }
  .call-center{ margin-top: 56px; }
  .call-center__title{ font-size: .9375rem; }
  .call-center__link{ font-size: .875rem; }
}
