/* assets/css/footer.css */

.lp-footer{
  --lp-footer-bg: #e5e5e5;
  background: transparent;
  color: var(--lp-about-title);
  --lp-footer-radius: clamp(140px, 18vw, 240px);

  border-top-right-radius: 0;
  border-top-left-radius: var(--lp-footer-radius);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  position: relative;
  --lp-footer-stroke-show: 220px;
  --lp-footer-stroke-thickness: 2px;
  --lp-footer-stroke-y: -12px;
  --lp-footer-stroke-x: 0px;
  overflow-y: visible;
  overflow-x: hidden;
  overflow-x: clip;

  padding-top: clamp(44px, 5vw, 70px);
  padding-bottom: 0;
}

html[dir="ltr"] .lp-footer{
  border-top-right-radius: var(--lp-footer-radius);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.lp-footer::before{
  content: "";
  position: absolute;
  inset: 0;
  transform: translate3d(-18px, -18px, 0);
  border: var(--lp-footer-stroke-thickness) solid var(--lp-about-title);
  border-top-right-radius: 0;
  border-top-left-radius: var(--lp-footer-radius);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  clip-path: inset(0 0 calc(100% - var(--lp-footer-stroke-show)) 0);
  pointer-events: none;
  z-index: 0;
}

html[dir="ltr"] .lp-footer::before{
  transform: translate3d(18px, -18px, 0);
  border-top-right-radius: var(--lp-footer-radius);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.lp-footer::after{
  content:"";
  position:absolute;
  inset:0;
  background: var(--lp-footer-bg);
  border-top-right-radius: 0;
  border-top-left-radius: var(--lp-footer-radius);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  z-index: 1;
  pointer-events: none;
}

html[dir="ltr"] .lp-footer::after{
  border-top-right-radius: var(--lp-footer-radius);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.lp-footer__graphics{
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  color: var(--lp-about-title);
  opacity: .35;
}

.lp-footer .lp-lines{
  position: absolute;
  width: min(760px, calc(92vw - (var(--lp-lines-edge-pad) * 2)));
  height: auto;
}

.lp-footer .lp-lines--topStart{
  top: 24px;
  inset-inline-start: var(--lp-lines-edge-pad);
}

.lp-footer .lp-lines--bottomEnd{
  bottom: 24px;
  inset-inline-end: var(--lp-lines-edge-pad);
}

.lp-footer .lp-lines .lp-line{
  stroke: currentColor;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  will-change: stroke-dashoffset, opacity;
}

.lp-footer .lp-lines .lp-line--w10{ stroke-width: 6; }
.lp-footer .lp-lines .lp-line--w4 { stroke-width: 4; }
.lp-footer .lp-lines .lp-line--w1 { stroke-width: 1; }

/* ========================= */

.lp-footer__inner{
  max-width: var(--lp-container);
  margin-inline: auto;
  padding-inline: var(--lp-page-pad);
  position: relative;
  z-index: 3;
}

.lp-footer__grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 44px);
  align-items: start;
  justify-items: start;
}

.lp-footer__col{
  text-align: start;
  min-width: 0;
}

html[dir="rtl"] .lp-footer__grid{ justify-items: start; }
html[dir="rtl"] .lp-footer__col{ text-align: right; }

.lp-footer__col--brand{
  display: flex;
  flex-direction: column;
  gap: 40px;
}

html[dir="rtl"] .lp-footer__col--brand{
  align-items: flex-start;
}

.lp-footer__logo{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  width: fit-content;
}

.lp-footer__logoImg{
  height: clamp(88px, 6vw, 118px);
  width: auto;
  display: block;
  filter: none;
}

.lp-footer__socialWrap{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lp-footer__social--compact{
  display: flex;
  flex-direction: row;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

html[dir="rtl"] .lp-footer__social--compact{
  justify-content: flex-end;
}

.lp-footer__socialLabel{
  color: var(--lp-about-title);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
}

.lp-footer .lp-socialIcon__stroke{
  border-color: var(--lp-about-title);
}

.lp-socialIcon.lp-socialIcon--sm{
  width: 56px;
  height: 56px;
}

.lp-socialIcon.lp-socialIcon--sm .lp-socialIcon__stroke,
.lp-socialIcon.lp-socialIcon--sm .lp-socialIcon__layer{
  top: 0;
  left: 0;
  right: auto;
  width: 40px;
  height: 40px;
  border-radius: 20px 0 0 0;
}

html[dir="ltr"] .lp-socialIcon.lp-socialIcon--sm .lp-socialIcon__stroke,
html[dir="ltr"] .lp-socialIcon.lp-socialIcon--sm .lp-socialIcon__layer{
  left: auto;
  right: 0;
  border-radius: 0 20px 0 0;
}

.lp-socialIcon.lp-socialIcon--sm .lp-socialIcon__layer{
  transform: translate(6px, 6px);
}

html[dir="ltr"] .lp-socialIcon.lp-socialIcon--sm .lp-socialIcon__layer{
  transform: translate(-6px, 6px);
}

.lp-socialIcon.lp-socialIcon--sm:hover .lp-socialIcon__layer,
.lp-socialIcon.lp-socialIcon--sm:focus-visible .lp-socialIcon__layer{
  transform: translate(0, 0);
}

html[dir="ltr"] .lp-socialIcon.lp-socialIcon--sm:hover .lp-socialIcon__layer,
html[dir="ltr"] .lp-socialIcon.lp-socialIcon--sm:focus-visible .lp-socialIcon__layer{
  transform: translate(0, 0);
}

.lp-socialIcon.lp-socialIcon--sm .lp-socialIcon__layer i{
  font-size: 18px;
}

.lp-footer__col--nav{
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.lp-footer__linksRow{
  display: flex;
  flex-wrap: nowrap;
  gap: 16px 24px;
  align-items: center;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.lp-footer__linksRow::-webkit-scrollbar{ display: none; }

html[dir="rtl"] .lp-footer__linksRow{
  justify-content: flex-start;
}

.lp-footer__link{
  color: var(--lp-about-title);
  text-decoration: none;
  font-weight: 900;
  font-size: 17px;
  line-height: 1.3;
  transition: opacity .18s ease, transform .18s ease, color .18s ease;
  white-space: nowrap;
  flex: 0 0 auto;
  opacity: .92;
}

.lp-footer__link:hover{
  opacity: 1;
  transform: translateX(-2px);
  color: var(--lp-footer-accent);
}

.lp-footer__link--active{
  color: var(--lp-accent);
}

.lp-footer__col--contact{
  display: flex;
  flex-direction: column;
  padding-inline-start: 88px;
}

.lp-footer__contact{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lp-footer__contactBlock{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lp-footer__label{
  color: var(--lp-accent);
  font-weight: 900;
  font-size: 14px;
}

.lp-footer__value{
  color: var(--lp-about-title);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.7;
  text-decoration: none;
  word-break: break-word;
  overflow-wrap: anywhere;
  opacity: .95;
}

.lp-footer__value--ltr{
  direction: ltr;
  unicode-bidi: plaintext;
}

html[dir="rtl"] .lp-footer__value--ltr{
  text-align: right;
}

html[dir="ltr"] .lp-footer__value--ltr{
  text-align: left;
}

.lp-footer__value:hover{
  text-decoration: underline;
  text-decoration-color: var(--lp-about-title);
}

.lp-footer__bottom{
  margin-top: clamp(22px, 3vw, 32px);
  padding-block: 16px;
  border-top: 1px solid var(--lp-about-title);
  color: var(--lp-about-title);
  font-weight: 800;
  font-size: 14px;
  opacity: .92;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.lp-footer__bottomCopy,
.lp-footer__bottomPowered{
  font: inherit;
  color: inherit;
  line-height: 1.6;
}

.lp-footer__bottomPowered{
  text-align: end;
}

.lp-footer__bottomPoweredLink{
  color: inherit;
  text-decoration: none;
  font: inherit;
  transition: opacity .18s ease, color .18s ease;
}

.lp-footer__bottomPoweredLink:hover,
.lp-footer__bottomPoweredLink:focus-visible{
  color: var(--lp-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

html[dir="rtl"] .lp-footer__bottom{
  text-align: right;
}

html[dir="ltr"] .lp-footer__bottom{
  text-align: left;
}

/* Responsive */
@media (max-width: 1100px){
  .lp-footer__grid{
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr) minmax(0, .9fr);
    gap: clamp(18px, 2.5vw, 32px);
  }

  .lp-footer__linksRow{
    gap: 12px 18px;
  }

  .lp-footer__link{
    font-size: 16px;
  }

  .lp-footer__col--contact{
    padding-inline-start: 42px;
  }
}

@media (max-width: 980px){
  .lp-footer{
    --lp-footer-radius: clamp(110px, 22vw, 180px);
    --lp-footer-stroke-show: 200px;
  }

  .lp-footer__grid{
    grid-template-columns: 1fr;
    gap: 24px;
    justify-items: center;
  }

  .lp-footer__col--nav{
    order: 1;
  }

  .lp-footer__col--brand{
    order: 2;
  }

  .lp-footer__col--contact{
    order: 3;
  }

  html[dir="rtl"] .lp-footer__grid{
    justify-items: center;
  }

  .lp-footer__col{
    width: 100%;
    text-align: center;
  }

  html[dir="rtl"] .lp-footer__col{
    text-align: center;
  }

  .lp-footer__col--brand{
    gap: 28px;
    align-items: center;
  }

  html[dir="rtl"] .lp-footer__col--brand{
    align-items: center;
  }

  .lp-footer__socialWrap{
    align-items: center;
  }

  .lp-footer__social--compact{
    justify-content: center;
  }

  html[dir="rtl"] .lp-footer__social--compact{
    justify-content: center;
  }

  .lp-footer__col--nav{
    align-items: center;
  }

  .lp-footer__linksRow{
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: center;
    gap: 10px 16px;
  }

  html[dir="rtl"] .lp-footer__linksRow{
    justify-content: center;
  }

  .lp-footer__link{
    font-size: 15px;
    line-height: 1.25;
  }

  .lp-footer__col--contact{
    padding-inline-start: 0;
    align-items: center;
  }

  .lp-footer__contact{
    align-items: center;
    gap: 14px;
  }

  .lp-footer__contactBlock{
    align-items: center;
    text-align: center;
  }

  .lp-footer__value{
    font-size: 14px;
    line-height: 1.65;
    text-align: center;
  }

  html[dir="rtl"] .lp-footer__value--ltr,
  html[dir="ltr"] .lp-footer__value--ltr{
    text-align: center;
  }

  .lp-footer__bottom{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  html[dir="rtl"] .lp-footer__bottom,
  html[dir="ltr"] .lp-footer__bottom{
    text-align: center;
  }

  .lp-footer__bottomPowered{
    text-align: center;
  }

  .lp-footer .lp-lines{
    width: min(640px, calc(96vw - (var(--lp-lines-edge-pad) * 2)));
  }
}

@media (max-width: 760px){
  .lp-footer__logoImg{
    height: clamp(82px, 14vw, 104px);
  }

  .lp-footer__linksRow{
    gap: 8px 14px;
  }

  .lp-footer__link{
    font-size: 14px;
  }

  .lp-footer__label{
    font-size: 13px;
  }

  .lp-footer__value{
    font-size: 13.5px;
  }

  .lp-footer__bottom{
    font-size: 13px;
    padding-block: 14px;
  }
}

@media (max-width: 560px){
  .lp-footer{
    padding-top: clamp(36px, 7vw, 52px);
  }

  .lp-footer__grid{
    gap: 20px;
  }

  .lp-footer__logoImg{
    height: clamp(78px, 22vw, 96px);
  }

  .lp-footer__col--brand{
    gap: 26px;
  }

  .lp-footer__social--compact{
    gap: 10px;
  }

  .lp-socialIcon.lp-socialIcon--sm{
    width: 50px;
    height: 50px;
  }

  .lp-socialIcon.lp-socialIcon--sm .lp-socialIcon__stroke,
  .lp-socialIcon.lp-socialIcon--sm .lp-socialIcon__layer{
    width: 36px;
    height: 36px;
  }

  .lp-socialIcon.lp-socialIcon--sm .lp-socialIcon__layer i{
    font-size: 16px;
  }

  .lp-footer__linksRow{
    gap: 8px 14px;
  }

  .lp-footer__link{
    font-size: 14px;
  }
}

@media (max-width: 400px){
  .lp-footer__linksRow{
    gap: 8px 12px;
  }

  .lp-footer__link{
    font-size: 13px;
  }

  .lp-footer__value{
    font-size: 13px;
  }
}

/* Footer social options picker */
.lp-footer__grid,
.lp-footer__col,
.lp-footer__col--brand,
.lp-footer__socialWrap,
.lp-footer__social,
.lp-socialPicker{
  overflow: visible;
}

.lp-socialPicker{
  position: relative;
  display: inline-block;
  width: 56px;
  height: 56px;
  z-index: 50;
}

.lp-socialPicker[open]{
  z-index: 80;
}

.lp-socialPicker__summary{
  list-style: none;
  cursor: pointer;
  width: 56px;
  height: 56px;
  display: inline-block;
}

.lp-socialPicker__summary::-webkit-details-marker{
  display: none;
}

.lp-socialPicker__summary::marker{
  content: "";
}

.lp-socialPicker__menu{
  position: absolute;

  /* تظهر فوق الأيقونة */
  inset-block-start: auto;
  inset-block-end: calc(100% + 10px);

  /*
    مهم:
    لا نعكسها في LTR.
    في الإنجليزي تفتح لليمين من الأيقونة.
    في العربي تفتح لليسار من الأيقونة بسبب direction: rtl.
  */
  inset-inline-start: 0;
  inset-inline-end: auto;

  inline-size: max-content;
  min-inline-size: 210px;
  max-inline-size: min(280px, calc(100vw - 32px));

  background: #fff;
  border: 1px solid rgba(46, 49, 145, .18);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .16);
  padding: 8px;
  z-index: 90;
  box-sizing: border-box;
}

.lp-socialPicker__item{
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--lp-about-title);
  text-decoration: none;
  line-height: 1.4;
  transition: background .18s ease, color .18s ease;
}

.lp-socialPicker__item:hover,
.lp-socialPicker__item:focus-visible{
  background: rgba(0, 191, 242, .12);
  color: var(--lp-about-title);
  outline: none;
}

.lp-socialPicker__itemLabel{
  font-size: 13px;
  font-weight: 900;
}

.lp-socialPicker__itemValue{
  font-size: 12px;
  font-weight: 700;
  opacity: .78;
  overflow-wrap: anywhere;
}

/* في التابلت والجوال: خلي القائمة تتمركز فوق الأيقونة حتى لا تنقص من الطرف */
@media (max-width: 980px){
  .lp-socialPicker__menu{
    inset-inline-start: 50%;
    inset-inline-end: auto;
    transform: translateX(-50%);
    min-inline-size: 210px;
    max-inline-size: calc(100vw - 32px);
  }

  html[dir="rtl"] .lp-socialPicker__menu{
    transform: translateX(50%);
  }
}

@media (max-width: 560px){
  .lp-socialPicker{
    width: 50px;
    height: 50px;
  }

  .lp-socialPicker__summary{
    width: 50px;
    height: 50px;
  }

  .lp-socialPicker__menu{
    min-inline-size: 190px;
    max-inline-size: calc(100vw - 32px);
  }
}