/* =========================================================
   Chaplins — Salon & Barbershop, Antwerp
   ========================================================= */

:root {
  --ink: #171716;
  --ink-2: #212120;
  --ink-3: #2b2b29;
  --line-dark: #3a3a37;
  --cream: #f4f1ea;
  --cream-2: #e9e4da;
  --paper: #ffffff;
  --text: #22221f;
  --muted: #6b685f;
  --muted-dark: #a7a49a;
  --line: #ddd7cb;
  --line-light: #e7e2d8;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

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

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

address { font-style: normal; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--paper);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.72rem 1.35rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

/* Two-tone focus indicator: the cream ring reads on dark surfaces and the
   ink halo reads on light surfaces, so it is visible everywhere. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--ink);
  border-radius: 2px;
}

.btn--solid-light { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--paper); }
.btn--solid-light:hover { --btn-bg: transparent; --btn-fg: var(--paper); --btn-bd: var(--paper); }

.btn--ghost-light { --btn-fg: var(--paper); --btn-bd: rgba(255,255,255,0.55); }
.btn--ghost-light:hover { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--paper); }

.btn--lg { padding: 1rem 1.9rem; font-size: 0.9rem; }
.btn--block { width: 100%; }

/* =========================================================
   Top bar
   ========================================================= */
.topbar {
  background: var(--ink);
  color: var(--muted-dark);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
}
.topbar__group { display: flex; align-items: center; gap: 1.1rem; }
.topbar__link { color: var(--muted-dark); transition: color 0.25s var(--ease); }
.topbar__link:hover { color: var(--paper); }
.topbar__lang { color: var(--paper); font-weight: 600; }
.topbar__sep { width: 1px; height: 12px; background: var(--line-dark); }
.topbar__group--end { margin-left: auto; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
  border-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 84px;
}

.brand {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ink);
  flex: 0 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.4rem);
  margin-inline: auto;
}
.nav__link {
  position: relative;
  font-size: 0.95rem;
  color: var(--ink-3);
  padding-block: 0.4rem;
  transition: color 0.25s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 500; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 0 0 auto;
}

/* language switch */
.lang-switch { position: relative; }
.lang-switch__current {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  padding: 0.5rem 0.25rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink-3);
  cursor: pointer;
}
.lang-switch__current svg { transition: transform 0.3s var(--ease); }
.lang-switch.is-open .lang-switch__current svg { transform: rotate(180deg); }
.lang-switch__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 150px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  padding: 0.35rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 20;
}
.lang-switch.is-open .lang-switch__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-switch__menu a {
  display: block;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  color: var(--text);
  transition: background 0.2s var(--ease);
}
.lang-switch__menu a:hover { background: var(--cream); }
.lang-switch__menu a.is-active { color: var(--muted); }

/* nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Mobile menu
   ========================================================= */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--cream);
  padding: 2rem var(--pad) 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  max-height: calc(100vh - 84px);
  overflow-y: auto;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.12);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav a {
  font-family: var(--serif);
  font-size: 1.9rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.mobile-menu__nav a:hover { color: var(--muted); }
.mobile-menu__nav a[aria-current="page"] { font-style: italic; }
.mobile-menu__actions { display: flex; flex-direction: column; gap: 0.75rem; }
.mobile-menu__actions .btn--ghost-light { --btn-fg: var(--ink); --btn-bd: var(--ink); }
.mobile-menu__actions .btn--ghost-light:hover { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.mobile-menu__lang { display: flex; gap: 1.5rem; font-size: 0.9rem; color: var(--muted); }
.mobile-menu__lang a.is-active { color: var(--ink); font-weight: 600; }

/* =========================================================
   Section scaffolding
   ========================================================= */
.section { padding-block: var(--section-y); }
section[id], [id].section { scroll-margin-top: 100px; }

.section--dark {
  background: var(--ink);
  color: var(--cream);
}

.section__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}
.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
  color: inherit;
}
.section--dark .section__title { color: var(--cream); }
.section__title--lower { text-transform: lowercase; }
.section__sub {
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  max-width: 620px;
}
.section--dark .section__sub { color: var(--muted-dark); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  color: var(--cream);
  background: #101010;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  background: url("assets/images/chaplins-barbershop-antwerp.jpg") center/cover no-repeat;
  filter: grayscale(100%) contrast(1.03) brightness(0.85);
  transform: scale(1.06);
  animation: heroPan 22s ease-out forwards;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(10, 10, 10, 0.94) 0%,
    rgba(10, 10, 10, 0.78) 34%,
    rgba(10, 10, 10, 0.32) 66%,
    rgba(10, 10, 10, 0.55) 100%);
  z-index: -1;
}
@keyframes heroPan {
  from { transform: scale(1.12); }
  to { transform: scale(1.0); }
}

.hero__inner {
  min-height: clamp(560px, 82vh, 820px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(4rem, 12vh, 8rem);
  max-width: 1100px;
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--muted-dark);
  margin: 0 0 1.4rem;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.1rem, 8.5vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 1.6rem;
  color: #fff;
}
.hero__lead {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  max-width: 560px;
  color: #e6e2d8;
  margin: 0 0 2.4rem;
}
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  right: var(--pad);
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.hero__scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--muted-dark), transparent);
  animation: scrollPulse 2.4s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* =========================================================
   Services
   ========================================================= */
.services { background: var(--cream); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(1.75rem, 3vw, 2.6rem) 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.09);
  border-color: var(--ink);
}
.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  margin-bottom: 1.5rem;
}
.service-card__icon img {
  max-height: 72px;
  width: auto;
  filter: grayscale(1) contrast(1.05);
  transition: transform 0.4s var(--ease);
}
.service-card:hover .service-card__icon img { transform: scale(1.08); }
.service-card__title {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--ink);
}
.service-card__sub {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 1rem;
}

/* =========================================================
   Products
   ========================================================= */
.products { background: var(--paper); }
.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}
.product-card { text-align: center; }
.product-card__media {
  background: var(--cream);
  border: 1px solid var(--line-light);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem;
  overflow: hidden;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}
.product-card:hover .product-card__media { background: var(--cream-2); transform: translateY(-6px); }
.product-card__media img {
  max-height: 150px;
  width: auto;
  transition: transform 0.5s var(--ease);
}
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 1.1rem 0 0.2rem;
  color: var(--ink);
}
.product-card__sub { margin: 0; color: var(--muted); font-size: 0.86rem; }

/* =========================================================
   Team
   ========================================================= */
.team { background: var(--ink); }
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
}
.team-card {
  background: var(--ink-2);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.team-card:hover { transform: translateY(-6px); box-shadow: 0 28px 55px rgba(0,0,0,0.4); }
.team-card__media {
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
}
.team-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.02);
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.team-card:hover .team-card__media img { transform: scale(1.05); filter: grayscale(60%); }
.team-card__body { padding: 1.35rem 1.5rem 1.6rem; }
.team-card__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  margin: 0;
  color: var(--cream);
}
.team-card__role { margin: 0.2rem 0 0; color: var(--muted-dark); font-size: 0.86rem; }

/* =========================================================
   Events
   ========================================================= */
.events { background: var(--cream); }
.event-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  min-height: 220px;
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.event-card__media {
  position: absolute;
  inset: 0;
  background: url("assets/images/events.webp") center/cover no-repeat;
  filter: grayscale(100%) contrast(1.05) brightness(0.62);
  transition: transform 0.7s var(--ease);
  z-index: -2;
}
.event-card:hover .event-card__media { transform: scale(1.04); }
.event-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,0.82) 0%, rgba(10,10,10,0.35) 60%, rgba(10,10,10,0.25) 100%);
  z-index: -1;
}
.event-card__date {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.event-card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  margin: 0;
  color: #fff;
}
.event-card__time { margin: 0.35rem 0 0; color: #d9d5cb; font-size: 0.95rem; }
.event-card__action { position: relative; z-index: 1; }

.events__note {
  text-align: center;
  max-width: 620px;
  margin: clamp(1.75rem, 3vw, 2.5rem) auto 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* =========================================================
   Visit
   ========================================================= */
.visit { background: var(--ink); }
.visit__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr auto;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.visit__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin: 0 0 1.1rem;
  color: var(--cream);
}
.visit__address {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--muted-dark);
  line-height: 1.35;
  margin: 0;
}
.visit__hours {
  display: flex;
  gap: 0.5rem 1.5rem;
  margin: 1.2rem 0 0;
  color: var(--cream);
  font-size: 1.05rem;
}
.visit__hours span:first-child { color: var(--muted-dark); }
.visit__map {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line-dark);
}
.visit__map svg { width: 100%; height: 100%; display: block; }
.visit__action { justify-self: end; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 90px;
  padding-block: 1.25rem;
  flex-wrap: wrap;
}
.brand--footer { font-size: 1.5rem; color: var(--cream); }
.footer__nav {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  font-size: 0.92rem;
}
.footer__nav a { color: var(--muted-dark); transition: color 0.25s var(--ease); }
.footer__nav a:hover { color: var(--cream); }
.footer__nav a[aria-current="page"] { color: var(--cream); }
.footer__copy { margin: 0; color: var(--muted-dark); font-size: 0.85rem; }

/* =========================================================
   Reveal animation
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* stagger within grids */
.services__grid .reveal:nth-child(2),
.products__grid .reveal:nth-child(2),
.team__grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.services__grid .reveal:nth-child(3),
.products__grid .reveal:nth-child(3),
.team__grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.services__grid .reveal:nth-child(4),
.products__grid .reveal:nth-child(4) { transition-delay: 0.3s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .header__actions .lang-switch,
  .header__actions .btn--ghost-light { display: none; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .visit__grid { grid-template-columns: 1fr 1fr; }
  .visit__action { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 880px) {
  .nav { display: none; }
  .header__actions { display: none; }
  .nav-toggle { display: flex; }
  .team__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}

@media (max-width: 640px) {
  .topbar__inner { flex-wrap: wrap; gap: 0.4rem; padding-block: 0.4rem; }
  .services__grid { grid-template-columns: 1fr; }
  .products__grid { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
  .product-card__media { padding: 1rem; }
  .event-card { grid-template-columns: 1fr; }
  .event-card__action { justify-self: start; }
  .visit__grid { grid-template-columns: 1fr; }
  .visit__action { justify-self: stretch; }
  .visit__action .btn { width: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__nav { flex-wrap: wrap; gap: 1rem 1.5rem; }
  .hero__scroll { display: none; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__media { transform: none; }
}
