/* ==========================================================================
   Artimara / Art-Nomade — Site-wide Stylesheet
   Moroccan-inspired responsive design
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-sand:       #fefaf4;
  --color-cream:      #f5e6c8;
  --color-terracotta: #c0522a;
  --color-deep-red:   #8b1a1a;
  --color-dark-wood:  #3d2b1f;
  --color-gold:       #c9a96e;
  --color-light-border: #e8dcc8;
  --color-white:      #ffffff;
  --color-text:       #3d2b1f;
  --color-text-light: #6b5b4f;
  --color-link:       #c0522a;
  --color-link-hover: #8b1a1a;

  --font-body:    'Lato', 'Segoe UI', sans-serif;
  --font-heading: 'Cinzel Decorative', 'Georgia', serif;

  --max-width:    1200px;
  --header-height: 160px;
  --nav-height:    56px;
  --sidebar-width: 300px;
  --gap:           1.5rem;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-sand);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--color-link-hover);
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-dark-wood);
  line-height: 1.3;
  margin-bottom: 0.6em;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 1em;
}

hr {
  border: none;
  border-top: 2px dashed var(--color-light-border);
  margin: 2rem 0;
}

/* ---------- Utility ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-center { text-align: center; }

/* ---------- Site Header (Hero) ---------- */
.site-header {
  background: var(--color-dark-wood);
  color: var(--color-cream);
  display: flex;
  flex-direction: column;
}

.hero-lineup {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.hero-lineup::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

.hero-lineup img {
  flex: 1 1 20%; /* Verdeelt de breedte gelijkmatig over de 5 foto's */
  height: 180px; /* Mooie band over de breedte */
  object-fit: cover;
  min-width: 150px; /* Zorgt dat ze niet te klein worden op smalle schermen */
}

/* ---------- Navigation ---------- */
.site-nav {
  background: var(--color-dark-wood);
  border-bottom: 3px solid var(--color-gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-gold);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.nav-brand:hover {
  color: var(--color-cream);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--color-cream);
  font-size: 0.9rem;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
  background: var(--color-terracotta);
  color: var(--color-white);
  text-decoration: none;
}

/* Hamburger toggle button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-cream);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile hamburger */
@media (max-width: 800px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-dark-wood);
    border-bottom: 3px solid var(--color-gold);
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 0;
  }

  .site-nav .container {
    position: relative;
  }
}

/* ---------- Page Layout ---------- */
.page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--gap);
}

@media (min-width: 900px) {
  .page-layout {
    grid-template-columns: 1fr var(--sidebar-width);
  }
}

.site-main {
  min-width: 0;
}

.site-sidebar {
  min-width: 0;
}

@media (max-width: 899px) {
  .site-sidebar {
    border-top: 2px dashed var(--color-light-border);
    padding-top: var(--gap);
  }
}

/* ---------- Content Sections ---------- */
.content-section {
  margin-bottom: 2.5rem;
}

.content-section + .content-section {
  border-top: 2px dashed var(--color-light-border);
  padding-top: 2rem;
}

/* ---------- Image Gallery Grid ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.gallery-wide {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.gallery-item {
  overflow: hidden;
  border-radius: 6px;
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(61,43,31,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(61,43,31,0.15);
}

.gallery-item a {
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.gallery-item figcaption,
.gallery-item .caption {
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* Inline image pairs (side by side) */
.image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (max-width: 500px) {
  .image-pair {
    grid-template-columns: 1fr;
  }
}

/* Hero image (large single image) */
.hero-image {
  width: 100%;
  border-radius: 8px;
  margin: 1rem 0;
  object-fit: cover;
}

/* ---------- Sidebar Cards ---------- */
.sidebar-card {
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(61,43,31,0.08);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.sidebar-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.sidebar-card .card-body {
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
}

.sidebar-card .card-body p:last-child {
  margin-bottom: 0;
}

/* ---------- Info Box / Highlight ---------- */
.info-box {
  background: var(--color-cream);
  border-left: 4px solid var(--color-terracotta);
  padding: 1rem 1.25rem;
  border-radius: 0 6px 6px 0;
  margin: 1.5rem 0;
}

.info-box h3,
.info-box h4 {
  color: var(--color-terracotta);
  margin-bottom: 0.4em;
}

/* ---------- Address / Contact Block ---------- */
.contact-block {
  background: var(--color-white);
  border: 1px solid var(--color-light-border);
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.contact-block h3 {
  color: var(--color-terracotta);
  margin-bottom: 0.5em;
}

.contact-block p {
  margin-bottom: 0.5em;
}

.contact-block a {
  font-weight: 600;
}

/* ---------- Price Table ---------- */
.price-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px dotted var(--color-light-border);
}

.price-list li:last-child {
  border-bottom: none;
}

.price-list .item-name {
  flex: 1;
}

.price-list .item-price {
  font-weight: 700;
  color: var(--color-terracotta);
  white-space: nowrap;
  margin-left: 1rem;
}

/* ---------- Map Embed ---------- */
.map-embed {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(61,43,31,0.1);
}

.map-embed iframe {
  width: 100%;
  height: 350px;
  border: 0;
  display: block;
}

/* ---------- YouTube Embed ---------- */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(61,43,31,0.1);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Lightbox ---------- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 2rem;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10000;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.lightbox-caption {
  position: fixed;
  bottom: 1rem;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  font-size: 0.95rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  z-index: 10000;
}

/* ---------- Site Footer ---------- */
.site-footer {
  background: var(--color-dark-wood);
  color: var(--color-cream);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.footer-col h4 {
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(201,169,110,0.3);
  padding-bottom: 0.4rem;
}

.footer-col p {
  margin-bottom: 0.5em;
  font-size: 0.9rem;
  color: var(--color-cream);
}

.footer-col a {
  color: var(--color-gold);
}

.footer-col a:hover {
  color: var(--color-white);
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem var(--gap) 0;
  margin-top: 2rem;
  border-top: 1px solid rgba(201,169,110,0.2);
  font-size: 0.8rem;
  color: rgba(245,230,200,0.6);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--color-terracotta);
  border: 1px solid var(--color-light-border);
  border-radius: 4px;
  text-align: center;
}

.back-to-top:hover {
  background: var(--color-terracotta);
  color: var(--color-white);
  text-decoration: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-terracotta);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-deep-red);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-terracotta);
  border: 2px solid var(--color-terracotta);
}

.btn-outline:hover {
  background: var(--color-terracotta);
  color: var(--color-white);
}

/* ---------- Responsive Text ---------- */
@media (max-width: 600px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.1rem; }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    height: 200px;
  }

  .hero-lineup img {
    height: 110px; /* Kleiner op mobiel */
  }
}

/* ---------- Print Styles ---------- */
@media print {
  .site-nav,
  .nav-toggle,
  .lightbox-overlay,
  .back-to-top,
  .map-embed,
  .site-footer {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  img {
    max-width: 100% !important;
  }

  .page-layout {
    display: block;
  }
}
