/**
 * Vloeren & Plinten — Custom Styles
 * Minimal overrides for Tailwind-based site
 */

/* ──────────────────────────────────────────────
 * Smooth Scrolling
 * ────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

/* ──────────────────────────────────────────────
 * Fade-In-Up Animation
 * ────────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for grouped elements */
.fade-in-up:nth-child(2) { transition-delay: 0.1s; }
.fade-in-up:nth-child(3) { transition-delay: 0.2s; }
.fade-in-up:nth-child(4) { transition-delay: 0.3s; }
.fade-in-up:nth-child(5) { transition-delay: 0.4s; }
.fade-in-up:nth-child(6) { transition-delay: 0.5s; }

/* ──────────────────────────────────────────────
 * Ken Burns Hero Animation
 * ────────────────────────────────────────────── */
@keyframes kenburns {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.08) translate(-1%, -1%); }
  100% { transform: scale(1) translate(0, 0); }
}

.hero-bg {
  animation: kenburns 20s ease-in-out infinite;
}

/* ──────────────────────────────────────────────
 * Selection Color (Gold)
 * ────────────────────────────────────────────── */
::selection {
  background-color: rgba(200, 169, 110, 0.3);
  color: #1B2A4A;
}

::-moz-selection {
  background-color: rgba(200, 169, 110, 0.3);
  color: #1B2A4A;
}

/* ──────────────────────────────────────────────
 * Custom Scrollbar
 * ────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #F5F0EB;
}

::-webkit-scrollbar-thumb {
  background: #C8A96E;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1B2A4A;
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: #C8A96E #F5F0EB;
}

/* ──────────────────────────────────────────────
 * Focus Styles (Accessibility)
 * ────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid #C8A96E;
  outline-offset: 2px;
}

/* ──────────────────────────────────────────────
 * Details/Summary Accordion
 * ────────────────────────────────────────────── */
details summary {
  cursor: pointer;
  list-style: none;
}

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

details summary::marker {
  display: none;
  content: '';
}

.details-content {
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease;
}

/* ──────────────────────────────────────────────
 * Print Styles
 * ────────────────────────────────────────────── */
@media print {
  /* Hide non-essential elements */
  #navbar,
  #mobile-menu,
  #cookie-banner,
  #cookie-modal,
  #lightbox-overlay,
  footer,
  .no-print,
  button[type="submit"],
  .sticky {
    display: none !important;
  }

  /* Reset backgrounds and colors for print */
  body {
    background: white !important;
    color: black !important;
    font-size: 12pt;
    line-height: 1.5;
  }

  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* Show link URLs */
  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #666 !important;
  }

  a[href^="#"]::after,
  a[href^="javascript"]::after,
  a[href^="tel"]::after {
    content: '';
  }

  /* Images */
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  /* Page breaks */
  h1, h2, h3 {
    page-break-after: avoid;
  }

  p, blockquote {
    orphans: 3;
    widows: 3;
  }

  /* Ensure main content fills the page */
  main {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }

  @page {
    margin: 2cm;
  }
}
