/* =========================================================
   B&J Luxury Services — custom styles
   (Tailwind CDN handles utilities; this file covers anything
   Tailwind's utility classes can't express cleanly: fonts,
   custom components, scroll-reveal, focus states.)
========================================================= */

:root {
  /* Werkelijke hoogte van #site-header (de vaste h-20 op de binnenste div,
     identiek op mobiel en desktop). Hier centraal gehouden zodat de
     scroll-margin-top hieronder in sync blijft als de headerhoogte ooit
     wijzigt. */
  --header-height: 80px;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

/* ---------- Anchor-scroll offset ----------
   Voorkomt dat de sticky header de sectiekop overlapt wanneer je via een
   menu-link naar een sectie scrolt. */
#over-ons,
#diensten,
#tarieven,
#waarom-wij,
#contact {
  scroll-margin-top: var(--header-height);
}

/* ---------- Focus states (keyboard accessibility) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #c9a961;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Video-intro overlay ---------- */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #08090c;
  opacity: 1;
  visibility: visible;
  transition: opacity 900ms ease, visibility 0s linear 0s;
}
.intro-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 900ms ease, visibility 0s linear 900ms;
}
.intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Onzichtbaar (dus ook het poster-beeld) tot de video daadwerkelijk kan
     afspelen — voorkomt een zichtbare sprong van stilstaand logo naar
     bewegende video. Zie .is-visible en js/script.js sectie "1. Video-intro". */
  opacity: 0;
  transition: opacity 400ms ease;
}
.intro-video.is-visible {
  opacity: 1;
}

/* ---------- Privacybeleid modal ---------- */
.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.privacy-modal.is-open {
  display: flex;
}
.privacy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 12, 0.85);
  backdrop-filter: blur(4px);
}
.privacy-modal__panel {
  position: relative;
  width: 100%;
  max-width: 42rem;
  max-height: min(85vh, 44rem);
  overflow-y: auto;
  background: #0f1116;
  border: 1px solid rgba(201, 169, 97, 0.15);
  padding: 3.5rem 1.75rem 2.5rem;
}
@media (min-width: 640px) {
  .privacy-modal__panel {
    padding: 3.5rem 3rem 3rem;
  }
}
.privacy-modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(201, 169, 97, 0.35);
  color: #c9a961;
  background: #0f1116;
  cursor: pointer;
  transition: background-color 300ms ease, color 300ms ease;
}
.privacy-modal__close:hover {
  background: #c9a961;
  color: #08090c;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #c9a961;
  color: #08090c;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Header ---------- */
#site-header {
  background: transparent;
}
#site-header.is-scrolled {
  background: rgba(8, 9, 12, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 169, 97, 0.12);
}

/* Explicit rgba (not a Tailwind opacity-modifier utility) so the mobile
   dropdown always paints fully opaque over the hero behind it. */
.mobile-menu-panel {
  background-color: rgba(8, 9, 12, 0.98);
}

.nav-link {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: #f4f1ea;
  position: relative;
  padding-bottom: 4px;
  transition: color 300ms ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: #c9a961;
  transition: width 300ms ease;
}
.nav-link:hover {
  color: #c9a961;
}
.nav-link:hover::after {
  width: 100%;
}

.mobile-nav-link {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  color: #f4f1ea;
  transition: color 300ms ease;
}
.mobile-nav-link:hover {
  color: #c9a961;
}

/* ---------- Buttons ---------- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #c9a961;
  color: #08090c;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.9rem 1.9rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 300ms ease, transform 300ms ease;
  white-space: nowrap;
}
.btn-gold:hover {
  background: #e3cf9c;
  transform: translateY(-1px);
}
.btn-gold:active {
  transform: translateY(0);
}

.icon-btn {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(201, 169, 97, 0.35);
  color: #c9a961;
  cursor: pointer;
  transition: background-color 300ms ease, color 300ms ease;
}
.icon-btn:hover {
  background: #c9a961;
  color: #08090c;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #c9a961;
}

/* ---------- Layout rhythm ---------- */
.section-spacing {
  padding-top: clamp(4.5rem, 8vw, 8rem);
  padding-bottom: clamp(4.5rem, 8vw, 8rem);
}

/* ---------- Scroll line (hero) ---------- */
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, currentColor, transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ---------- Service cards ---------- */
.service-card {
  background: #0f1116;
  padding: 2.75rem 2rem;
  transition: background-color 300ms ease;
}
.service-card:hover {
  background: #131620;
}
.service-icon {
  width: 2.25rem;
  height: 2.25rem;
  color: #c9a961;
}

/* ---------- Why-us list ---------- */
.why-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
}
.why-icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  color: #c9a961;
}

/* ---------- Contact ---------- */
.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(201, 169, 97, 0.15);
  background: rgba(201, 169, 97, 0.03);
}

/* ---------- Forms ---------- */
.form-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: #a9a9a2;
  margin-bottom: 0.5rem;
}
.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201, 169, 97, 0.3);
  padding: 0.65rem 0.1rem;
  color: #f4f1ea;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 300ms ease;
}
.form-input::placeholder {
  color: #6b6b66;
}
.form-input:focus {
  border-color: #c9a961;
  outline: none;
}

/* ---------- Scroll-reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children within a section slightly for a more considered feel */
.reveal:nth-child(2) { transition-delay: 80ms; }
.reveal:nth-child(3) { transition-delay: 160ms; }
.reveal:nth-child(4) { transition-delay: 240ms; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-line {
    animation: none;
  }
  .btn-gold,
  .nav-link::after {
    transition: none;
  }
}
