/* ═══════════════════════════════════
   RESET & BASE — Natuurlijk.fit
═══════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body);
  background: var(--ivory);
  color: var(--charcoal);
  font-size: var(--text-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

img, svg {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--body);
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: var(--body);
}

/* ── Typography ── */

h1, h2, h3, h4 {
  font-family: var(--heading);
  color: var(--deep);
  line-height: 1.2;
}

h1 {
  font-size: var(--text-4xl);
  font-weight: 500;
  letter-spacing: -.02em;
}

h2 {
  font-size: var(--text-2xl);
  font-weight: 500;
  letter-spacing: -.01em;
}

h3 {
  font-size: var(--text-lg);
  font-weight: 500;
}

h4 {
  font-size: var(--text-base);
  font-weight: 600;
}

p {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.8;
}

em {
  font-style: italic;
}

strong {
  font-weight: 600;
}

/* ── WordPress content (the_content) ── */

.section--ivory .animate-in > p,
.section--ivory .animate-in > ul,
.section--ivory .animate-in > ol,
.entry-content > p,
.entry-content > ul,
.entry-content > ol {
  margin-bottom: 1.25em;
  line-height: 1.85;
}

.section--ivory .animate-in > h2,
.entry-content > h2 {
  margin-top: 2em;
  margin-bottom: .75em;
}

.section--ivory .animate-in > h3,
.entry-content > h3 {
  margin-top: 1.5em;
  margin-bottom: .5em;
}

.section--ivory .animate-in > h4,
.entry-content > h4 {
  margin-top: 1.25em;
  margin-bottom: .4em;
}

.entry-content ul,
.section--ivory .animate-in ul {
  list-style: disc;
  padding-left: 1.5em;
}

.entry-content ol,
.section--ivory .animate-in ol {
  list-style: decimal;
  padding-left: 1.5em;
}

.entry-content li,
.section--ivory .animate-in li {
  margin-bottom: .4em;
  line-height: 1.8;
}

/* ── Utility classes ── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-label {
  font-family: var(--body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--acc);
  border-radius: 1px;
}

.lead {
  font-size: var(--text-md);
  font-weight: 300;
  color: var(--muted);
  line-height: 1.85;
  max-width: 560px;
}

.text-center { text-align: center; }
.text-right  { text-align: right; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Animations ── */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback: als JS niet triggert, content toch tonen na 2s */
@keyframes fallback-reveal {
  to { opacity: 1; transform: translateY(0); }
}
.animate-in:not(.visible) {
  animation: fallback-reveal .6s ease-out 2s forwards;
}

/* Stagger delays for children */
.stagger > .animate-in:nth-child(1) { transition-delay: 0s; }
.stagger > .animate-in:nth-child(2) { transition-delay: .08s; }
.stagger > .animate-in:nth-child(3) { transition-delay: .16s; }
.stagger > .animate-in:nth-child(4) { transition-delay: .24s; }
.stagger > .animate-in:nth-child(5) { transition-delay: .32s; }
.stagger > .animate-in:nth-child(6) { transition-delay: .4s; }

/* ── Mobile responsive fixes ── */

@media (max-width: 768px) {
  /* Minimum font sizes for readability */
  .badge, .product-card__cat, .stat-box__label,
  .quality-item__title, .footer-ext {
    font-size: 11px !important;
  }

  /* Minimum touch targets (44px) */
  .btn { min-height: 44px; }
  .btn-sm { min-height: 38px; }
  .filter-btn { min-height: 38px; padding: 10px 16px; }

  /* Inline grids collapse */
  [style*="repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  [style*="repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  [style*="repeat(4"],
  [style*="repeat(3"],
  [style*="repeat(2"] {
    grid-template-columns: 1fr !important;
  }
}
