/*
 * Grooming Guys — basis
 * Volgorde (masterbriefing §9.8): tokens → reset/base → typografie → layout → components → blocks.
 * Dit bestand bevat reset, basis, typografie en layout-hulpklassen.
 */

/* ---------- Reset ---------- */

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

html {
  overflow-x: clip; /* vangt full-bleed achtergronden op zonder sticky elementen te breken */
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* ankers niet onder de sticky header */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--coal);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, blockquote, figure, dl, dd, ol, ul {
  margin: 0;
}

h1, h2, h3, h4 {
  font-size: inherit;
  font-weight: inherit;
}

/* Lange (samengestelde) woorden breken af in plaats van de layout op te rekken. */
h1, h2, h3, h4, p, li, dd, blockquote, figcaption, label {
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  h1, h2 {
    hyphens: auto;
  }
}

ol, ul {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

/* Het hidden-attribuut wint altijd, ook van display-regels in componenten.
   !important is hier de gangbare, bewuste uitzondering (JavaScript toont en verbergt via hidden). */
[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--coal);
  outline-offset: 3px;
}

/* Minder beweging voor wie dat in het systeem heeft ingesteld (masterbriefing §5).
   !important is hier de gangbare, bewuste uitzondering: het moet alle animaties overrulen. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Toegankelijkheid ---------- */

.skip-link {
  position: absolute;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--coal);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Typografie ---------- */

.eyebrow {
  display: block;
  margin: 0 0 var(--space-3);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.section-title-row h2,
.section-heading h2,
.journey-section h2,
.shelf-copy h2,
.shelf-heading,
.story-section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.2vw, 58px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.05em;
}

/* Introtekst onder een sectietitel: maximaal 40% van de container, nooit smaller dan 380px. */
.section-intro {
  max-width: max(40%, 380px);
  margin: var(--space-4) 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb a:hover {
  color: var(--coal);
}

/* ---------- Layout ---------- */

.section-shell {
  width: min(calc(100% - var(--gutter) * 2), var(--max-width));
  margin-inline: auto;
}

.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

.section-title-row > div:first-child {
  flex: 1;
  min-width: 0;
}

/* Afbeelding die zijn (relatief gepositioneerde) ouder vult. */
.fill-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icon {
  flex: 0 0 auto;
}

/* ---------- Knoppen en links ---------- */

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: 0 var(--space-5);
  border: 1px solid var(--coal);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--dark {
  background: var(--coal);
  color: var(--white);
}

.button--ghost {
  background: transparent;
}

.button--small {
  min-height: 38px;
  gap: var(--space-2);
  padding: 0 var(--space-3);
  font-size: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding-bottom: var(--space-1);
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  font-weight: 700;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 600px) {
  .section-title-row {
    align-items: flex-start;
  }

  .section-intro {
    max-width: none;
  }

  .section-title-row h2,
  .shelf-copy h2,
  .shelf-heading,
  .story-section h2 {
    font-size: 38px;
  }
}
