/*
Theme Name: demosalon
Theme URI: https://demosalon.test.bluect.nl
Author: BlueCT
Description: Concept-demo classic PHP theme voor de kapsalon- en wellnessbranche. Warm, licht en luchtig register. Inhoud via SCF, layout in PHP.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: demosalon
*/

/* Concept: "Licht & lucht", een rustgevende salon. Warm gebroken wit als dominante vlakkleur met veel lucht, zacht warmbruin voor tekst i.p.v. hard zwart, gedempt oudroze en saliegroen als zachte accenten. Hoog-contrast elegante serif (Cormorant Garamond) op koppen, vriendelijke grotesk (Karla) in de tekst, ruime regelafstand. Signatuurdetail: fijn saliegroen offset-vierkantje bij eyebrows en beelden. Vormentaal: zacht afgerond, terughoudend, nooit hard. */

/* ============================ TOKENS ============================ */
:root {
  /* palette */
  --paper: #FBF8F5;
  --ink: #3D3430;
  --ink-soft: #6d635d;
  --accent: #C9A5A0;          /* oudroze: alleen vlak/rand, nooit teksttekst op wit */
  --accent-2: #8E9B8C;        /* salie: vlak/rand/groot */
  --accent-text: #5f6b5c;     /* donkere salie voor kleine accenttekst (>=4.5:1 op paper) */

  /* surfaces */
  --surface-warm: #F3EDE7;
  --surface-rose: #F7ECEA;
  --surface-sage: #EDF1EC;

  /* lines */
  --line: #E6DBD3;
  --line-sage: #d3dccf;

  /* buttons */
  --btn-fill: #C9A5A0;
  --btn-fill-hover: #b98d86;
  --btn-label: #3D3430;

  /* shape */
  --radius: 6px;
  --radius-lg: 12px;
  --square: 12px;

  /* type */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.85rem, 0.82rem + 0.15vw, 0.95rem);
  --step-0:  clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.3rem + 0.9vw, 1.95rem);
  --step-3:  clamp(1.9rem, 1.6rem + 1.4vw, 2.7rem);
  --step-4:  clamp(2.3rem, 1.9rem + 2vw, 3.5rem);
  --step-5:  clamp(2.55rem, 2rem + 3vw, 4.5rem);

  /* space */
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 7rem;

  --container: 1280px;
  --measure: 760px;
  --header-h: 84px;
}

/* ============================ RESET ============================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
/* keep inline icons on their text line */
a > svg, button > svg, p svg, li > a svg, .chip svg, .btn svg {
  display: inline-block; vertical-align: middle;
}
a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent-2); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; overflow-wrap: anywhere; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 2px; }

/* ============================ LAYOUT ============================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
}
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4rem); }
.bg-warm { background: var(--surface-warm); }
.bg-rose { background: var(--surface-rose); }
.bg-sage { background: var(--surface-sage); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--ink); color: var(--paper); padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-body);
  font-size: var(--step--1);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-text);
  font-weight: 700;
  margin: 0 0 var(--space-sm);
}
.eyebrow::before {
  content: ""; width: 10px; height: 10px; background: var(--accent-2);
  border-radius: 2px; display: inline-block;
}
.section-head { max-width: 720px; margin-bottom: var(--space-xl); }
.section-head p { color: var(--ink-soft); font-size: var(--step-1); }
.lead { font-size: var(--step-1); color: var(--ink-soft); }

/* prose (long-form only) */
.prose--longform { max-width: var(--measure); margin-inline: auto; text-align: left; }
.prose--longform h2 { font-size: var(--step-3); margin-top: 1.6em; }
.prose--longform h3 { font-size: var(--step-2); margin-top: 1.4em; }
.prose--longform p { font-size: var(--step-0); }
.prose--longform ul, .prose--longform ol { padding-left: 1.3em; }
.prose--longform li { margin-bottom: 0.4em; }
.prose--longform blockquote {
  margin: 1.5em 0; padding: 0.5em 0 0.5em 1.25em;
  border-left: 3px solid var(--line-sage); color: var(--ink-soft);
  font-family: var(--font-display); font-size: var(--step-2); font-style: italic;
}
.table-scroll { overflow-x: auto; margin: 1.5em 0; }
.prose--longform table { width: 100%; border-collapse: collapse; }
.prose--longform th, .prose--longform td {
  padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line);
  text-align: left; overflow-wrap: anywhere; word-break: break-word;
}
.prose--longform th { font-family: var(--font-display); border-bottom: 2px solid var(--accent-2); }

/* ============================ BUTTONS ============================ */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body); font-weight: 700; font-size: var(--step-0);
  line-height: 1.2; letter-spacing: 0.01em;
  border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; transition: transform .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--btn-fill); color: var(--btn-label); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-fill-hover); transform: translateX(-100%);
  transition: transform .3s ease;
}
.btn--primary:hover::before { transform: translateX(0); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent-2); background: var(--surface-sage); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; }
.micro { font-size: var(--step--1); color: var(--ink-soft); }

/* chips / pills */
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.4rem 0.85rem; border-radius: 999px;
  background: var(--surface-sage); color: var(--accent-text);
  border: 1px solid var(--line-sage);
  font-size: var(--step--1); font-weight: 600;
}
.chip svg { width: 16px; height: 16px; }

/* ============================ HEADER ============================ */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(251, 248, 245, 0.92);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-md); min-height: var(--header-h);
  padding-block: 0.75rem;
}
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand .wordmark {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); color: var(--ink);
  letter-spacing: 0.01em;
}
.brand .slogan {
  font-size: var(--step--1); color: var(--accent-text);
  letter-spacing: 0.14em; text-transform: uppercase; margin-top: 4px;
}
.brand img.logo { height: clamp(34px, 4vw, 48px); width: auto; max-width: 240px; object-fit: contain; }

.primary-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav-menu { display: flex; align-items: center; gap: clamp(0.9rem, 1.8vw, 1.8rem); list-style: none; margin: 0; padding: 0; }
.primary-nav .nav-menu a {
  text-decoration: none; color: var(--ink); font-weight: 600;
  white-space: nowrap; padding: 0.4rem 0; position: relative;
}
.primary-nav .nav-menu a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent-2); transition: width .25s ease;
}
.primary-nav .nav-menu a:hover::after,
.primary-nav .nav-menu .current-menu-item > a::after { width: 100%; }
.header-cta { display: inline-flex; }
.primary-nav .header-cta { display: none; } /* in-drawer CTA only shows on mobile */

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; background: transparent; border: 1.5px solid var(--line);
  border-radius: var(--radius); color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-close { display: none; }
.nav-overlay { display: none; }

/* ============================ DEMO BAND ============================ */
.demo-band {
  background: var(--surface-sage);
  border-top: 1px solid var(--line-sage);
  border-bottom: 1px solid var(--line-sage);
  color: var(--ink);
  font-size: 0.85rem; line-height: 1.5;
}
.demo-band .container { padding-block: 0.6rem; }
.demo-band p { margin: 0; }
.demo-band a { color: var(--accent-text); font-weight: 700; }

/* ============================ HERO ============================ */
.hero { position: relative; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 6rem);
}
.hero__content { max-width: 640px; }
.hero h1 { font-size: var(--step-5); margin-bottom: var(--space-md); }
.hero__intro { font-size: var(--step-1); color: var(--ink-soft); max-width: 46ch; margin-bottom: var(--space-lg); }
.hero__area {
  display: inline-flex; align-items: flex-start; gap: 0.5rem;
  color: var(--accent-text); font-weight: 600; font-size: var(--step--1);
  margin-bottom: var(--space-lg); white-space: normal;
}
.hero__area svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; }
.hero__media { position: relative; }
.figure {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface-warm);
}
.figure img { width: 100%; height: 100%; object-fit: cover; }
/* signature offset sage square accent behind media */
.hero__media::after {
  content: ""; position: absolute; right: -18px; bottom: -18px;
  width: 42%; height: 55%; background: var(--accent-2); opacity: 0.18;
  border-radius: var(--radius-lg); z-index: -1;
}

/* ============================ SPLIT ============================ */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media::after {
  content: ""; position: absolute; left: -16px; top: -16px;
  width: 60px; height: 60px; border: 2px solid var(--accent); border-right: none; border-bottom: none;
  border-top-left-radius: var(--radius); z-index: 1;
}
.split__body h2 { font-size: var(--step-3); }

/* ============================ CARD GRIDS ============================ */
.grid { display: grid; gap: var(--space-lg); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--space-lg);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -28px rgba(61,52,48,0.4); }
.card__icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-sage); color: var(--accent-text); margin-bottom: 0.4rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: var(--step-2); margin: 0; }
.card p { color: var(--ink-soft); margin: 0; }
.card__link {
  margin-top: auto; font-weight: 700; color: var(--accent-text);
  display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none;
  padding-top: 0.6rem;
}
.card__link svg { width: 18px; height: 18px; transition: transform .25s ease; }
.card:hover .card__link svg { transform: translateX(4px); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); counter-reset: step; }
.step { position: relative; }
.step__num {
  font-family: var(--font-display); font-size: clamp(2.5rem, 2rem + 2vw, 3.4rem);
  color: var(--accent); line-height: 1; display: block; margin-bottom: 0.4rem;
}
.step h3 { font-size: var(--step-2); }
.step p { color: var(--ink-soft); }

/* stat strip / atmosphere */
.atmosphere { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.atmosphere__body h2 { font-size: var(--step-3); }
.atmosphere__list { list-style: none; padding: 0; margin: var(--space-md) 0 0; display: grid; gap: 0.75rem; }
.atmosphere__list li { display: flex; align-items: flex-start; gap: 0.7rem; color: var(--ink); }
.atmosphere__list svg { width: 22px; height: 22px; color: var(--accent-2); flex: 0 0 auto; margin-top: 3px; }

/* ============================ FAQ ============================ */
.faq { max-width: 820px; }
.faq details {
  border-bottom: 1px solid var(--line); padding: var(--space-sm) 0;
}
.faq summary {
  cursor: pointer; list-style: none; font-family: var(--font-display);
  font-size: var(--step-2); color: var(--ink); display: flex; justify-content: space-between;
  align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-body); font-weight: 400;
  color: var(--accent-text); font-size: 1.6rem; line-height: 1; transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0.75rem 0 0.25rem; color: var(--ink-soft); }

/* ============================ CTA BAND ============================ */
.cta-band { background: var(--surface-rose); border-top: 1px solid var(--line); }
.cta-band__inner { text-align: center; max-width: 720px; margin-inline: auto; }
.cta-band h2 { font-size: var(--step-4); }
.cta-band p { color: var(--ink-soft); font-size: var(--step-1); }
.cta-band .btn-row { justify-content: center; }

/* ============================ PRICING ============================ */
.price-note {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--surface-warm); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.5rem 1rem; color: var(--ink-soft);
  font-size: var(--step--1); margin-bottom: var(--space-lg);
}
.price-group { margin-bottom: var(--space-2xl); }
.price-group h2 { font-size: var(--step-3); margin-bottom: var(--space-md); }
.price-list { display: grid; gap: 0; }
.price-row {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem;
  align-items: baseline; padding: 0.9rem 0; border-bottom: 1px dashed var(--line);
}
.price-row__name { font-weight: 600; }
.price-row__meta { color: var(--ink-soft); font-size: var(--step--1); display: block; font-weight: 400; }
.price-row__price { font-family: var(--font-display); font-size: var(--step-2); color: var(--ink); white-space: nowrap; }

/* ============================ TEAM ============================ */
.team-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-lg); position: relative;
}
.team-card::after {
  content: ""; position: absolute; top: 14px; right: 14px;
  width: 12px; height: 12px; background: var(--accent); border-radius: 2px;
}
.team-card .role { font-family: var(--font-display); font-size: var(--step-2); margin-bottom: 0.25rem; }
.team-card .specialism { color: var(--accent-text); font-weight: 700; font-size: var(--step--1); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.6rem; }
.team-card p { color: var(--ink-soft); margin: 0; }

/* ============================ BOOKING (demo surface) ============================ */
.demo-note {
  display: flex; gap: 0.75rem; align-items: flex-start;
  background: var(--surface-warm); border: 1px solid var(--line);
  border-left: none; border-radius: var(--radius-lg); padding: var(--space-md);
  color: var(--ink); margin-bottom: var(--space-lg);
}
.demo-note svg { width: 24px; height: 24px; color: var(--accent-text); flex: 0 0 auto; margin-top: 2px; }
.demo-note p { margin: 0; }

.booking-form, .contact-form-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: var(--step-0); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 0.8rem 1rem; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(142,155,140,0.25);
}

/* Forminator styling (ships unstyled otherwise) */
.forminator-custom-form input[type=text],
.forminator-custom-form input[type=email],
.forminator-custom-form input[type=tel],
.forminator-custom-form input[type=url],
.forminator-custom-form input[type=number],
.forminator-custom-form textarea,
.forminator-custom-form select {
  font-family: var(--font-body); font-size: var(--step-0); color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 0.8rem 1rem; width: 100%;
}
.forminator-custom-form textarea { min-height: 130px; }
.forminator-custom-form input:focus,
.forminator-custom-form textarea:focus,
.forminator-custom-form select:focus {
  outline: none; border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(142,155,140,0.25);
}
.forminator-custom-form label { font-weight: 600; color: var(--ink); }
.forminator-custom-form .forminator-button,
.forminator-custom-form button[type=submit] {
  background: var(--btn-fill); color: var(--btn-label);
  border: none; border-radius: 999px; padding: 0.85rem 1.6rem;
  font-family: var(--font-body); font-weight: 700; font-size: var(--step-0); cursor: pointer;
}
.forminator-custom-form .forminator-button:hover,
.forminator-custom-form button[type=submit]:hover { background: var(--btn-fill-hover); }

.form-placeholder {
  border: 1.5px dashed var(--line); border-radius: var(--radius-lg);
  padding: var(--space-lg); color: var(--ink-soft); text-align: center;
}

/* contact info */
.contact-cols { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-md); }
.info-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.info-list svg { width: 22px; height: 22px; color: var(--accent-2); flex: 0 0 auto; margin-top: 3px; }
.info-list .label { display: block; font-weight: 700; }
.info-list a { text-decoration: none; }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.hours-table th, .hours-table td { text-align: left; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.hours-table th { font-family: var(--font-body); font-weight: 600; color: var(--ink); }
.hours-table td { color: var(--ink-soft); }

/* ============================ FOOTER ============================ */
.site-footer { background: var(--surface-warm); border-top: 1px solid var(--line); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-xl);
  padding-block: var(--space-2xl);
}
.footer-brand .wordmark { font-family: var(--font-display); font-size: var(--step-3); color: var(--ink); display: block; }
.footer-brand p { color: var(--ink-soft); margin-top: var(--space-sm); max-width: 34ch; }
.footer-col h3 { font-size: var(--step-1); font-family: var(--font-display); margin-bottom: var(--space-sm); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer-col a { text-decoration: none; color: var(--ink-soft); }
.footer-col a:hover { color: var(--ink); }
.footer-hours { display: grid; gap: 0.35rem; }
.footer-hours div { display: flex; justify-content: space-between; gap: 1rem; color: var(--ink-soft); font-size: var(--step--1); }
.site-footer .btn--primary { color: var(--btn-label); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-block: var(--space-md);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
  color: var(--ink-soft); font-size: var(--step--1);
}
.footer-bottom a { color: var(--ink-soft); }
.footer-identity { font-weight: 600; color: var(--ink); }

/* 404 */
.notfound { text-align: center; padding-block: clamp(4rem, 12vw, 9rem); }
.notfound h1 { font-size: var(--step-5); }

/* ============================ REVEAL (progressive) ============================ */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-cta.desktop-cta { display: none; }
  .primary-nav {
    position: fixed; inset: 0 0 0 auto; width: min(88vw, 360px);
    height: 100dvh; background: var(--paper); border-left: 1px solid var(--line);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: 1.25rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
    transform: translateX(100%); transition: transform .3s ease;
    overflow-y: auto; overscroll-behavior: contain; z-index: 1001;
  }
  body.nav-open .primary-nav { transform: translateX(0); }
  body.nav-open .site-header { z-index: 1000; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .primary-nav .nav-menu a { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .primary-nav .nav-menu a::after { display: none; }
  .primary-nav .header-cta { display: block; margin-top: var(--space-md); }
  .header-cta .btn { width: 100%; }
  .nav-close {
    display: inline-flex; align-items: center; justify-content: center;
    align-self: flex-end; width: 42px; height: 42px; margin-bottom: 0.5rem;
    background: transparent; border: 1.5px solid var(--line); border-radius: var(--radius); color: var(--ink);
  }
  .nav-close svg { width: 22px; height: 22px; }
  body.nav-open .nav-overlay {
    display: block; position: fixed; inset: 0; z-index: 990;
    background: rgba(61,52,48,0.35);
  }
}
@media (max-width: 760px) {
  .grid--3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: var(--space-lg); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .atmosphere, .contact-cols { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 599px) {
  .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .hero__media::after, .split__media::after { display: none; }
  .hero__content, .section-head { text-align: left; }
  .grid, .steps { align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}

/* =========================================================================
   Mobile polish (agency finishing pass) — Salon Loriva
   Ported from the demoinstallatie pattern, adapted to this site's tokens.
   Scope: <=900px drawer, <=599px footer/band. Desktop untouched.
   ========================================================================= */

/* ---- Off-canvas drawer must not widen the document ------------------------
   Problem: .primary-nav stayed `display:flex` at all widths and was parked
   with transform:translateX(100%). A transformed box still contributes to the
   scrollable overflow area, so every page carried ~343px of horizontal
   overflow at 390px (the page could be swiped sideways into empty space).
   Fix: take the closed drawer out of the overflow box and the tab order with
   visibility, which still animates alongside transform. */
@media (max-width: 900px) {
  .primary-nav {
    visibility: hidden;
    transition: transform .3s ease, visibility 0s linear .3s;
  }
  body.nav-open .primary-nav {
    visibility: visible;
    transition: transform .3s ease, visibility 0s linear 0s;
  }
}


/* ---- Tap targets ----------------------------------------------------------
   44px is the floor. Applied to the link stacks that read as lists (footer
   menu, contact, legal line, demo band) rather than to inline prose links. */
@media (max-width: 900px) {
  .footer-col ul li { margin-bottom: 0; }
  .footer-col ul a,
  .footer-brand .nav-menu a {
    display: flex; align-items: center;
    min-height: 44px; padding: .25rem 0;
  }
  .footer-col ul li:not(:has(a)) { padding: .3rem 0; line-height: 1.5; }

  .site-footer .footer-brand .wordmark { display: inline-flex; align-items: center; min-height: 44px; }

  .footer-bottom a {
    display: inline-flex; align-items: center; min-height: 44px;
  }

  .demo-band a { display: inline-flex; align-items: center; min-height: 44px; }

  .site-header .brand { display: inline-flex; align-items: center; min-height: 44px; }

  .card__link { display: inline-flex; align-items: center; min-height: 44px; }

  .footer-col .btn--primary {
    display: flex; width: 100%; justify-content: center;
    min-height: 50px;
  }
}

/* ---- Footer rhythm on the narrowest phones -------------------------------- */
@media (max-width: 599px) {
  .footer-col + .footer-col,
  .footer-brand + .footer-col {
    border-top: 1px solid var(--line);
    padding-top: var(--space-md);
  }
  .footer-col h3 { margin-bottom: var(--space-2xs); }

  /* legal line: stacked and centered rather than a ragged wrap */
  .footer-bottom {
    flex-direction: column; align-items: center; text-align: center;
    gap: .35rem; line-height: 1.6;
  }
  .footer-bottom span { display: block; }
}

/* ---- Demo band: a calm centered notice, not a wall of text ---------------- */
@media (max-width: 599px) {
  .demo-band .container {
    padding-block: .7rem;
    max-width: 46ch;
  }
  .demo-band p { line-height: 1.55; }
}

/* ---- Structural: the closed drawer leaves the overflow box entirely --------
   `visibility:hidden` alone still leaves a 343px transformed box inside
   body's scroll width. Anchoring the closed drawer at the right viewport edge
   (right:0 + translateX(100%) replaced by a clip) is fragile; instead the
   drawer is removed from layout when closed and restored on open. The
   transform transition is preserved by delaying `display` via allow-discrete
   where supported, and the drawer simply appears instantly where it is not. */
@media (max-width: 900px) {
  .primary-nav { display: none; }
  body.nav-open .primary-nav { display: flex; }
}

/* Contact details are primary tap targets on a phone, not prose links. */
@media (max-width: 900px) {
  .info-list li > div a { display: inline-flex; align-items: center; min-height: 44px; }
}
