/* ==========================================================
   Omzien Uitvaartbegeleiding — statische site
   Kleuren ontleend aan het logo: warm koper en donker bruin.
   ========================================================== */

:root {
  --cream: #faf6f0;
  --sand: #f2e9dd;
  --sand-2: #e8dccb;
  --white: #fff;
  --ink: #2f2620;
  --muted: #6e6259;
  --brown: #5b3d27;
  --copper: #a9602f;
  --copper-dark: #8a4b22;
  --copper-soft: #f5e6d8;
  --gold: #bfa34b;
  --line: rgba(47, 38, 32, .1);
  --radius: 14px;
  --shadow: 0 10px 30px -14px rgba(91, 61, 39, .28);
  --shadow-lg: 0 28px 60px -24px rgba(91, 61, 39, .4);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--copper-dark); text-underline-offset: 3px; }
a:hover { color: var(--brown); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .55em; color: var(--brown); letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.12rem; }
p { margin: 0 0 1.15em; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 780px); margin-inline: auto; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--brown); color: var(--white); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Topbar + header ---------- */

.topbar { background: var(--brown); color: rgba(255, 255, 255, .88); font-size: .9rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--sand); }
.topbar .tb-phone { display: inline-flex; align-items: center; gap: .45rem; }
.topbar svg { width: 16px; height: 16px; }
@media (max-width: 640px) { .topbar .tb-left { display: none; } .topbar .container { justify-content: center; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 240, .94);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 1rem; }
.logo img { height: 66px; width: auto; }

.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .1rem; }
.nav a, .nav .sub-toggle {
  display: block; padding: .5rem .75rem; border-radius: 8px;
  color: var(--ink); text-decoration: none; font: 500 .98rem/1.3 var(--sans);
  background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav .sub-toggle:hover { background: var(--sand); color: var(--brown); }
.nav a[aria-current="page"] { color: var(--copper-dark); }
.nav a.nav-cta { background: var(--copper); color: var(--white); margin-left: .4rem; }
.nav a.nav-cta:hover { background: var(--copper-dark); color: var(--white); }

.has-sub { position: relative; }
.sub-toggle::after { content: ""; display: inline-block; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-3px); margin-left: .5rem; }
.sub {
  list-style: none; margin: 0; padding: .5rem; position: absolute; top: 100%; left: 0; min-width: 210px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--brown); }
.nav-toggle svg { width: 30px; height: 30px; }

@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 84px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; max-height: calc(100vh - 124px); overflow-y: auto; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.5rem; }
  .nav a, .nav .sub-toggle { padding: .8rem 1rem; width: 100%; text-align: left; font-size: 1.05rem; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 1rem; background: none; display: none; }
  .has-sub.open .sub { display: block; }
  .nav a.nav-cta { margin: .5rem 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.5rem; border-radius: 999px; border: 0;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-copper { background: var(--copper); color: var(--white); box-shadow: 0 10px 22px -10px rgba(169, 96, 47, .7); }
.btn-copper:hover { background: var(--copper-dark); color: var(--white); }
.btn-light { background: rgba(255, 255, 255, .16); color: var(--white); border: 1.5px solid rgba(255, 255, 255, .7); }
.btn-light:hover { background: rgba(255, 255, 255, .28); color: var(--white); }
.btn-outline { background: transparent; color: var(--brown); border: 1.5px solid var(--brown); }
.btn-outline:hover { background: var(--brown); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(82vh, 700px); display: flex; align-items: flex-end;
  color: var(--white); padding: 7rem 0 4.5rem;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(47, 38, 32, .05) 0%, rgba(47, 38, 32, .35) 45%, rgba(47, 38, 32, .85) 100%); }
.hero h1 { color: var(--white); max-width: 18ch; text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.hero .lead { max-width: 54ch; font-size: 1.18rem; opacity: .95; margin-bottom: 2rem; }

.eyebrow { display: inline-block; font: 600 .8rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--copper); margin-bottom: 1rem; }
.hero .eyebrow, .page-hero .eyebrow { color: var(--sand); }

.page-hero { position: relative; isolation: isolate; overflow: hidden; color: var(--white); padding: 6rem 0 3.5rem; background: var(--brown); }
.page-hero .hero-bg { opacity: .95; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(47, 38, 32, .88) 0%, rgba(47, 38, 32, .6) 60%, rgba(47, 38, 32, .35) 100%); }
.page-hero h1 { color: var(--white); max-width: 22ch; }
.page-hero p { max-width: 58ch; font-size: 1.15rem; opacity: .92; margin: 0; }
.breadcrumb { font-size: .9rem; margin-bottom: 1rem; opacity: .85; }
.breadcrumb a { color: var(--white); }
.breadcrumb span { margin: 0 .4rem; opacity: .6; }

/* ---------- Sections ---------- */

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-white { background: var(--white); }
.section-sand { background: var(--sand); }
.section-brown { background: var(--brown); color: rgba(255, 255, 255, .88); }
.section-brown h2, .section-brown h3 { color: var(--white); }
.section-head { max-width: 680px; margin-bottom: 2.75rem; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

.photo { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.photo.tall { aspect-ratio: 4 / 5; }
.photo.wide { aspect-ratio: 3 / 2; }
.photo-pair { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; align-items: end; }
.photo-pair img:last-child { margin-bottom: 2.5rem; }

.lead { font-size: 1.2rem; }
.muted { color: var(--muted); }
.quote-line { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.5; color: var(--brown); font-style: italic; }

/* Info strip */
.info-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: -3rem; position: relative; z-index: 2; }
@media (max-width: 800px) { .info-strip { grid-template-columns: 1fr; margin-top: 1.5rem; } }
.info {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.4rem 1.5rem; display: flex; gap: 1rem; align-items: center; text-decoration: none; color: var(--ink);
}
a.info:hover { color: var(--ink); box-shadow: var(--shadow-lg); }
.info small { display: block; color: var(--muted); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.info strong { font-family: var(--serif); font-size: 1.3rem; color: var(--brown); font-weight: 600; }
.icon { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--copper-soft); color: var(--copper-dark); }
.icon svg { width: 22px; height: 22px; }

/* ---------- Cards ---------- */

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .cards, .cards.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards, .cards.three { grid-template-columns: 1fr; } }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: var(--ink); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 1.3rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.card-body p { color: var(--muted); font-size: .98rem; line-height: 1.6; }
.card-date { font-size: .82rem; color: var(--copper); font-weight: 600; letter-spacing: .04em; margin-bottom: .4rem; }
.card-more { margin-top: auto; font-weight: 600; color: var(--copper-dark); display: inline-flex; align-items: center; gap: .4rem; font-size: .95rem; }
.card-more svg { width: 17px; height: 17px; transition: transform .2s; }
.card:hover .card-more svg { transform: translateX(4px); }

/* ---------- Team ---------- */

.team { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.member { display: grid; grid-template-columns: 380px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.member:nth-child(even) { grid-template-columns: 1fr 380px; }
.member:nth-child(even) .member-photo { order: 2; }
@media (max-width: 860px) { .member, .member:nth-child(even) { grid-template-columns: 1fr; } .member:nth-child(even) .member-photo { order: 0; } }
.member-photo img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.member h2 { margin-bottom: .2rem; }
.member .role { color: var(--copper); font-weight: 600; margin-bottom: 1.2rem; display: block; }

/* ---------- Prose ---------- */

.prose { font-size: 1.1rem; }
.prose h2 { font-size: 1.7rem; margin-top: 2.2rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: .5em; }
.prose figure { margin: 2rem 0; }
.prose figure img { border-radius: 12px; box-shadow: var(--shadow); }
.prose .intro, .prose > p:first-child { font-size: 1.2rem; font-family: var(--serif); color: var(--brown); line-height: 1.6; }
.prose.legal > p:first-child { font-family: var(--sans); font-size: 1.05rem; color: var(--ink); }
.prose.legal { font-size: 1rem; }

.gallery { display: grid; gap: .9rem; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 230px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.gallery .wide { grid-column: span 2; }
.gallery .tall { grid-row: span 2; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; } }

.download {
  display: flex; gap: 1rem; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem 1.25rem; text-decoration: none; color: var(--ink); margin: 1.5rem 0;
  transition: border-color .2s, box-shadow .2s;
}
.download:hover { border-color: var(--copper); box-shadow: var(--shadow); color: var(--ink); }
.download strong { display: block; }
.download small { color: var(--muted); }

.video-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; margin: 2rem 0; }
.video-wrap video { width: 100%; }

.note { background: var(--copper-soft); border-left: 4px solid var(--copper); border-radius: 10px; padding: 1.1rem 1.3rem; margin: 2rem 0; }
.note p:last-child { margin: 0; }

/* ---------- Reviews ---------- */

.reviews { columns: 3 320px; column-gap: 1.25rem; }
.review {
  break-inside: avoid; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.6rem 1.6rem 1.4rem; margin: 0 0 1.25rem; position: relative;
}
.review::before { content: "\201C"; position: absolute; top: .1rem; right: 1.2rem; font: 700 4.5rem/1 var(--serif); color: var(--copper-soft); }
.review blockquote { margin: 0; font-size: 1rem; line-height: 1.65; }
.review blockquote p { margin: 0 0 .8em; }
.review footer { margin-top: .6rem; font-family: var(--serif); font-weight: 600; color: var(--brown); font-size: 1.05rem; }
.review.featured blockquote { font-family: var(--serif); font-size: 1.15rem; color: var(--brown); }

/* ---------- Blog article ---------- */

.article-head img { border-radius: var(--radius); box-shadow: var(--shadow-lg); margin: -5rem auto 2.5rem; position: relative; max-height: 520px; width: 100%; object-fit: cover; }
.article-meta { color: var(--copper); font-weight: 600; font-size: .92rem; margin-bottom: 1rem; }
.related { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.5rem; margin-bottom: 1.4rem; }

/* ---------- CTA ---------- */

.cta-band {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 22px;
  color: var(--white); padding: clamp(2.5rem, 6vw, 4rem); background: var(--brown);
}
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(47, 38, 32, .92) 0%, rgba(47, 38, 32, .7) 55%, rgba(47, 38, 32, .25) 100%); }
.cta-band h2 { color: var(--white); max-width: 22ch; }
.cta-band p { max-width: 50ch; opacity: .92; font-size: 1.1rem; margin-bottom: 1.8rem; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: .95fr 1.25fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.panel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.5rem, 4vw, 2.4rem); }
.contact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.2rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .icon { width: 44px; height: 44px; }
.contact-list strong { display: block; color: var(--brown); font-family: var(--serif); font-size: 1.05rem; }
.contact-list address { font-style: normal; }

.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; color: var(--brown); }
.form label small { font-weight: 400; color: var(--muted); }
.form input, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .8rem 1rem; border-radius: 10px; border: 1px solid var(--sand-2); background: var(--cream);
  transition: border-color .2s, background .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--copper); background: var(--white); }
.form textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: .9rem; color: var(--muted); margin: 0; }

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

.site-footer { background: #2a211b; color: rgba(255, 255, 255, .75); padding: 4rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: var(--white); font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--sand); }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-brand p { font-family: var(--serif); font-size: 1.15rem; color: var(--white); font-style: italic; }
.footer-brand .keurmerk { width: 190px; opacity: .9; margin-top: 1.25rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .88rem; color: rgba(255, 255, 255, .55); }
.footer-bottom nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255, 255, 255, .65); }

/* ---------- Motion ---------- */

.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
.mt-2 { margin-top: 2rem; }
.hero .hero-bg { object-position: center 18%; }
.hero::after { background: linear-gradient(90deg, rgba(47, 38, 32, .78) 0%, rgba(47, 38, 32, .45) 45%, rgba(47, 38, 32, 0) 75%), linear-gradient(180deg, rgba(47, 38, 32, 0) 50%, rgba(47, 38, 32, .6) 100%); }
@media (max-width: 700px) { .hero::after { background: linear-gradient(180deg, rgba(47, 38, 32, .1) 0%, rgba(47, 38, 32, .55) 40%, rgba(47, 38, 32, .9) 100%); } }
