/* TecDeft Motion6 — lightweight motion; respects prefers-reduced-motion */

/* Sticky header polish (works with Astra + tecdeft-child) */
.td-motion6-sticky .ast-primary-header-bar,
.td-motion6-sticky .main-header-bar,
.td-motion6-sticky .site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  transition: box-shadow 0.25s ease, background-color 0.25s ease, min-height 0.25s ease;
}
.td-motion6-sticky.td-header-scrolled .ast-primary-header-bar,
.td-motion6-sticky.td-header-scrolled .main-header-bar {
  box-shadow: 0 4px 18px rgba(0, 20, 41, 0.08);
  background-color: #ffffff !important;
}
.td-motion6-sticky.td-header-scrolled .site-logo-img img.custom-logo {
  max-width: 180px;
  width: 180px;
  transition: max-width 0.25s ease, width 0.25s ease;
}
.admin-bar.td-motion6-sticky .ast-primary-header-bar,
.admin-bar.td-motion6-sticky .main-header-bar {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar.td-motion6-sticky .ast-primary-header-bar,
  .admin-bar.td-motion6-sticky .main-header-bar {
    top: 46px;
  }
}

/* Scroll fade-in targets */
.td-fade,
.td-section.td-fade,
.entry-content > .wp-block-group.alignfull,
.entry-content > .wp-block-columns,
.td-card {
  /* base; JS adds .td-inview */
}

.td-motion6-ready .td-fade,
.td-motion6-ready .entry-content > .wp-block-group.alignfull,
.td-motion6-ready .td-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: opacity, transform;
}

.td-motion6-ready .td-fade.td-inview,
.td-motion6-ready .entry-content > .wp-block-group.alignfull.td-inview,
.td-motion6-ready .td-card.td-inview {
  opacity: 1;
  transform: none;
}

/* Hover lift on cards / buttons */
.td-motion6-ready .td-card,
.td-motion6-ready .wp-block-group.td-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.td-motion6-ready .td-card:hover,
.td-motion6-ready .wp-block-group.td-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 20, 41, 0.10);
}

.td-motion6-ready .wp-block-button .wp-block-button__link,
.td-motion6-ready .td-contact-submit,
.td-motion6-ready .ast-custom-button,
.td-motion6-ready .ast-button {
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease !important;
}
.td-motion6-ready .wp-block-button .wp-block-button__link:hover,
.td-motion6-ready .td-contact-submit:hover,
.td-motion6-ready .ast-custom-button:hover,
.td-motion6-ready .ast-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 106, 246, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  .td-motion6-ready .td-fade,
  .td-motion6-ready .entry-content > .wp-block-group.alignfull,
  .td-motion6-ready .td-card,
  .td-motion6-ready .wp-block-button .wp-block-button__link,
  .td-motion6-ready .td-contact-submit,
  .td-motion6-ready .ast-custom-button,
  .td-motion6-ready .ast-button,
  .td-motion6-sticky .ast-primary-header-bar,
  .td-motion6-sticky .main-header-bar,
  .td-motion6-sticky .site-logo-img img.custom-logo {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .td-motion6-ready .td-card:hover,
  .td-motion6-ready .wp-block-button .wp-block-button__link:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}
