/* VS Schilderwerken – globale header (alle pagina's) */
:root {
  --header-h: 76px;
  --gold: #b8954a;
  --gold-light: #c9a85a;
  --font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: var(--font-family);
}

body.has-site-header:not(.page-home) {
  padding-top: var(--header-h);
}

/* Hero-foto onder transparante/vaste header tot bovenkant scherm */
body.has-site-header:not(.page-home) main > section.hero:first-child {
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + 2.5rem);
  min-height: calc(var(--header-h) + clamp(320px, 62vh, 480px));
  background-position: center top;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: transparent;
  border-bottom: none;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled,
.site-header.is-menu-open {
  background: #000000;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

.site-header .header-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-start,
.header-end {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  /* Flex-kolommen vullen de balk; zonder dit blokkeren ze kliks op het menu */
  pointer-events: none;
}

.header-start a,
.header-start button,
.header-end a,
.header-end button {
  pointer-events: auto;
}

.header-end {
  justify-content: flex-end;
  gap: 0.75rem;
}

.site-header .logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.site-header .logo-img {
  display: block;
  height: 38px;
  width: auto;
  max-width: min(240px, 36vw);
  object-fit: contain;
  object-position: left center;
}

.site-header .nav-desktop {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 2.8vw, 2.5rem);
  z-index: 3;
  white-space: nowrap;
  pointer-events: auto;
}

.site-header .nav-desktop a {
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 0.25rem 0 0.5rem;
  border-bottom: 1px solid transparent;
  text-decoration: none;
  transition: opacity 0.2s, border-color 0.2s;
}

.site-header .nav-desktop a:hover {
  opacity: 0.8;
}

.site-header .nav-desktop a.active {
  border-bottom-color: #ffffff;
}

.btn-header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  min-height: 40px;
  border: 1px solid var(--gold);
  border-radius: 5px;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  background: rgba(184, 149, 74, 0.08);
  text-decoration: none;
  transition: background 0.25s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-header-phone:hover {
  background: rgba(184, 149, 74, 0.16);
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-header-phone:active {
  background: rgba(184, 149, 74, 0.26);
  color: #e8d4a8;
  border-color: var(--gold-light);
}

.btn-header-phone:focus-visible {
  outline: 2px solid rgba(184, 149, 74, 0.45);
  outline-offset: 2px;
}

.site-header .menu-toggle {
  display: none;
  position: relative;
  z-index: 310;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  background: rgba(0, 0, 0, 0.45);
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.site-header .menu-toggle:hover {
  background: rgba(184, 149, 74, 0.2);
  border-color: var(--gold-light);
}

.site-header .menu-toggle span {
  display: block;
  width: 18px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--gold-light);
  transition: transform 0.28s ease, opacity 0.2s ease, width 0.2s ease;
}

.site-header .menu-toggle[aria-expanded="true"] {
  background: rgba(184, 149, 74, 0.15);
  border-color: var(--gold-light);
}

.site-header .menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
  width: 20px;
}

.site-header .menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.site-header .menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
  width: 20px;
}

.site-header .nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 305;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  padding: calc(var(--header-h) + 0.65rem) clamp(1.25rem, 5vw, 2rem) max(2.5rem, env(safe-area-inset-bottom, 0px));
  margin: 0;
  border: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
}

.site-header .nav-mobile::before {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: -2;
  pointer-events: none;
  backdrop-filter: blur(40px) saturate(1.35);
  -webkit-backdrop-filter: blur(40px) saturate(1.35);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.58) 40%,
    rgba(0, 0, 0, 0.42) 70%,
    rgba(0, 0, 0, 0.28) 100%
  );
}

.site-header .nav-mobile::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(58vh, 420px);
  z-index: -1;
  pointer-events: none;
  backdrop-filter: blur(52px) saturate(1.4);
  -webkit-backdrop-filter: blur(52px) saturate(1.4);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.45) 30%,
    rgba(0, 0, 0, 0.82) 100%
  );
}

.site-header .nav-mobile.open {
  display: flex;
}

.site-header .nav-mobile a {
  color: #ffffff;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 4.2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  text-align: center;
  transition: color 0.2s ease;
  position: relative;
  z-index: 1;
}

.site-header .nav-mobile a:hover {
  color: var(--gold-light);
}

.site-header .nav-mobile a.active {
  color: var(--gold-light);
}

.site-header .nav-mobile .btn-header-phone {
  margin-top: 1.5rem;
  justify-content: center;
  width: 100%;
  max-width: min(100%, 280px);
  align-self: center;
  min-height: 50px;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid rgba(196, 160, 82, 0.45);
  background: linear-gradient(145deg, #c9a85a 0%, #a68a4c 55%, #8f7340 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

body.mobile-nav-open {
  overflow: hidden;
  touch-action: none;
}

body.mobile-nav-open .site-header .header-inner {
  position: relative;
  z-index: 311;
}

body.mobile-nav-open .float-call-btn {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .site-header .nav-desktop {
    gap: 1.25rem;
  }

  .site-header .nav-desktop a {
    font-size: 0.8125rem;
  }

  .site-header .logo-img {
    height: 34px;
  }

  .btn-header-phone {
    font-size: 0.75rem;
    padding: 0.5rem 0.85rem;
  }
}

@media (max-width: 900px) {
  .site-header .nav-desktop {
    display: none;
  }

  .header-end .btn-header-phone {
    display: none;
  }

  .site-header .menu-toggle {
    display: flex;
  }

  .header-start,
  .header-end {
    flex: 0 0 auto;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 58px;
  }
}
