/* Custom styles for WPM Coffee Poland — calm, minimal style aligned with wpmcoffee.com */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.font-serif {
  font-family: 'Playfair Display', serif;
}

/* Subtle selection color */
::selection {
  background-color: #d6d3d1;
  color: #1c1917;
}

/* FAQ details */
details > summary {
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

details[open] summary ~ * {
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form focus */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #1c1917 !important;
  box-shadow: none;
}

/* Buttons and links */
button,
a.inline-flex {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

button:active,
a.inline-flex:active {
  transform: translateY(1px);
}

/* Smooth underline offset for text links */
a[href].underline {
  text-underline-offset: 4px;
}

/* Table responsive fallback */
.overflow-x-auto table {
  min-width: 600px;
}

/* Placeholder styling for product boxes */
.product-placeholder {
  background: linear-gradient(135deg, #f5f5f4 0%, #e7e5e4 100%);
}

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