/*
Theme Name: Buro Stroop
Theme URI: https://burostroop.nl/
Author: Marcel van de Wijdeven / Buro Stroop
Author URI: https://burostroop.nl/
Description: Maatwerk WordPress thema voor Buro Stroop, grafische studio in Hapert. Volledig geoptimaliseerd voor Elementor met drag-and-drop widgets, Custom Post Types voor Portfolio, Bricolage Grotesque typografie, dynamische hover diensten en Schema.org markup.
Version: 1.1.5
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: buro-stroop
Tags: elementor, portfolio, design-studio, grid-layout, custom-menu, custom-logo, featured-images, translation-ready
*/

:root {
  --ink: #14110f;
  --paper: #fbfaf7;
  --stroop: #e3a02b;
  --muted: #6f655c;
  --line: #e4dfd6;
  --sand: #f1ece3;
  --r: 24px;
  --head: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  max-width: 1400px;
  margin: 0 auto;
}

.narrow {
  max-width: 760px;
}

/* Header & Navigatie */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 247, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.bar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bar .custom-logo-link img,
.bar img {
  height: 38px;
  width: auto;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

nav a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:not(.btn):hover,
nav a[aria-current],
nav li.current-menu-item > a {
  text-decoration: underline;
  text-decoration-color: var(--stroop);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

/* Knoppen */
.btn {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-family: var(--head);
  font-weight: 800;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
  line-height: 1;
}

.btn:hover {
  background: var(--stroop);
  border-color: var(--stroop);
  color: var(--ink);
}

.btn.alt {
  background: transparent;
  color: var(--ink);
}

.btn.alt:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}

.hero .wrap {
  padding: 0 1.5rem;
  position: relative;
}

.hero h1 {
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(3rem, 10.5vw, 10rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  max-width: 11ch;
}

.hero-row {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  gap: 2rem !important;
  margin-top: 2.5rem !important;
  width: 100% !important;
  flex-wrap: wrap !important;
}

.hero-row .lead,
.hero-row p:first-child {
  max-width: 34rem !important;
  flex: 1 1 24rem !important;
  margin: 0 !important;
}

.hero-row .cta-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 0.8rem !important;
  margin-left: auto !important;
  justify-content: flex-end !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

/* Marquee Scroller */
.marq {
  margin-top: 3rem;
  overflow: hidden;
  user-select: none;
}

.track {
  --mh: clamp(150px, 18vw, 240px);
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: slide 70s linear infinite;
}

.track:hover {
  animation-play-state: paused;
}

.track img {
  height: var(--mh);
  width: calc(var(--mh) * 1.5);
  object-fit: cover;
  border-radius: 18px;
  flex-shrink: 0;
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* Secties & Typografie */
section {
  padding: clamp(3.5rem, 8vw, 7rem) 1.5rem;
}

h2 {
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

h2.statement {
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin-bottom: 1.75rem;
}

h2.statement sup {
  font-size: 0.4em;
  vertical-align: top;
  color: var(--muted);
  font-weight: 500;
  margin-left: 0.3rem;
}

h3 {
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.25;
}

.lead {
  font-size: 1.25rem;
  max-width: 44rem;
}

p + p {
  margin-top: 1rem;
}

/* Twee kolommen (Over Marcel - Foto & Tekst Naast Elkaar) */
.two,
.about-grid,
#over .two {
  display: grid !important;
  grid-template-columns: minmax(280px, 440px) 1fr !important;
  gap: clamp(2rem, 5vw, 4.5rem) !important;
  align-items: center !important;
  width: 100% !important;
}

.two .btn {
  margin-top: 1.5rem;
}

.portrait {
  position: relative !important;
  max-width: 440px !important;
  width: 100% !important;
  margin: 0 !important;
}

.portrait::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--stroop);
  right: -8%;
  bottom: -6%;
  z-index: 0;
}

.portrait img {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  height: auto !important;
  border-radius: var(--r) !important;
  display: block !important;
}

.portrait figcaption {
  position: relative;
  z-index: 1;
  margin-top: 0.7rem;
  font-family: var(--head);
  font-weight: 800;
}

/* Feats (USP Blokken: 'Zonder bla bla' & 'Van groot naar klein' Naast Elkaar) */
.feats {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(1.5rem, 4vw, 3rem) !important;
  margin-top: clamp(2.5rem, 5vw, 4rem) !important;
  width: 100% !important;
}

.feat {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}

.feat img {
  width: 100% !important;
  aspect-ratio: 16/10 !important;
  object-fit: cover !important;
  border-radius: var(--r) !important;
  display: block !important;
}

.feat h3 {
  font-family: var(--head) !important;
  font-weight: 800 !important;
  font-size: 1.6rem !important;
  margin: 1rem 0 0.4rem !important;
}

.feat p {
  color: var(--muted) !important;
  font-size: 1.05rem !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* Wat ik maak (Diensten lijst) */
.rows {
  list-style: none;
  border-top: 1px solid var(--ink);
}

.row {
  border-bottom: 1px solid var(--ink);
}

.row a {
  position: relative;
  display: grid;
  grid-template-columns: auto 1.5fr 1fr;
  align-items: center;
  gap: 1.25rem;
  padding: 1.4rem 0;
  text-decoration: none;
}

.ico {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--sand);
  transition: background 0.2s;
  flex-shrink: 0;
}

.ico svg {
  width: 26px;
  height: 26px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rt {
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  transition: transform 0.3s;
}

.rd {
  color: var(--muted);
  max-width: 26rem;
  transition: opacity 0.2s;
}

.rimg {
  position: absolute;
  right: 6%;
  top: 50%;
  width: min(300px, 26vw);
  aspect-ratio: 4/3;
  transform: translateY(-50%) rotate(5deg) scale(0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.3s;
  z-index: 2;
}

.rimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(20, 17, 15, 0.15);
}

.row a:hover .rimg,
.row a:focus-visible .rimg {
  opacity: 1;
  transform: translateY(-50%) rotate(-3deg) scale(1);
}

.row a:hover .rt,
.row a:focus-visible .rt {
  transform: translateX(12px);
}

.row a:hover .ico {
  background: var(--stroop);
}

.row a:hover .rd {
  opacity: 0;
}

/* Portfolio Masonry / Kolommen */
.tiles {
  columns: 2;
  column-gap: 1.5rem;
}

.tile {
  break-inside: avoid;
  margin-bottom: 2rem;
}

.tile a {
  display: block;
  text-decoration: none;
}

.tile .im {
  border-radius: var(--r);
  overflow: hidden;
  background: var(--line);
}

.tile img {
  width: 100%;
  transition: transform 0.5s ease;
}

.tile a:hover img {
  transform: scale(1.04);
}

.tmeta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}

.tmeta h3 {
  font-size: 1.5rem;
}

.pill {
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.1rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Donkere Banner */
.band {
  background: var(--ink);
  color: var(--paper);
}

.band h2 {
  font-size: clamp(2.4rem, 6.5vw, 6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.band .lead {
  margin-bottom: 1.75rem;
  color: #dfd9d1;
}

.band .btn {
  background: var(--stroop);
  border-color: var(--stroop);
  color: var(--ink);
}

.band .btn:hover {
  background: var(--paper);
  border-color: var(--paper);
}

.band .btn.alt {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
}

.band .btn.alt:hover {
  background: var(--paper);
  color: var(--ink);
}

/* Sand achtergrond */
.sand {
  background: var(--sand);
}

/* Stappen (Zo werk ik) */
.steps {
  list-style: none;
  counter-reset: s;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 2rem;
}

.steps li {
  counter-increment: s;
  border-top: 4px solid var(--stroop);
  padding-top: 1rem;
}

.steps li::before {
  content: counter(s);
  font-family: var(--head);
  font-weight: 800;
  font-size: 2rem;
  display: block;
}

.steps h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* FAQ Details/Summary */
details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

summary {
  cursor: pointer;
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.15rem;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform 0.2s;
  margin-left: 1rem;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin-top: 0.6rem;
  max-width: 42rem;
  color: var(--muted);
}

/* Contact & Info Pagina's */
.contact a.big {
  display: inline-block;
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  text-decoration: underline;
  text-decoration-color: var(--stroop);
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
  margin-bottom: 0.4rem;
}

.contact small {
  display: block;
  color: var(--muted);
}

.contact div + div {
  margin-top: 1.25rem;
}

.crumb {
  font-size: 0.95rem;
  color: var(--muted);
  padding: 1.25rem 1.5rem 0;
}

.crumb a {
  text-decoration: underline;
  text-decoration-color: var(--stroop);
}

/* Project Detail Template */
.proj-head {
  padding: 1.5rem 1.5rem 1rem;
}

.proj-head h1 {
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.proj-head .client {
  color: var(--muted);
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.gallery {
  padding: 1rem 1.5rem 2rem;
  display: grid;
  gap: 1.5rem;
}

.gallery a,
.gallery .gallery-item {
  display: block;
  background: var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.gallery img {
  width: 100%;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.5rem 3rem;
  flex-wrap: wrap;
}

.pager a {
  font-family: var(--head);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--stroop);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

/* Footer */
footer {
  background: var(--sand);
  padding: clamp(3rem, 6vw, 5rem) 1.5rem 6rem;
}

.fgrid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

footer h4 {
  font-family: var(--head);
  font-weight: 800;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

footer a {
  text-decoration: underline;
  text-decoration-color: var(--stroop);
}

.fl a {
  display: block;
  margin: 0.25rem 0;
  text-decoration: none;
}

.fl a:hover {
  text-decoration: underline;
  text-decoration-color: var(--stroop);
}

.fbig {
  display: inline-block;
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hello {
  margin-top: 3rem;
  overflow: hidden;
}

.hello a {
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(4rem, 17vw, 16rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s;
}

.hello a:hover {
  color: var(--stroop);
}

.copy {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Mobile Sticky Bar */
.mbar {
  display: none;
}

/* Responsive Media Queries */
@media (max-width: 820px) {
  .tiles {
    columns: 1;
  }
  .fgrid {
    grid-template-columns: 1fr;
  }
  nav ul {
    gap: 0.9rem;
  }
  nav .hide-s {
    display: none;
  }
  .bar img,
  .bar .custom-logo-link img {
    height: 30px;
  }
  .row a {
    grid-template-columns: auto 1fr;
  }
  .rd {
    grid-column: 2;
  }
  .rimg {
    display: none;
  }
  .mbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  }
  .mbar a {
    text-align: center;
    padding: 0.9rem;
    font-family: var(--head);
    font-weight: 800;
    text-decoration: none;
    background: var(--stroop);
    color: var(--ink);
    display: block;
  }
  .mbar a + a {
    background: var(--ink);
    color: var(--paper);
  }
}

/* Tablet & Mobiel Specifieke Breakpoints */
@media (max-width: 767px) {
  .hero-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.5rem !important;
  }
  .hero-row .lead,
  .hero-row p:first-child {
    max-width: 100% !important;
  }
  .hero-row .cta-row {
    margin-left: 0 !important;
    justify-content: flex-start !important;
    width: 100% !important;
  }
  .two,
  .about-grid,
  #over .two {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  .portrait {
    max-width: 360px !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 640px) {
  .feats {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .track {
    animation: none;
    overflow-x: auto;
  }
  .tile img, .rt, .rimg {
    transition: none;
  }
}


/* Inhoud uit de editor (paragrafen, lijsten, afbeeldingen) */
.lead > * + *,
.entry-content > * + * {
  margin-top: 1.1em;
}
.lead ul, .lead ol,
.entry-content ul, .entry-content ol {
  padding-left: 1.4em;
}
.lead img,
.entry-content img {
  border-radius: var(--r);
}
.lead .wp-block-gallery,
.entry-content .wp-block-gallery {
  gap: 1rem;
}
