/* Verwijderd: globale achtergrondafbeelding op body voor index - defaults uit main.css blijven van kracht */

/* index.css - Homepage styling */
/* Scope homepage-only black background without affecting other pages */
/* body.home-index background removed so dynamic theme system can apply global/per-page background */

/* Grid lay-out (7 vakken) */
.home-grid {
  width: 96%;
  max-width: 1440px;
  margin: 12px auto 24px auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.home-grid .box {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  min-height: 120px;
  position: relative;
  overflow: hidden;
}
/* Generic background image layer for cards set via admin index customizer */
.card-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.card-bg img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.55; }
/* Light glassy blur for all cards except the hero */
.home-grid .box:not(.box1) {
  background: rgba(17, 17, 17, 0.6);
  /* Blur is now controlled per card via dynamic CSS (index_cards_css.php) */
  border-color: rgba(255, 255, 255, 0.08);
}
/* Box 1 beslaat volledige breedte */
.home-grid .box1 { grid-column: 1 / -1; min-height: 260px; }
/* Box 2-4 op één rij (3 kolommen) */
.home-grid .box2 { grid-column: span 4; min-height: 180px; }
.home-grid .box3 { grid-column: span 4; min-height: 180px; }
.home-grid .box4 { grid-column: span 4; min-height: 180px; }
/* Box 6-7 + 5 eronder (3 kolommen + 4 + 4 + 4) */
.home-grid .box6 { grid-column: span 4; min-height: 180px; }
.home-grid .box7 { grid-column: span 4; min-height: 180px; }
.home-grid .box5 { grid-column: span 4; min-height: 180px; }

/* Hero blok binnen box1: (achtergrond volledig dynamisch via JS / data-attributen; geen vaste CSS background of animatie hier) */
.box1 .hero {
  width: 100%;
  max-width: 100%;
  min-height: 220px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 1rem;
  box-sizing: border-box;
  border-radius: 12px;
  margin: 0;
  /* Geen vaste background of animatie declaratie hier; volledig runtime gegenereerd */
}
/* Decoratieve afbeelding verwijderd op verzoek; geen ::after meer op box2 */

/* Hero content: tekst gecentreerd */
.hero-content {
  text-align: center;
  max-width: 600px;
}

/* Hoofdtitel in hero sectie */
.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

/* Split-text reveal effect */
.hero h1 .split-text {
  display: inline-block;
}
.hero h1 .split-text .char {
  display: inline-block;
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: opacity 560ms cubic-bezier(0.2, 0.6, 0.2, 1), transform 560ms cubic-bezier(0.2, 0.6, 0.2, 1);
}
.hero h1 .split-text.reveal .char {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.hero h1 .split-text .space {
  width: 0.3em;
}

/* Paragraaf in hero sectie */
.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

/* Call-to-action buttons in hero: visuals come from universal page button rules */

/* CTA container: zet knoppen naast elkaar met ruimte en centrering */
.hero-ctas {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Shiny effect removed to keep buttons consistent site-wide */

/* Introductietekst op de homepage */
.homepage-intro {
  margin: 2rem;
}

/* Brand info (box2 en box5) */
.brand-info {
  padding: 16px;
  color: #eee;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* HiFuture kaart: gebruik Lumepro banner als achtergrond */
.brand-info.hifuture-info {
  position: relative;
  overflow: hidden;
  background-image: url('/assets/images/HiFuture/lumepro-Banner.svg');
  background-size: cover;
  background-position: center;
}
/* If a custom image is provided, suppress the default banner background/blur */
.brand-info.hifuture-info.has-bg { background-image: none; }
/* Subtiele overlay voor leesbaarheid van tekst op de banner */
.brand-info.hifuture-info::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.35));
  z-index: 1;
}
/* Soft-blur de banner zelf met een aparte laag onder de overlay */
.brand-info.hifuture-info::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/HiFuture/lumepro-Banner.svg');
  background-size: cover;
  background-position: center;
  filter: blur(3px);
  transform: scale(1.02);
  z-index: 0;
}
/* And hide the blurred banner layer when custom image is used */
.brand-info.hifuture-info.has-bg::after { display: none; }
/* Zorg dat de inhoud boven de overlay staat en iets meer binnenmarge heeft */
.brand-info.hifuture-info > *, .brand-info.earfun-info > * {
  position: relative;
  z-index: 2;
}
.brand-info.earfun-info.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.35));
  z-index: 1;
}
.brand-info.hifuture-info h2 { color: #fff; }
.brand-info.hifuture-info p { color: #f0f0f0; }
.brand-info h2 { margin: 0 0 6px 0; font-size: 1.3rem; }
.brand-info p { margin: 0 0 12px 0; color: #ddd; }
.info-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Product teasers (box3, box4, box6, box7) */
.product-teaser { text-decoration: none; color: #eee; display: block; position: relative; }
.product-teaser .teaser-inner { padding: 16px; display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 2; }
/* Add subtle overlay when a custom background image is used */
.product-teaser.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.5));
  z-index: 1;
}

/* Make sure brand/product boxes are positioned for pseudo-element layers */
.brand-info.has-bg, .product-teaser.has-bg { position: relative; overflow: hidden; }
.product-teaser h3 { margin: 0; font-size: 1.1rem; }
.product-teaser p { margin: 0; color: #cfcfcf; }
.product-teaser .teaser-cta { margin-top: auto; color: #b88dff; font-weight: 600; }
.product-teaser:hover .teaser-cta { text-decoration: underline; }

/* Responsiveness for the grid - tablet */
@media (max-width: 1100px) {
  .home-grid { max-width: 960px; }
}
@media (max-width: 900px) {
  .home-grid { max-width: 820px; }
  .home-grid .box2, .home-grid .box3, .home-grid .box4,
  .home-grid .box6, .home-grid .box7, .home-grid .box5 { grid-column: span 6; }
}

