/* ---------------------------------------------------------
   Inthefootstepswithjesus — static replica stylesheet
   Typography/layout measured against the original Webnode site:
     h1  PT Serif    400   32px (mobile) -> 55px (desktop)
     h2  Metropolis  400   22px          -> 29px
     p   Metropolis  400   16px          -> 18px, rgba(255,255,255,.8)
     bq  PT Serif    400   22px          -> 26px, rgba(255,255,255,.7), left
     nav Metropolis  500   14px
     logo Josefin Sans 500 18px          -> 32px
   Outer container 920px (matches the <hr> width), text column 800px.
   --------------------------------------------------------- */

@font-face {
  font-family: "PT Serif";
  src: url("../fonts/pt-serif-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PT Serif";
  src: url("../fonts/pt-serif-bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Metropolis";
  src: url("../fonts/metropolis-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Metropolis";
  src: url("../fonts/metropolis-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
/* Variable font, 100-700. Webnode applies these metric overrides too. */
@font-face {
  font-family: "Josefin Sans";
  src: url("../fonts/josefin-sans-var.woff2") format("woff2");
  font-weight: 100 700; font-style: normal; font-display: swap;
  size-adjust: 95%; ascent-override: 95%;
}

:root {
  --bg: #000000;
  --heading: #ffffff;
  --text: rgba(255, 255, 255, 0.8);
  --quote: rgba(255, 255, 255, 0.7);
  --line: rgba(255, 255, 255, 0.4);
  --wrap: 920px;
  --col: 800px;
  --sans: "Metropolis", "Segoe UI", Arial, sans-serif;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --logo-font: "Josefin Sans", "Segoe UI", Arial, sans-serif;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Outer band: 920px of content + 10px gutters (matches the original rule width) */
.wrap {
  max-width: calc(var(--wrap) + 20px);
  margin: 0 auto;
  padding: 0 10px;
}
/* Inner text column (800px in the original) */
.col {
  max-width: var(--col);
  margin: 0 auto;
}

/* Headings sit in the 800px text column even inside a full 920px band */
h1, h2, h3 {
  margin: 0 auto 1rem;
  max-width: var(--col);
  color: var(--heading);
  text-align: center;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 1.404rem + 2.541vw, 3.4375rem); /* 32 -> 55px @1280 */
  line-height: 1.3;
}
h2 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.375rem, 1.194rem + 0.7735vw, 1.8125rem); /* 22 -> 29px @1280 */
  line-height: 1.35;
}
h3 {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.25rem, 1.19rem + 0.19vw, 1.375rem); /* 20 -> 22px */
  line-height: 1.4;
}

p {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 0.948rem + 0.221vw, 1.125rem); /* 16 -> 18px @1280 */
  line-height: 1.6;
  text-align: center;
  color: var(--text);
}

hr.divider {
  border: none;
  height: 1px;
  background: var(--line);
  width: calc(100% - 20px); /* keep the 10px gutters on narrow screens */
  max-width: var(--wrap);
  margin: 2.5rem auto;
}
/* inside .wrap the gutters already exist, so span the full content box */
.wrap > hr.divider { width: 100%; }

.section { position: relative; padding: 2.5rem 0; }
.section-inner { position: relative; z-index: 2; }

/* Full-bleed section background image with dark overlay */
.has-bg { overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
/* Background treatments, matching the original's overlay/filter classes */
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-color: rgba(0, 0, 0, 0.6); /* .overlay-black */
}
.hero-bg.overlay-orange::after { background-color: rgba(115, 86, 43, 0.3); }
.hero-bg.fx-grayscale-dark::after { background-color: transparent; }
.hero-bg.fx-grayscale-dark img { filter: grayscale(1) brightness(0.8); }

/* ---------------- Header / nav ---------------- */

.site-header { position: relative; background: #000; overflow: hidden; }

.nav-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2.5rem 10px;
}

.logo {
  font-family: var(--logo-font);
  font-weight: 500;
  font-size: clamp(1.125rem, 0.7625rem + 1.547vw, 2rem); /* 18 -> 32px @1280 */
  letter-spacing: -0.03em;
  color: var(--heading);
  line-height: 1.5;
  white-space: nowrap;
}

.menu-toggle {
  background: none; border: none; cursor: pointer;
  width: 32px; height: 24px; position: relative; padding: 0; z-index: 60;
  flex: 0 0 auto;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 100%; height: 2px; background: var(--heading);
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}
.menu-toggle span { top: 11px; }
.menu-toggle span::before { top: -9px; }
.menu-toggle span::after { top: 9px; }
.nav-open .menu-toggle span { background: transparent; }
.nav-open .menu-toggle span::before { top: 0; transform: rotate(45deg); background: #111; }
.nav-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); background: #111; }

.nav-menu {
  position: fixed; inset: 0; z-index: 50;
  background: #fff;
  display: flex; flex-direction: column;
  padding: 5.5rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform .3s ease;
  overflow-y: auto;
}
.nav-open .nav-menu { transform: translateX(0); }

.nav-menu ul { list-style: none; margin: 0; padding: 0; }
.nav-menu li { border-bottom: 1px solid #e2e2e2; }
.nav-menu a {
  display: block; padding: 1.1rem .25rem;
  font-family: var(--sans); font-size: 1.1rem; color: #444;
}
.nav-menu a:hover, .nav-menu li.current a { color: #000; font-weight: 500; }

@media (min-width: 850px) {
  .menu-toggle { display: none; }
  .nav-menu {
    position: static; inset: auto; background: none;
    transform: none; flex-direction: row; align-items: center;
    padding: 0; overflow: visible;
  }
  .nav-menu ul { display: flex; align-items: center; }
  .nav-menu li { border-bottom: none; display: flex; align-items: center; }
  /* Slash delimiters between menu items, as on the original */
  .nav-menu li + li::before {
    content: "/";
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--sans);
    font-size: 14px;
    margin: 0 .55rem;
  }
  .nav-menu a {
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
  }
  .nav-menu a:hover, .nav-menu li.current a { color: #fff; font-weight: 500; }
}

/* ---------------- Blockquote (homepage intro) ---------------- */

.quote {
  --quote-pad: 4.2rem;
  max-width: var(--col);
  margin: 0 auto;
  position: relative;
  padding: var(--quote-pad) 0 var(--quote-pad) 3.25rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.375rem, 1.271rem + 0.442vw, 1.625rem); /* 22 -> 26px @1280 */
  line-height: 1.35;
  color: var(--quote);
  text-align: left;
}
.quote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: calc(var(--quote-pad) + .62em); /* sit on the first text line */
  font-family: var(--serif);
  font-size: 3.4em;
  line-height: 0;
  color: rgba(255, 255, 255, 0.35);
}

.intro { text-align: justify; }

/* ---------------- Text links / "buttons" ----------------
   The original renders these as plain text links: Metropolis
   20px/400, white, no border, no background. */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 0.985rem + 0.3315vw, 1.25rem); /* 17 -> 20px @1280 */
  font-weight: 400;
  color: var(--heading);
  padding: 17px 0;
}
.btn:hover { text-decoration: underline; }

.btn-stack {
  display: flex; flex-direction: column; align-items: center;
  gap: 60px; margin-top: 1.5rem;
}

/* ---------------- Page icon / portrait ---------------- */

.page-icon { width: min(73%, 672px); margin: 0 auto 1.5rem; }
.portrait  { width: min(52%, 477px); margin: 0 auto 1.5rem; }

/* ---------------- Homepage masonry gallery ----------------
   3 columns desktop / 2 columns mobile, natural aspect ratios.
   Columns are filled by masonry.js (shortest-column first) to
   mirror the original's packing; CSS columns are the no-JS
   fallback. */

.masonry { display: flex; gap: 20px; align-items: flex-start; margin: 0 auto; }
.masonry-col { flex: 1; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.masonry a { display: block; }
.masonry img { width: 100%; height: auto; }
.masonry a:hover img { opacity: .9; }

/* 3 x 271px + 2 x 30px gap = 873px, matching the original gallery block */
@media (min-width: 850px) {
  .masonry { gap: 30px; max-width: 873px; margin-left: 0; }
  .masonry-col { gap: 30px; }
}

/* Fallback before masonry.js runs / if JS is unavailable */
.masonry.no-js { display: block; columns: 2; column-gap: 20px; }
.masonry.no-js > a { break-inside: avoid; margin-bottom: 20px; }
@media (min-width: 850px) {
  .masonry.no-js { columns: 3; column-gap: 30px; }
  .masonry.no-js > a { margin-bottom: 30px; }
}

/* ---------------- Justified gallery (Kunst page) ----------------
   Rows of fixed ~200px height with natural widths. */

.justified { display: flex; flex-wrap: wrap; gap: 20px; --row-h: 120px; }
@media (min-width: 850px) { .justified { --row-h: 200px; } }
/* Each item declares its aspect ratio inline as --ar (width/height);
   flex-grow proportional to --ar makes every row fill the container. */
.justified a {
  display: block;
  height: var(--row-h);
  flex: var(--ar) 1 calc(var(--ar) * var(--row-h));
}
.justified img { width: 100%; height: 100%; object-fit: cover; }
/* Absorbs the slack so a short last row keeps its natural size */
.justified::after { content: ""; flex-grow: 1e6; }

/* ---------------- Carousel (Kunst page sliders) ---------------- */

.carousel { position: relative; }
.carousel-track {
  display: flex; gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > figure {
  flex: 0 0 100%; margin: 0; scroll-snap-align: center;
  display: flex; align-items: center; justify-content: center;
  height: 380px;
}
@media (min-width: 850px) { .carousel-track > figure { height: 713px; } }
.carousel-track img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }

.carousel-nav {
  display: flex; justify-content: center; align-items: center;
  gap: 1.25rem; margin-top: 1rem;
}
.carousel-arrow {
  background: none; border: 1px solid var(--line); color: var(--heading);
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  font-size: 1.1rem; line-height: 1; padding: 0;
}
.carousel-arrow:hover { border-color: #fff; }
.carousel-dots { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.carousel-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.35); padding: 0; cursor: pointer;
}
.carousel-dots button.active { background: #fff; }

/* ---------------- Portfolio tiles ---------------- */

.tile-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem; justify-items: center;
}
.tile {
  position: relative; display: block; overflow: hidden;
  width: min(261px, 100%); aspect-ratio: 261 / 522;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* translucent label bar pinned to the bottom of each tile */
.tile h3 {
  position: absolute; left: 0; right: 0; bottom: 0;
  margin: 0; max-width: none;
  background: rgba(255, 255, 255, 0.85);
  color: #393939;
  font-size: 17.2px; font-weight: 500;
  padding: 15px 10px 5px;
}
@media (min-width: 850px) {
  .tile-grid { grid-template-columns: repeat(4, 1fr); gap: 29.5px; justify-items: stretch; }
  .tile { width: 100%; aspect-ratio: 208 / 384; }
  .tile h3 { font-size: 20px; padding: 30px 20px 25px; }
}

/* ---------------- Home CTA tiles ---------------- */

.cta-tiles { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center; }
@media (min-width: 700px) { .cta-tiles { grid-template-columns: repeat(3, 1fr); } }
.cta-tiles img { width: 100%; }

/* ---------------- Video embeds ---------------- */

.video-embed {
  position: relative; width: 100%; padding-bottom: 56.25%;
  margin-bottom: 2.4rem;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------------- Story covers (Video's/verhalen) ---------------- */

.story-covers { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 700px) { .story-covers { grid-template-columns: repeat(2, 1fr); } }
.story-covers img { width: 100%; }

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

.contact-line { text-align: center; margin: 0; }
.contact-value {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(1.0625rem, 0.985rem + 0.3315vw, 1.25rem); /* 17 -> 20px @1280 */
  color: var(--heading); text-align: center; margin: 0 0 .4rem;
}

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

.site-footer { background: #000; padding: 3rem 0 2rem; }
.site-footer h1 { margin-bottom: 1rem; }
.footer-links {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.9rem; list-style: none; margin: 2rem 0 0; padding: 0;
}
@media (min-width: 850px) {
  .footer-links { flex-direction: row; justify-content: center; gap: 2.5rem; }
}
.footer-links a { font-family: var(--sans); font-size: 1.25rem; font-weight: 400; color: var(--heading); }
.footer-links a:hover { text-decoration: underline; }
.footer-credit {
  color: rgba(255,255,255,.45); font-size: .8rem; text-align: center; margin: 2.5rem 0 0;
}
