/* ============================================================
   TJEZ Photography — modern dark cinematic rebuild
   Shared stylesheet
   ============================================================ */

:root {
  --bg:        #0a0a0b;
  --bg-soft:   #121214;
  --bg-card:   #161618;
  --line:      rgba(255,255,255,0.10);
  --text:      #f4f4f3;
  --muted:     #9a9a9c;
  --muted-2:   #6e6e72;
  --accent:    #e8e6df;
  --max:       1320px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: #fff; color: #000; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: .72rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
}

h1, h2, h3 { font-weight: 600; letter-spacing: -.02em; line-height: 1.04; }

.display {
  font-size: clamp(2.8rem, 9vw, 8.5rem);
  font-weight: 600;
  letter-spacing: -.04em;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 56px);
  transition: background .4s var(--ease), padding .4s var(--ease), backdrop-filter .4s;
}
.nav.scrolled {
  background: rgba(10,10,11,0.72);
  backdrop-filter: blur(18px);
  padding-top: 14px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 700;
  letter-spacing: .18em;
  font-size: .95rem;
  text-transform: uppercase;
}
.brand span { color: var(--muted-2); }

.nav-links {
  display: flex;
  gap: clamp(14px, 2vw, 34px);
  align-items: center;
}
.nav-links a {
  font-size: .82rem;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: lowercase;
  position: relative;
  padding: 4px 0;
  transition: color .3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--text);
  transition: width .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }

/* language toggle */
.lang-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 13px;
  display: flex; align-items: center; gap: 7px;
  cursor: pointer;
  font-size: .72rem; letter-spacing: .12em; font-weight: 600;
  color: var(--muted-2);
  transition: border-color .3s var(--ease);
}
.lang-toggle:hover { border-color: rgba(255,255,255,.28); }
.lang-toggle span[data-lang] { transition: color .3s var(--ease); }
.lang-toggle span[data-lang].active { color: var(--text); }
.lang-toggle .sep { color: var(--muted-2); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span {
  display: block; width: 26px; height: 2px; background: var(--text);
  margin: 5px 0; transition: .3s var(--ease);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 clamp(20px, 5vw, 56px) clamp(48px, 8vh, 96px);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  animation: slowZoom 18s var(--ease) forwards;
}
@keyframes slowZoom { to { transform: scale(1); } }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,.55) 0%, rgba(10,10,11,.15) 35%, rgba(10,10,11,.85) 100%);
}
.scroll-over { position: relative; z-index: 1; }
.hero-inner { position: relative; z-index: 2; max-width: var(--max); width: 100%; margin: 0 auto; }
.hero .eyebrow { margin-bottom: 18px; }
.hero h1 { margin-bottom: 22px; }
.hero p { max-width: 540px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem); }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 2; font-size: .68rem; letter-spacing: .35em; text-transform: uppercase;
  color: var(--muted-2); display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint::after {
  content: ""; width: 1px; height: 42px;
  background: linear-gradient(var(--muted-2), transparent);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse { 0%,100%{opacity:.3; transform:scaleY(.6);} 50%{opacity:1; transform:scaleY(1);} }

/* ---------- page header (interior pages) ---------- */
.page-head {
  padding: clamp(120px, 18vh, 220px) clamp(20px, 5vw, 56px) clamp(40px, 6vh, 80px);
  max-width: var(--max); margin: 0 auto;
}
.page-head h1 { margin: 16px 0 20px; }
.page-head p { color: var(--muted); max-width: 620px; font-size: 1.05rem; }

/* ============================================================
   CATEGORY TILES (homepage)
   ============================================================ */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(70px, 10vh, 130px) clamp(20px, 5vw, 56px);
}
.tile {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-card);
}
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease), filter 1.1s var(--ease);
  filter: brightness(.78) saturate(.95);
}
.tile:hover img { transform: scale(1.06); filter: brightness(.95) saturate(1.05); }
.tile-label {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(22px, 3vw, 40px);
  background: linear-gradient(0deg, rgba(10,10,11,.7) 0%, transparent 60%);
}
.tile-label .num { font-size: .72rem; letter-spacing: .3em; color: var(--muted); }
.tile-label h3 { font-size: clamp(1.6rem, 3vw, 2.6rem); margin-top: 6px; }
.tile-label .go {
  margin-top: 10px; font-size: .8rem; letter-spacing: .1em; color: var(--muted);
  opacity: 0; transform: translateY(8px); transition: .45s var(--ease);
}
.tile:hover .tile-label .go { opacity: 1; transform: translateY(0); }

/* ============================================================
   SECTION INTRO / SPLIT BLOCKS
   ============================================================ */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 6vh, 80px) clamp(20px, 5vw, 56px);
}
.split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
  padding: clamp(50px, 9vh, 120px) clamp(20px, 5vw, 56px);
  max-width: var(--max); margin: 0 auto;
}
.split.reverse { grid-template-columns: 1fr 1.15fr; }
.split.reverse .split-media { order: 2; }
.split-media { overflow: hidden; border-radius: 4px; }
.split-media img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  filter: brightness(.92); transition: transform 1.2s var(--ease);
}
.split-media:hover img { transform: scale(1.05); }
.split-text h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 14px 0 18px; }
.split-text p { color: var(--muted); font-size: 1.05rem; max-width: 46ch; }

/* ============================================================
   MASONRY-ISH GALLERY GRID
   ============================================================ */
.grid {
  columns: 3;
  column-gap: 14px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px) clamp(60px, 9vh, 120px);
}
.grid figure {
  break-inside: avoid;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.grid img {
  width: 100%;
  transition: transform 1.1s var(--ease), filter .6s var(--ease);
  filter: brightness(.85);
}
.grid figure:hover img { transform: scale(1.05); filter: brightness(1); }
.grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 20px 18px;
  background: linear-gradient(0deg, rgba(10,10,11,.78), transparent);
  font-size: .9rem; letter-spacing: .04em;
  opacity: 0; transform: translateY(10px); transition: .45s var(--ease);
}
.grid figure:hover figcaption { opacity: 1; transform: translateY(0); }

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta {
  text-align: center;
  padding: clamp(80px, 14vh, 180px) clamp(20px, 5vw, 56px);
  border-top: 1px solid var(--line);
}
.cta h2 { font-size: clamp(2.2rem, 6vw, 5rem); margin-bottom: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 34px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
  transition: .4s var(--ease);
}
.btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); gap: 18px; }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,80px); align-items: center;
  max-width: var(--max); margin: 0 auto; padding: clamp(120px,18vh,200px) clamp(20px,5vw,56px) 80px; }
.about-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; filter: grayscale(.15) brightness(.95); }
.about-text h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 26px; }
.about-text p { color: var(--muted); font-size: 1.12rem; margin-bottom: 20px; max-width: 52ch; }
.about-text strong { color: var(--text); font-weight: 500; }
.stats { display: flex; gap: clamp(24px,4vw,60px); margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.stat .n { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 600; }
.stat .l { font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); margin-top: 6px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-wrap {
  min-height: 90svh; display: flex; flex-direction: column; justify-content: center;
  max-width: var(--max); margin: 0 auto; padding: clamp(120px,16vh,200px) clamp(20px,5vw,56px) 80px;
}
.contact-wrap h1 { font-size: clamp(3rem, 11vw, 9rem); letter-spacing: -.04em; line-height: .95; }
.contact-mail { display: inline-block; font-size: clamp(1.3rem, 3.5vw, 2.6rem); margin: 30px 0; position: relative; }
.contact-mail::after { content:""; position:absolute; left:0; bottom:2px; height:1px; width:100%; background:var(--text); transform:scaleX(0); transform-origin:left; transition:.5s var(--ease);}
.contact-mail:hover::after { transform: scaleX(1); }
.contact-meta { display: flex; flex-wrap: wrap; gap: 14px 40px; color: var(--muted); font-size: .9rem; margin-top: 20px; }
.contact-meta span { letter-spacing: .05em; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px clamp(20px, 5vw, 56px) 40px;
}
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.footer .brand { font-size: 1.1rem; margin-bottom: 14px; }
.footer-col p { color: var(--muted-2); font-size: .85rem; max-width: 30ch; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-social a { color: var(--muted); font-size: .85rem; letter-spacing: .05em; transition: color .3s; }
.footer-nav a:hover, .footer-social a:hover { color: var(--text); }
.footer-social { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom { max-width: var(--max); margin: 40px auto 0; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--muted-2); font-size: .76rem; letter-spacing: .05em; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid { columns: 2; }
}
@media (max-width: 900px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .about-wrap { grid-template-columns: 1fr; }
  .about-photo { order: -1; }
}

/* ---- Tablet / large phone: switch to mobile nav ---- */
@media (max-width: 820px) {
  .nav { padding: 16px clamp(16px, 5vw, 40px); }
  .nav.scrolled { padding-top: 12px; padding-bottom: 12px; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center;
    background: rgba(10,10,11,.97); backdrop-filter: blur(20px);
    gap: 24px; transform: translateX(100%); transition: transform .5s var(--ease);
    padding: 80px 24px;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.4rem; padding: 8px 0; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center;
    z-index: 110; width: 44px; height: 44px; align-items: center;
  }
  .nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg);}
  .nav-toggle.open span:nth-child(2){ opacity:0;}
  .nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg);}
}

/* ---- Phones ---- */
@media (max-width: 680px) {
  .tiles { grid-template-columns: 1fr; gap: 12px; }
  .tile { aspect-ratio: 3 / 4; }
  .tile-label .go { opacity: 1; transform: none; } /* no hover on touch */
  .grid { columns: 1; }
  .split-text p, .about-text p, .page-head p { max-width: 100%; }
  .footer-inner { flex-direction: column; gap: 26px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
  .stats { flex-wrap: wrap; gap: 22px 32px; }
  .contact-meta { gap: 10px 26px; }
}

/* ---- Small phones ---- */
@media (max-width: 430px) {
  .nav { padding: 14px 18px; }
  .brand { font-size: .88rem; letter-spacing: .14em; }
  .nav-right { gap: 12px; }
  .lang-toggle { padding: 5px 10px; font-size: .68rem; }
  .hero { padding: 0 18px clamp(36px, 8vh, 64px); }
  .hero p { font-size: .98rem; }
  .page-head { padding-left: 18px; padding-right: 18px; }
  .split, .about-wrap, .contact-wrap, .cta { padding-left: 18px; padding-right: 18px; }
  .grid { padding-left: 18px; padding-right: 18px; }
  .stats { gap: 18px 26px; }
  .contact-mail { font-size: clamp(1.15rem, 6vw, 1.6rem); word-break: break-word; }
}

/* Avoid sticky :hover states staying on touch devices */
@media (hover: none) {
  .tile:hover img { transform: none; }
  .grid figure figcaption { opacity: 1; transform: none; }
}

/* ============================================================
   GSAP-DRIVEN MODE (JS adds .gsap-on to <body>)
   When GSAP runs it controls these elements inline, so we
   switch off the CSS animations/transitions to avoid conflicts.
   ============================================================ */
body.gsap-on .hero-bg { animation: none; }
body.gsap-on .reveal { transition: none; }
.about-photo { overflow: hidden; }

/* ============================================================
   ADMIN LAYER (login / add / delete photos)
   ============================================================ */
/* Discreet beheer-link in de footer */
.admin-foot {
  color: var(--muted-2); font-size: .76rem; letter-spacing: .05em;
  border: 1px solid var(--line); border-radius: 100px; padding: 4px 12px;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.admin-foot:hover { color: var(--text); border-color: rgba(255,255,255,.3); }

/* Floating admin bar (alleen zichtbaar wanneer ingelogd) */
.admin-bar {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 200; display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 100px;
  background: rgba(18,18,20,.9); backdrop-filter: blur(18px);
  border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(0,0,0,.45);
  max-width: calc(100vw - 24px); flex-wrap: wrap; justify-content: center;
}
.admin-bar .who { font-size: .76rem; color: var(--muted); letter-spacing: .04em; padding: 0 4px; }
.admin-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 16px; border-radius: 100px; border: 1px solid var(--line);
  background: none; color: var(--text); font: inherit; font-size: .8rem;
  letter-spacing: .06em; transition: .3s var(--ease);
}
.admin-btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.admin-btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.admin-btn.primary:hover { opacity: .85; }
.admin-btn.ghost:hover { background: rgba(255,255,255,.08); color: var(--text); }

/* Delete-knop op door admin toegevoegde foto's */
.grid figure .photo-del {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  background: rgba(10,10,11,.78); border: 1px solid var(--line); cursor: pointer;
  color: #fff; font-size: 1.1rem; line-height: 1; backdrop-filter: blur(6px);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.grid figure .photo-del:hover { background: #c0392b; transform: scale(1.08); }
body.is-admin .grid figure .photo-del { display: flex; }
body.is-admin .grid figure.db-figure { outline: 1px dashed rgba(255,255,255,.18); outline-offset: 2px; }

/* Toast / status melding */
.admin-toast {
  position: fixed; left: 50%; bottom: 86px; transform: translateX(-50%) translateY(12px);
  z-index: 210; padding: 12px 20px; border-radius: 100px;
  background: rgba(18,18,20,.95); border: 1px solid var(--line);
  color: var(--text); font-size: .82rem; letter-spacing: .03em;
  opacity: 0; pointer-events: none; transition: .35s var(--ease); max-width: calc(100vw - 32px); text-align: center;
}
.admin-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.auth-wrap {
  min-height: 100svh; display: flex; align-items: center; justify-content: center;
  padding: 100px 20px 60px;
}
.auth-card {
  width: 100%; max-width: 400px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px;
  padding: clamp(28px, 5vw, 44px);
}
.auth-card .eyebrow { margin-bottom: 14px; }
.auth-card h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin-bottom: 8px; }
.auth-card .sub { color: var(--muted); font-size: .92rem; margin-bottom: 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; }
.field input {
  width: 100%; padding: 13px 15px; border-radius: 8px;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--text);
  font: inherit; font-size: .95rem; transition: border-color .3s var(--ease);
}
.field input:focus { outline: none; border-color: rgba(255,255,255,.35); }
.auth-card .btn { width: 100%; justify-content: center; margin-top: 8px; cursor: pointer; background: none; }
.auth-msg { font-size: .85rem; margin-top: 16px; min-height: 1.2em; }
.auth-msg.err { color: #e07a6b; }
.auth-msg.ok { color: #7fd1a7; }
.auth-back { display: inline-block; margin-top: 22px; color: var(--muted); font-size: .82rem; }
.auth-back:hover { color: var(--text); }
