/* ==========================================================================
   Airwing Tours — enhancement layer
   Purely additive polish on top of the original stylesheets.
   Nothing here changes layout, copy or structure; it only refines motion,
   depth, focus states and image loading.
   ========================================================================== */

:root {
  --aw-accent: #3fced3;
  --aw-accent-dark: #2ba9ae;
  --aw-brand: #d72e21;
  --aw-coral: #f7665e;
  --aw-ink: #353434;

  --aw-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --aw-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --aw-dur: 0.45s;

  --aw-shadow-sm: 0 2px 8px rgba(16, 32, 40, 0.06);
  --aw-shadow-md: 0 10px 26px -8px rgba(16, 32, 40, 0.18);
  --aw-shadow-lg: 0 22px 48px -14px rgba(16, 32, 40, 0.28);
}

/* --------------------------------------------------------------------------
   1. Base niceties
   -------------------------------------------------------------------------- */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

img {
  /* avoids the jarring "pop" as images decode */
  image-rendering: auto;
}

::selection {
  background: var(--aw-accent);
  color: #fff;
}

/* A visible, on-brand focus ring — the original relies on the UA default,
   which several components suppress. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--aw-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Skip link for keyboard users */
.aw-skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10000;
  padding: 10px 18px;
  background: #fff;
  color: var(--aw-ink);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  border-radius: 6px;
  box-shadow: var(--aw-shadow-md);
  transition: top 0.25s var(--aw-ease);
}
.aw-skip-link:focus {
  top: 16px;
}

/* Slimmer, on-brand scrollbar (progressive; ignored where unsupported) */
@supports (scrollbar-color: auto) {
  html {
    scrollbar-color: rgba(63, 206, 211, 0.6) transparent;
    scrollbar-width: thin;
  }
}

/* --------------------------------------------------------------------------
   2. Scroll reveal
   Elements get .aw-reveal from enhance.js, then .aw-in when they enter view.
   -------------------------------------------------------------------------- */

/* Doubled class keeps this ahead of the card hover rules further down,
   which also declare `transition` on the same elements. */
.aw-reveal.aw-reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity var(--aw-dur) var(--aw-ease-out),
    transform var(--aw-dur) var(--aw-ease-out);
  will-change: opacity, transform;
}

.aw-reveal.aw-reveal.aw-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Cards that both reveal and lift on hover need all three properties in one
   transition list, otherwise whichever rule wins drops the others. */
.aw-reveal.aw-reveal.trending-tour-item,
.aw-reveal.aw-reveal.home_cat_item,
.aw-reveal.aw-reveal.blog-list__item,
.aw-reveal.aw-reveal.tour-small-box,
.aw-reveal.aw-reveal.ex-small-box,
.aw-reveal.aw-reveal.card {
  transition:
    opacity var(--aw-dur) var(--aw-ease-out),
    transform var(--aw-dur) var(--aw-ease-out),
    box-shadow 0.4s var(--aw-ease-out);
}

/* Stagger children of grids/rows for a gentle cascade */
.aw-reveal[data-aw-delay="1"] { transition-delay: 0.07s; }
.aw-reveal[data-aw-delay="2"] { transition-delay: 0.14s; }
.aw-reveal[data-aw-delay="3"] { transition-delay: 0.21s; }
.aw-reveal[data-aw-delay="4"] { transition-delay: 0.28s; }
.aw-reveal[data-aw-delay="5"] { transition-delay: 0.35s; }

/* --------------------------------------------------------------------------
   3. Header
   -------------------------------------------------------------------------- */

/* NOTE: #header-1 (home) *is* the 100vh hero — the banner image lives on the
   header element itself. #header-2 (inner pages) is a normal white bar.
   Neither is sticky, so the condensed bar below is a separate fixed element
   rather than a restyling of either. */

/* Animated underline on the primary nav, both header variants */
.header-1-nav > ul > li > a,
.header-2-nav > ul > li > a {
  position: relative;
  transition: color 0.28s var(--aw-ease);
}

.header-1-nav > ul > li > a::after,
.header-2-nav > ul > li > a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--aw-accent);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.32s var(--aw-ease-out);
  pointer-events: none;
}

.header-1-nav > ul > li > a:hover::after,
.header-1-nav > ul > li > a:focus-visible::after,
.header-2-nav > ul > li > a:hover::after,
.header-2-nav > ul > li > a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* --- condensed sticky bar (built by enhance.js) --------------------------- */

.aw-sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 995;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 32px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 6px 22px -10px rgba(16, 32, 40, 0.35);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.4s var(--aw-ease-out),
    opacity 0.3s var(--aw-ease),
    visibility 0.4s;
}

.aw-sticky-nav.aw-show {
  transform: none;
  opacity: 1;
  visibility: visible;
}

.aw-sticky-nav__logo img {
  height: 46px;
  width: auto;
  display: block;
}

.aw-sticky-nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.aw-sticky-nav__links a {
  position: relative;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--aw-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s var(--aw-ease);
}

.aw-sticky-nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--aw-accent);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.3s var(--aw-ease-out);
}

.aw-sticky-nav__links a:hover,
.aw-sticky-nav__links a[aria-current="page"] {
  color: var(--aw-accent-dark);
}

.aw-sticky-nav__links a:hover::after,
.aw-sticky-nav__links a:focus-visible::after,
.aw-sticky-nav__links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.aw-sticky-nav__cta {
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--aw-accent);
  color: #fff !important;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s var(--aw-ease-out), box-shadow 0.25s var(--aw-ease-out),
              background-color 0.25s var(--aw-ease);
}

.aw-sticky-nav__cta:hover {
  background: var(--aw-accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--aw-shadow-md);
}

/* The condensed bar duplicates navigation that is already reachable on
   smaller screens through the existing mobile menu. */
@media (max-width: 992px) {
  .aw-sticky-nav {
    display: none;
  }
}

/* Dropdowns ease in rather than snapping */
.dropdown_content,
.sub-menu {
  transition: opacity 0.26s var(--aw-ease), transform 0.26s var(--aw-ease-out);
}

/* Reading-progress bar pinned under the header */
.aw-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--aw-accent), var(--aw-coral));
  z-index: 9999;
  pointer-events: none;
  transition: transform 0.1s linear, opacity 0.3s var(--aw-ease);
}

/* --------------------------------------------------------------------------
   4. Cards — tours, categories, excursions, blog
   -------------------------------------------------------------------------- */

.trending-tour-item,
.home_cat_item,
.special-tour-slider__item,
.blog-list__item,
.tour-small-box,
.ex-small-box,
.card {
  transition:
    transform 0.4s var(--aw-ease-out),
    box-shadow 0.4s var(--aw-ease-out);
}

.trending-tour-item:hover,
.special-tour-slider__item:hover,
.blog-list__item:hover,
.tour-small-box:hover,
.ex-small-box:hover,
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--aw-shadow-lg);
}

/* Contain the image so it can scale without spilling out of the card */
.trending-tour-item__thumnail,
.home_cat_item,
.special-tour-slider__item .img-box-slider,
.blog-list__item .blog-list__item__thumbnail,
.ex-small-box .trending-tour-item__thumnail {
  overflow: hidden;
}

.trending-tour-item__thumnail img,
.home_cat_item img,
.special-tour-slider__item .img-box-slider img,
.blog-list__item img,
.tour-small-box img {
  transition: transform 0.7s var(--aw-ease-out);
  backface-visibility: hidden;
}

.trending-tour-item:hover .trending-tour-item__thumnail img,
.home_cat_item:hover img,
.special-tour-slider__item:hover .img-box-slider img,
.blog-list__item:hover img,
.tour-small-box:hover img {
  transform: scale(1.06);
}

/* Category tiles: darken slightly on hover so the caption keeps contrast */
.home_cat_item {
  position: relative;
}

.home_cat_item .text-box {
  transition: transform 0.4s var(--aw-ease-out);
}

.home_cat_item:hover .text-box {
  transform: translateY(-4px);
}

/* --------------------------------------------------------------------------
   5. Buttons and links
   -------------------------------------------------------------------------- */

.btn_discover,
.itinerary_btn,
.visit_us_btn,
.ex-link,
.travel-tip-1__btn,
button[type="submit"],
input[type="submit"] {
  transition:
    transform 0.25s var(--aw-ease-out),
    box-shadow 0.25s var(--aw-ease-out),
    background-color 0.25s var(--aw-ease),
    color 0.25s var(--aw-ease);
}

.btn_discover:hover,
.itinerary_btn:hover,
.visit_us_btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: var(--aw-shadow-md);
}

.btn_discover:active,
.itinerary_btn:active,
.visit_us_btn:active,
button[type="submit"]:active,
input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: var(--aw-shadow-sm);
}

/* The little arrow links nudge forward */
.ex-link i {
  transition: transform 0.3s var(--aw-ease-out);
}

.ex-link:hover i {
  transform: translateX(5px);
}

/* --------------------------------------------------------------------------
   6. Section titles
   -------------------------------------------------------------------------- */

.section-tittle__line-under {
  transform-origin: center;
  transition: transform 0.7s var(--aw-ease-out) 0.15s;
}

.aw-reveal .section-tittle__line-under,
.section-tittle.aw-reveal .section-tittle__line-under {
  transform: scaleX(0.2);
}

.aw-reveal.aw-in .section-tittle__line-under,
.section-tittle.aw-reveal.aw-in .section-tittle__line-under {
  transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   7. Image loading — fade in once decoded
   -------------------------------------------------------------------------- */

img.aw-img {
  opacity: 0;
  transition: opacity 0.5s var(--aw-ease);
}

img.aw-img.aw-loaded,
img.aw-img[data-aw-eager] {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   8. Accordions / itinerary days — smoother open-close
   -------------------------------------------------------------------------- */

.tour-infomation__content__schedule__day,
.tour-infomation__content__FAQ__item {
  transition: background-color 0.3s var(--aw-ease), box-shadow 0.3s var(--aw-ease);
}

.tour-infomation__content__schedule__day:hover,
.tour-infomation__content__FAQ__item:hover {
  background-color: rgba(63, 206, 211, 0.05);
}

.schedule-show {
  transition: max-height 0.45s var(--aw-ease-out), opacity 0.35s var(--aw-ease);
}

/* --------------------------------------------------------------------------
   9. Forms
   -------------------------------------------------------------------------- */

.form-group input,
.form-group textarea,
.form-group select {
  transition: border-color 0.25s var(--aw-ease), box-shadow 0.25s var(--aw-ease);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--aw-accent);
  box-shadow: 0 0 0 3px rgba(63, 206, 211, 0.16);
}

/* Inline notice used by the static form handler */
.aw-form-notice {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background: rgba(63, 206, 211, 0.1);
  border: 1px solid rgba(63, 206, 211, 0.35);
  color: var(--aw-ink);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s var(--aw-ease), transform 0.3s var(--aw-ease-out);
}

.aw-form-notice.aw-in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   10. Back-to-top control
   -------------------------------------------------------------------------- */

.aw-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: #fff;
  color: var(--aw-ink);
  box-shadow: var(--aw-shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition:
    opacity 0.3s var(--aw-ease),
    transform 0.3s var(--aw-ease-out),
    visibility 0.3s,
    background-color 0.25s var(--aw-ease),
    color 0.25s var(--aw-ease);
  z-index: 900;
}

.aw-to-top.aw-show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.aw-to-top:hover {
  background: var(--aw-accent);
  color: #fff;
  transform: translateY(-3px);
}

.aw-to-top svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Keep clear of the floating WhatsApp/contact widgets on small screens */
@media (max-width: 576px) {
  .aw-to-top {
    right: 16px;
    bottom: 84px;
    width: 42px;
    height: 42px;
  }
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */

#footer-new a {
  transition: color 0.25s var(--aw-ease), opacity 0.25s var(--aw-ease);
}

#footer-new a:hover {
  color: var(--aw-accent);
}

.social-media-row a {
  display: inline-block;
  transition: transform 0.3s var(--aw-ease-out), color 0.25s var(--aw-ease);
}

.social-media-row a:hover {
  transform: translateY(-3px) scale(1.08);
}

/* --------------------------------------------------------------------------
   12. Slick carousel polish
   -------------------------------------------------------------------------- */

.slick-dots li button:before {
  transition: opacity 0.3s var(--aw-ease), color 0.3s var(--aw-ease);
}

.slick-dots li {
  transition: transform 0.3s var(--aw-ease-out);
}

.slick-dots li.slick-active {
  transform: scale(1.15);
}

.slick-prev,
.slick-next {
  transition: transform 0.25s var(--aw-ease-out), opacity 0.25s var(--aw-ease);
}

.slick-prev:hover {
  transform: translateX(-3px);
}

.slick-next:hover {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   13. Print — let people print an itinerary cleanly
   -------------------------------------------------------------------------- */

@media print {
  #header-1,
  .header-nav-mobile,
  .aw-to-top,
  .aw-progress,
  #footer-new,
  .covid-banner-section {
    display: none !important;
  }
  .aw-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  body {
    background: #fff;
  }
}

/* --------------------------------------------------------------------------
   14. Respect reduced-motion preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .aw-reveal,
  .aw-reveal.aw-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Field flagged by the static form validator */
.aw-invalid {
  border-color: var(--aw-coral) !important;
  box-shadow: 0 0 0 3px rgba(247, 102, 94, 0.16) !important;
}

/* --------------------------------------------------------------------------
   15. 404 page
   -------------------------------------------------------------------------- */

.aw-404 {
  padding: 110px 0 120px;
  background: linear-gradient(180deg, #f7fbfc 0%, #ffffff 100%);
}

.aw-404__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.aw-404__code {
  font-family: 'Poppins', sans-serif;
  font-size: 84px;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--aw-accent), var(--aw-coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.aw-404__title {
  font-family: 'Poppins', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--aw-ink);
  margin: 0 0 14px;
}

.aw-404__text {
  font-family: 'Ubuntu-regular', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #6b7679;
  margin: 0 auto 32px;
  max-width: 460px;
}

.aw-404__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.aw-404__btn {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid rgba(63, 206, 211, 0.5);
  color: var(--aw-accent-dark);
  background: #fff;
  text-decoration: none;
  transition: transform 0.25s var(--aw-ease-out),
              box-shadow 0.25s var(--aw-ease-out),
              background-color 0.25s var(--aw-ease),
              color 0.25s var(--aw-ease);
}

.aw-404__btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--aw-shadow-md);
  background: var(--aw-accent);
  color: #fff;
}

.aw-404__btn--primary {
  background: var(--aw-accent);
  color: #fff;
  border-color: var(--aw-accent);
}

.aw-404__btn--primary:hover {
  background: var(--aw-accent-dark);
  border-color: var(--aw-accent-dark);
}

@media (max-width: 576px) {
  .aw-404 { padding: 70px 0 80px; }
  .aw-404__code { font-size: 62px; }
  .aw-404__title { font-size: 23px; }
}
