/* IYKDEN minimal custom CSS (Tailwind handles the rest) */

/* Anchor offset under the sticky header */
section[id], [id].scroll-target { scroll-margin-top: 5rem; }

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
}

/* Horizontal product rail: snap scrolling, subtle scrollbar */
.rail {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #a1a1aa transparent;
}
.rail > * { scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: #a1a1aa; border-radius: 999px; }
.rail::-webkit-scrollbar-track { background: transparent; }

/* Native accordion styling */
details.faq { border: 1px solid #e4e4e7; border-radius: 0.5rem; background: #fff; }
details.faq summary {
  cursor: pointer; list-style: none;
  padding: 1rem 1.25rem; font-weight: 600; color: #18181b;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .fa-chevron-down { transition: transform .2s ease; color: #059669; }
details.faq[open] summary .fa-chevron-down { transform: rotate(180deg); }
details.faq .faq-body { padding: 0 1.25rem 1.25rem; color: #52525b; }

/* Sticky mobile WhatsApp: keep clear of content, subtle shadow only */
.sticky-wa { box-shadow: 0 4px 14px rgba(0,0,0,.22); }

/* Quiet global transitions for links and buttons */
a, button { transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .2s ease, transform .15s ease; }

/* Subtle press feedback on primary actions */
.bg-emerald-600:active { transform: scale(.98); }

/* Card lift on hover (product cards and feature cards) */
.card-hover { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
@media (hover: hover) {
  .card-hover:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.08); border-color: #a1a1aa; }
}

/* Sticky header settles on scroll (.is-scrolled added by main.js) */
header.sticky { transition: box-shadow .2s ease, background-color .2s ease; }
header.sticky.is-scrolled { background-color: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 1px 12px rgba(0,0,0,.08); }

/* Animated mobile menu (paired with the .hidden toggle in main.js) */
#mobileMenu { transform-origin: top; transition: opacity .18s ease, transform .18s ease; }
#mobileMenu:not(.menu-show) { opacity: 0; transform: translateY(-6px); }
#mobileMenu.menu-show { opacity: 1; transform: none; }

/* Skip link: visible on keyboard focus only */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 60; background: #065f46; color: #fff; font-size: .875rem; font-weight: 600; padding: .6rem 1rem; border-radius: 0 0 .5rem 0; }
.skip-link:focus { left: 0; color: #fff; }

/* Product image fade-in; broken images fall back to a neutral tile */
.img-fade { opacity: 0; transition: opacity .4s ease; }
.img-fade.is-loaded { opacity: 1; }
img.img-broken { object-fit: contain; padding: 2rem; background: #f4f4f5; opacity: 1; }

/* Sticky WhatsApp gentle entrance */
.wa-enter { opacity: 0; transform: translateY(12px); animation: waIn .5s ease .9s forwards; }
@keyframes waIn { to { opacity: 1; transform: none; } }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .wa-enter { opacity: 1; transform: none; animation: none; }
  .img-fade { opacity: 1; }
}
