/* =========================================================
   Sabina Visuals
   - Logo: "sabina visuals." in een schreefletter (Instrument Serif)
   - Tekst: San Francisco op Apple-apparaten, anders Inter (zelf gehost)
   - Zwart voor het portfolio, licht voor contact, beige als accent
   - Glas: menubalk, naamlabels, prijskaarten en de knoppen in de vergroting
   ========================================================= */

@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/instrument-serif-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin-wght.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #F5F4F1;
  --ink: #1D1D1F;
  --ink-2: #6E6E73;
  --line: rgba(0, 0, 0, .08);

  --tile: #161617;
  --on-dark: #F5F5F7;
  --on-dark-2: #A1A1A6;

  --beige: #D9C6A7;
  --beige-licht: #E8DCC7;
  --beige-ink: #7D6240;   /* beige als tekst op licht: donkerder voor leesbaarheid */
  --fout: #B3261E;

  --glas-rand: rgba(255, 255, 255, .16);
  --glas-licht: inset 0 1px 0 rgba(255, 255, 255, .16);
  --blur: blur(22px) saturate(180%);
  --vinkje: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1280px;
  --rand: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  --ease: cubic-bezier(.25, .1, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #000;
  color: var(--on-dark);
  font: 400 17px/1.5 var(--sans);
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--beige); color: var(--ink); }
:focus-visible { outline: 2px solid var(--beige); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--beige); color: var(--ink); padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- knoppen en links ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px;
  background: var(--beige); color: var(--ink);
  border: 0; border-radius: 999px;
  font: 600 16px/1 var(--sans); letter-spacing: -.01em;
  text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), transform .2s var(--ease);
}
.pill:hover { background: var(--beige-licht); }
.pill:active { transform: scale(.97); }
.pill-sm { padding: 10px 16px; font-size: 14px; }

.more {
  display: inline-flex; align-items: center; gap: .2em;
  color: var(--beige); font-size: 17px; text-decoration: none;
}
.more::after { content: '›'; font-size: 1.3em; line-height: 0; transition: transform .25s var(--ease); }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
.more:hover::after { transform: translateX(3px); }

/* label van glas, op foto's en in de vergroting */
.chip {
  position: absolute; left: 14px; bottom: 14px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(28, 28, 30, .4);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glas-rand);
  box-shadow: var(--glas-licht);
  color: #fff; font: 500 14px/1 var(--sans);
}

/* ---------- menubalk (zwevend glas) ---------- */
.bar {
  position: fixed; z-index: 50;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 20px), 960px); height: 58px;
  display: flex; align-items: center; gap: 28px;
  padding: 0 9px 0 24px;
  border-radius: 999px;
  background: rgba(24, 24, 26, .55);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glas-rand);
  box-shadow: var(--glas-licht), 0 10px 30px rgba(0, 0, 0, .25);
  color: var(--on-dark);
}
.mark {
  display: inline-flex; flex-direction: column;
  font: 400 21px/.78 var(--serif); letter-spacing: -.02em;
  text-decoration: none; margin-right: auto;
}
.mark em { padding-left: .1em; }
.nav { display: flex; gap: 28px; }
.nav a { font-size: 14px; color: rgba(245, 245, 247, .75); text-decoration: none; transition: color .2s; }
.nav a:hover { color: #fff; }

/* ---------- hero ---------- */
.hero { padding: clamp(128px, 17vh, 176px) 0 clamp(72px, 9vw, 120px); text-align: center; overflow: hidden; }
.hero-text { padding: 0 var(--gutter); }
.hero h1 {
  font: 700 clamp(40px, 10.5vw, 128px)/.98 var(--sans);
  letter-spacing: -.045em;
  text-wrap: balance;
  padding-bottom: .06em;
  background: linear-gradient(180deg, #fff 30%, var(--beige) 105%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-text > p {
  margin: 20px auto 0; max-width: 28em;
  font-size: clamp(19px, 1.7vw, 24px); line-height: 1.35; color: var(--on-dark-2);
  text-wrap: balance;
}
.actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 30px; margin-top: 34px; }

.strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  max-width: var(--max); margin: clamp(56px, 7vw, 88px) auto 0; padding: 0 var(--gutter);
}
.shot {
  position: relative; display: block; aspect-ratio: 3 / 4;
  border-radius: 24px; overflow: hidden; isolation: isolate;
  background: var(--tile);
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.shot:hover img { transform: scale(1.03); }

/* ---------- koppen per sectie ---------- */
.head { max-width: var(--max); margin: 0 auto clamp(40px, 5vw, 64px); padding: 0 var(--gutter); }
.head h2, .contact-text h2 { font: 700 clamp(44px, 6.4vw, 88px)/1 var(--sans); letter-spacing: -.045em; }
.head p { margin-top: 16px; max-width: 32em; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.4; color: var(--on-dark-2); }

/* ---------- portfolio ---------- */
.work { padding: clamp(24px, 4vw, 56px) 0 clamp(80px, 9vw, 128px); }
.series {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; flex-direction: column; gap: clamp(56px, 7vw, 96px);
}
.serie-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.serie-head h3 { font: 600 clamp(26px, 2.6vw, 34px)/1.1 var(--sans); letter-spacing: -.03em; }
.serie-head p { color: var(--on-dark-2); font-size: 15px; white-space: nowrap; }

.serie-grid { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 12px; }
.serie-grid[data-vorm="staand"]   { --ar: 3 / 4; }
.serie-grid[data-vorm="liggend"]  { --ar: 3 / 2; }
.serie-grid[data-vorm="vierkant"] { --ar: 1 / 1; }
.serie-grid.bento { grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; }
.bento .tile:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.bento.spiegel .tile:first-child { grid-column: 3 / span 2; }

.tile {
  position: relative; display: block; width: 100%;
  margin: 0; padding: 0; border: 0; font: inherit; color: inherit;
  aspect-ratio: var(--ar, 3 / 4);
  border-radius: 18px; overflow: hidden; isolation: isolate;
  background: var(--tile); cursor: zoom-in;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover img { transform: scale(1.03); }
.tile.mist { cursor: default; }
.ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--on-dark-2); font-size: 14px; }

.work-more { max-width: var(--max); margin: clamp(48px, 6vw, 72px) auto 0; padding: 0 var(--gutter); }

/* ---------- prijzen: drie pakketten als glazen kaarten op een vervaagde foto ---------- */
.prices { position: relative; isolation: isolate; overflow: hidden; padding: clamp(80px, 9vw, 128px) 0 clamp(96px, 12vw, 160px); }
.prices-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  /* sterk vervaagd: een kleurvlak waar het glas van de kaarten op ligt */
  filter: blur(56px) saturate(1.4);
  transform: scale(1.25);
}
.prices::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(#000, rgba(0, 0, 0, .35) 25%, rgba(0, 0, 0, .2) 65%, #000);
}
.cards {
  list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--max);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 30px 28px 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%);
  border: 1px solid var(--glas-rand);
  box-shadow: var(--glas-licht), 0 24px 60px rgba(0, 0, 0, .3);
}
.card-top { background: rgba(255, 255, 255, .13); border-color: rgba(217, 198, 167, .75); }
.tag {
  position: absolute; top: 24px; right: 24px;
  padding: 7px 12px; border-radius: 999px;
  background: var(--beige); color: var(--ink);
  font: 600 12px/1 var(--sans);
}
.card h3 { font: 600 22px/1.2 var(--sans); letter-spacing: -.02em; color: rgba(245, 245, 247, .85); }
.price { margin: 12px 0 26px; font-size: 15px; color: rgba(245, 245, 247, .6); }
.price b { font: 700 54px/1 var(--sans); letter-spacing: -.045em; color: #fff; margin-right: 4px; }
.incl { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.incl li {
  position: relative;
  padding: 13px 0 13px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-size: 16px; color: rgba(245, 245, 247, .85);
}
.incl li::before {
  content: ''; position: absolute; left: 1px; top: 50%;
  width: 15px; height: 15px; transform: translateY(-50%);
  background: var(--beige);
  -webkit-mask: var(--vinkje) center / contain no-repeat; mask: var(--vinkje) center / contain no-repeat;
}
.card .pill { margin-top: auto; width: 100%; }
.pill-glas { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px var(--glas-rand); }
.pill-glas:hover { background: rgba(255, 255, 255, .2); }
.cards-note {
  max-width: var(--max); margin: 28px auto 0; padding: 0 var(--gutter);
  font-size: 15px; color: rgba(245, 245, 247, .6);
}

/* ---------- contact (licht) ---------- */
.contact {
  background: var(--bg); color: var(--ink);
  padding: clamp(96px, 12vw, 160px) var(--rand);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px); align-items: start;
}
.contact-text p { margin-top: 16px; max-width: 24em; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.4; color: var(--ink-2); }
.contact-text h2 + p { margin-top: 20px; }
.contact-text a { color: var(--beige-ink); }

.form {
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(22px, 3.5vw, 40px);
  background: #fff; border-radius: 28px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 30px 60px -30px rgba(0, 0, 0, .18);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font: 500 14px/1.2 var(--sans); }
.field label span { color: var(--ink-2); font-weight: 400; margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: 400 17px/1.35 var(--sans); color: var(--ink);
  background: #F5F5F7;
  border: 1px solid transparent; border-radius: 12px;
  padding: 13px 14px;
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 132px; }
.field select {
  cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236E6E73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.field input::placeholder, .field textarea::placeholder { color: #A1A1A6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background-color: #fff;
  border-color: var(--beige-ink); box-shadow: 0 0 0 4px rgba(217, 198, 167, .45);
}
.field.invalid input, .field.invalid textarea { border-color: var(--fout); background-color: #FDF4F3; }
.btn-submit { align-self: flex-start; gap: 9px; margin-top: 6px; }
.btn-submit svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.form-status { min-height: 1.5em; font-size: 15px; }
.form-status.ok { color: var(--ink); }
.form-status.fout { color: var(--fout); }

/* ---------- footer ---------- */
.foot {
  background: var(--bg); color: var(--ink-2);
  padding: 20px var(--rand) 36px;
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  font-size: 13px;
  border-top: 1px solid var(--line);
}
.foot p:first-child { margin-right: auto; }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---------- vergroting ---------- */
.lightbox {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none;
  width: 100vw; height: 100dvh;
  background: rgba(0, 0, 0, .86);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  color: #fff;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-columns: 88px 1fr 88px; align-items: center; animation: fade .3s var(--ease); }
.lightbox figure {
  margin: 0; height: 100dvh; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 64px 0 28px;
}
.lightbox img { max-height: calc(100dvh - 140px); max-width: 100%; width: auto; object-fit: contain; border-radius: 14px; }
.lightbox .chip { position: static; margin-top: 18px; }
.lb-btn {
  width: 48px; height: 48px; justify-self: center;
  display: grid; place-items: center;
  border-radius: 50%; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glas-rand);
  box-shadow: var(--glas-licht);
  transition: background .2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { position: absolute; top: 16px; right: 16px; z-index: 2; }
@keyframes fade { from { opacity: 0; } }

/* ---------- inkomen bij scrollen (alleen als JS draait) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- tablet ---------- */
@media (max-width: 860px) {
  /* pakketten naast elkaar om opzij te vegen; Plus staat bij het laden in het midden (main.js) */
  .cards {
    display: flex; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 4px var(--gutter) 28px; scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 min(78%, 340px); scroll-snap-align: center; padding: 26px 22px 22px; }
  .cards-note { margin-top: 4px; }
  .contact { grid-template-columns: 1fr; }
}

/* ---------- mobiel ---------- */
@media (max-width: 700px) {
  html { scroll-padding-top: 72px; }
  .nav { display: none; }
  .bar { top: 10px; height: 54px; padding: 0 7px 0 20px; }
  .mark { font-size: 20px; }

  .strip {
    display: flex; gap: 10px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .strip::-webkit-scrollbar { display: none; }
  .shot { flex: 0 0 76%; scroll-snap-align: start; border-radius: 20px; }

  /* elke serie als rij om opzij te vegen, zodat je meerdere foto's tegelijk ziet */
  .series { gap: 44px; }
  .serie-head { margin-bottom: 14px; }
  .serie-grid, .serie-grid.bento {
    display: flex; gap: 8px;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .serie-grid::-webkit-scrollbar { display: none; }
  .tile, .bento .tile:first-child { flex: 0 0 42%; aspect-ratio: var(--ar); scroll-snap-align: start; border-radius: 14px; }

  .field-row { grid-template-columns: 1fr; }
  /* foto over de volle breedte, pijlen onderin naast het label */
  .lightbox[open] { grid-template-columns: 1fr; }
  .lightbox figure { padding: 64px 12px 96px; }
  .lightbox img { max-height: calc(100dvh - 200px); }
  .lb-prev, .lb-next { position: absolute; bottom: max(24px, env(safe-area-inset-bottom)); }
  .lb-prev { left: 16px; }
  .lb-next { right: 16px; }
  .lb-close { top: 12px; right: 12px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .tile img, .shot img { transition: none; transform: none !important; }
}
