/* ==========================================================================
   The Gentleman Barbershop — stylesheet
   Licht en strak: gebroken wit, zwarte bovenbalk waar het logo in overloopt,
   goud alleen als accent. Zwart is de actiekleur.
   ========================================================================== */

:root {
  --paper:    #f7f6f3;   /* gebroken wit, paginakleur */
  --white:    #ffffff;   /* kaarten */
  --black:    #000000;   /* bovenbalk + footer; gelijk aan de logo-achtergrond */
  --ink:      #17171a;   /* tekst */
  --ink-2:    #45443f;
  --muted:    #7b786f;
  --line:     #e5e1d9;
  --line-2:   #cfcabd;
  --gold:     #d4af37;
  --gold-ink: #94761c;   /* goud dat op wit nog leesbaar is */
  --err:      #b3402c;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap:  1140px;
  --r:     4px;
  --nav-h: 92px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.muted { color: var(--muted); }

h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.2; }
h1 { font-family: var(--font-display); font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 400; letter-spacing: .005em; }
h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 400; }
h3 { font-size: 1rem; font-weight: 600; letter-spacing: .005em; }
p  { margin: 0 0 1rem; }

/* ---------- knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.5rem;
  border: 1px solid transparent; border-radius: var(--r);
  font-family: var(--font-body); font-size: .78rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; white-space: nowrap;
  cursor: pointer; transition: background .18s, color .18s, border-color .18s;
}
.btn--dark  { background: var(--ink); color: #fff; }
.btn--dark:hover  { background: #000; }
.btn--gold  { background: var(--gold); color: #1a1508; }
.btn--gold:hover  { background: #e2c150; }
.btn--line  { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--line:hover  { border-color: var(--ink); }
.btn--sm    { padding: .6rem 1.15rem; font-size: .7rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .3; cursor: not-allowed; }

/* ==========================================================================
   NAV — zwarte balk, logo loopt er naadloos in over
   ========================================================================== */
.nav {
  /* env(...) is 0 op desktop; op een telefoon-app houdt dit de balk vrij
     van de statusbalk. Nodig voor de Artifact-preview, onschadelijk daarbuiten. */
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60;
  height: var(--nav-h);
  background: var(--black);
  color: #fff;
}
.nav__inner {
  max-width: var(--wrap); height: 100%; margin-inline: auto; padding-inline: 24px;
  display: flex; align-items: center; gap: 1.5rem;
}
.nav__brand { display: flex; align-items: center; gap: .85rem; margin-right: auto; }
.nav__brand img {
  width: 66px; height: 66px; object-fit: cover;
  /* geen radius en geen rand: de zwarte achtergrond van het logo (#000)
     is exact de balkkleur, dus het mark lijkt vrij te zweven. */
}
.nav__brand span {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; line-height: 1;
}
.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  font-size: .76rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase;
  color: rgba(255, 255, 255, .72); padding: .3rem 0; position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--gold); transition: right .22s;
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { right: 0; }
.nav__actions { display: flex; align-items: center; gap: .8rem; }
.nav__burger {
  display: none; width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--r);
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__burger span { display: block; width: 18px; height: 1.5px; background: #fff; transition: transform .25s, opacity .2s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ==========================================================================
   STROOK + HEADLINE
   ========================================================================== */
.strip { background: var(--black); }
.strip img {
  width: 100%;
  height: clamp(240px, 34vw, 420px);
  object-fit: cover; object-position: center 62%;
}

.welkom { padding: clamp(2.2rem, 4.5vw, 3.2rem) 0 clamp(.4rem, 1vw, .8rem); text-align: center; }
.welkom h1 { margin: 0; }
.welkom h1::after {
  content: ""; display: block; width: 52px; height: 1px;
  background: var(--gold); margin: 1.4rem auto 0;
}

/* ---------- sectiekop ---------- */
.sec-head { margin: 0 0 2rem; }
.sec-head h2 { margin: 0; }

section.booking, section.services, section.work, section.contact { padding-block: clamp(2.4rem, 4.4vw, 3.4rem); }
section.services, section.work, section.contact { border-top: 1px solid var(--line); }

/* ---------- kaarten ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.25rem, 2.6vw, 1.9rem);
}

/* ==========================================================================
   BOEKEN
   ========================================================================== */
.booking__grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(268px, 1fr); gap: 1.25rem; align-items: start; }
.booking__side { display: grid; gap: 1.25rem; position: sticky; top: calc(var(--nav-h) + 16px); }

.step + .step { margin-top: 1.9rem; padding-top: 1.9rem; border-top: 1px solid var(--line); }
.step__title { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; font-size: .95rem; }
.step__title i {
  display: grid; place-items: center; flex: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--ink); color: #fff;
  font-size: .7rem; font-style: normal; font-weight: 600;
}

/* stap 1 — behandelingen */
.treats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.treat {
  text-align: left; cursor: pointer;
  background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: .9rem 1rem; color: var(--ink); font-family: var(--font-body);
  transition: border-color .18s, box-shadow .18s;
}
.treat:hover { border-color: var(--ink); }
.treat.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.treat__naam { display: block; font-size: .95rem; font-weight: 600; margin-bottom: .1rem; }
.treat__meta { display: block; font-size: .78rem; color: var(--muted); }
.treat__prijs { display: block; margin-top: .4rem; font-family: var(--font-display); font-size: 1.4rem; color: var(--gold-ink); }

/* stap 2 — kalender */
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem; }
.cal__head strong { font-size: .92rem; font-weight: 600; letter-spacing: .02em; }
.cal__nav {
  width: 32px; height: 32px; border-radius: var(--r); cursor: pointer;
  background: var(--white); border: 1px solid var(--line-2); color: var(--ink); font-size: 1.05rem; line-height: 1;
}
.cal__nav:hover:not(:disabled) { border-color: var(--ink); }
.cal__nav:disabled { opacity: .3; cursor: not-allowed; }
.cal__dow, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal__dow { margin-bottom: 5px; }
.cal__dow span { text-align: center; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cal__cell {
  aspect-ratio: 1 / .9; display: grid; place-items: center;
  border: 1px solid transparent; border-radius: var(--r);
  background: transparent; color: var(--muted);
  font-family: var(--font-body); font-size: .88rem;
}
.cal__cell--empty { visibility: hidden; }
.cal__cell--off { color: #bdb9b0; }
.cal__cell--inloop { color: var(--ink-2); border-color: var(--line-2); border-style: dashed; }
.cal__cell--free { background: var(--paper); border-color: var(--line-2); color: var(--ink); cursor: pointer; font-weight: 500; }
.cal__cell--free:hover { background: #efece5; border-color: var(--ink); }
.cal__cell--free.is-on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.cal__cell--today { box-shadow: inset 0 0 0 1px var(--gold); }
.cal__legend { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.1rem; margin: .95rem 0 0; font-size: .74rem; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 2px; display: inline-block; margin-right: -.6rem; }
.dot--free   { background: var(--ink); }
.dot--inloop { border: 1px dashed var(--line-2); }
.dot--off    { background: #ddd9d0; }

/* stap 3 — tijden */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: .5rem; }
.slots p { grid-column: 1 / -1; margin: 0; font-size: .9rem; }
.slot {
  padding: .68rem .3rem; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r);
  color: var(--ink); font-family: var(--font-body); font-size: .92rem; font-weight: 500;
  font-variant-numeric: tabular-nums; transition: border-color .15s, background .15s, color .15s;
}
.slot:hover { background: #efece5; border-color: var(--ink); }
.slot.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.slots__dagdeel {
  grid-column: 1 / -1; margin: .55rem 0 -.05rem;
  font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.slots__dagdeel:first-child { margin-top: 0; }

/* stap 4 — formulier */
.form { display: grid; gap: .85rem; }
.form label { display: grid; gap: .32rem; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.form input {
  padding: .76rem .85rem;
  background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r);
  color: var(--ink); font-family: var(--font-body); font-size: .95rem; font-weight: 400;
  letter-spacing: normal; text-transform: none;
}
.form input::placeholder { color: #b3afa6; }
.form input:focus { outline: none; border-color: var(--ink); }
.form__error { margin: 0; color: var(--err); font-size: .85rem; }

.summary { border: 1px solid var(--line); background: var(--paper); border-radius: var(--r); padding: .85rem 1rem; font-size: .9rem; }
.summary--leeg { color: var(--muted); }
.summary dl { display: grid; gap: .3rem; }
.summary dl > div { display: flex; justify-content: space-between; gap: 1rem; }
.summary dt { color: var(--muted); font-size: .82rem; }
.summary dd { text-align: right; font-weight: 500; }
.summary .summary__totaal { border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .45rem; }
.summary .summary__totaal dd { color: var(--gold-ink); font-family: var(--font-display); font-size: 1.2rem; }

/* bevestiging */
.done { text-align: center; padding: .5rem 0; }
.done__mark {
  width: 50px; height: 50px; margin: 0 auto 1rem;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 1.3rem;
}
.done h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; margin-bottom: .5rem; }
.done .summary { text-align: left; max-width: 360px; margin: 1.2rem auto; }
.done__demo {
  max-width: 440px; margin: 0 auto;
  font-size: .8rem; color: var(--muted); line-height: 1.55;
  border-top: 1px solid var(--line); padding-top: .9rem;
}

/* ---------- openingstijden ---------- */
.hours h3, .side-cta h3 { margin-bottom: .9rem; }
.hours__list { display: grid; }
.hours__list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .5rem 0; border-bottom: 1px solid var(--line);
  font-size: .89rem;
}
.hours__list li:last-child { border-bottom: 0; }
.hours__list b { font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.hours__list .is-today { font-weight: 600; }
.hours__list .is-today b { color: var(--ink); }
.hours__list .is-today span::after {
  content: "vandaag"; margin-left: .5rem; font-size: .6rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink);
  border: 1px solid var(--gold); border-radius: 999px; padding: .06rem .4rem; vertical-align: 1px;
}
.hours__note { margin: .95rem 0 0; font-size: .82rem; color: var(--muted); }
.hours__note strong { color: var(--ink); font-weight: 600; }
.side-cta .btn + .btn { margin-top: .55rem; }

/* ==========================================================================
   DIENSTEN
   ========================================================================== */
.treatcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.4rem; }
.treatcard {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.6rem 1.4rem; display: flex; flex-direction: column;
}
.treatcard--hero { border-color: var(--ink); }
.treatcard h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; margin-bottom: .1rem; }
.treatcard__meta { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .9rem; }
.treatcard__price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 400; color: var(--gold-ink); margin: 0 0 1.2rem; line-height: 1; flex: 1; }

.pricelist__title { margin-bottom: 1rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.2rem; }
.tab {
  padding: .58rem 1.15rem; cursor: pointer;
  background: transparent; border: 1px solid var(--line-2); border-radius: var(--r);
  color: var(--muted); font-family: var(--font-body);
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  transition: all .18s;
}
.tab:hover { color: var(--ink); border-color: var(--ink); }
.tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.panel { display: none; }
.panel.is-active { display: block; }

.prices { max-width: 680px; }
.prices li {
  display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 1rem;
  padding: .85rem 0; border-bottom: 1px solid var(--line);
}
.prices li:last-child { border-bottom: 0; }
.prices span { font-size: 1rem; }
.prices em { font-style: normal; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.prices b { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; color: var(--gold-ink); min-width: 4.5ch; text-align: right; }

/* ---------- werk ---------- */
.work__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; }
.work__grid figure { margin: 0; border-radius: var(--r); overflow: hidden; background: #e9e6e0; }
.work__grid img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; transition: transform .45s; }
.work__grid figure:hover img { transform: scale(1.04); }
.work__rating { margin: 1.5rem 0 0; font-size: .9rem; color: var(--muted); display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; }
.work__rating b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; color: var(--ink); }
.work__rating span { color: var(--gold); letter-spacing: .12em; }
.work__rating a { text-decoration: underline; text-underline-offset: 3px; }
.work__rating a:hover { color: var(--ink); }

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(268px, 1fr) minmax(0, 1.7fr); gap: 1.25rem; align-items: stretch; }
.contact__info { display: flex; flex-direction: column; }
.contact__info dl { display: grid; gap: 1.2rem; flex: 1; }
.contact__info dt { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; font-weight: 500; }
.contact__info dd { margin: 0; font-size: .96rem; }
.contact__info dd a:hover { color: var(--gold-ink); }
.contact__btns { display: grid; gap: .55rem; margin-top: 1.6rem; }

.contact__map { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.contact__map iframe { width: 100%; flex: 1; min-height: 320px; border: 0; }
/* Statische kaart: wordt alleen gebruikt in de gedeelde preview, waar de
   host geen externe iframes toelaat. Live staat hier de echte embed. */
.contact__map img { width: 100%; flex: 1; min-height: 320px; object-fit: cover; }
.map__cta {
  display: flex; align-items: center; gap: .85rem;
  padding: .95rem 1.1rem; border-top: 1px solid var(--line); background: var(--white);
  transition: background .18s;
}
.map__cta:hover { background: var(--paper); }
.map__cta strong { display: block; font-weight: 600; font-size: .93rem; }
.map__cta em { display: block; font-style: normal; font-size: .79rem; color: var(--gold-ink); }
.map__pin {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); position: relative;
}
.map__pin::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px;
  margin: -7px 0 0 -4px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); background: var(--gold);
}

/* ---------- iconen ---------- */
/* Inline sprite, zie de <symbol>-blokken boven in index.html.
   fill: currentColor laat het icoon de kleur van de knop volgen. */
.ico { width: 1.05em; height: 1.05em; flex: none; fill: currentColor; }
.btn .ico { margin-right: -.1rem; }

.socials { display: flex; gap: .5rem; }
.socials a {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .75);
  transition: color .18s, border-color .18s, background .18s;
}
.socials a:hover {
  color: var(--gold); border-color: var(--gold);
  background: rgba(212, 175, 55, .1);
}
.socials a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.socials .ico { width: 17px; height: 17px; }

/* ---------- footer ---------- */
.foot { background: var(--black); color: rgba(255, 255, 255, .72); padding-block: 3rem 1.4rem; }
.foot__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.4fr 1fr; gap: 2rem; }
.nav__brand--foot { margin-right: 0; color: #fff; }
.nav__brand--foot img { width: 58px; height: 58px; }
.nav__brand--foot span { font-size: 1.15rem; }
.foot h4 { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .85rem; font-weight: 600; }
.foot ul { display: grid; gap: .45rem; font-size: .87rem; }
.foot a:hover { color: #fff; }
.foot__copy { text-align: center; margin: 2.6rem 0 0; font-size: .76rem; color: rgba(255, 255, 255, .38); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .booking__grid { grid-template-columns: 1fr; }
  .booking__side { position: static; grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 2.2rem; }
  .work__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  :root { --nav-h: 76px; }
  .nav__brand img { width: 54px; height: 54px; }
  .nav__brand span { font-size: 1.1rem; letter-spacing: .12em; }
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; gap: 0;
    padding: .25rem 24px 1.25rem;
    background: var(--black);
    transform: translateY(-120%); transition: transform .28s ease;
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { padding: .95rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
  .nav__links a::after { display: none; }

  .treats { grid-template-columns: 1fr; }
  .treatcards { grid-template-columns: 1fr; gap: .8rem; }
  .treatcard { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; }
  .treatcard h3 { flex: 1 1 100%; }
  .treatcard__meta { margin: 0; flex: 1; }
  .treatcard__price { margin: 0; flex: none; font-size: 1.8rem; }
  .treatcard .btn { flex: 1 1 100%; margin-top: .7rem; }
}

@media (max-width: 620px) {
  .wrap { padding-inline: 18px; }
  .nav__brand span { display: none; }
  .booking__side { grid-template-columns: 1fr; }
  .slots { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); }
  .cal__cell { font-size: .82rem; }
  .prices li { grid-template-columns: 1fr auto; row-gap: 0; }
  .prices em { grid-row: 2; grid-column: 1; }
  .prices b { grid-row: 1 / span 2; }
  .foot__grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .work__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
