/* ============================================================
   THE BARBERCLUB — stylesheet (zwart-wit, modern, clean)
   Kleuren & fonts staan als variabelen hieronder.
   ============================================================ */

:root {
  --bg:        #ffffff;
  --bg-alt:    #f4f4f4;
  --text:      #111111;
  --muted:     #5e5e5e;
  --line:      #e2e2e2;
  --accent:    #111111;
  --maxw:      1100px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease:  cubic-bezier(.2,.7,.2,1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------- INTRO-TRANSITIE (wit scherm -> logo morpht naar de menubalk) ---------- */
.intro {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: #ffffff; pointer-events: none;
}
.intro__logo {
  width: min(420px, 72vw);
  filter: brightness(0);                 /* zwart logo op wit scherm */
  opacity: 0; transform-origin: center center;
  transition: transform .85s cubic-bezier(.62,0,.2,1), filter 1.5s ease;
  animation: introFade .6s var(--ease) forwards;
  will-change: transform;
}
@keyframes introFade { to { opacity: 1; } }
/* onthulling: wit verdwijnt langzaam (2-3x langer), logo wordt wit (landt op de balk) */
.intro--reveal { background-color: transparent; transition: background-color 1.6s ease; }
.intro--reveal .intro__logo { filter: brightness(0) invert(1); }
.intro--done { display: none !important; }
/* Geen scroll tijdens de intro */
body.intro-lock { overflow: hidden; }

/* ---------- SCROLL-VOORTGANGSBALK ---------- */
.scrollbar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: #fff; z-index: 70; transition: background .4s var(--ease);
  mix-blend-mode: difference;          /* zichtbaar op zowel donker als wit */
}

/* ---------- NAV (transparant boven de hero, wit na scrollen) ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 26px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
}
.nav--scrolled {
  background: rgba(0,0,0,.5);            /* 50% zwarte tint */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding: 12px 26px;
}
/* Logo blijft wit (zowel boven de hero als op de donkere balk). */
.nav__logo { height: 40px; filter: brightness(0) invert(1); transition: height .4s var(--ease); }
.nav--scrolled .nav__logo { height: 34px; }

.nav__links { display: flex; gap: 28px; }
.nav__links a {
  color: #fff; text-decoration: none; font-size: .88rem;
  letter-spacing: .08em; text-transform: uppercase; opacity: .9;
  position: relative; transition: opacity .2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: currentColor; transition: width .3s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { width: 100%; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--sans); font-size: .95rem; font-weight: 500;
  letter-spacing: .04em; padding: 15px 30px; border-radius: 2px;
  transition: transform .2s var(--ease), background .25s, color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--solid { background: #fff; color: #111; border: 1px solid #fff; box-shadow: 0 6px 22px rgba(0,0,0,.18); }
.btn--solid:hover { background: #f0f0f0; }
.btn--outline { background: transparent; color: var(--text); border: 1px solid var(--accent); }
.btn--outline:hover { background: var(--accent); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.7); }
.btn--ghost:hover { background: #fff; color: #111; border-color: #fff; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-row--center { justify-content: center; margin-top: 36px; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  background: #0c0c0c;               /* nette donkere fallback tot de video laadt */
  padding: 90px 20px;
}
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  animation: kenburns 22s ease-in-out infinite alternate;  /* trage zoom = leven */
}
.hero__bg:not([src]), .hero__bg[src=""] { display: none; }   /* geen foto? dan donkere fallback */
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(0,0,0,.5);        /* 50% zwarte waas */
}
.hero__content { position: relative; z-index: 2; max-width: 820px; will-change: transform, opacity; }
.hero__logo {
  width: min(360px, 78vw); margin: 0 auto 30px;
  filter: brightness(0) invert(1);   /* wit logo over de video */
  opacity: 0; animation: heroIn 1s var(--ease) .15s forwards;
}
.hero__title {
  font-family: var(--serif); font-weight: 700; color: #fff;
  font-size: clamp(2.8rem, 9vw, 5.4rem); line-height: 1.04;
  margin-bottom: 38px; letter-spacing: .01em;
  opacity: 0; animation: heroIn 1s var(--ease) .35s forwards;
}
.hero .cta-row { justify-content: center; opacity: 0; animation: heroIn 1s var(--ease) .55s forwards; }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Scroll-indicator onderin de hero */
.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 2; width: 26px; height: 46px;
  border: 1px solid rgba(255,255,255,.6); border-radius: 14px;
  display: flex; justify-content: center;
  opacity: 0; animation: heroIn 1s var(--ease) .9s forwards;
}
.hero__scroll-line { width: 2px; height: 8px; background: #fff; border-radius: 2px; margin-top: 8px; animation: scrolldot 1.6s var(--ease) infinite; }
@keyframes scrolldot { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 60% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- SECTIONS ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 96px 20px; }
.section--alt { max-width: none; background: var(--bg-alt); }
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2rem, 6vw, 3rem); text-align: center; margin-bottom: 14px;
}
.section__title::after {
  content: ""; display: block; width: 0; height: 2px;
  background: var(--accent); margin: 18px auto 0; transition: width .7s var(--ease) .15s;
}
.section__title.in::after { width: 56px; }
.section__lead { max-width: 620px; margin: 0 auto; text-align: center; color: var(--muted); font-size: 1.1rem; }

/* ---------- DIENSTEN ---------- */
.services { list-style: none; max-width: 560px; margin: 44px auto 0; }
.service { display: flex; align-items: baseline; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.service__name { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; }
.service__dots { flex: 1; border-bottom: 1px dotted #c9c9c9; transform: translateY(-4px); }
.service__price { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; }

/* ---------- GALLERIJ ---------- */
.gallery { margin-top: 48px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery__item {
  overflow: hidden; border-radius: 3px; background: #eaeaea;
  opacity: 0; transform: translateY(46px) scale(.985);   /* faden + zachtjes omhoog */
  transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s);
}
.gallery__item.in { opacity: 1; transform: none; }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1;
  transform: scale(1.2);                                  /* foto settelt uit een zoom */
  transition: transform 1.3s var(--ease) var(--d, 0s);
}
.gallery__item.in img { transform: scale(1); }
.gallery__item:hover img { transform: scale(1.06); }      /* hover-zoom blijft */
.gallery__empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 30px 0; }

/* ---------- LOCATIE ---------- */
.locatie { display: grid; grid-template-columns: 1fr; gap: 36px; margin-top: 48px; }
.locatie__info h3 { font-family: var(--serif); font-size: 1.4rem; margin: 0 0 8px; font-weight: 600; }
.locatie__info .btn { margin-top: 16px; }
.locatie__map iframe { width: 100%; min-height: 320px; border: 1px solid var(--line); border-radius: 3px; }

/* ---------- FOOTER ---------- */
.footer { text-align: center; padding: 72px 20px 120px; border-top: 1px solid var(--line); }
.footer__logo { width: 220px; margin: 0 auto 24px; filter: brightness(0); }
.footer__socials { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-bottom: 18px; }
.footer__socials a { color: var(--text); text-decoration: none; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; opacity: .75; transition: opacity .2s; }
.footer__socials a:hover { opacity: 1; }
.footer__addr { color: var(--muted); }
.footer__copy { color: var(--muted); font-size: .8rem; margin-top: 10px; }

/* ---------- VASTE KNOPPEN RECHTSONDER ---------- */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.fab__btn {
  display: inline-block; text-decoration: none; background: var(--accent); color: #fff;
  font-family: var(--sans); font-size: .9rem; font-weight: 500; letter-spacing: .03em;
  padding: 12px 20px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.25);
  transition: transform .15s var(--ease);
}
.fab__btn:hover { transform: translateY(-2px); }
.fab__btn--wa { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
.fab__btn--wa:hover { background: var(--accent); color: #fff; }
/* socials rechtsonder */
.fab__socials { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.fab__label {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: #fff;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px); padding: 5px 10px; border-radius: 999px;
}
.fab__icon {
  width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: transform .15s var(--ease);
}
.fab__icon:hover { transform: translateY(-2px); }
.fab__icon svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- SCROLL-REVEAL ---------- */
.reveal {
  opacity: 0; transform: translateY(46px); filter: blur(9px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; filter: blur(0); }
/* richtingen */
.reveal--left  { transform: translateX(-54px); }
.reveal--right { transform: translateX(54px); }
.reveal--left.in, .reveal--right.in { transform: none; }
/* stagger voor diensten */
.service.reveal:nth-of-type(2) { transition-delay: .12s; }
.service.reveal:nth-of-type(3) { transition-delay: .24s; }

/* ---------- RESPONSIVE ---------- */
@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .locatie { grid-template-columns: 1fr 1fr; align-items: start; }
  .locatie__map iframe { min-height: 100%; }
}
@media (max-width: 600px) {
  .nav__links { display: none; }
}

/* ---------- TOEGANKELIJKHEID: minder beweging ---------- */
@media (prefers-reduced-motion: reduce) {
  .intro { display: none !important; }
  body.intro-lock { overflow: auto !important; }
  .hero__bg { animation: none; }
  .hero__scroll-line { animation: none; }
  .reveal, .gallery__item { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; transition: none; }
  .gallery__item img { transform: none !important; }
  *[style] , .hero__logo, .hero__title, .hero .cta-row, .hero__scroll { animation: none !important; opacity: 1 !important; }
}
