/* Landscapes – Livio Potenza. Donker thema standaard, licht via de knop (zon/maan). */

:root,
html[data-theme="dark"] {
  --bg: #0A0A0A;
  --fg: #F4F4F4;
  --fg2: #C9C9C9;
  --mut: #A8A8A8;
  --red: #E0434F;
  --line: rgba(168, 168, 168, .35);
  --ph: #1C1C1C;
  --err: #FF8A80;
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #FFFFFF;
  --fg: #111111;
  --fg2: #333333;
  --mut: #595959;
  --red: #BE1E2D;
  --line: rgba(89, 89, 89, .3);
  --ph: #ECECEC;
  --err: #B3261E;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--fg);
  font-family: Karla, system-ui, sans-serif; font-size: 17px; line-height: 1.6;
  transition: background-color .3s, color .3s;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; -webkit-user-drag: none; user-select: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: Archivo, system-ui, sans-serif; font-weight: 800; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button { font: inherit; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; padding: 10px 16px; background: var(--fg); color: var(--bg); z-index: 50; }
.skip:focus { top: 16px; }
.center { text-align: center; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); }
.section-bottom { padding-bottom: clamp(56px, 8vw, 96px); }

/* Kleine hoofdletters met letterafstand: menu, links, labels */
.caps, .main-nav a, .nav-drop-btn, .back-link, .about-links a, .hero-btn, .footer-links a, .tile-title {
  font-family: Karla, sans-serif; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; height: 132px; padding: 0 40px; display: flex; align-items: center; justify-content: flex-start; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--fg); }
.brand-name { font-family: Archivo, sans-serif; font-weight: 800; font-size: 26px; line-height: 1.1; letter-spacing: .32em; text-indent: .32em; text-transform: uppercase; white-space: nowrap; }
.brand-sub { font-family: Karla, sans-serif; font-size: 11px; letter-spacing: .42em; text-indent: .42em; text-transform: uppercase; color: var(--red); }
.main-nav { position: absolute; right: 40px; top: 0; height: 132px; display: flex; align-items: center; gap: 28px; }
.main-nav a, .nav-drop-btn { color: var(--fg2); }
.main-nav a:hover, .nav-drop-btn:hover, .main-nav a[aria-current="page"], .nav-drop-btn[data-current] { color: var(--fg); box-shadow: 0 1px 0 var(--red); }
.nav-drop { position: relative; }
.nav-drop-btn { background: none; border: 0; padding: 0; min-height: 44px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.nav-drop-btn svg { width: 14px; height: 14px; stroke-width: 1.8; transition: transform .2s; }
.nav-drop.open .nav-drop-btn svg { transform: rotate(180deg); }
.drop-menu { display: none; position: absolute; top: 100%; left: -18px; min-width: 220px; margin: 0; padding: 8px 0; list-style: none; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 14px 36px rgba(0, 0, 0, .35); z-index: 6; }
.nav-drop.open .drop-menu { display: block; }
@media (hover: hover) { .nav-drop:hover .drop-menu { display: block; } }
.drop-menu a { display: block; padding: 12px 20px; }
.drop-menu a:hover, .drop-menu a[aria-current="page"] { box-shadow: none; color: var(--fg); background: color-mix(in srgb, var(--fg) 8%, transparent); }
.theme-btn { width: 44px; height: 44px; margin-left: -8px; padding: 0; border: 0; background: none; color: var(--fg); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.theme-btn svg { width: 20px; height: 20px; stroke-width: 1.6; }
html[data-theme="dark"] .i-moon, html[data-theme="light"] .i-sun { display: none; }
.theme-m, .menu-btn { display: none; }
.menu-btn { width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--fg); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 24px; height: 24px; stroke-width: 1.75; }

/* Brede schermen: naam in het midden, menu rechts */
@media (min-width: 1560px) {
  .site-header { justify-content: center; }
}

/* Homepage: menu wit over de foto */
.site-header.is-over { position: absolute; top: 0; left: 0; right: 0; --fg: #FFFFFF; --fg2: #FFFFFF; --red: #FFFFFF; }
.site-header.is-over .drop-menu, .site-header.is-over .main-nav.open { --bg: #0A0A0A; --line: rgba(168, 168, 168, .35); }
.site-header.is-over .brand-sub { color: #FFFFFF; }
.site-header.is-over .drop-menu a:hover { box-shadow: none; }

/* Gsm en tablet: themaknop links, naam in het midden, menuknop rechts */
@media (max-width: 1100px) {
  .site-header { height: 84px; padding: 0 12px; justify-content: space-between; }
  .brand { gap: 4px; flex: 1; }
  .brand-name { font-size: 18px; letter-spacing: .28em; text-indent: .28em; }
  .brand-sub { font-size: 10px; letter-spacing: .4em; text-indent: .4em; }
  .theme-m, .menu-btn { display: flex; }
  .theme-m { margin-left: 0; }
  .theme-d { display: none; }
  .main-nav { display: none; position: absolute; top: 84px; left: 0; right: 0; height: auto; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .main-nav a, .nav-drop-btn { font-size: 13px; padding: 14px 0; min-height: 0; }
  .main-nav a:hover, .main-nav a[aria-current="page"], .nav-drop-btn[data-current] { box-shadow: none; color: var(--fg); }
  .nav-drop-btn { color: var(--fg); padding-bottom: 6px; pointer-events: none; }
  .nav-drop-btn svg { display: none; }
  .drop-menu, .nav-drop:hover .drop-menu { display: block; position: static; min-width: 0; padding: 0; border: 0; box-shadow: none; background: none; }
  .drop-menu a { padding: 12px 0 12px 16px; }
  .drop-menu a:hover, .drop-menu a[aria-current="page"] { background: none; }
}
@media (max-width: 360px) {
  .brand-name { font-size: 16px; letter-spacing: .22em; text-indent: .22em; }
}

/* ---------- Placeholder zonder foto ---------- */
.ph { background: var(--ph); width: 100%; height: 100%; min-height: 200px; }
.cover-img { width: 100%; height: 100%; object-fit: cover; }
.ph-labeled { position: relative; display: flex; align-items: center; justify-content: center; }
.ph-label { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 16px; margin: 12px; border-radius: 8px; background: rgba(255,255,255,.94); color: #0A0A0A; text-align: center; font-family: Archivo, sans-serif; font-size: 14px; line-height: 1.3; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.ph-label a { color: #0A0A0A; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Slideshow op de homepage ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: #0A0A0A; color: #FFFFFF; }
.hero .ph { background: #1C1C1C; }
.slides { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.slide.is-active { opacity: 1; z-index: 2; }
.slide.is-leaving { opacity: 0; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: center; }
.slide::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.12) 28%, rgba(10,10,10,.12) 70%, rgba(10,10,10,.45) 100%); }
.slides[data-zoom="1"] .slide.is-active img,
.slides[data-zoom="1"] .slide.is-leaving img { animation: slide-zoom var(--slide-ms, 7000ms) linear forwards; }
.slides.is-paused .slide img { animation-play-state: paused; }
@keyframes slide-zoom { from { transform: scale(1); } to { transform: scale(1.05); } }

.hero-text { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0 80px; text-align: center; color: #FFFFFF; text-shadow: 0 1px 18px rgba(0,0,0,.35); }
.slides-fixed { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.slides-fixed a { pointer-events: auto; }
.hero-small, .hero-sub { margin: 0; font-size: 18px; letter-spacing: .04em; }
.hero-title { margin: 0; font-size: clamp(34px, 4.8vw, 68px); line-height: 1.08; letter-spacing: .1em; text-transform: uppercase; }
.hero-btn { margin-top: 12px; border: 1px solid #FFFFFF; color: #FFFFFF; padding: 12px 22px; text-shadow: none; transition: background-color .2s, color .2s; }
.hero-btn:hover { background: #FFFFFF; color: #0A0A0A; }
.hero-text a:focus-visible, .slides-arrow:focus-visible, .slides-dot:focus-visible, .slides-pause:focus-visible { outline-color: #FFFFFF; }

.slides-arrow { position: absolute; top: 50%; margin-top: -22px; z-index: 5; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: #FFFFFF; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.slides-arrow svg { width: 28px; height: 28px; stroke-width: 1.5; filter: drop-shadow(0 1px 6px rgba(0,0,0,.4)); }
.slides-arrow.is-prev { left: 24px; }
.slides-arrow.is-next { right: 24px; }
.slides-ui { position: absolute; left: 0; right: 0; bottom: 24px; z-index: 5; display: flex; justify-content: center; pointer-events: none; }
.slides-dots { display: flex; gap: 4px; pointer-events: auto; }
.slides-dot { width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.slides-dot span { display: block; width: 9px; height: 9px; border-radius: 50%; border: 1px solid #FFFFFF; background: transparent; transition: background-color .2s; }
.slides-dot.is-active span { background: #FFFFFF; }
.slides-pause { position: absolute; right: 24px; bottom: 0; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: #FFFFFF; cursor: pointer; pointer-events: auto; display: flex; align-items: center; justify-content: center; opacity: .75; }
.slides-pause:hover { opacity: 1; }
.slides-pause svg { width: 16px; height: 16px; stroke-width: 2.2; }
.slides-pause .i-play { display: none; fill: currentColor; }
.slides-pause[aria-pressed="true"] .i-pause { display: none; }
.slides-pause[aria-pressed="true"] .i-play { display: block; }
@media (max-width: 700px) {
  .slides-arrow { display: none; }
  .hero-text { gap: 10px; padding: 0 32px; }
  .hero-small, .hero-sub { font-size: 15px; }
  .slides-ui { bottom: 12px; }
  .slides-pause { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
  .slides[data-zoom="1"] .slide img { animation: none !important; }
}

/* ---------- Paginakop ---------- */
.page-head { padding: 24px clamp(16px, 3vw, 40px) clamp(40px, 5vw, 56px); display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.back-link { color: var(--mut); }
.back-link:hover { color: var(--fg); }
.page-title { font-size: clamp(36px, 5vw, 72px); line-height: 1.05; letter-spacing: .06em; text-transform: uppercase; overflow-wrap: anywhere; }
.page-intro { margin: 0; max-width: 520px; font-size: 17px; line-height: 1.6; color: var(--mut); }
.page-narrow { max-width: 1100px; margin: 0 auto; padding: 8px clamp(16px, 3vw, 40px) clamp(64px, 8vw, 96px); display: flex; flex-direction: column; gap: clamp(32px, 4vw, 56px); }
.page-narrow .page-head { padding: 0; }
.page-narrow .page-title { font-size: clamp(36px, 4.4vw, 56px); }
.section-title { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: .06em; text-transform: uppercase; }
.prose { max-width: 900px; font-size: 17px; line-height: 1.7; color: var(--fg2); }
.prose a { color: var(--fg); box-shadow: 0 1px 0 var(--red); }
.prose ul { margin: 0 0 1em; padding-left: 22px; }

/* ---------- Alle albums ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px 24px; }
.tile { display: flex; flex-direction: column; gap: 14px; }
.tile-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ph); }
.tile-img .ph { min-height: 0; }
.tile-img img { transition: transform .6s ease; }
.tile:hover .tile-img img { transform: scale(1.03); }
.tile-title { color: var(--fg); font-size: 13px; align-self: flex-start; }
.tile:hover .tile-title { box-shadow: 0 1px 0 var(--red); }

/* ---------- Album: raster en lightbox ---------- */
.album-grid-wrap { padding: 0 6px; }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.m-item { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ph); cursor: zoom-in; }
.m-item img { transition: opacity .2s; }
.m-item:hover img { opacity: .88; }
@media (max-width: 1100px) { .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; } .album-grid-wrap { padding: 0 4px; } }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.96); color: #FFF; display: flex; flex-direction: column; }
.lightbox[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 13px; letter-spacing: .16em; }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 8px 24px; }
.lb-img { flex: 1; min-width: 0; max-height: 100%; width: auto; height: 100%; object-fit: contain; }
.lb-btn { width: 48px; height: 48px; border: 0; background: transparent; color: #FFF; cursor: pointer; flex: none; display: flex; align-items: center; justify-content: center; }
.lb-btn svg { width: 28px; height: 28px; stroke-width: 1.5; }
.lb-btn:focus-visible { outline-color: #FFF; }
@media (max-width: 700px) { .lb-prev, .lb-next { display: none; } .lb-stage { padding: 0 0 16px; } }
body.lb-open { overflow: hidden; }

/* ---------- Prints ---------- */
.print-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 3vw, 34px); }
.print-photo { aspect-ratio: 3 / 2; overflow: hidden; background: var(--ph); }
.print-photo.is-wide, .print-photo.is-full { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
.print-photo .ph { min-height: 0; }
@media (max-width: 600px) { .print-photos { grid-template-columns: 1fr; } .print-photo.is-wide { aspect-ratio: 3 / 2; } }

/* ---------- Contact ---------- */
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 56px); align-items: start; }
.about-text { display: flex; flex-direction: column; gap: 20px; }
.about-links { display: flex; flex-wrap: wrap; gap: 28px; margin: 0; }
.about-links a { color: var(--fg); box-shadow: 0 1px 0 var(--red); }
.about-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--ph); }
.about-photo .ph { min-height: 0; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } .about-photo { max-width: 420px; } }
.divider { width: 100%; margin: 0; border: 0; border-top: 1px solid var(--line); }

/* ---------- Formulieren ---------- */
.form-wrap { max-width: 760px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.form { display: flex; flex-direction: column; gap: 24px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: Archivo, sans-serif; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg2); }
.req { font-size: 11px; letter-spacing: .04em; text-transform: none; color: var(--mut); }
.field-hint { margin: 0; font-size: 14px; color: var(--mut); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 0 14px; border: 1px solid var(--mut); border-radius: 0; background: transparent; color: var(--fg);
  font-family: Karla, sans-serif; font-size: 16px;
}
.field textarea { padding: 14px; resize: vertical; line-height: 1.5; }
.field input[type="file"] { padding: 12px 14px; border-style: dashed; color: var(--fg2); font-size: 15px; }
.field input::placeholder { color: var(--mut); opacity: .8; }
.field [aria-invalid="true"] { border-color: var(--err); }
.field-error, .form-error { margin: 0; color: var(--err); font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 32px;
  background: transparent; color: var(--fg); border: 1px solid var(--fg); cursor: pointer;
  font-family: Archivo, sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  transition: background-color .2s, color .2s;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.notice { border: 1px solid var(--mut); padding: 32px; text-align: center; font-size: 17px; }

/* ---------- Footer ---------- */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 28px; padding: 44px 40px; font-size: 13px; letter-spacing: .04em; color: var(--mut); }
.footer-links { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-links a { color: var(--fg2); font-size: 12px; }
.footer-links a:hover { color: var(--fg); box-shadow: 0 1px 0 var(--red); }
@media (max-width: 700px) { .site-footer { flex-direction: column; text-align: center; padding: 36px 16px; } .footer-links { justify-content: center; gap: 20px; } }

/* ---------- Kopieermelding ---------- */
.copy-note { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; background: var(--fg); color: var(--bg); padding: 12px 18px; font-size: 14px; max-width: calc(100% - 32px); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Cookiemelding (Google Analytics, enkel na akkoord) ---------- */
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 150; width: min(440px, calc(100% - 32px)); padding: 20px; background: var(--bg); color: var(--fg); border: 1px solid var(--line); box-shadow: 0 12px 36px rgba(0, 0, 0, .25); font-size: 15px; line-height: 1.5; }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 16px; }
.consent a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.consent-btns { display: flex; gap: 10px; }
.consent-btn { flex: 1; min-height: 44px; padding: 0 16px; border: 1px solid var(--fg); background: transparent; color: var(--fg); cursor: pointer; font-family: Archivo, sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.consent-btn:hover { background: var(--fg); color: var(--bg); }
.link-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.link-btn:hover { opacity: .7; }
@media (max-width: 500px) { .consent { left: 8px; bottom: 8px; width: calc(100% - 16px); padding: 16px; } }
.footer-links .link-btn { font-family: Karla, sans-serif; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg2); }
.consent-text p { margin: 0 0 8px; }
.consent-text a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.consent .consent-more { margin: 0 0 16px; }
