/**
 * ASC360 industry polish layer — additive only.
 * Inspired by travel-industry UI patterns (JustWravel-class) but tuned to ASC360 brand.
 * Does not change layout structure, JS behavior, or content.
 */

/* —— Global selection & text rendering —— */
::selection {
  background: rgba(255, 106, 26, 0.22);
  color: var(--navy, #0b1b2e);
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* —— Section kickers: premium accent hairline —— */
.kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.kicker::before {
  content: "";
  width: 1.1rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, currentColor, transparent);
  flex-shrink: 0;
  opacity: 0.85;
}
.kicker--light::before,
.page-hero .kicker::before {
  background: linear-gradient(90deg, #ffb48a, transparent);
}

/* —— Buttons: quieter, more intentional press —— */
.btn {
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    filter 0.22s ease;
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -12px rgba(255, 92, 0, 0.55);
}
.btn--primary:active {
  transform: translateY(0);
  filter: brightness(0.97);
}
.btn--line:hover {
  box-shadow: 0 10px 22px -16px rgba(11, 27, 46, 0.35);
}

/* —— Link arrows —— */
.link-arrow {
  transition: color 0.2s ease, gap 0.2s ease;
}
.link-arrow:hover::after {
  width: 26px;
}

/* —— Package / plan cards: cinematic media (Justwravel-class image-forward) —— */
.pkg,
.pkg-detail__related-card,
.blog-card,
.story-feature,
.discover-rail__card {
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.pkg__media,
.pkg-detail__related-card figure,
.blog-card__media,
.story-feature__img,
.discover-rail__card figure {
  overflow: hidden;
}

.pkg__media > img,
.pkg-detail__related-card figure img,
.blog-card__media img,
.story-feature__img img,
.discover-rail__card figure img {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .pkg:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 106, 26, 0.28);
    box-shadow:
      0 4px 10px rgba(11, 27, 46, 0.05),
      0 22px 40px -20px rgba(11, 27, 46, 0.28);
  }
  .pkg:hover .pkg__media > img {
    transform: scale(1.06);
  }

  .pkg-detail__related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px -18px rgba(11, 27, 46, 0.28);
  }
  .pkg-detail__related-card:hover figure img {
    transform: scale(1.05);
  }

  .blog-card:hover {
    transform: translateY(-3px);
  }
  .blog-card:hover .blog-card__media img {
    transform: scale(1.05);
  }

  .story-feature:hover .story-feature__img img {
    transform: scale(1.04);
  }

  .story-list li:hover img {
    transform: scale(1.05);
  }
}

.story-list img {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* —— Filter / chip bars: active glow like industry trip filters —— */
.pkg-filter.is-open,
.pkg-filter:focus-within {
  border-color: rgba(255, 106, 26, 0.42);
  box-shadow: 0 0 0 3px rgba(255, 106, 26, 0.12);
}

body[data-page="packages"] .toolbar--packages {
  backdrop-filter: blur(8px);
}

/* —— Page heroes: richer atmospheric edge without layout change —— */
.page-hero--media::before {
  box-shadow: inset 0 -40px 60px -20px rgba(8, 20, 35, 0.35);
}

/* —— Field stories / trust: softer stage presence —— */
.field-stories__media {
  box-shadow: 0 16px 36px -22px rgba(11, 27, 46, 0.35);
}
.field-stories__list button[aria-selected="true"] {
  box-shadow: 0 8px 20px -14px rgba(255, 106, 26, 0.55);
}

/* —— FAQ details: premium accordion feel —— */
.faq__panel details {
  transition: box-shadow 0.22s ease, border-color 0.22s ease;
}
.faq__panel details[open] {
  border-color: rgba(255, 106, 26, 0.28);
  box-shadow: 0 12px 28px -20px rgba(11, 27, 46, 0.22);
}

/* —— Help FAB: industry floating contact polish —— */
.help__btn {
  box-shadow:
    0 10px 28px -10px rgba(11, 27, 46, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.help__btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 16px 32px -12px rgba(255, 92, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* —— Footer social: already tipped; deepen hover —— */
.footer-social a {
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.footer-social a:hover {
  transform: translateY(-2px);
}

/* —— Header pill: slight glass on scroll pages —— */
.site-header--float.is-scrolled .site-header__pill {
  box-shadow:
    0 10px 30px -16px rgba(11, 27, 46, 0.28),
    0 0 0 1px rgba(11, 27, 46, 0.06);
}

/* —— Contact / about interactive cards —— */
.contact-help-card,
.about-future__card,
.partner-why__card {
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}

/* —— Story article / content pages —— */
.story-article__hero img,
.page-hero--media .page-hero__bg img {
  transition: transform 8s ease;
}
@media (hover: hover) and (pointer: fine) {
  .story-article__hero:hover img,
  .page-hero--media:hover .page-hero__bg img {
    transform: scale(1.03);
  }
}

/* —— Packages listing count / meta —— */
body[data-page="packages"] .plans-meta,
body[data-page="packages"] [class*="showing"] {
  letter-spacing: -0.01em;
}

/* —— Form inputs: industry focus ring —— */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: rgba(255, 106, 26, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 106, 26, 0.14);
}

/* —— Responsive: keep polish without layout thrash —— */
@media (max-width: 767px) {
  .kicker::before {
    width: 0.85rem;
  }
  .pkg:hover,
  .pkg-detail__related-card:hover,
  .blog-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pkg,
  .pkg-detail__related-card,
  .blog-card,
  .story-feature,
  .btn,
  .help__btn,
  .footer-social a,
  .pkg__media > img,
  .pkg-detail__related-card figure img,
  .blog-card__media img,
  .story-feature__img img,
  .story-list img,
  .page-hero--media .page-hero__bg img,
  .story-article__hero img {
    transition: none !important;
  }
  .pkg:hover .pkg__media > img,
  .pkg-detail__related-card:hover figure img,
  .blog-card:hover .blog-card__media img,
  .story-feature:hover .story-feature__img img,
  .page-hero--media:hover .page-hero__bg img {
    transform: none !important;
  }
}

/* ==========================================================================
   Travel-industry gap closure (JustWravel-class listing + ASC premium depth)
   Additive only — no markup or JS changes.
   ========================================================================== */

/* —— Section rhythm: clearer editorial hierarchy —— */
.sec-head h2,
.sec-head--row h2 {
  text-wrap: balance;
  letter-spacing: -0.025em;
}
.sec-head > p:not(.kicker),
.sec-head--row > div > p:not(.kicker) {
  text-wrap: pretty;
  max-width: 52ch;
}

/* —— Trip/plan cards: image-forward listing (JW-style) —— */
.pkg {
  border-radius: 12px;
  box-shadow:
    0 1px 2px rgba(11, 27, 46, 0.04),
    0 8px 24px -16px rgba(11, 27, 46, 0.12);
}
.pkg__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, rgba(11, 27, 46, 0.22) 100%);
  opacity: 0.55;
  transition: opacity 0.35s ease;
}
@media (hover: hover) and (pointer: fine) {
  .pkg:hover .pkg__media::after {
    opacity: 0.72;
  }
}
.pkg__price {
  border-top: 1px solid rgba(11, 27, 46, 0.08);
}
.pkg__price strong {
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* —— Finder match rows: productized search results —— */
body[data-page="home"] .finder__results {
  border-radius: 14px;
  box-shadow:
    0 2px 4px rgba(8, 20, 35, 0.05),
    0 22px 44px -28px rgba(8, 20, 35, 0.5);
}
.match {
  border-radius: 10px;
  transition:
    background-color 0.2s ease,
    box-shadow 0.22s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) and (pointer: fine) {
  .match:hover {
    box-shadow: 0 10px 22px -18px rgba(11, 27, 46, 0.22);
    transform: translateX(2px);
  }
}
.match__price strong {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* —— Discover rail + story cards —— */
.discover-rail__card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 28px -20px rgba(11, 27, 46, 0.2);
}
.story-feature {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px -22px rgba(11, 27, 46, 0.22);
}

/* —— Package detail: booking strip (JW sticky price bar class) —— */
body[data-page="package-detail"] .pkg-detail__bar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
}
body[data-page="package-detail"] .pkg-detail__bar .pkg-detail__price strong {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
}
body[data-page="package-detail"] .pkg-detail__card {
  scroll-margin-top: calc(var(--header-h) + 72px);
}

/* —— Modals & menus: depth without layout shift —— */
.modal__backdrop {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal__dialog {
  box-shadow:
    0 28px 72px -28px rgba(11, 27, 46, 0.55),
    0 0 0 1px rgba(11, 27, 46, 0.06);
}
.dd__menu {
  box-shadow:
    0 16px 40px -16px rgba(11, 27, 46, 0.35),
    0 0 0 1px rgba(11, 27, 46, 0.06);
  border-radius: 12px;
}

/* —— Final CTA band: cinematic edge —— */
.final__img {
  border-radius: 14px;
  box-shadow: 0 20px 48px -24px rgba(0, 0, 0, 0.45);
}
.final h2 {
  text-wrap: balance;
}

/* —— Credibility: partner chips feel tactile —— */
#credibility .credibility__logo-chip {
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}
@media (hover: hover) and (pointer: fine) {
  #credibility .credibility__logo-chip:hover {
    transform: translateY(-2px);
  }
}

/* —— Contact / partners: card surfaces —— */
body[data-page="contact"] .contact-panel,
body[data-page="partners"] .partner-why__card {
  border-radius: 12px;
}

/* —— Toolbar (packages): sticky glass when scrolled —— */
body[data-page="packages"] .toolbar--packages {
  border-radius: 12px;
  border: 1px solid rgba(11, 27, 46, 0.08);
  box-shadow: 0 8px 24px -20px rgba(11, 27, 46, 0.18);
}

/* —— Article: reading comfort vs travel-blog noise —— */
body[data-page="article"] .story-article__body p {
  text-wrap: pretty;
}

/* —— Mobile: no hover lift; keep glass light —— */
@media (max-width: 767px) {
  .match:hover {
    transform: none;
    box-shadow: none;
  }
  body[data-page="package-detail"] .pkg-detail__bar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--white);
  }
  .modal__backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .match,
  #credibility .credibility__logo-chip {
    transition: none !important;
  }
  .match:hover {
    transform: none !important;
  }
}
