/*
 * Nieuw ontwerp "Atelier" voor nieuw.venema-interieurs.nl.
 * Losse stylesheet (geen Tailwind) zodat de oude site er niets van merkt;
 * alleen geladen door layouts/application.html+nieuw.erb.
 */

:root {
  --n-bg: #EEEBE4;
  --n-ink: #1C1B19;
  --n-text: #3F3C36;
  --n-muted: #5E5A52;
  --n-line: #CFC9BD;
  --n-accent: #6E4521;
  --n-accent-hover: #7A4E22;
  --n-paper: #F6F1E8;
  --n-serif: "Crimson Pro", Georgia, serif;
  --n-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --n-gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }

.n-body {
  margin: 0;
  background: var(--n-bg);
  color: var(--n-ink);
  font-family: var(--n-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.n-body img { max-width: 100%; display: block; }
.n-body a { color: var(--n-ink); }
.n-body a:hover { color: var(--n-accent-hover); }
.n-body p { margin: 0; }

.n-wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding-left: var(--n-gutter);
  padding-right: var(--n-gutter);
}

.n-skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--n-ink);
  color: var(--n-paper) !important;
  padding: 10px 16px;
}
.n-skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--n-accent); outline-offset: 3px; }

/* Beheerbalk (alleen ingelogd) */
.n-adminbar { background: var(--n-ink); color: var(--n-paper); font-size: 14px; }
.n-adminbar .n-wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 8px; padding-bottom: 8px; }
.n-adminbar a { color: var(--n-paper); }

/* Kop */
.n-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.n-logo { display: block; line-height: 0; }
.n-logo img { height: 72px; width: auto; }
.n-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 15px; }
.n-nav-link { text-decoration: none; padding: 10px 0; border-bottom: 1px solid transparent; }
.n-nav-link[aria-current="page"] { border-bottom-color: var(--n-ink); }
.n-nav-pill {
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid var(--n-ink);
  border-radius: 999px;
}
.n-body .n-nav-pill[aria-current="page"] { background: var(--n-ink); color: var(--n-paper); }

.n-flash p {
  margin: 0 0 16px;
  padding: 14px 18px;
  border: 1px solid var(--n-line);
  background: var(--n-paper);
}

/* Typografie */
.n-display {
  margin: 0;
  font-family: var(--n-serif);
  font-weight: 300;
  font-size: clamp(56px, 7.6vw, 116px);
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.n-display em { font-weight: 300; }
.n-h2 {
  margin: 0;
  font-family: var(--n-serif);
  font-weight: 300;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.n-h3 {
  margin: 0 0 24px;
  font-family: var(--n-serif);
  font-weight: 400;
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1.05;
}
.n-lead { margin-top: 40px !important; max-width: 480px; font-size: 19px; color: var(--n-text); }
.n-intro { max-width: 440px; font-size: 19px; color: var(--n-text); }
.n-tagline {
  margin-top: 20px !important;
  max-width: 820px;
  font-family: var(--n-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.15;
  color: var(--n-accent);
}
.n-tagline-sm { margin-top: 0 !important; max-width: 500px; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; }
.n-label, .n-label-dark {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.n-label { opacity: 0.8; }
.n-label-dark { color: var(--n-muted); letter-spacing: 0; text-transform: none; font-size: 14px; font-weight: 500; }

/* Knoppen */
.n-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.n-btn {
  display: inline-block;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  border: 1px solid var(--n-ink);
}
.n-btn-sm { padding: 12px 20px; font-size: 15px; margin-top: 16px; }
.n-body .n-btn-dark { background: var(--n-ink); color: var(--n-paper); }
.n-body .n-btn-dark:hover { background: var(--n-accent); border-color: var(--n-accent); color: var(--n-paper); }
.n-btn-outline:hover { background: rgba(28, 27, 25, 0.06); }
.n-body .n-btn-light { background: var(--n-bg); color: var(--n-ink); border-color: var(--n-bg); }
.n-body .n-btn-outline-light { color: var(--n-bg); border-color: var(--n-bg); }
.n-body .n-btn-outline-light:hover { color: var(--n-paper); background: rgba(238, 235, 228, 0.1); }
.n-btn-line { text-decoration: none; padding: 16px 4px; font-weight: 500; border-bottom: 1px solid var(--n-ink); }
.n-more { font-size: 15px; font-weight: 500; padding: 10px 0; }
.n-cta { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 80px; padding-bottom: 120px; }

/* Home */
.n-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-top: 48px;
  padding-bottom: 96px;
}
.n-hero-text { flex: 1 1 480px; min-width: 0; }
.n-hero-hand { flex: 1 1 520px; min-width: 0; display: flex; justify-content: center; }
.n-hero-hand img { width: 100%; max-width: 680px; height: auto; }

.n-band, .n-rule { border-top: 1px solid var(--n-line); }
.n-band { border-bottom: 1px solid var(--n-line); }
.n-band-inner { display: flex; flex-wrap: wrap; gap: 48px 80px; padding-top: 80px; padding-bottom: 80px; }
.n-quote {
  flex: 1 1 520px;
  min-width: 0;
  font-family: var(--n-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(34px, 3.8vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--n-accent);
}
.n-band-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; color: var(--n-text); }

.n-teaser { padding-top: 112px; padding-bottom: 40px; }
.n-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 56px;
}

/* Rasters met verspringende tegels (home-teaser en portfolio) */
.n-teaser-grid, .n-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.n-tile, .n-tile > a { display: block; text-decoration: none; }
.n-tile img { width: 100%; height: var(--n-tile-h, 480px); object-fit: cover; transition: opacity 0.2s; }
.n-tile a:hover img, a.n-tile:hover img { opacity: 0.88; }
.n-tile-name { display: block; font-family: var(--n-serif); font-size: 28px; line-height: 1.2; }
a.n-tile .n-tile-name { margin-top: 16px; font-size: 26px; }
.n-tile-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; }
.n-tile-num { font-size: 13px; color: var(--n-muted); padding-top: 8px; }

.n-span-4 { grid-column: span 4; }
.n-span-5 { grid-column: span 5; }
.n-span-7 { grid-column: span 7; }
.n-span-12 { grid-column: span 12; }
.n-down-sm { margin-top: 64px; }
.n-down { margin-top: 96px; }
.n-down-lg { margin-top: 128px; }
.n-down-xl { margin-top: 160px; }
.n-h-mid { --n-tile-h: 380px; }
.n-h-tall { --n-tile-h: 480px; }
.n-h-wide { --n-tile-h: 560px; }
.n-h-teaser-l { --n-tile-h: 540px; }
.n-h-teaser-xl { --n-tile-h: 620px; }

/* Paginakoppen */
.n-pagehead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 80px;
}
.n-portfolio { padding-bottom: 120px; }

/* Categorie */
.n-back { padding-top: 24px; }
.n-back a { display: inline-block; padding: 10px 0; font-size: 14px; color: var(--n-muted); }
.n-cathead { padding-top: 24px; padding-bottom: 64px; }
.n-cat-hero { width: 100%; height: min(720px, 60vw); object-fit: cover; }
.n-cat-text {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 32px 64px;
  padding-top: 80px;
  padding-bottom: 80px;
  color: var(--n-text);
}
.n-gallery { padding-bottom: 120px; }
.n-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.n-photo {
  border: 0;
  padding: 0;
  background: #DCD7CC;
  cursor: zoom-in;
  display: block;
  height: 440px;
}
.n-photo img { width: 100%; height: 100%; object-fit: cover; }
.n-photo:hover img { opacity: 0.9; }
.n-photo-wide { grid-column: span 2; }

.n-lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(28, 27, 25, 0.96);
  color: var(--n-bg);
}
.n-lightbox[open] { display: flex; flex-direction: column; }
.n-lightbox::backdrop { background: rgba(28, 27, 25, 0.6); }
.n-lightbox-bar { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; }
.n-lightbox-title { font-family: var(--n-serif); font-size: 20px; }
.n-lightbox-title span { font-family: var(--n-sans); font-size: 13px; color: #BDB7AC; margin-left: 6px; }
.n-lightbox-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px 24px;
}
.n-lightbox-stage img { max-width: calc(100% - 160px); max-height: 100%; object-fit: contain; }
.n-round {
  flex: none;
  width: 48px;
  height: 48px;
  border: 1px solid #5A554D;
  border-radius: 999px;
  background: transparent;
  color: var(--n-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.n-round:hover { border-color: var(--n-bg); }
.n-round-lg { width: 56px; height: 56px; }

/* Over ons */
.n-about-head { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 48px; padding-bottom: 96px; }
.n-about-intro { flex: 1 1 560px; min-width: 0; }
.n-statement {
  margin-top: 48px !important;
  font-family: var(--n-serif);
  font-weight: 300;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.3;
}
.n-about-figure { flex: 1 1 420px; min-width: 0; margin: 0; }
.n-about-figure img { width: 100%; height: 600px; object-fit: cover; }
.n-about-figure figcaption { margin-top: 12px; font-size: 13px; color: var(--n-muted); }
.n-about-body { display: flex; flex-wrap: wrap; gap: 56px 80px; padding-top: 96px; padding-bottom: 96px; }
.n-about-photos {
  flex: 1 1 360px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-content: start;
}
.n-about-photos img { width: 100%; height: 240px; object-fit: cover; }
.n-about-photos .n-about-photo-wide { grid-column: span 2; height: 340px; }
.n-about-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; color: var(--n-text); }

.n-dark { background: var(--n-ink); color: var(--n-bg); }
.n-dark .n-wrap { padding-top: 112px; padding-bottom: 112px; }
.n-dark-quote {
  max-width: 1080px;
  font-family: var(--n-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.n-dark .n-actions { margin-top: 48px; }

/* Werkwijze */
.n-steps { list-style: none; margin: 0; padding: 0; }
.n-step { border-top: 1px solid var(--n-line); }
.n-step:last-child { border-bottom: 1px solid var(--n-line); }
.n-step-inner { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.n-step-flip .n-step-inner { flex-direction: row-reverse; }
.n-step-photo { flex: 1 1 460px; min-width: 0; width: 100%; height: 440px; object-fit: cover; }
.n-step-text { flex: 1 1 460px; min-width: 0; }
.n-step-text .n-h3 { margin: 16px 0 20px; }
.n-step-text p { color: var(--n-text); }
.n-step-num { font-family: var(--n-serif); font-size: 72px; line-height: 1; color: var(--n-accent); }

/* Contact */
.n-contact { display: flex; flex-wrap: wrap; gap: 64px 80px; padding-top: 80px; padding-bottom: 112px; }
.n-contact > div { flex: 1 1 460px; min-width: 0; }
.n-contact-list { margin: 0; }
.n-contact-list > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 24px;
  padding: 20px 0;
  border-top: 1px solid var(--n-line);
}
.n-contact-list > div:last-child { border-bottom: 1px solid var(--n-line); }
.n-contact-list dt { font-size: 14px; color: var(--n-muted); }
.n-contact-list dd { margin: 0; }
.n-contact-list a { font-family: var(--n-serif); font-size: clamp(24px, 2.4vw, 30px); text-decoration: none; overflow-wrap: anywhere; }
.n-addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--n-line);
  font-size: 19px;
}
.n-addresses h3 { margin-bottom: 10px; }
.n-contact-photo { margin-top: 48px; width: 100%; height: 340px; object-fit: cover; }

/* Voet */
.n-footer { background: var(--n-accent); color: var(--n-paper); }
.n-footer .n-wrap { padding-top: 72px; padding-bottom: 40px; }
.n-footer a { color: var(--n-paper); display: inline-block; padding: 4px 0; }
.n-footer a:hover { color: #fff; }
.n-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; font-size: 16px; }
.n-footer-logo { margin-top: 64px; padding-top: 32px; border-top: 1px solid rgba(246, 241, 232, 0.35); }
.n-footer-logo span { display: inline-block; background: var(--n-paper); padding: 12px 16px; border-radius: 4px; line-height: 0; }
.n-footer-logo img { height: 56px; width: auto; }

/* Tablet en kleiner */
@media (max-width: 900px) {
  :root { --n-gutter: 24px; }
  .n-teaser-grid, .n-portfolio-grid { grid-template-columns: 1fr; gap: 40px; }
  .n-span-4, .n-span-5, .n-span-7, .n-span-12 { grid-column: auto; }
  .n-down-sm, .n-down, .n-down-lg, .n-down-xl { margin-top: 0; }
  .n-tile img { height: 360px; }
  .n-hero, .n-about-head { padding-bottom: 64px; }
  .n-band-inner, .n-about-body, .n-contact { padding-top: 56px; padding-bottom: 56px; }
  .n-teaser { padding-top: 72px; }
  .n-step-inner { padding-top: 56px; padding-bottom: 56px; }
  .n-step-flip .n-step-inner { flex-direction: row; }
  .n-step-photo, .n-about-figure img { height: 320px; }
  .n-cat-text { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .n-dark .n-wrap { padding-top: 72px; padding-bottom: 72px; }
  .n-cta { padding-top: 56px; padding-bottom: 80px; }
}

/* Telefoon */
@media (max-width: 640px) {
  :root { --n-gutter: 16px; }
  .n-body { font-size: 16px; }
  .n-header { padding-top: 16px; padding-bottom: 16px; }
  .n-logo img { height: 56px; }
  .n-nav { width: 100%; justify-content: space-between; gap: 0 8px; font-size: 14px; }
  .n-nav-pill { padding: 8px 14px; }
  .n-gallery-grid { grid-template-columns: 1fr; gap: 12px; }
  .n-photo { height: 300px; }
  .n-photo-wide { grid-column: auto; }
  .n-tile img { height: 280px; }
  .n-cat-hero { height: 280px; }
  .n-addresses { grid-template-columns: 1fr; }
  .n-lightbox-stage { padding: 0 8px 16px; gap: 8px; }
  .n-lightbox-stage img { max-width: calc(100% - 96px); }
  .n-round-lg { width: 44px; height: 44px; }
}
