/*
 Theme Name: Glorek Hello Elementor Child
 Theme URI: https://glorek.com
 Description: Official child theme for Hello Elementor by Glorek
 Author: Glorek
 Author URI: https://glorek.com
 Template: hello-elementor
 Version: 1.0.0
*/

:root {
  --glk-blue: #004aad;
  --glk-green: #25d366;
  --glk-white: #ffffff;
  --glk-dark: #333333;
  --glk-white-muted: #ffffff5c;
  --glk-primary: #023a51;
  --glk-accent: #004aad;
  --glk-text-grey: #555;
  --glk-bg-light: #f9f9f9;
  --glk-header-font-weight: 500;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: cubic-bezier(0.5, 0, 0.2, 1);
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 40px
}

.ltr {
  direction: ltr !important
}

.rtl {
  direction: rtl !important
}

.w-full {
  width: 100%
}

.glorek-container {
  width: 100% !important;
  max-width: 1280px !important;
  margin: 0 auto
}

html[lang^=en] a,
html[lang^=en] body,
html[lang^=en] button,
html[lang^=en] div,
html[lang^=en] h1,
html[lang^=en] h2,
html[lang^=en] h3,
html[lang^=en] h4,
html[lang^=en] h5,
html[lang^=en] h6,
html[lang^=en] li,
html[lang^=en] p,
html[lang^=en] span {
  font-family: Roboto, sans-serif !important
}

html[lang^=ar] a,
html[lang^=ar] body,
html[lang^=ar] button,
html[lang^=ar] div,
html[lang^=ar] h1,
html[lang^=ar] h2,
html[lang^=ar] h3,
html[lang^=ar] h4,
html[lang^=ar] h5,
html[lang^=ar] h6,
html[lang^=ar] li,
html[lang^=ar] p,
html[lang^=ar] span {
  font-family: Cairo, sans-serif !important
}

html[lang^=ar] div,
html[lang^=ar] p {
  font-size: 17px;
  word-spacing: 1.1px;
  line-height: 1.7em
}

.dialog-overlay {
  opacity: 0;
  transition: opacity .35s ease
}

.dialog-overlay.dialog-overlay-visible {
  opacity: 1
}

.elementor-popup-modal .dialog-message {
  width: 100% !important;
  max-width: 800px !important;
  overflow: hidden !important
}

.dialog-widget-content.dialog-lightbox-widget-content {
  background: var(--glk-white);
  border-radius: 20px !important;
  padding: var(--spacing-xl) 35px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .15);
  display: flex;
  flex-direction: column;
  max-height: none !important;
  overflow: hidden !important;
  transform: scale(.9) translateY(30px);
  opacity: 0;
  transition: transform .45s var(--transition-smooth), opacity .35s ease
}

.dialog-widget-content.dialog-lightbox-widget-content.animated {
  transform: scale(1) translateY(0);
  opacity: 1
}

.dialog-widget-content .dialog-close-button {
  top: 20px;
  right: 22px;
  font-size: 18px
}

.glorek-form .elementor-field-group {
  margin-bottom: var(--spacing-md)
}

.glorek-form input,
.glorek-form select,
.glorek-form textarea {
  background: var(--glk-white);
  padding: 14px var(--spacing-md) !important;
  font-size: 15px !important;
  border-radius: 10px !important;
  height: auto !important;
  transition: all .3s ease
}

.glorek-form textarea {
  min-height: 120px;
  resize: none
}

.glorek-form ::placeholder {
  color: #9ca3af
}

.glorek-form input:focus,
.glorek-form select:focus,
.glorek-form textarea:focus {
  outline: 0;
  border-color: #0a4dbf;
  box-shadow: 0 0 0 4px rgba(10, 77, 191, .1)
}

.glorek-form .elementor-button {
  width: 100%;
  height: 52px;
  border-radius: var(--spacing-sm);
  font-size: var(--spacing-md);
  font-weight: 600;
  background: linear-gradient(135deg, #0a4dbf, #083a92);
  color: var(--glk-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease
}

.glorek-form .elementor-button-icon {
  font-size: 18px !important
}

.glorek-form .elementor-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 77, 191, .3)
}

.glorek-form .elementor-button:active {
  transform: scale(.98)
}

.elementor-message-success {
  background: #10b981 !important;
  color: var(--glk-white) !important;
  border-radius: 10px;
  padding: 15px;
  margin-top: 20px;
  text-align: center
}

.our-clients-carousel .elementor-image-carousel .swiper-slide-image {
  filter: grayscale(1);
  transition: filter .4s ease-in-out
}

.our-clients-carousel .elementor-image-carousel .swiper-slide-image:hover {
  filter: grayscale(0)
}

.glorek-header {
  background: var(--glk-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  transition: transform .4s var(--transition-bounce);
  will-change: transform
}

.top-bar {
  display: flex;
  justify-content: flex-end;
  padding: var(--spacing-xs);
  font-size: 12px;
  border-bottom: 1px solid #eee;
  transition: max-height .3s ease, padding .3s ease, opacity .3s ease;
  max-height: 50px
}

.glk-lang-switcher {
  display: inline-flex;
  gap: var(--spacing-xs)
}

.glk-lang-switcher li {
  list-style: none
}

.glk-lang-switcher li a {
  text-decoration: none;
  font-size: 12px;
  text-transform: uppercase;
  position: relative;
  transition: color .3s ease
}

.flyout-menu a,
.glk-lang-switcher li a,
.mobile-grandchild-list a {
  color: var(--glk-primary)
}

.glk-lang-switcher li a:hover {
  color: var(--glk-accent)
}

.glk-lang-switcher li.current-lang a {
  color: var(--glk-accent);
  border-bottom: 1px solid var(--glk-accent)
}

.glk-lang-switcher li.current-lang a::after {
  transform: scaleX(1);
  background-color: var(--glk-accent)
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10px;
  max-height: 80px;
  position: relative;
  z-index: 1001
}

.logo {
  width: 147px;
  margin-right: 20px
}

body.rtl .logo {
  margin-right: 0 !important;
  margin-left: 20px !important
}

.nav-links {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
  height: 40px;
  align-items: center;
  margin: 0;
  padding: 0
}

.glk-arrow-link {
  font-size: 18px;
  opacity: .8;
  transform: rotate(0deg);
  transition: transform .3s ease
}

body.rtl .glk-arrow-link {
  transform: rotate(90deg)
}

.nav-item {
  cursor: pointer;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  font-size: var(--spacing-md);
  background: 0 0;
  border: none
}

.glk-roll-container {
  position: relative;
  height: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  line-height: 24px
}

.glk-roll-inner {
  display: block;
  transition: transform .4s var(--transition-bounce)
}

.glk-text-default,
.glk-text-hover {
  display: block;
  white-space: nowrap
}

.glk-text-default {
  color: var(--glk-primary)
}

.glk-text-hover {
  color: var(--glk-accent)
}

.nav-item.active-link .glk-roll-inner,
.nav-item:hover .glk-roll-inner {
  transform: translateY(-24px)
}

.nav-item i {
  margin-left: var(--spacing-xs);
  font-size: 14px;
  color: var(--glk-primary);
  transition: transform .4s ease, color .3s
}

.nav-item.active-link i,
.nav-item:hover i {
  color: var(--glk-accent)
}

.nav-item.active-link i.fa-chevron-down {
  transform: rotate(180deg)
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--glk-accent);
  transform: scaleX(0);
  transition: transform .4s var(--transition-bounce);
  transform-origin: left center
}

.nav-item.active-link::after,
.nav-item:hover::after {
  transform: scaleX(1)
}

.header-actions {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  margin-left: auto
}

.mobile-lang-wrapper {
  display: none;
  position: relative;
  margin-left: auto;
  margin-right: 0px
}

body.rtl .mobile-lang-wrapper {
  margin-left: 0px;
  margin-right: auto
}

.mobile-lang-trigger {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  cursor: pointer;
  font-size: 14px;
  color: var(--glk-primary);
  user-select: none;
  padding: 5px
}

.mobile-lang-trigger img.lang-flag {
  width: 20px;
  height: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2)
}

.mobile-lang-trigger i {
  font-size: 12px;
  transition: transform .3s
}

.mobile-lang-dropdown {
  position: absolute;
  top: 100%;
  right: -10px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .1);
  padding: var(--spacing-xs) 0;
  min-width: 140px;
  flex-direction: column;
  display: none;
  z-index: 10000;
  margin-top: 10px
}

body.rtl .mobile-lang-dropdown {
  right: auto;
  left: -10px
}

.mobile-lang-dropdown.show-lang {
  display: flex;
  animation: fadeInDrop .2s ease-out
}

@keyframes fadeInDrop {
  from {
    opacity: 0;
    transform: translateY(-5px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.mobile-lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  text-decoration: none;
  color: var(--glk-primary);
  font-size: 14px;
  transition: background .2s
}

.mobile-lang-dropdown a:hover {
  background-color: #f5f7fa;
  color: var(--glk-accent)
}

.mobile-lang-dropdown img.lang-flag {
  width: 20px;
  height: auto;
  border-radius: 2px
}

.mobile-toggle {
  display: none;
  font-size: 24px;
  color: var(--glk-primary);
  cursor: pointer;
  width: 45px;
  height: 45px;
  text-align: center;
  line-height: 45px;
  justify-content: center;
  align-items: center;
  margin: 0
}

.close-btn {
  display: none
}

.mega-menu-container {
  position: fixed;
  left: 0;
  width: 100%;
  height: auto;
  background: #fff;
  border-top: 1px solid #eee;
  box-shadow: 0 15px 30px rgba(0, 0, 0, .1);
  z-index: 9990;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity .4s ease, transform .4s ease
}

.mega-menu-wrapper {
  padding: var(--spacing-xl) 50px;
  position: relative
}

.mega-menu-container.show {
  opacity: 1;
  transform: translateY(0)
}

.close-btn {
  position: absolute;
  top: 13px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: var(--glk-primary);
  width: 45px;
  height: 45px;
  text-align: center;
  line-height: 45px;
  display: flex;
  justify-content: center;
  align-items: center
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  align-items: start;
  padding-bottom: 50px
}

.glk-fade-out {
  animation: fadeOut .25s forwards
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0)
  }

  to {
    opacity: 0;
    transform: translateY(-10px)
  }
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.anim-col {
  opacity: 0
}

.active-content .anim-col {
  animation: slideUpFade .5s ease forwards
}

.active-content .anim-col:nth-child(1) {
  animation-delay: 50ms
}

.active-content .anim-col:nth-child(2) {
  animation-delay: .15s
}

.active-content .anim-col:nth-child(3) {
  animation-delay: .25s
}

.menu-col-1 h2 {
  color: var(--glk-accent);
  font-size: 32px;
  margin-bottom: 20px
}

.menu-col-1 p {
  color: var(--glk-text-grey);
  line-height: 1.6;
  font-size: var(--spacing-md)
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.menu-link-wrapper {
  position: relative;
  display: block;
  border-bottom: 1px solid transparent
}

.menu-link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: var(--glk-primary);
  font-size: 18px;
  padding: var(--spacing-xs) 0;
  width: 100%;
  cursor: pointer;
  transition: all .2s
}

.menu-link-item .glk-roll-container {
  pointer-events: none
}

.menu-link-item i {
  transition: transform .3s;
  margin-left: 10px
}

.menu-link-item:hover .glk-roll-inner {
  transform: translateY(-24px)
}

.menu-link-item:hover i {
  color: var(--glk-accent)
}

.menu-link-wrapper.show-flyout .menu-link-item .glk-roll-inner {
  transform: translateY(-24px) !important
}

.menu-link-wrapper.show-flyout>.menu-link-item>i {
  transform: rotate(180deg);
  color: var(--glk-accent)
}

.menu-link-wrapper.show-flyout>.menu-link-item .glk-text-default {
  color: var(--glk-accent)
}

.flyout-menu {
  position: relative;
  width: 100%;
  background: #f8f9fa;
  box-shadow: none;
  padding: 0;
  display: none;
  z-index: 10;
  margin-top: 5px;
  margin-bottom: 10px;
  border-left: 3px solid var(--glk-accent)
}

.menu-link-wrapper.show-flyout>.flyout-menu {
  display: block !important;
  animation: expandDown .3s ease-in-out
}

@keyframes expandDown {
  from {
    opacity: 0;
    transform: translateY(-5px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.flyout-menu a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  font-size: var(--spacing-md);
  border-bottom: 1px solid #eee;
  transition: all .2s
}

.flyout-menu a:hover {
  background-color: #eef2f5;
  color: var(--glk-accent);
  padding-left: 20px
}

.menu-card {
  background: #fff;
  border-radius: var(--spacing-xs);
  overflow: hidden
}

.menu-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0 40px 0 0
}

.card-content {
  padding-top: 15px
}

.card-content h3 {
  color: var(--glk-primary);
  font-size: 22px;
  margin-bottom: 10px
}

.card-content p {
  color: var(--glk-text-grey);
  font-size: 14px;
  margin-bottom: 15px;
  line-height: 1.5
}

@media (min-width:993px) and (max-width:1191px) {
  .logo {
    margin-right: 18px
  }

  body.rtl .logo {
    margin-left: 18px;
    margin-right: 0
  }

  .glk-liquid-btn-txt {
    display: none
  }

  .main-nav {
    padding: 15px var(--spacing-lg)
  }

  .nav-links {
    gap: var(--spacing-sm)
  }

  body.rtl .nav-links {
    gap: 20px
  }
}

@media (max-width:992px) {

  .header-actions,
  .nav-links,
  .top-bar {
    display: none
  }

  .mobile-lang-wrapper,
  .mobile-toggle {
    display: flex
  }

  .main-nav {
    padding: 10px 20px;
    height: 70px
  }

  .close-btn {
    display: none
  }

  .mega-menu-container {
    background: var(--glk-white);
    height: auto !important
  }

  .mega-menu-wrapper {
    padding: 20px;
    height: auto
  }

  #mega-menu-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-start;
    gap: 20px
  }

  .anim-col {
    opacity: 1
  }

  .active-content .anim-col {
    animation: none
  }

  @keyframes mobileItemFadeUp {
    from {
      opacity: 0;
      transform: translateY(20px)
    }

    to {
      opacity: 1;
      transform: translateY(0)
    }
  }

  @keyframes mobileSlideInRight {
    from {
      opacity: 0;
      transform: translateX(30px)
    }

    to {
      opacity: 1;
      transform: translateX(0)
    }
  }

  .mobile-main-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 0
  }

  .mobile-main-item {
    font-size: 18px;
    color: var(--glk-primary);
    padding: 15px 10px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    animation: mobileItemFadeUp .4s ease forwards
  }

  .mobile-main-item:active {
    background-color: var(--glk-bg-light)
  }

  .mobile-main-item i {
    font-size: var(--spacing-md)
  }

  .mobile-main-item:nth-child(1) {
    animation-delay: 50ms
  }

  .mobile-main-item:nth-child(2) {
    animation-delay: .1s
  }

  .mobile-main-item:nth-child(3) {
    animation-delay: .15s
  }

  .mobile-main-item:nth-child(4) {
    animation-delay: .2s
  }

  .mobile-main-item:nth-child(5) {
    animation-delay: .25s
  }

  .mobile-main-item:nth-child(6) {
    animation-delay: .3s
  }

  .mobile-main-item:nth-child(7) {
    animation-delay: .35s
  }

  .mobile-main-item:nth-child(8) {
    animation-delay: .4s
  }

  .mobile-menu-buttons {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    padding-bottom: 20px;
    opacity: 0;
    animation: mobileItemFadeUp .4s ease forwards;
    animation-delay: .45s
  }

  .mobile-menu-buttons .glk-liquid-btn {
    justify-content: center;
    width: 100%;
    font-size: var(--spacing-md);
    padding: var(--spacing-sm);
    border-radius: 50px
  }

  .glk-liquid-btn .fa-phone-alt {
    font-size: 18px
  }

  .mobile-menu-buttons i.fab.fa-whatsapp {
    font-size: 22px
  }

  .mobile-back-btn,
  .mobile-stack-layout {
    animation: mobileSlideInRight .3s ease-out forwards
  }

  .mobile-back-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--spacing-md);
    color: var(--glk-primary);
    padding: 15px 10px;
/*     margin-bottom: 20px; */
    background: #f0f2f5;
    border-radius: 5px;
    cursor: pointer
  }

  body.rtl .mobile-back-btn i,
  body.rtl .mobile-main-item i {
    transform: rotate(180deg)
  }

  .mobile-stack-layout .menu-col-1,
  .mobile-stack-layout .menu-col-2,
  .mobile-stack-layout .menu-col-3 {
    margin-bottom: 30px
  }

  .mobile-sub-group {
    border-bottom: 1px solid #eee
  }

  .mobile-sub-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    font-size: 18px;
    color: var(--glk-primary);
    cursor: pointer
  }

  .mobile-sub-trigger i {
    font-size: var(--spacing-md)
  }

  .mobile-grandchild-list {
    display: none;
    background-color: var(--glk-bg-light);
    color: var(--glk-accent);
    padding-left: 20px;
    border-left: 2px solid var(--glk-accent);
    margin-bottom: 10px
  }

  .mobile-grandchild-item {
    display: block;
    padding: 10px 0;
    font-size: var(--spacing-md);
    text-decoration: none;
    border-bottom: 1px solid #e0e0e0
  }

  .mobile-grandchild-item:last-child {
    border-bottom: none
  }

  html[lang^=ar] div,
  html[lang^=ar] p {
    font-size: var(--spacing-md);
    word-spacing: 1.1px;
    line-height: 1.7em
  }

  .dialog-widget-content.dialog-lightbox-widget-content {
    width: 100% !important;
    max-width: 100vw !important;
    max-height: 92vh !important;
    padding: 22px var(--spacing-md) 18px;
    border-radius: var(--spacing-md)
  }

  .dialog-widget-content .dialog-close-button {
    top: var(--spacing-sm);
    right: 14px;
    font-size: var(--spacing-md)
  }

  .glorek-form input,
  .glorek-form select,
  .glorek-form textarea {
    font-size: 14px !important;
    padding: var(--spacing-sm) 14px !important;
    border-radius: var(--spacing-xs) !important
  }

  .glorek-form textarea {
    min-height: 90px
  }

  .glorek-form .elementor-button {
    height: 48px;
    font-size: 15px;
    border-radius: 10px;
    margin-top: 10px
  }

  .glorek-form .elementor-button-icon {
    font-size: 18px !important
  }
}

@media (max-width:550px) {
  .elementor-popup-modal .dialog-message {
    overflow-x: hidden
  }
}

@media (max-width:480px) {
  .dialog-widget-content.dialog-lightbox-widget-content {
    padding: 20px 14px
  }

  .glorek-form input,
  .glorek-form textarea {
    font-size: 13px !important
  }

  .glorek-form .elementor-button {
    font-size: 14px
  }
}

body.rtl .glorek-header {
  direction: rtl
}

body.rtl .glk-lang-switcher {
  margin: 0 20px 0 0
}

body.rtl .nav-item i {
  margin-left: 0;
  margin-right: var(--spacing-xs)
}

body.rtl .menu-link-item i {
  margin-left: 0;
  margin-right: auto
}

body.rtl .close-btn {
  right: auto;
  left: 20px
}

body.rtl .flyout-menu {
  border-left: none;
  border-right: 3px solid var(--glk-accent)
}

body.rtl .flyout-menu a:hover {
  padding-left: 15px;
  padding-right: 20px
}

body.rtl .header-actions {
  margin-left: 0;
  margin-right: auto
}

body.rtl .nav-item::after {
  transform-origin: right center
}

.glorek-form .elementor-button,
.menu-link-item,
.mobile-main-item,
.nav-item {
  will-change: transform
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale
}

html {
  scroll-behavior: smooth
}

.glorek-form .elementor-button:focus-visible,
.glorek-form input:focus-visible,
.glorek-form textarea:focus-visible,
.menu-link-item:focus-visible,
.nav-item:focus-visible {
  outline: 2px solid var(--glk-accent);
  outline-offset: 2px
}

@media (prefers-reduced-motion:reduce) {

  *,
  ::after,
  ::before {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important
  }
}