/* LAEYO motion design. Loaded after the existing theme/product stylesheet.
   Interaction-only adjustments; no route, business state or global layout changes. */
:root {
  --laeyo-motion-ease: cubic-bezier(.22, 1, .36, 1);
  --laeyo-motion-quick: 220ms;
  --laeyo-motion-image: 680ms;
}

/* Keep the approved composition, especially the uncropped category foreground. */
.lp44 :is(.lp44-category-card, .lp44-product-card, .lp44-proof-card) {
  border-radius: 8px;
}
.lp44 :is(.lp44-category-image, .lp44-product-image, .lp44-proof-card > figure) {
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}
.lp44 :is(.lp44-decision-grid, .lp44-feature-grid, .lp44-info-grid) > article { border-radius: 6px; }
.lp44 :is(.lp44-proof-photo, .lp44-inline-video) :is(img,video) { border-radius: 8px; }
/* Do not alter approved full-bleed hero sizes, typography, spacing or text. */

@media (prefers-reduced-motion: no-preference) {
  .lp44 :is(.lp44-category-card, .lp44-product-card, .lp44-proof-card, .lp44-resource-card),
  :is(.site-main,.lq-page) :is(.home-product-card, .home-intent-card, .home-service-card, .home-work-card, .home-project-card, .fragrance-direction-card, .product-card, .guide-card, .guide-hub-card, .post-card, .certificate-card, .lg-article-card, .lq-list-card) {
    transition: transform 340ms var(--laeyo-motion-ease), box-shadow 340ms var(--laeyo-motion-ease), border-color 260ms ease, background-color 260ms ease;
  }
  .lp44 .lp44-product-image img,
  :is(.site-main,.lq-page) :is(.home-product-card, .product-card) figure img {
    transition: transform var(--laeyo-motion-image) var(--laeyo-motion-ease);
  }
  .lp44 .lp44-category-image .lp44-category-image-fill img,
  .lp44 .lp44-category-card .lp44-card-layout:hover .lp44-category-image-fill img {
    transition: transform var(--laeyo-motion-image) var(--laeyo-motion-ease);
  }
  /* Preserve category image fill and exact foreground dimensions. */
  .lp44 .lp44-category-card .lp44-card-layout:hover .lp44-category-image > img { transform: none; }
  :is(.site-main,.lq-page,.site-header,.site-footer) :is(.button,.lq-button,.header-cta,.home-product-quote-link,.lp44-chat button,.lp44-research-button) {
    transition: background-color var(--laeyo-motion-quick) ease, color var(--laeyo-motion-quick) ease, border-color var(--laeyo-motion-quick) ease, box-shadow 280ms ease, transform 280ms var(--laeyo-motion-ease);
  }
  .lp44 .lp44-actions :is(.button,.laeyo-fc-button,.laeyo-fc-btn) {
    transition: background-color var(--laeyo-motion-quick) ease, color var(--laeyo-motion-quick) ease, border-color var(--laeyo-motion-quick) ease, box-shadow 280ms ease, transform 280ms var(--laeyo-motion-ease);
  }
  :is(.site-main,.lq-page,.site-header,.site-footer) :is(a,button) > :is([data-lucide="arrow-right"],[data-lucide="arrow-up-right"],.lucide-arrow-right,.lucide-arrow-up-right),
  .lp44 :is(.lp44-link-label,.lp44-research-button) > span[aria-hidden="true"],
  .lp44 .lp44-resource-card li a > span[aria-hidden="true"] { transition: transform 280ms var(--laeyo-motion-ease); }
  .lp44 :is(.lp44-card-body h3 a,.lp44-link-label,.lp44-jump),
  :is(.site-main,.lq-page) :is(.text-link,.home-product-text-link,.lq-link,.lg-card-body h3 a,.lq-list-card h3 a),
  .site-header .primary-navigation > .menu > li > a,
  .site-footer :is(.footer-list,.footer-menu,.menu) a {
    background-image: linear-gradient(currentColor,currentColor);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 0 1px;
    transition: color var(--laeyo-motion-quick) ease, background-size 300ms var(--laeyo-motion-ease);
  }
  .site-header .primary-navigation .sub-menu a,
  :is(.site-main,.lq-page) :is([role="tab"],[data-trust-file-filter],.guide-filter-chips a,.faq-question) {
    transition: background-color var(--laeyo-motion-quick) ease, color var(--laeyo-motion-quick) ease, border-color var(--laeyo-motion-quick) ease, box-shadow 260ms ease;
  }
  /* The original menu/tab/lightbox script still controls visibility and focus. */
  .site-main [data-faq-panel]:not([hidden]),
  .site-main [data-trust-image-lightbox]:not([hidden]) .trust-cert-lightbox-content { animation: laeyo-quiet-entry 320ms ease-out both; }
  @keyframes laeyo-quiet-entry { from { opacity: .7; } to { opacity: 1; } }
  .site-main video[controls] { transition: box-shadow 300ms ease, outline-color 240ms ease; }

  @media (hover: hover) and (pointer: fine) {
    .lp44 :is(.lp44-category-card,.lp44-product-card,.lp44-proof-card):hover,
    :is(.site-main,.lq-page) :is(.home-product-card,.home-intent-card,.home-service-card,.home-work-card,.home-project-card,.fragrance-direction-card,.product-card,.guide-card,.guide-hub-card,.post-card,.certificate-card,.lg-article-card,.lq-list-card):hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 28px rgba(62,39,35,.10);
      border-color: #bfa78b;
    }
    .lp44 .lp44-product-card .lp44-card-layout:hover .lp44-product-image img,
    :is(.site-main,.lq-page) :is(.home-product-card,.product-card):hover figure img { transform: scale(1.04); }
    /* The category background can zoom without cropping its sharp foreground. */
    .lp44 .lp44-category-card .lp44-card-layout:hover .lp44-category-image-fill img { transform: scale(1.29); }
    .lp44 .lp44-resource-card:hover { border-color: #c4ac92; box-shadow: 0 8px 24px rgba(62,39,35,.06); }
    :is(.site-main,.lq-page,.site-header,.site-footer) :is(.button,.lq-button,.header-cta,.lp44-chat button,.lp44-research-button):hover { box-shadow: 0 5px 14px rgba(62,39,35,.13); }
    :is(.site-main,.lq-page,.site-header,.site-footer) :is(a,button):hover > :is([data-lucide="arrow-right"],[data-lucide="arrow-up-right"],.lucide-arrow-right,.lucide-arrow-up-right),
    .lp44 :is(.lp44-link-label,.lp44-research-button):hover > span[aria-hidden="true"],
    .lp44 .lp44-resource-card li a:hover > span[aria-hidden="true"] { transform: translateX(3px); }
    .lp44 :is(.lp44-card-body h3 a,.lp44-link-label,.lp44-jump):hover,
    :is(.site-main,.lq-page) :is(.text-link,.home-product-text-link,.lq-link,.lg-card-body h3 a,.lq-list-card h3 a):hover,
    .site-header .primary-navigation > .menu > li > a:hover,
    .site-footer :is(.footer-list,.footer-menu,.menu) a:hover { background-size: 100% 1px; }
    .site-main video[controls]:hover { box-shadow: 0 0 0 2px rgba(169,121,82,.45),0 8px 25px rgba(62,39,35,.12); }
  }
  /* Native press feedback, no click interception or artificial delays. */
  :is(.site-main,.lq-page,.site-header,.site-footer) :is(.button,.lq-button,.header-cta,.lp44-chat button,.lp44-research-button):active { transform: translateY(1px); }
  /* Subtle scroll depth on decorative art only; unsupported browsers simply stay static. */
  @supports (animation-timeline: view()) {
    @media (min-width: 1000px) and (hover: hover) and (pointer: fine) {
      .lp44 .lp44-formulation-figure::before {
        animation: laeyo-art-depth linear both;
        animation-timeline: view();
        animation-range: entry 0% exit 100%;
      }
      @keyframes laeyo-art-depth { from { translate: 0 -5px; } to { translate: 0 5px; } }
    }
  }
}

/* Preserve existing keyboard focus outlines and native video controls. */
.site-main video[controls]:focus-visible { outline: 2px solid #a57e55; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp44 :is(.lp44-category-card,.lp44-product-card,.lp44-proof-card,.lp44-resource-card,.lp44-product-image img,.lp44-category-image > img,.lp44-category-image-fill img,.lp44-actions .button,.lp44-chat button),
  :is(.site-main,.lq-page) :is(.home-product-card,.home-product-card img,.product-card,.product-card img,.home-intent-card,.home-service-card,.home-work-card,.home-project-card,.fragrance-direction-card,.guide-card,.guide-hub-card,.post-card,.certificate-card,.lg-article-card,.lq-list-card,.text-link,[role="tab"],video[controls]),
  :is(.site-main,.lq-page,.site-header,.site-footer) :is(.button,.lq-button,.header-cta,.primary-navigation .sub-menu) { transition: none !important; animation: none !important; }
  .lp44 :is(.lp44-category-card,.lp44-product-card,.lp44-proof-card,.lp44-product-image img,.lp44-category-image > img):hover,
  .lp44 .lp44-card-layout:hover .lp44-product-image img,
  :is(.site-main,.lq-page) :is(.home-product-card,.product-card,.home-intent-card,.home-service-card,.home-work-card,.home-project-card,.fragrance-direction-card,.guide-card,.guide-hub-card,.post-card,.certificate-card,.lg-article-card,.lq-list-card):hover,
  :is(.site-main,.lq-page) :is(.home-product-card,.product-card):hover img { transform: none !important; }
  .lp44 .lp44-category-card .lp44-card-layout:hover .lp44-category-image-fill img { transform: scale(1.24); }
}
