/* Globale stijlen — waarden uit @layer base / components van het origineel.
   Breekpunten zoals het origineel: 40rem (sm), 48rem (md), 64rem (lg), 80rem (xl), 96rem (2xl). */

/* ---------- Fonts (Space Grotesk, zelf gehost zoals het origineel) ---------- */
@font-face { font-family: "Space Grotesk"; src: url(../fonts/SpaceGrotesk-Light.woff2) format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(../fonts/SpaceGrotesk-Regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(../fonts/SpaceGrotesk-Medium.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(../fonts/SpaceGrotesk-SemiBold.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(../fonts/SpaceGrotesk-Bold.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Basis ---------- */
body {
  font-family: var(--font-sans);
  color: var(--color-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6 { margin-bottom: 1rem; font-family: var(--font-heading); }
/* Only long words (persoonsgegevens) break on small screens: at least 6 letters on either side of
   the hyphen, so short words like "Salonhub" never do. Safari doesn't know hyphenate-limit-chars
   and needs its own -webkit- properties, otherwise it hyphenates "Salon-hub". */
h1, .is-h1 {
  font-size: 3rem;
  line-height: 110%;
  hyphens: auto;
  hyphenate-limit-chars: 12 6 6;
  -webkit-hyphenate-limit-before: 6;
  -webkit-hyphenate-limit-after: 6;
}
h2, .is-h2 { font-size: 2.375rem; line-height: 110%; }
h3, .is-h3 { font-size: 2.375rem; line-height: 120%; }
h4, .is-h4 { font-size: 2rem; line-height: 100%; }
h5, .is-h5 { font-size: 1.25rem; line-height: 150%; }
h6, .is-h6 { font-size: 1.3755rem; line-height: 150%; }
@media (min-width: 64rem) {
  h1, .is-h1 { font-size: 3.625rem; }
  h2, .is-h2 { font-size: 3rem; }
  h5, .is-h5 { font-size: 1.5625rem; }
}

p { margin-bottom: 1rem; font-size: 1rem; line-height: 1.5; }
ul { margin-bottom: 1rem; padding-left: 1rem; list-style-type: disc; }

/* Klein label boven een kop */
.eyebrow { margin-bottom: 0.75rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-blue); }

/* Intro-tekst (.lead / div.lead p) */
.lead, .lead p { font-size: 18px; line-height: 150%; }
@media (min-width: 64rem) { .lead, .lead p { font-size: 20px; } }
@media (min-width: 96rem) { .lead, .lead p { font-size: 22px; } }

/* ---------- Secties ---------- */
section { padding-block: 3rem; }
@media (min-width: 64rem) { section { padding-block: 4rem; } }
@media (min-width: 96rem) { section { padding-block: 5rem; } }
/* origineel: section + section:not([class*="bg-"]) in @layer base — wint van de section-regels,
   maar verliest van elke klasse (zoals in het origineel elke utility wint). */
section + section:where(:not(.section--fill)) { padding-top: 0; }

/* ---------- Container ---------- */
.container { width: 100%; padding-inline: 1rem; margin-inline: auto; }
@media (min-width: 40rem) { .container { max-width: 40rem; padding-inline: 2rem; } }
@media (min-width: 48rem) { .container { max-width: 48rem; } }
@media (min-width: 64rem) { .container { max-width: 64rem; } }
@media (min-width: 80rem) { .container { max-width: 80rem; } }
/* From 96rem the content is 1536px wide (origineel: max-width 1536px, padding 0). The 2rem side
   padding stays, with the max-width 4rem wider, so content never touches the screen edge between
   1536 and 1600px; from 1600px everything is exactly where it was. Same for the variants. */
@media (min-width: 96rem) { .container { max-width: calc(1536px + 4rem); } }
.container--small { max-width: 984px; }
@media (min-width: 96rem) { .container--small { max-width: calc(984px + 4rem); } }
@media (min-width: 96rem) { .container--narrow { max-width: calc(1320px + 4rem); } }
/* Containers without side padding whose box is a coloured card: 1536px wide as before, but
   2rem from the screen edge between 1536 and 1600px. */
@media (min-width: 96rem) {
  :where(.offer, .demo__container, .addons, .team, .packages__container).container { max-width: 1536px; width: calc(100% - 4rem); }
}

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-2xl);
  /* Height from min-height + padding, not from line-height: a label that wraps then gives a
     compact two-line button instead of two 40px lines. One line at 16px or 20px is exactly 40px,
     as before (20px × 1.2 + 2 × 0.5rem). Variants set min-height, never line-height. */
  min-height: 2.5rem;
  padding: 0.5rem 1.25rem;
  text-align: center;
  text-wrap-style: balance; /* longhand: the shorthand would also reset white-space: nowrap */
  font-family: var(--font-heading);
  line-height: 1.2;
  letter-spacing: -0.2px;
  text-decoration-line: none;
  transition: all 0.2s var(--ease-in-out);
  background-color: var(--btn-bg);
  color: var(--btn-color);
}
@media (min-width: 64rem) { .btn { font-size: 20px; } }
@media (hover: hover) {
  .btn:hover,
  .group:hover .btn--group { background-color: var(--btn-bg-hover); color: var(--btn-color-hover); }
}
/* kleurvarianten: rust / hover */
.btn--yellow    { --btn-bg: var(--color-yellow);    --btn-color: var(--color-primary); --btn-bg-hover: var(--color-primary);   --btn-color-hover: var(--color-secondary); }
.btn--orange    { --btn-bg: var(--color-orange);    --btn-color: var(--color-primary); --btn-bg-hover: var(--color-primary);   --btn-color-hover: var(--color-secondary); }
.btn--pink      { --btn-bg: var(--color-secondary); --btn-color: var(--color-primary); --btn-bg-hover: var(--color-primary);   --btn-color-hover: var(--color-secondary); }
.btn--white     { --btn-bg: var(--color-white);     --btn-color: var(--color-primary); --btn-bg-hover: var(--color-primary);   --btn-color-hover: var(--color-white); }
.btn--primary   { --btn-bg: var(--color-primary);   --btn-color: var(--color-secondary); --btn-bg-hover: var(--color-secondary); --btn-color-hover: var(--color-primary); }
.btn--primary.btn--text-yellow { --btn-color: var(--color-yellow); }
.btn--primary.btn--text-white  { --btn-color: var(--color-white); }
/* outline: rand in tekstkleur, vult bij hover */
.btn--outline   { --btn-bg: transparent; --btn-color: currentColor; --btn-bg-hover: var(--color-primary); --btn-color-hover: var(--color-white); box-shadow: inset 0 0 0 1.5px currentColor; }
@media (hover: hover) { .btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--color-primary); } }
/* compacte knop (header, megamenu) */
.btn--sm { padding-inline: 1rem; font-size: 1rem; }
@media (min-width: 64rem) { .btn--sm { font-size: 1rem; } }

/* ---------- Kaart ---------- */
.card {
  border-radius: var(--radius-2xl);
  background-color: var(--color-primary);
  padding: 1.5rem;
  color: var(--color-secondary);
}
@media (min-width: 64rem) { .card { padding: 2rem; } }

/* Kleurcombinaties (achtergrond-tekst) met bijbehorende knopkleur — alle 16 uit het origineel */
.theme-blue-dark-orange { background-color: var(--color-blue-dark); color: var(--color-orange); --theme-btn-bg: var(--color-orange); --theme-btn-color: var(--color-blue-dark); }
.theme-blue-dark-pink { background-color: var(--color-blue-dark); color: var(--color-pink); --theme-btn-bg: var(--color-pink); --theme-btn-color: var(--color-blue-dark); }
.theme-blue-dark-white { background-color: var(--color-blue-dark); color: var(--color-white); --theme-btn-bg: var(--color-white); --theme-btn-color: var(--color-blue-dark); }
.theme-blue-dark-yellow { background-color: var(--color-blue-dark); color: var(--color-yellow); --theme-btn-bg: var(--color-yellow); --theme-btn-color: var(--color-blue-dark); }
.theme-blue-light-blue-dark { background-color: var(--color-blue-light); color: var(--color-blue-dark); --theme-btn-bg: var(--color-blue-dark); --theme-btn-color: var(--color-pink); }
.theme-blue-yellow { background-color: var(--color-blue); color: var(--color-yellow); --theme-btn-bg: var(--color-yellow); --theme-btn-color: var(--color-blue-dark); }
.theme-green-light-green { background-color: var(--color-green-light); color: var(--color-green); --theme-btn-bg: var(--color-green); --theme-btn-color: var(--color-white); }
.theme-green-pink { background-color: var(--color-green); color: var(--color-pink); --theme-btn-bg: var(--color-pink); --theme-btn-color: var(--color-green); }
.theme-green-white { background-color: var(--color-green); color: var(--color-white); --theme-btn-bg: var(--color-white); --theme-btn-color: var(--color-blue-dark); }
.theme-green-yellow { background-color: var(--color-green); color: var(--color-yellow); --theme-btn-bg: var(--color-yellow); --theme-btn-color: var(--color-blue-dark); }
.theme-orange-blue-dark { background-color: var(--color-orange); color: var(--color-blue-dark); --theme-btn-bg: var(--color-blue-dark); --theme-btn-color: var(--color-pink); }
.theme-orange-white { background-color: var(--color-orange); color: var(--color-white); --theme-btn-bg: var(--color-white); --theme-btn-color: var(--color-blue-dark); }
.theme-pink-blue-dark { background-color: var(--color-pink); color: var(--color-blue-dark); --theme-btn-bg: var(--color-blue-dark); --theme-btn-color: var(--color-pink); }
.theme-pink-green { background-color: var(--color-pink); color: var(--color-green); --theme-btn-bg: var(--color-green); --theme-btn-color: var(--color-white); }
.theme-white-blue-dark { background-color: var(--color-white); color: var(--color-blue-dark); --theme-btn-bg: var(--color-blue-dark); --theme-btn-color: var(--color-pink); }
.theme-yellow-blue-dark { background-color: var(--color-yellow); color: var(--color-blue-dark); --theme-btn-bg: var(--color-blue-dark); --theme-btn-color: var(--color-pink); }
.theme-primary-white { background-color: var(--color-primary); color: var(--color-white); }
.btn--theme { --btn-bg: var(--theme-btn-bg); --btn-color: var(--theme-btn-color); --btn-bg-hover: var(--theme-btn-bg); --btn-color-hover: var(--theme-btn-color); }

/* ---------- Toegankelijkheid ---------- */
/* Focusring: de browserstandaard, zoals het origineel (geen eigen regel). */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* Keep a word together, e.g. "e-mail" in a title (no break at the hyphen) */
.nowrap { white-space: nowrap; }

/* ---------- Beeld ---------- */
.zoom-on-load { transition: scale 1s ease-out; scale: 1.1; }
.zoom-on-load.zoom-entered { scale: 1; }
@media (prefers-reduced-motion: reduce) { .zoom-on-load { transition: none; scale: none; } }

/* Quotes: the opening (and closing) quote mark hangs outside the text, so the letters line up
   with the edge. hanging-punctuation is Safari-only; elsewhere a negative first-line indent the
   width of the quote mark (0.425em in Space Grotesk) does the opening one. */
.quote-block__text, .blog-quote { hanging-punctuation: first last; }
@supports not (hanging-punctuation: first) {
  .quote-block__text, .blog-quote { text-indent: -0.425em; }
}
/* Quote marks in a lighter tint of the block's colour: light green on the dark green card, the
   middle blue on the light blue blog block */
.quote-block__text .quote-mark { color: color-mix(in oklab, var(--color-green), white 55%); }
.blog-quote .quote-mark { color: var(--color-blue); }
