/* UX enhancements on top of the original theme CSS (loaded last, see app/layout.tsx).
   Nothing here changes the layout or the look at rest; it only improves interaction. */

/* ---------- Header ---------- */

/* Sticky header: stays at the top and compacts once the page is scrolled (class toggled in Header.tsx). */
/* (not on the 404 page, whose template puts a transparent header over the content) */
body:not(.lakitdoc-h-t) .ll-sticky-header {
  position: sticky;
  top: 0;
  z-index: 999;
  transition: box-shadow 0.45s ease;
}
.ll-sticky-header .elementor-element-196744b > .elementor-container { transition: min-height 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.ll-sticky-header .elementor-element-25e4afd .lakit-logo__link { transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.ll-sticky-header.ll-scrolled { box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08); }
@media (min-width: 768px) {
  .ll-sticky-header.ll-scrolled .elementor-element-196744b > .elementor-container { min-height: 84px; }
  .ll-sticky-header.ll-scrolled .elementor-element-25e4afd .lakit-logo__link { width: 120px; }
}

/* Buttons that replaced <div>/<span> toggles keep the theme's styling. */
:where(.ll-reset-button) {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  line-height: inherit;
}

/* ---------- Accessibility ---------- */

.ll-skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100000;
  padding: 10px 18px;
  background: #222;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}
.ll-skip:focus { transform: translateY(0); }

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid #2e9fd6;
  outline-offset: 3px;
}

/* ---------- Content ---------- */

/* Hero slide: background photo settles from a slight zoom on load; whole slide links to Nails (as on live). */
.lakit-slide-bg.ll-hero-settle { animation: ll-hero-settle 1.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes ll-hero-settle {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.lakit-slide-wrapbg { overflow: hidden; }
.ll-cover-link { position: absolute; inset: 0; z-index: 1; }
.lakit-slide-inner { position: relative; z-index: 2; pointer-events: none; }
.lakit-slide-inner a { pointer-events: auto; }
/* the slide content is animated by motion; the theme's own 0.4s transition would fight it */
.lakit-carousel .lakit-slide-content > div { transition: none; }

/* YouTube embeds: responsive 16:9 up to their original size, click to load */
.elementor-lakit-post-content .yt-lite { display: inline-block; vertical-align: baseline; width: 100%; }

/* Load More button */
.lakit-pagination_ajax_loadmore a { transition: background-color 0.3s ease, color 0.3s ease; }

/* ---------- Contact form ---------- */

.ll-contact-form { margin-top: 40px; }
.ll-contact-form .ll-form-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.ll-contact-form .ll-form-title .elementor-icon-list-icon svg { width: 18px; height: 18px; }
.ll-pts-form .ll-field { margin-bottom: 18px; }
.ll-pts-form textarea { min-height: 160px; }
.ll-pts-form [aria-invalid="true"] { border-color: #e74c3c; }
.ll-pts-form .ll-field-error { margin: 6px 0 0; color: #e74c3c; font-size: 14px; }
.ll-pts-form .ll-submit {
  background-color: #222;
  color: #fff;
  border: 0;
  padding: 14px 34px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.ll-pts-form .ll-submit:hover { background-color: #2e9fd6; }
.ll-pts-form .ll-submit:disabled { opacity: 0.6; cursor: progress; }
.ll-pts-form .ll-form-ok { color: #2e9fd6; margin-top: 12px; }
.ll-pts-form .ll-form-error { color: #e74c3c; margin-top: 12px; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
