:root {
  --bg: #f7f3ee;
  --bg-soft: #efe8df;
  --ink: #2a2521;
  --muted: #8a7f75;
  --line: #e2d9ce;
  --accent: #a8907a;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
  --header-h: 96px;
  --gutter: clamp(16px, 4vw, 48px);
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.small-caps {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--gutter);
  background: var(--bg);
  transition: background 0.4s, color 0.4s, height 0.4s, box-shadow 0.4s;
}

.site-header.scrolled {
  --header-h: 72px;
  box-shadow: 0 1px 0 var(--line);
}

/* Op de homepage ligt de header transparant over de grote foto */
.page-home .site-header:not(.scrolled) {
  background: transparent;
  color: #fff;
}

.nav { display: flex; gap: clamp(20px, 3vw, 44px); }
.nav-left { justify-content: flex-end; padding-right: clamp(24px, 4vw, 64px); }
.nav-right { justify-content: flex-start; padding-left: clamp(24px, 4vw, 64px); }

.nav a, .mobile-menu a, .category-nav a {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}

.nav a::after, .category-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.3s;
}
.nav a:hover::after, .nav a[aria-current]::after,
.category-nav a:hover::after, .category-nav a[aria-current]::after { transform: scaleX(1); }

.logo { text-align: center; line-height: 1; }
.logo-name {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.logo-sub {
  display: block;
  margin-top: 6px;
  font-size: 0.6rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  padding-left: 0.45em;
}

/* Het RVFD-logo: een masker, zodat het de tekstkleur overneemt (wit over de foto) */
.logo-mark {
  display: block;
  height: 36px;
  aspect-ratio: 1.74;
  margin: 0 auto;
  background: currentColor;
  -webkit-mask: url(../img/logo-rvfd.svg) no-repeat center / contain;
  mask: url(../img/logo-rvfd.svg) no-repeat center / contain;
  transition: height 0.4s;
}
.site-header.scrolled .logo-mark { height: 30px; }
.logo-mark + .logo-sub {
  margin-top: 7px;
  font-size: 0.52rem;
  letter-spacing: 0.3em;
  padding-left: 0.3em;
}

/* Taalkeuze NL / EN */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
}
.site-header > .lang-switch {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
}
.lang-switch button {
  font-size: inherit;
  letter-spacing: inherit;
  padding: 4px 0;
  opacity: 0.45;
  transition: opacity 0.2s;
}
.lang-switch button:hover,
.lang-switch button[aria-current] { opacity: 1; }

/* Over de grote foto: glazen pilletje zodat het op elke foto leesbaar is */
.page-home .site-header:not(.scrolled) > .lang-switch {
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.page-home .site-header:not(.scrolled) > .lang-switch button { opacity: 0.7; }
.page-home .site-header:not(.scrolled) > .lang-switch button[aria-current] { opacity: 1; }
.lang-switch span { width: 1px; height: 10px; background: currentColor; opacity: 0.35; }

.menu-toggle { display: none; }
.mobile-menu { display: none; }

/* ---------- Homepage ---------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: #2a2521;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s ease, transform 7s ease-out;
}
.hero img.active { opacity: 1; transform: scale(1); }

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45), transparent 32%, transparent 65%, rgba(0,0,0,0.35));
  pointer-events: none;
}

.hero-cta {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid rgba(255,255,255,0.7);
  /* Glazen achtergrond zodat de knop ook op lichte foto's leesbaar blijft */
  background: rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.3s, color 0.3s;
  white-space: nowrap;
}
.hero-cta:hover { background: #fff; color: var(--ink); }

.intro {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  text-align: center;
}
.intro .small-caps { color: var(--muted); }
.intro p.lead {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.35;
  font-weight: 400;
}

.strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 0 0 24px;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip img {
  height: clamp(320px, 60vh, 620px);
  width: auto;
  flex: none;
  filter: grayscale(1);
  transition: filter 0.6s;
}
.strip img:hover { filter: grayscale(0); }

/* Telefoon/tablet: niet de aangeraakte, maar de middelste foto in kleur */
@media (hover: none) {
  .strip img:hover { filter: grayscale(1); }
  .strip img.in-focus { filter: grayscale(0); }
}

.section-title {
  text-align: center;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  font-style: italic;
  padding: clamp(80px, 10vw, 140px) var(--gutter) 48px;
}

/* Categorieën: onder elkaar, foto en tekst om en om links/rechts */
.categories {
  display: grid;
  gap: clamp(64px, 10vw, 140px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(80px, 10vw, 140px);
}
.category {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}
.category:nth-child(even) { grid-template-columns: 1fr 1.4fr; }
.category:nth-child(even) .category-img { order: 2; }

.category-img { overflow: hidden; aspect-ratio: 5 / 4; background: var(--bg-soft); }
.category-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.category:hover .category-img img { transform: scale(1.03); }

.category-num, .category-link {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.category-num { color: var(--muted); }
.category h3 {
  margin: 12px 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
}
.category-link {
  display: inline-block;
  margin-top: 32px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  transition: letter-spacing 0.4s;
}
.category:hover .category-link { letter-spacing: 0.4em; }

/* ---------- Gewone pagina's ---------- */

.page {
  padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) var(--gutter) clamp(80px, 10vw, 140px);
}

.page-title {
  text-align: center;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  margin: 28px 0 clamp(40px, 6vw, 72px);
  color: var(--muted);
}
.category-nav a[aria-current] { color: var(--ink); }

.gallery { max-width: 1400px; margin: 0 auto; }

/* Witruimte tussen de shoots */
.shoot + .shoot {
  margin-top: clamp(80px, 12vw, 180px);
}
.shoot-header {
  text-align: center;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.shoot-header h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
}
.shoot-header span {
  display: block;
  margin-top: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

.shoot-photos {
  columns: 3 300px;
  column-gap: 16px;
}
.gallery-item {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  break-inside: avoid;
  background: var(--bg-soft);
  overflow: hidden;
}
.gallery-item img { width: 100%; transition: transform 0.8s ease, opacity 0.3s; }
.gallery-item:hover img { transform: scale(1.02); opacity: 0.92; }

/* Over mij */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.about-img { aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-soft); }
.about-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 85%; }
.about .page-title { text-align: left; margin-bottom: 28px; }
.about p + p { margin-top: 1em; }
.about .small-caps { color: var(--muted); display: block; margin-bottom: 12px; }

.button {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 28px;
  border: 1px solid var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}
.button:hover { background: var(--ink); color: var(--bg); }

/* Contact */
.contact {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.contact > p { margin-top: 20px; color: var(--muted); }
.contact-whatsapp { margin-top: 8px; }
.button-wa {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.button-wa svg { width: 18px; height: 18px; }

.contact-details {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.contact-details div {
  display: grid;
  gap: 8px;
  padding: 24px 12px;
}
.contact-details div + div { border-left: 1px solid var(--line); }
.contact-details .small-caps { color: var(--muted); font-size: 0.65rem; }
.contact-details a {
  justify-self: center;
  font-size: 0.92rem;
  overflow-wrap: break-word;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.contact-details a:hover { border-color: currentColor; }

.contact-form {
  margin-top: 56px;
  display: grid;
  gap: 28px;
  text-align: left;
}
.contact-form label { display: grid; gap: 6px; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--ink);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .button { justify-self: center; background: none; cursor: pointer; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 0 var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.site-footer a:hover { color: var(--ink); }

/* 'Meer zien?' met de link naar Instagram */
.footer-more {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: clamp(48px, 7vw, 80px) 0 clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.footer-more span {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 0.01em;
  color: var(--ink);
}
.footer-more a {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.footer-brand {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px);
  color: var(--ink);
}
.footer-brand .logo-mark { height: clamp(56px, 7vw, 80px); }
/* Zelfde stijl als 'Photography' in de header, meegeschaald met het grotere logo */
.footer-brand span:last-child {
  font-size: clamp(0.8rem, 1.62vw, 1.15rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding-left: 0.3em;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(247, 243, 238, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 80px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button {
  position: absolute;
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 200;
  padding: 12px 18px;
  color: var(--ink);
  opacity: 0.6;
  transition: opacity 0.2s;
}
.lightbox button:hover { opacity: 1; }
.lb-close { top: 12px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

/* ---------- Mobiel ---------- */

@media (max-width: 820px) {
  :root { --header-h: 76px; }
  .site-header { grid-template-columns: 1fr auto; }
  .site-header.scrolled { --header-h: 64px; }
  .nav { display: none; }
  .logo { text-align: left; }
  .logo-name { font-size: clamp(1.15rem, 5.4vw, 1.5rem); }
  .logo-sub { padding-left: 0; }

  .menu-toggle {
    display: grid;
    gap: 7px;
    justify-self: end;
    padding: 12px 0 12px 12px;
    position: relative;
    z-index: 60;
  }
  .menu-toggle span {
    display: block;
    width: 26px;
    height: 1px;
    background: currentColor;
    transition: transform 0.3s;
  }
  .menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .mobile-menu a { font-size: 0.85rem; }
  .menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
  .site-header > .lang-switch { display: none; }
  .mobile-menu .lang-switch { margin-top: 16px; font-size: 0.78rem; }
  .menu-open .site-header { background: transparent; color: var(--ink) !important; box-shadow: none; }
  .menu-open { overflow: hidden; }

  .shoot-photos { columns: 2; column-gap: 8px; }
  .gallery-item { margin-bottom: 8px; }

  .category, .category:nth-child(even) { grid-template-columns: 1fr; gap: 20px; }
  .category:nth-child(even) .category-img { order: 0; }
  .category-link { margin-top: 20px; }

  .about { grid-template-columns: 1fr; }

  .lightbox { padding: 56px 8px; }
  .lb-prev, .lb-next { display: none; }

  .footer-meta { flex-direction: column; text-align: center; }
  .contact-details { grid-template-columns: 1fr; }
  .contact-details div { padding: 18px 0; }
  .contact-details div + div { border-left: 0; border-top: 1px solid var(--line); }
  .logo-mark { height: 28px; margin: 0; }
  .site-header.scrolled .logo-mark { height: 26px; }
  .logo-mark + .logo-sub { padding-left: 0; margin-top: 5px; }
  .footer-brand .logo-mark { margin: 0 auto; }
}

.categories-page { padding: clamp(40px, 6vw, 72px) 0 0; }
