@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Source+Serif+4:opsz,wght@8..60,600&display=swap');

/* Fotostudio Heno. Colours from their own logo and site CSS, see ../BRAND.md */
:root {
  --red: #d50102;         /* logo script "Studio Heno" + site CSS rgb(213,0,1) */
  --red-deep: #b00002;    /* shade of #d50102 for hover */
  --navy: #192477;        /* logo: building drawing */
  --navy-deep: #111a57;   /* shade of #192477 */
  --ink: #333333;         /* their body text colour rgb(51,51,51) */
  --muted: #5a5d6e;       /* neutral, tinted toward navy */
  --paper: #f4f5fa;       /* tint of #192477 */
  --line: #dde0ec;        /* tint of #192477 */
  --white: #fff;

  --f-display: 'Source Serif 4', Georgia, serif;
  --f-body: 'Open Sans', 'Segoe UI', system-ui, sans-serif;

  --r: 3px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 6rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.7 var(--f-body); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.12; margin: 0; color: var(--navy); text-wrap: balance; letter-spacing: -.01em; }
h3 { line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
::selection { background: #dfe2f3; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--white); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--navy); color: var(--white); padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: .5rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .55rem; min-height: 46px; padding: .7rem 1.25rem; border-radius: var(--r); border: 1px solid var(--red); background: var(--red); color: var(--white); font: 700 .875rem/1.2 var(--f-body); text-decoration: none; cursor: pointer; transition: background .18s, color .18s, border-color .18s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--white); }
.on-dark .btn.ghost { color: var(--white); border-color: rgba(255,255,255,.6); }
.on-dark .btn.ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.textlink { color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-in { display: flex; align-items: center; gap: 1.5rem; min-height: 88px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { height: 66px; width: auto; }
.brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; gap: 1.75rem; }
.nav-link { font-size: .92rem; text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; color: var(--ink); }
.nav-link:hover { border-bottom-color: var(--line); }
.nav-link[aria-current="page"] { border-bottom-color: var(--red); color: var(--navy); }
.menu-btn { display: none; align-items: center; gap: .4rem; background: none; border: 1px solid var(--line); border-radius: var(--r); padding: .55rem .8rem; font: 700 .85rem var(--f-body); color: var(--navy); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav-list[popover] { position: fixed; inset: 88px 0 auto 0; margin: 0; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: var(--white); padding: .5rem 1.25rem 1.25rem; flex-direction: column; gap: 0; }
  .nav-list[popover]:not(:popover-open) { display: none; }
  .nav-list .nav-link { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .header-call .num { display: none; }
}
@media (max-width: 1100px) and (min-width: 961px) { .header-call .num { display: none; } }
@media (max-width: 520px) {
  .header-in { gap: .75rem; min-height: 68px; }
  .brand img { height: 52px; }
  .nav-list[popover] { inset: 68px 0 auto 0; }
  .header-call { padding-inline: .8rem; }
}

/* Hero: copy left, their own shop fronts right */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4.5rem); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; gap: 2.5rem 4rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); max-width: 12em; }
.hero-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 31em; margin: 1.4rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-meta { list-style: none; margin-top: 2.5rem; border-top: 1px solid var(--line); font-size: .95rem; max-width: 32rem; }
.hero-meta li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.hero-meta .k { color: var(--navy); font-weight: 700; }
.shops { margin: 0; display: grid; gap: .6rem; grid-template-columns: repeat(3, 1fr); max-width: 470px; justify-self: end; width: 100%; }
.shops figure { margin: 0; }
.shops img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }
.shops .main { grid-column: 1 / -1; }
.shops .main img { aspect-ratio: 436 / 397; }
.shops figcaption { font-size: .8rem; color: var(--muted); padding-top: .35rem; line-height: 1.35; }
.shops .main figcaption { font-size: .88rem; }
@media (min-width: 960px) { .hero-in { grid-template-columns: 1.15fr 1fr; } }
@media (max-width: 959px) { .shops { justify-self: start; } }
@media (max-width: 420px) { .hero-meta li { grid-template-columns: 1fr; gap: .1rem; } }

.fade-in { opacity: 0; animation: fade .8s var(--ease) .15s forwards; }
.fade-in.late { animation-delay: .4s; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Page head (sub pages) */
.page-head { padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); background: var(--paper); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); max-width: 16em; }
.page-head p { max-width: 36em; margin: 1.2rem 0 0; font-size: 1.1rem; }
.page-head .actions { margin-top: 1.75rem; }

/* Facts */
.facts { border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); }
.facts li { padding: 1.5rem 1.25rem 1.5rem 0; font-size: .92rem; color: var(--muted); }
.facts strong { display: block; font: 600 1.4rem/1.15 var(--f-display); color: var(--navy); margin-bottom: .25rem; }
@media (min-width: 900px) {
  .facts ul { grid-template-columns: repeat(4, 1fr); }
  .facts li + li { border-left: 1px solid var(--line); padding-left: 1.5rem; }
}
@media (max-width: 899px) { .facts li:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid var(--line); } .facts li:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Sections */
.sec { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.sec.tint { background: var(--paper); }
.sec-head { display: grid; gap: 1rem 4rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.sec-head p { color: var(--muted); margin: 0; max-width: 34em; }
@media (min-width: 900px) { .sec-head { grid-template-columns: 1fr 1fr; align-items: end; } }

/* Register list (services) */
.reg { list-style: none; border-top: 1px solid var(--line); }
.reg li { border-bottom: 1px solid var(--line); }
.reg a { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1.5rem; align-items: center; padding: 1.2rem 0; text-decoration: none; }
.reg .r-name { font: 600 clamp(1.45rem, 2.5vw, 2rem)/1.15 var(--f-display); color: var(--navy); }
.reg .r-text { grid-column: 1; font-size: .92rem; color: var(--muted); }
.reg .r-go { grid-column: 2; grid-row: 1 / span 2; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r); color: var(--navy); transition: background .18s, border-color .18s, color .18s; }
.reg .r-go svg { width: 18px; height: 18px; }
.reg a:hover .r-go { background: var(--red); border-color: var(--red); color: var(--white); }
.reg a:hover .r-name { text-decoration: underline; text-decoration-thickness: 1px; }
@media (min-width: 900px) {
  .reg a { grid-template-columns: 19rem 1fr auto; min-height: 84px; }
  .reg .r-text { grid-column: 1; grid-row: 1; padding-right: 2rem; }
  .reg .r-name { grid-column: 2; grid-row: 1; }
  .reg .r-go { grid-column: 3; grid-row: 1; }
}

/* Split blocks */
.split { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; } }
.split h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 1.2rem; }
.rows { list-style: none; border-top: 1px solid var(--line); margin: 1.5rem 0 2rem; }
.rows li { border-bottom: 1px solid var(--line); padding: .75rem 0; text-wrap: pretty; }
.rows strong { color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.note { font-size: .9rem; color: var(--muted); }

/* Voor/na slider with their own reproduction work */
.compare { --p: 50%; position: relative; margin: 0; max-width: 464px; width: 100%; border-radius: var(--r); overflow: hidden; background: var(--paper); justify-self: center; }
.compare img { width: 100%; height: auto; user-select: none; }
.compare .after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--p)); }
.compare .after img { height: 100%; object-fit: cover; }
.compare .bar { position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; margin-left: -1px; background: var(--white); box-shadow: 0 0 0 1px rgba(17,26,87,.25); pointer-events: none; }
.compare .bar::after { content: ""; position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--white); border: 2px solid var(--navy); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare .tag { position: absolute; top: .6rem; background: var(--white); color: var(--navy); font-size: .78rem; font-weight: 700; padding: .15rem .5rem; border-radius: 2px; pointer-events: none; }
.compare .tag.l { left: .6rem; }
.compare .tag.r { right: .6rem; }
.compare:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 3px; }
.compare-cap { font-size: .85rem; color: var(--muted); padding-top: .6rem; text-align: center; }

/* Pairs (afdrukken page) */
.pairs { list-style: none; display: grid; gap: 2rem; }
.pairs li { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; align-items: start; }
.pairs figure { margin: 0; }
.pairs img { width: 100%; border-radius: var(--r); }
.pairs figcaption { font-size: .82rem; color: var(--muted); padding-top: .3rem; }
@media (min-width: 900px) { .pairs { grid-template-columns: repeat(3, 1fr); } }

/* Branches */
.branches { list-style: none; border-top: 1px solid var(--line); }
.branch { display: grid; gap: 1.25rem 2.5rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.branch img { width: 204px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }
.branch h3 { font-size: 1.6rem; }
.branch .sub { color: var(--muted); font-size: .92rem; margin: .2rem 0 0; }
.branch .kv li { grid-template-columns: 7.5rem 1fr; padding: .55rem 0; }
.branch .extra { font-size: .92rem; margin: 0; }
.hours { list-style: none; font-size: .92rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; }
.hours li span:first-child { color: var(--muted); }
@media (min-width: 960px) {
  .branch { grid-template-columns: 204px minmax(0, 1fr) 15rem; grid-template-areas: "img head hours" "img kv hours"; gap: .9rem 3rem; align-items: start; }
  .branch > img { grid-area: img; }
  .branch > div { grid-area: head; }
  .branch > .kv { grid-area: kv; }
  .branch > .hours { grid-area: hours; }
}
@media (min-width: 620px) and (max-width: 959px) { .branch { grid-template-columns: 204px minmax(0, 1fr); } .branch > :nth-child(n+3) { grid-column: 2; } }

/* Contact rows */
.kv { list-style: none; border-top: 1px solid var(--line); }
.kv li { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.kv .k { font-weight: 700; font-size: .9rem; color: var(--navy); }
.kv a { text-decoration: none; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.kv a:hover { border-bottom-color: var(--ink); }
.kv .v span { display: block; font-size: .9rem; color: var(--muted); }
@media (max-width: 560px) { .kv li, .branch .kv li { grid-template-columns: 1fr; gap: .1rem; } }

/* Where can I go: matrix */
.matrix-wrap { overflow-x: auto; }
.matrix { width: 100%; border-collapse: collapse; font-size: .92rem; }
.matrix th, .matrix td { text-align: left; padding: .75rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.matrix thead th { font-size: .85rem; color: var(--navy); border-bottom: 2px solid var(--navy); }
.matrix tbody th { font-weight: 600; color: var(--ink); }
.matrix td { color: var(--muted); }
.matrix .yes { color: var(--navy); font-weight: 700; }

/* Detail rows (pasfoto / fotografie / afdrukken) */
.detail { display: grid; gap: 1.5rem 4rem; padding: clamp(2.25rem, 4.5vw, 3.75rem) 0; border-top: 1px solid var(--line); }
.detail:first-child { border-top: 0; padding-top: 0; }
.detail h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.detail .rows { margin: 1.25rem 0 1.5rem; }
.detail figure { margin: 0; }
.detail figure img { border-radius: var(--r); }
.detail figcaption { font-size: .85rem; color: var(--muted); padding-top: .5rem; }
.detail .side { max-width: 436px; }
@media (min-width: 900px) {
  .detail { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .detail .side { justify-self: end; width: 100%; }
}

/* Studio work strip: their own photos, kept near their real size */
.strip { list-style: none; display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
.strip figure { margin: 0; }
.strip img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--r); background: var(--paper); }
.strip figcaption { font-size: .85rem; color: var(--muted); padding-top: .4rem; }
@media (min-width: 620px) { .strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .strip { grid-template-columns: repeat(6, 1fr); } }

/* Type list (fotografie) */
.types { list-style: none; display: grid; border-top: 1px solid var(--line); }
.types li { padding: 1.4rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .4rem 3rem; }
.types h3 { font-size: 1.4rem; }
.types p { margin: 0; }
.types .where { font-size: .88rem; color: var(--muted); }
@media (min-width: 900px) { .types li { grid-template-columns: 17rem 1fr; } .types .where { grid-column: 2; } }

.sizes { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 1.25rem; }
.sizes li { border: 1px solid var(--line); border-radius: var(--r); padding: .2rem .55rem; font-size: .88rem; font-variant-numeric: tabular-nums; }

/* Form */
.form { display: grid; gap: 1.1rem; }
.form .two { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form .two { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; color: var(--navy); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: .75rem .85rem; border: 1px solid #a7abc4; border-radius: var(--r); background: var(--white); color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: #a3261b; }
.field .err { display: none; color: #a3261b; font-size: .85rem; margin-top: .3rem; }
.field input:user-invalid + .err, .field textarea:user-invalid + .err, .field select:user-invalid + .err { display: block; }
.form-demo { font-size: .85rem; color: var(--muted); margin: 0; }
.form-ok { padding: 2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.form-ok h3 { font-size: 1.5rem; margin-bottom: .6rem; }
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 5rem; } }

/* CTA band */
.cta { background: var(--navy); color: var(--white); padding: clamp(3.5rem, 6vw, 5rem) 0; }
.cta-in { display: grid; gap: 2rem; align-items: end; }
.cta h2 { color: var(--white); font-size: clamp(1.9rem, 3.8vw, 3rem); }
.cta p { color: rgba(255,255,255,.84); margin: 1rem 0 0; max-width: 34em; }
@media (min-width: 900px) { .cta-in { grid-template-columns: 1.3fr 1fr; } .cta .actions { justify-content: flex-end; } }

/* Footer */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 4rem 0 6rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 2.5rem; }
.footer-brand img { height: 70px; width: auto; margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); max-width: 22em; }
.site-footer h2 { font: 700 .8rem/1 var(--f-body); color: var(--muted); margin-bottom: .9rem; letter-spacing: .02em; }
.site-footer ul { list-style: none; display: grid; gap: .6rem; }
.site-footer ul a { text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.site-footer ul a:hover { text-decoration-color: var(--ink); }
.f-note { display: block; font-size: .85rem; color: var(--muted); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.1fr 1.1fr; } .site-footer { padding-bottom: 3rem; } }

/* Mobile call bar */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s var(--ease); }
.callbar.show { transform: none; }
.callbar .btn { justify-content: center; }
@media (min-width: 900px) { .callbar { display: none; } }

/* Reveal */
[data-aos] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
[data-aos].aos-animate { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { animation: none; opacity: 1; }
  [data-aos] { opacity: 1; transform: none; transition: none; }
  .callbar { transition: none; }
}
.sr-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.photo { margin: 0; max-width: 436px; }
.photo img { border-radius: var(--r); }
@media (min-width: 900px) { .split > .photo { justify-self: center; } }
.detail .side.small { max-width: 204px; }
.h-md { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.mt { margin-top: 1rem; }
.h-sm { font-size: 1.45rem; margin-bottom: .75rem; }
.extra-top { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 2rem; border-top: 1px solid var(--line); align-items: start; }
.extra-top p { margin: 0; }
.photo.tall { max-width: 360px; }
.photo figcaption { font-size: .85rem; color: var(--muted); padding-top: .5rem; }
