/* ============================================
   CUSTOM FIXES - Lynx Air Service
   ============================================ */

/* 0. SMOOTH SCROLL for anchor links */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

/* 1. HEADER - Force full viewport width when sticky/fixed */
.elementor-location-header .elementor-section.elementor-sticky--active,
.elementor-location-header .elementor-section[style*="position: fixed"] {
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
}

.elementor-location-header .elementor-section.elementor-section-boxed {
  width: 100% !important;
}


/* ============================================
   2. DESKTOP FLYOUT SUBMENUS (1025px+)
   ============================================ */
@media (min-width: 1025px) {

  /* --- Top-level menu items with children --- */
  .elementor-nav-menu--main .elementor-nav-menu > li.menu-item-has-children {
    position: relative;
  }

  /* --- First-level dropdown (About, Our Services) --- */
  .elementor-nav-menu--main .elementor-nav-menu > li > ul.sub-menu.elementor-nav-menu--dropdown {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 220px;
    width: auto !important;
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    z-index: 1000;
    padding: 6px 0;
    list-style: none;
    overflow: visible !important;
  }

  /* Show first-level dropdown on hover */
  .elementor-nav-menu--main .elementor-nav-menu > li.menu-item-has-children:hover > ul.sub-menu.elementor-nav-menu--dropdown {
    display: block !important;
  }

  /* --- "Areas We Work In" nested flyout to the RIGHT --- */
  .elementor-nav-menu--main .elementor-nav-menu .sub-menu > li.menu-item-has-children {
    position: relative !important;
  }

  /* The nested sub-menu: position absolute, fly to right */
  .elementor-nav-menu--main .elementor-nav-menu .sub-menu > li.menu-item-has-children > ul.sub-menu.elementor-nav-menu--dropdown {
    display: none !important;
    position: absolute !important;
    top: 0 !important;
    left: 100% !important;
    min-width: 180px;
    width: auto !important;
    background: #fff !important;
    background-color: #fff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    border-radius: 4px;
    z-index: 1001;
    padding: 6px 0;
    list-style: none;
    margin: 0 !important;
  }

  /* Show flyout on hover */
  .elementor-nav-menu--main .elementor-nav-menu .sub-menu > li.menu-item-has-children:hover > ul.sub-menu.elementor-nav-menu--dropdown {
    display: block !important;
  }

  /* Bridge gap: invisible area between parent item and flyout so cursor can travel */
  .elementor-nav-menu--main .elementor-nav-menu .sub-menu > li.menu-item-has-children > ul.sub-menu.elementor-nav-menu--dropdown::before {
    content: "";
    position: absolute;
    top: 0;
    left: -14px;
    width: 14px;
    height: 100%;
  }

  /* Override aria-hidden hiding for hover */
  .elementor-nav-menu--main .elementor-nav-menu > li:hover > ul[aria-hidden="true"],
  .elementor-nav-menu--main .elementor-nav-menu .sub-menu > li:hover > ul[aria-hidden="true"] {
    display: block !important;
  }

  /* --- Dropdown link styling --- */
  .elementor-nav-menu--main .elementor-nav-menu .sub-menu li a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 20px !important;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
    line-height: 1.4;
    border: none !important;
  }

  /* Remove Elementor's default border-left indentation on nested menu links */
  .elementor-nav-menu--main .elementor-nav-menu ul ul a,
  .elementor-nav-menu--main .elementor-nav-menu ul ul a:hover,
  .elementor-nav-menu--main .elementor-nav-menu ul ul a:focus,
  .elementor-nav-menu--main .elementor-nav-menu ul ul ul a,
  .elementor-nav-menu--main .elementor-nav-menu ul ul ul a:hover,
  .elementor-nav-menu--main .elementor-nav-menu ul ul ul a:focus {
    border-left: none !important;
    border-inline-start: none !important;
  }

  .elementor-nav-menu--main .elementor-nav-menu .sub-menu li a:hover {
    background-color: var(--e-global-color-primary, #2d1a6e);
    color: var(--e-global-color-cef527d, #f5c518);
  }

  /* Sub-arrow: inline with text, no wrapping */
  .elementor-nav-menu--main .elementor-nav-menu .sub-menu li a .sub-arrow {
    display: inline-flex !important;
    align-items: center;
    flex-shrink: 0;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
  }

  /* Arrow points RIGHT for flyout parent (Areas We Work In) */
  .elementor-nav-menu--main .elementor-nav-menu .sub-menu > li.menu-item-has-children > a .sub-arrow i {
    transform: rotate(-90deg) !important;
    font-size: 12px;
  }
}


/* ============================================
   3. MOBILE / TABLET HAMBURGER DROPDOWN
   ============================================ */
@media (max-width: 1024px) {

  /* Force menu-height so mobile dropdown can expand */
  .elementor-nav-menu--toggle .elementor-nav-menu__container {
    --menu-height: 100vh !important;
  }

  /* Make the mobile dropdown nav full-viewport-width and left-aligned to screen edge */
  .elementor-nav-menu--dropdown.elementor-nav-menu__container {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    z-index: 9998;
    background-color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 80vh;
  }

  /* Center-align all menu item text */
  .elementor-nav-menu--dropdown.elementor-nav-menu__container .elementor-nav-menu a {
    justify-content: center !important;
    text-align: center;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--e-global-color-9e89d4e, #333);
    border: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
  }

  /* Sub-items slightly smaller, indented feel via background */
  .elementor-nav-menu--dropdown.elementor-nav-menu__container .sub-menu a {
    font-size: 15px;
    font-weight: 500;
    background-color: #fafafa;
    border-inline-start: none !important;
    border-left: none !important;
  }

  .elementor-nav-menu--dropdown.elementor-nav-menu__container .sub-menu .sub-menu a {
    font-size: 14px;
    background-color: #f5f5f5;
  }

  /* Submenus hidden by default on mobile — revealed on tap via JS toggle */
  .elementor-nav-menu--dropdown.elementor-nav-menu__container ul.sub-menu {
    display: none !important;
    position: static !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  /* Show submenu when parent li has sub-menu-open class (added by JS on tap) */
  .elementor-nav-menu--dropdown.elementor-nav-menu__container li.sub-menu-open > ul.sub-menu {
    display: block !important;
  }

  /* Sub-arrow: inline and pointing down on mobile */
  .elementor-nav-menu--dropdown.elementor-nav-menu__container .sub-arrow {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
    padding: 0 !important;
  }

  /* Rotate arrow when submenu is open */
  .elementor-nav-menu--dropdown.elementor-nav-menu__container li.sub-menu-open > a .sub-arrow i {
    transform: rotate(180deg);
    transition: transform 0.2s;
  }

  /* Hover/active state */
  .elementor-nav-menu--dropdown.elementor-nav-menu__container a:hover,
  .elementor-nav-menu--dropdown.elementor-nav-menu__container a:focus {
    background-color: var(--e-global-color-cef527d, #f5c518) !important;
    color: var(--e-global-color-primary, #2d1a6e) !important;
  }
}


/* ============================================
   4. IMAGE HEIGHT - Fill adjacent column
   ============================================ */

/*
 * TARGET: Columns where the ONLY widget is an image widget.
 * These are image-only columns sitting next to taller text columns.
 * The image should stretch to fill the full row height.
 *
 * Uses :has() to detect when a container holds an image-only column,
 * then switches from align-items:center to stretch so the image column
 * expands to match the adjacent column's height.
 */

/* When a section container has a column whose only widget is an image,
   switch to stretch so the image column can fill the row height */
.elementor-section > .elementor-container:has(
  > .elementor-column > .elementor-widget-wrap > .elementor-widget-image:only-child
) {
  align-items: stretch !important;
}

/* The image-only widget, its container, and the img all fill 100% height */
.elementor-widget-wrap > .elementor-widget-image:only-child {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.elementor-widget-wrap > .elementor-widget-image:only-child > .elementor-widget-container {
  height: 100%;
  flex: 1;
}

/* The img (or img inside a link) fills the container with object-fit cover */
.elementor-widget-wrap > .elementor-widget-image:only-child > .elementor-widget-container img,
.elementor-widget-wrap > .elementor-widget-image:only-child > .elementor-widget-container a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Link wrapper inside image-only columns should also fill height */
.elementor-widget-wrap > .elementor-widget-image:only-child > .elementor-widget-container > a {
  display: block;
  height: 100%;
}

/* Background-image columns should cover */
.elementor-section .elementor-column[data-settings*="background"] {
  background-size: cover;
  background-position: center;
}

/* Fallback for containers with :has() — also support sections that use
   elementor-section-content-middle with an image-only column.
   For sections that have BOTH an image-only col and a text col,
   the widget-wrap in the text column should align content to center. */
.elementor-section > .elementor-container:has(
  > .elementor-column > .elementor-widget-wrap > .elementor-widget-image:only-child
) > .elementor-column > .elementor-widget-wrap:not(:has(> .elementor-widget-image:only-child)) {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ============================================
   5. RESPONSIVE - Image columns stack on mobile
   ============================================ */
@media (max-width: 767px) {
  /* On mobile, image-only columns shouldn't force height — let them flow naturally */
  .elementor-widget-wrap > .elementor-widget-image:only-child > .elementor-widget-container img,
  .elementor-widget-wrap > .elementor-widget-image:only-child > .elementor-widget-container a img {
    height: auto;
    max-height: 400px;
    object-fit: cover;
  }
}


/* ============================================
   6. REVIEWS / TESTIMONIALS CAROUSEL
   ============================================ */

/* Let Swiper JS handle the layout — just reset broken inline overrides */
.elementor-widget-reviews .swiper-wrapper {
  display: flex !important;
  overflow: visible !important;
}

.elementor-widget-reviews .swiper-slide {
  display: block !important;
  height: auto !important;
}

.elementor-widget-reviews .elementor-main-swiper {
  overflow: hidden !important;
}

/* Review card styling */
.elementor-widget-reviews .swiper-slide {
  background-color: #fff !important;
  border: 1px solid #e1e8ed;
  border-radius: 5px;
}

/* Header area (name + stars) */
.elementor-widget-reviews .elementor-testimonial__header {
  display: flex;
  padding: 18px 25px 10px 25px;
  border-bottom: 1px solid #e1e8ed;
}

.elementor-widget-reviews .elementor-testimonial__name {
  font-size: 17px;
  font-weight: 700;
  color: #1c2022;
  display: block;
}

/* Star rating — Unicode ★ characters are now in the HTML directly */
.elementor-widget-reviews .elementor-star-rating {
  font-size: 18px !important;
  font-family: Arial, sans-serif !important;
  color: #F1A300 !important;
  line-height: 1;
  display: block;
  margin-top: 4px;
  letter-spacing: 2px;
}

/* Kill all pseudo-elements from base CSS that interfere */
.elementor-widget-reviews .elementor-star-rating i::before,
.elementor-widget-reviews .elementor-star-rating i::after {
  content: none !important;
  display: none !important;
}

/* Each star <i> — inline, gold, no positioning tricks */
.elementor-widget-reviews .elementor-star-rating i {
  font-size: inherit !important;
  font-style: normal !important;
  font-family: inherit !important;
  color: #F1A300 !important;
  display: inline !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
}

/* Header layout — name on top, stars below, no overlap with divider */
.elementor-widget-reviews .elementor-testimonial__header {
  display: block !important;
  padding: 18px 25px 12px 25px !important;
  border-bottom: 1px solid #e1e8ed;
}

.elementor-widget-reviews .elementor-testimonial__cite {
  display: block !important;
  font-style: normal;
}

/* Review text content */
.elementor-widget-reviews .elementor-testimonial__content {
  padding: 10px 25px 25px 25px;
}

.elementor-widget-reviews .elementor-testimonial__text {
  font-size: 16px;
  font-style: italic;
  line-height: 1.8em;
  color: #333;
}

/* Hide the empty "Read More" icon */
.elementor-widget-reviews .elementor-testimonial__icon.elementor-icon- {
  display: none;
}

/* Navigation arrows */
.elementor-widget-reviews .elementor-swiper-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 20px;
  color: var(--e-global-color-primary, #2d1a6e);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.elementor-widget-reviews .elementor-swiper-button:hover {
  opacity: 1;
}

.elementor-widget-reviews .elementor-swiper-button-prev {
  left: 0;
}

.elementor-widget-reviews .elementor-swiper-button-next {
  right: 0;
}

/* Make room for arrows */
.elementor-widget-reviews.elementor-arrows-yes .elementor-main-swiper {
  width: calc(100% - 80px) !important;
  margin: 0 auto;
}

/* Ensure the swiper container is positioned for arrows */
.elementor-widget-reviews .elementor-swiper {
  position: relative;
}


/* ============================================
   7. ADAPT CONTACT FORMS
   ============================================ */
.adapt-form-wrap {
  width: 100%;
}
.adapt-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.adapt-form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.adapt-form-field {
  flex: 1 1 100%;
  min-width: 0;
}
.adapt-form-field--half {
  flex: 1 1 calc(50% - 6px);
}
.adapt-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.adapt-form--full label {
  color: #333;
}
.adapt-form input[type="text"],
.adapt-form input[type="tel"],
.adapt-form input[type="email"],
.adapt-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid #d0d7de;
  border-radius: 4px;
  background: #fff;
  color: #222;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.adapt-form input:focus,
.adapt-form textarea:focus {
  outline: none;
  border-color: #2d1a6e;
  box-shadow: 0 0 0 3px rgba(45, 26, 110, 0.15);
}
.adapt-form textarea {
  resize: vertical;
  min-height: 120px;
}
.adapt-form-footer {
  margin-top: 4px;
}
.adapt-form-submit {
  display: inline-block;
  padding: 13px 32px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #2d1a6e;
  background: #f5c518;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}
.adapt-form-submit:hover {
  background: #ffd633;
}
.adapt-form-submit:active {
  transform: translateY(1px);
}
.adapt-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.adapt-form-message {
  font-size: 15px;
}
@media (max-width: 600px) {
  .adapt-form-field--half {
    flex: 1 1 100%;
  }
}
