/* B & E Afbouw – site styles */

:root {
  --orange: #f27100;
  --orange-bright: #ff6600;
  --orange-dark: #c95c00;
  --bg: #0a0a0a;
  --surface: #1c1c1c;
  --surface-2: #262626;
  --border: #333;
  --text: #ececec;
  --muted: #a9a9a9;
  --header-bg: #fff;
  --header-text: #222;
  --radius: 10px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Open Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.7 var(--font);
  overflow-x: hidden;
}

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

a { color: var(--orange); text-underline-offset: 3px; }
a:hover { color: var(--orange-bright); }
:focus-visible { outline: 3px solid var(--orange-bright); outline-offset: 2px; }

h1, h2, h3, .h1, .h3 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; color: #fff; }
h1, .h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
h3, .h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  background: var(--orange); color: #000; padding: 8px 14px; border-radius: 6px; font-weight: 700;
}
.skip-link:focus { top: 8px; }

/* Buttons */
.button {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  border: 2px solid var(--orange);
  border-radius: 6px;
  padding: .55em 1.3em;
  font: 600 1rem/1.4 var(--font);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.button:hover { background: var(--orange-bright); border-color: var(--orange-bright); color: #fff; }
.button:active { transform: translateY(1px); }
.button[disabled] { opacity: .6; cursor: progress; }
.button-small { font-size: .85rem; padding: .45em 1em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  color: var(--header-text);
  box-shadow: 0 2px 12px rgb(0 0 0 / .35);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.logo img { width: 64px; height: 64px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: 6px;
  color: var(--header-text); text-decoration: none; font-weight: 600;
}
.main-nav a:hover { color: var(--orange-bright); background: #f4f4f4; }
.main-nav a[aria-current="page"] { color: var(--orange-bright); }

.menu-toggle {
  display: none; align-items: center; gap: 10px;
  background: none; border: 2px solid #ddd; border-radius: 6px;
  padding: 8px 12px; font: 600 .95rem var(--font); color: var(--header-text); cursor: pointer;
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: var(--orange); position: relative; transition: transform .2s;
}
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .js .menu-toggle { display: inline-flex; }
  .js .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--header-bg);
    border-top: 3px solid var(--orange);
    box-shadow: 0 10px 20px rgb(0 0 0 / .3);
    display: none;
  }
  .js .main-nav.is-open { display: block; }
  .js .main-nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
  .js .main-nav a { padding: 12px 8px; border-bottom: 1px solid #eee; border-radius: 0; }
  .header-inner { flex-wrap: wrap; }
  html:not(.js) .main-nav ul { flex-wrap: wrap; }
}

/* Slider (home) and banner (other pages) */
.slider, .banner { position: relative; background: #000; overflow: hidden; }
.slides { position: relative; aspect-ratio: 1166 / 414; min-height: 300px; }
.slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .8s ease, visibility 0s linear .8s;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease; }
.slide > img, .banner > img { width: 100%; height: 100%; object-fit: cover; }
.banner { aspect-ratio: 1166 / 300; min-height: 220px; max-height: 340px; width: 100%; }

.slide-caption, .banner-caption {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 24px 56px; text-align: center;
  background: linear-gradient(to bottom, rgb(0 0 0 / .15), rgb(0 0 0 / .55));
}
.slide-title {
  margin: 0; color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  font-size: clamp(1.15rem, .8rem + 2vw, 2.2rem);
  text-shadow: 0 2px 10px rgb(0 0 0 / .7);
  background: rgb(0 0 0 / .35); padding: .2em .6em; border-radius: 6px;
}
.slide-sub { margin: 0; color: #fff; font-weight: 600; text-shadow: 0 2px 8px rgb(0 0 0 / .8); font-size: clamp(.9rem, .8rem + .5vw, 1.15rem); }
.slide-badge { width: clamp(160px, 25vw, 300px); filter: drop-shadow(0 4px 12px rgb(0 0 0 / .5)); }

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgb(0 0 0 / .45); color: #fff; font-size: 2rem; line-height: 1;
  cursor: pointer; display: grid; place-items: center; padding-bottom: 4px;
}
.slider-arrow:hover { background: var(--orange); }
.slider-arrow.prev { left: 10px; }
.slider-arrow.next { right: 10px; }
.slider-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.slider-dot { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; }
.slider-dot[aria-current="true"] { background: var(--orange); border-color: var(--orange); }
html:not(.js) .slider-arrow, html:not(.js) .slider-dots { display: none; }

@media (max-width: 600px) {
  .slides { aspect-ratio: auto; height: 340px; }
  .slide-caption, .banner-caption { padding: 20px 16px 44px; }
  .slider-arrow { display: none; }
  .slide-badge { width: 170px; }
}

/* Sections */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section-tight { padding: 20px 0 0; }
.section-alt { background: var(--surface); }
.lead { font-size: 1.2rem; color: var(--orange); font-weight: 600; }

.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.split-top { align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.check-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.check-list li { position: relative; padding: 6px 0 6px 30px; }
.check-list li::before {
  content: ""; position: absolute; left: 4px; top: 14px;
  width: 12px; height: 7px; border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange);
  transform: rotate(-45deg);
}
.columns-2 { columns: 2; column-gap: 40px; }
.columns-2 li { break-inside: avoid; }
@media (max-width: 600px) { .columns-2 { columns: 1; } }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.tags span {
  background: var(--orange); color: #fff; font-weight: 700; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .05em; padding: 5px 12px; border-radius: 999px;
}
.tags-outline span { background: transparent; border: 2px solid var(--orange); color: var(--orange); }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .cards-3 { grid-template-columns: 1fr; } }
.card-link {
  display: flex; flex-direction: column; background: var(--surface-2); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--text); border: 1px solid var(--border);
  transition: transform .2s, border-color .2s;
}
.card-link:hover { transform: translateY(-3px); border-color: var(--orange); color: var(--text); }
.card-link img { aspect-ratio: 16 / 7; object-fit: cover; width: 100%; }
.card-link-title { padding: 16px 18px 2px; font-weight: 700; font-size: 1.15rem; color: #fff; }
.card-link-text { padding: 0 18px 18px; color: var(--muted); }

.photo { margin: 0; }
.photo img { border-radius: var(--radius); width: 100%; max-width: 420px; margin-inline: auto; }
.photo figcaption { text-align: center; color: var(--muted); margin-top: 8px; font-style: italic; }

.pill-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-nav a {
  display: inline-block; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .9rem;
}
.pill-nav a:hover { border-color: var(--orange); color: var(--orange); }
[id] { scroll-margin-top: 90px; }

.reference-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px;
}
.reference-list a {
  display: block; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--orange); border-radius: 6px; font-weight: 700; text-decoration: none;
}
.reference-list a:hover { background: var(--surface-2); }

/* Contact */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
.req { color: var(--muted); font-weight: 400; font-size: .9em; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: #111;
  background: #eee; border: 2px solid #eee; border-radius: 6px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: #fff; }
.field [aria-invalid="true"] { border-color: #e5484d; }
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-box { margin-bottom: 16px; min-height: 65px; }
.form-status { padding: 14px 16px; border-radius: 6px; margin-bottom: 18px; font-weight: 600; }
.form-status.is-ok { background: #173d22; border: 1px solid #2f8a4a; color: #c9f1d4; }
.form-status.is-error { background: #46191b; border: 1px solid #b23a3f; color: #ffd6d7; }

.contact-card { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--orange); border-radius: var(--radius); padding: 24px; }
.contact-phone { font-size: 1.5rem; font-weight: 800; text-decoration: none; }
.muted { color: var(--muted); }

/* Facebook feed (portfolio) */
.feed-wrap { max-width: 760px; }
.fb-feed { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.fb-feed-header {
  display: flex; align-items: center; gap: 12px; padding: 16px;
  border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.fb-feed-header img { width: 48px; height: 48px; border-radius: 50%; background: #fff; object-fit: contain; }
.fb-feed-header > div { flex: 1; min-width: 0; }
.fb-feed-name { display: block; font-weight: 800; color: #fff; text-decoration: none; font-size: 1.1rem; }
.fb-feed-sub { display: block; color: var(--muted); font-size: .9rem; }
.fb-feed-loading, .fb-feed-empty { padding: 24px 16px; color: var(--muted); margin: 0; }

.fb-post { padding: 18px 16px; border-bottom: 1px solid var(--border); }
.fb-post:last-child { border-bottom: 0; }
.fb-post-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fb-post-meta img { width: 40px; height: 40px; border-radius: 50%; background: #fff; object-fit: contain; }
.fb-post-author { font-weight: 700; color: #fff; line-height: 1.2; }
.fb-post-time { display: block; color: var(--muted); font-size: .85rem; font-weight: 400; }
.fb-post-message { white-space: pre-line; overflow-wrap: anywhere; margin-bottom: 12px; }

.fb-photos { display: grid; gap: 3px; border-radius: 8px; overflow: hidden; }
.fb-photos a { position: relative; display: block; background: #000; }
.fb-photos img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.fb-photos.count-1 img { aspect-ratio: 4 / 5; max-height: 640px; }
.fb-photos.count-2 { grid-template-columns: 1fr 1fr; }
.fb-photos.count-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.fb-photos.count-3 a:first-child { grid-row: span 2; }
.fb-photos.count-3 a:first-child img { aspect-ratio: auto; }
.fb-photos.count-3 a:not(:first-child) img { aspect-ratio: 1; }
.fb-photos.count-4 { grid-template-columns: repeat(3, 1fr); }
.fb-photos.count-4 a:first-child { grid-column: span 3; }
.fb-photos.count-4 a:first-child img { aspect-ratio: 16 / 11; }
.fb-photos.count-4 a:not(:first-child) img { aspect-ratio: 1; }
.fb-photo-more {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgb(0 0 0 / .55); color: #fff; font-size: 2rem; font-weight: 800;
}

.fb-post-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px; color: var(--muted); font-size: .9rem;
}
.fb-counts { display: flex; gap: 16px; }
.fb-counts span { display: inline-flex; align-items: center; gap: 5px; }
.fb-counts svg { width: 16px; height: 16px; fill: var(--orange); }
.fb-post-link { font-weight: 600; }
.fb-feed-more { padding: 16px; text-align: center; border-top: 1px solid var(--border); }

/* Footer */
.site-footer { background: #161616; border-top: 4px solid var(--orange); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 32px; padding: 48px 0 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-facebook { grid-column: 1 / -1; order: 3; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-title { color: var(--orange-bright); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-col address { font-style: normal; margin-bottom: 1em; }
.fb-page-embed { min-height: 130px; max-width: 500px; }
.fb-page-embed iframe { display: block; border: 0; overflow: hidden; width: 100%; background: #fff; border-radius: 6px; }

.footer-bottom { background: #0d0d0d; padding: 16px 0; font-size: .9rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-nav a { color: #bbb; text-decoration: none; }
.footer-nav a:hover, .footer-nav a[aria-current="page"] { color: var(--orange-bright); }
.copyright { margin: 0; color: #888; display: flex; align-items: center; gap: 12px; }
.social-facebook { color: var(--orange-bright); display: inline-flex; }
