/* ==========================================================================
   EFCL FULL-SCREEN MENU
   Burger on every screen size; opens a full-width overlay with a circular
   reveal, staggered links and a sub-menu column (accordion on phones).
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../home-v2/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

/* ---------- Header: hide the inline nav, show the burger everywhere ---------- */

.efcl-global-header .efcl-global-header__nav {
  display: none !important;
}

.efcl-global-header .efcl-global-header__brand {
  margin-right: auto;
}

.efcl-global-header button.efcl-global-header__toggle {
  order: 5;
  display: flex !important;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 54px;
  height: 54px;
  min-width: 0;
  margin: 0 0 0 14px;
  padding: 0 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.32) !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.efcl-global-header button.efcl-global-header__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #ffffff;
  transition: width 0.3s ease, transform 0.3s ease;
}

.efcl-global-header button.efcl-global-header__toggle span:nth-child(2) {
  width: 14px;
  align-self: center;
  transform: translateX(-4px);
}

.efcl-global-header button.efcl-global-header__toggle:hover,
.efcl-global-header button.efcl-global-header__toggle:focus-visible {
  background: #ed1c24 !important;
  border-color: #ed1c24 !important;
  transform: scale(1.06);
}

.efcl-global-header button.efcl-global-header__toggle:hover span:nth-child(2) {
  width: 22px;
  transform: none;
}

@media (max-width: 1050px) {
  .efcl-global-header button.efcl-global-header__toggle {
    width: 46px;
    height: 46px;
    margin-left: 10px;
  }
}

body.efm-lock {
  overflow: hidden;
}

/* Floating chat buttons step aside while the menu is open. */
body.efm-lock #qlwapp,
body.efm-lock .qlwapp,
body.efm-lock .dash-support,
body.efm-lock .dash-control {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ---------- Overlay ---------- */

.efm {
  --efm-x: calc(100% - 64px);
  --efm-y: 60px;
  --efm-ease: cubic-bezier(0.76, 0, 0.24, 1);
  --efm-out: cubic-bezier(0.22, 0.78, 0.25, 1);

  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background-color: #0e0c0b;
  background-image:
    radial-gradient(rgba(244, 241, 236, 0.07) 1.2px, transparent 1.3px);
  background-size: 26px 26px;
  color: #f4f1ec;
  font-family: "Archivo", Arial, sans-serif;
  clip-path: circle(0px at var(--efm-x) var(--efm-y));
  visibility: hidden;
  transition: clip-path 0.75s var(--efm-ease), visibility 0s linear 0.75s;
}

.efm.is-open {
  clip-path: circle(150vmax at var(--efm-x) var(--efm-y));
  visibility: visible;
  transition: clip-path 0.95s var(--efm-ease), visibility 0s;
}

.efm :where(ul, li) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.efm__glow {
  position: absolute;
  right: -18%;
  bottom: -40%;
  width: 80%;
  height: 100%;
  background: radial-gradient(closest-side, rgba(237, 28, 36, 0.28), rgba(237, 28, 36, 0));
  pointer-events: none;
  animation: efm-breathe 9s ease-in-out infinite alternate;
}

@keyframes efm-breathe {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-8%, -6%, 0) scale(1.15); }
}

.efm__bar,
.efm__body {
  position: relative;
  width: min(1320px, 100%);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
  box-sizing: border-box;
}

.efm__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 12px;
}

.efm__brand img {
  display: block;
  width: 118px;
  height: auto;
}

.efm button.efm__close {
  position: relative;
  width: 54px;
  height: 54px;
  padding: 0 !important;
  border: 1.5px solid rgba(244, 241, 236, 0.35) !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.4s var(--efm-out);
}

.efm button.efm__close span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2px;
  margin: -1px 0 0 -11px;
  border-radius: 2px;
  background: #f4f1ec;
  transform: rotate(0deg);
  transition: transform 0.6s var(--efm-out) 0.35s;
}

.efm.is-open button.efm__close span:first-child { transform: rotate(45deg); }
.efm.is-open button.efm__close span:last-child { transform: rotate(-45deg); }

.efm button.efm__close:hover,
.efm button.efm__close:focus-visible {
  background: #ed1c24 !important;
  border-color: #ed1c24 !important;
  transform: rotate(90deg);
}

.efm__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding-top: clamp(12px, 3vh, 40px);
  padding-bottom: clamp(24px, 4vh, 44px);
}

/* ---------- Links ---------- */

.efm__list {
  position: relative;
}

.efm__item {
  opacity: 0;
  transform: translateY(46px);
  transition: opacity 0.5s ease, transform 0.8s var(--efm-out);
}

.efm.is-open .efm__item {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.28s + var(--i) * 0.065s);
}

.efm__row {
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 1.6vw, 24px);
  width: 54%;
}

.efm__num {
  flex: none;
  width: 2.2em;
  font-weight: 700;
  font-stretch: 115%;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #ed1c24;
}

.efm a.efm__link,
.efm button.efm__link {
  display: inline-block;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: #f4f1ec !important;
  font-family: inherit;
  font-weight: 800;
  font-stretch: 118%;
  font-size: clamp(30px, 5.6vh, 64px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  text-align: left;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
  transition: transform 0.45s var(--efm-out), color 0.25s ease, opacity 0.25s ease;
}

.efm__list:hover .efm__link,
.efm__list:focus-within .efm__link {
  opacity: 0.38;
}

.efm__list .efm__item:hover .efm__link,
.efm__list .efm__item.is-active .efm__link,
.efm__list .efm__link:focus-visible {
  opacity: 1;
  color: #ed1c24 !important;
  transform: translateX(16px);
}

.efm :focus-visible {
  outline: 3px solid #ed1c24;
  outline-offset: 4px;
}

.efm button.efm__more {
  display: none;
}

/* ---------- Sub-menu: side column on desktop ---------- */

.efm__sub {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  padding-left: clamp(24px, 3vw, 48px);
  border-left: 1px solid #2e2926;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transform: translateX(28px);
  transition: opacity 0.3s ease, transform 0.5s var(--efm-out), visibility 0s linear 0.3s;
}

.efm__item.is-active .efm__sub {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.35s ease 0.05s, transform 0.55s var(--efm-out) 0.05s, visibility 0s;
}

.efm__sub a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #2e2926;
  color: #d7d1ca !important;
  font-weight: 600;
  font-stretch: 106%;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.25;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.35s var(--efm-out);
}

.efm__sub a::after {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.2'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.5;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.efm__sub a:hover,
.efm__sub a:focus-visible {
  color: #f4f1ec !important;
  padding-left: 10px;
}

.efm__sub a:hover::after {
  opacity: 1;
  transform: translateX(4px);
}

/* ---------- Footer row ---------- */

.efm__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-top: 24px;
  border-top: 1px solid #2e2926;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.7s var(--efm-out);
}

.efm.is-open .efm__foot {
  opacity: 1;
  transform: none;
  transition-delay: 0.85s;
}

.efm a.efm__cta {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  background: #ed1c24;
  color: #faf8f5 !important;
  font-weight: 700;
  font-stretch: 110%;
  font-size: 19px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.efm a.efm__cta:hover {
  background: #b60911;
}

.efm__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}

.efm__social a {
  color: #a8a19b !important;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.efm__social a:hover {
  color: #f4f1ec !important;
}

/* ---------- Tablet and phone: accordions ---------- */

@media (max-width: 899px) {
  .efm__row {
    width: 100%;
    align-items: center;
  }

  .efm a.efm__link,
  .efm button.efm__link {
    flex: 1;
    font-size: clamp(27px, 7.4vw, 40px);
    line-height: 1.3;
  }

  .efm__list:hover .efm__link,
  .efm__list:focus-within .efm__link {
    opacity: 1;
  }

  .efm__list .efm__item:hover .efm__link,
  .efm__list .efm__item.is-active .efm__link {
    transform: none;
  }

  .efm button.efm__more {
    position: relative;
    display: block;
    flex: none;
    width: 42px;
    height: 42px;
    padding: 0 !important;
    border: 1.5px solid #2e2926 !important;
    border-radius: 50% !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
  }

  .efm button.efm__more span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 2px;
    margin: -1px 0 0 -7px;
    background: #f4f1ec;
    transition: transform 0.35s var(--efm-out);
  }

  .efm button.efm__more span:last-child {
    transform: rotate(90deg);
  }

  .efm__item.is-active button.efm__more {
    background: #ed1c24 !important;
    border-color: #ed1c24 !important;
  }

  .efm__item.is-active button.efm__more span:last-child {
    transform: rotate(0deg);
  }

  .efm__sub {
    position: static;
    display: grid;
    grid-template-rows: 0fr;
    width: auto;
    padding-left: calc(2.2em + 12px);
    border-left: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: grid-template-rows 0.45s var(--efm-out);
  }

  .efm__sub > ul {
    overflow: hidden;
  }

  .efm__item.is-active .efm__sub {
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.45s var(--efm-out);
  }

  .efm__sub a {
    padding: 12px 0;
    font-size: 17px;
  }

  .efm__brand img {
    width: 92px;
  }

  .efm button.efm__close {
    width: 46px;
    height: 46px;
  }

  .efm a.efm__cta {
    flex: 1 1 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .efm,
  .efm.is-open,
  .efm__item,
  .efm__foot,
  .efm__sub,
  .efm button.efm__close span {
    transition: none !important;
  }

  .efm__glow {
    animation: none;
  }
}
