/* ═══════════════════════════════════════════════
   Kleur & Karakter — Home Page Styles
═══════════════════════════════════════════════ */

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-color: #111009;
  /* background:
    linear-gradient(105deg, rgba(17,16,9,0.72) 42%, rgba(17,16,9,0.4) 100%),
    url('../img/hero_bg_warm.png') center/cover no-repeat; */
}
/* 2. Desktop versie (vult de afbeelding alleen in als het scherm breed is) */
@media (min-width: 601px) {
  .hero-bg {
    background: 
      linear-gradient(105deg, rgba(17,16,9,0.72) 42%, rgba(17,16,9,0.4) 100%),
      url('../img/hero_bg_warm.png') center/cover no-repeat;
  }
}

/* 3. Mobiele versie (vult de afbeelding alleen in op kleine schermen) */
@media (max-width: 600px) {
  .hero-bg {
    background:
      linear-gradient(105deg, rgba(17,16,9,0.72) 42%, rgba(17,16,9,0.4) 100%),
      url('../img/hero_bg_warm_gsm.jpeg') center/cover no-repeat;
  }
}
.hero-grain {
  position: absolute; inset: 0; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 680px;
  padding: 160px 64px 100px;
  animation: fadeUp 1.2s ease both;
}
.hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--cream);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero-sub {
  font-size: 1.05rem;
  color: var(--cream-dim);
  margin-bottom: 20px;
  max-width: 520px;
}
.hero-body {
  font-size: 0.88rem;
  color: rgba(232,223,200,0.42);
  max-width: 480px;
  margin-bottom: 48px;
  line-height: 1.9;
}
.hero-cta { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.hero-tagline {
  position: absolute; bottom: 52px; left: 64px; right: 64px;
  display: flex; align-items: center; gap: 24px;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(200, 169, 110, 0.45);
  z-index: 2;
}
.hero-tagline::before {
  content: ''; flex: 0 0 48px; height: 1px;
  background: var(--gold); opacity: 0.4;
}

/* ─── SERVICES GRID ─── */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
  max-width: 1200px; margin: 0 auto;
}
.service-card {
  background: var(--bg);
  padding: 56px 44px;
  transition: background 0.4s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.service-card:hover { background: var(--bg-3); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 52px; height: 52px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 32px;
  color: var(--gold);
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 16px;
  line-height: 1.2;
}
.service-card p { font-size: 0.85rem; color: var(--cream-dim); line-height: 1.85; }

/* ─── GALLERY ─── */
.gallery { background: var(--bg-2); }
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 3px;
  max-width: 1300px; margin: 0 auto;
}
.gallery-item {
  overflow: hidden;
  position: relative;
  background: var(--bg-3);
}
.gallery-item:nth-child(1) { grid-row: 1/3; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(1) saturate(0.7);
  transition: transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.5s;
  display: block;
  min-height: 240px;
  object-position: center;
}
.gallery-item:nth-child(1) img { min-height: 400px; }
.gallery-item:hover img {
  transform: scale(1.04);
  filter: brightness(0.9) saturate(0.85);
}

/* ─── RESPONSIVE: HOME ─── */
@media (max-width: 900px) {
  .hero-content { padding: 140px 28px 80px; }
  .hero-tagline { left: 28px; right: 28px; bottom: 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:nth-child(1) { grid-column: 1/3; grid-row: auto; }
}

@media (max-width: 600px) {
  .hero-content {
    padding: 100px 20px 60px;
    max-width: 100%;
  }
  .hero h1 { font-size: 2.4rem; }
  .hero-sub { font-size: 0.9rem; max-width: 100%; }
  .hero-body { font-size: 0.8rem; max-width: 100%; }
  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .hero-tagline { display: none; }

  .gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 0 20px 20px;
    -webkit-overflow-scrolling: touch;
    /* Zorg dat de grid zelf geen beperkende hoogte heeft */
    height: auto; 
  }

  .gallery-item {
    flex: 0 0 85%;
    scroll-snap-align: center;
    border-radius: 4px;
    overflow: hidden; /* Belangrijk om de foto binnen de randen te houden */
    
    /* DIT IS DE FIX: Geef de container dezelfde vaste hoogte als de img */
    height: 350px; 
  }

  .gallery-item img {
    width: 100%;
    height: 100%; /* Nu vult hij de 350px van de container volledig */
    display: block;
    object-fit: cover;
    object-position: center;
  }

  .gallery-grid::-webkit-scrollbar {
    display: none;
  }
}

/* ─── GALLERY: LOAD MORE ─── */
.gallery-more[hidden] { display: none; }
.gallery-load-more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  padding: 0 20px;
}
.btn-outline {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--gold-dim);
  padding: 16px 40px;
  cursor: pointer;
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}
.btn-outline:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}
.btn-outline:disabled {
  opacity: 0.45;
  cursor: default;
}

@media (max-width: 600px) {
  .gallery-load-more { margin-top: 24px; }
}
