/*
 Theme Name:   Bricks Child
 Theme URI:    https://bricksbuilder.io/
 Description:  Child theme voor Bricks Builder
 Author:       Tom Dumarey
 Author URI:   https://1001verhalen.be
 Template:     bricks
*/

/* ==========================================================================
   1. Variabelen & Maximale Breedtes
   ========================================================================== */
:root {
  --site-max-width: 1200px; /* Desktop */
}

@media (max-width: 991px) { /* Tablet */
  :root {
    --site-max-width: 900px;
  }
}

@media (max-width: 768px) { /* Mobiel */
  :root {
    --site-max-width: 100%;
  }
}

/* ==========================================================================
   2. Container Opbouw
   ========================================================================== */
.site-container {
  max-width: var(--site-max-width);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   3. Navigatie Opschoning & Frosted Glass
   ========================================================================== */
.brxe-nav-nested-items,
.brxe-nav-nested-items ul {
  list-style: none !important;
  padding-left: 0 !important;
}

@media (max-width: 991px) {
  .brxe-nav-nested-items {
    background: rgba(251, 247, 240, 0.96) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

/* ==========================================================================
   4. Reeksen Grid & Kaarten (2 kolommen)
   ========================================================================== */
.reeksen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
}

.reeks-kaart {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.reeks-titel {
  margin-top: 0;
  margin-bottom: 8px;
  color: #0f172a;
}

.reeks-info {
  margin: 0;
  line-height: 1.5;
}

.reeks-knop {
  display: inline-block;
  width: fit-content;
  text-align: center;
  background-color: #0F4953;
  color: #F9FCFB;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  margin-top: auto; /* Duwt de knop automatisch altijd naar de bodem van de kaart */
  transition: background-color 0.2s ease;
}

.reeks-knop:hover {
  background-color: #E27557;
}

@media (max-width: 768px) {
  .reeksen-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   5. Feature Cards
   ========================================================================== */
.feature-card {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

/* ==========================================================================
   6. Drie-kolommen Grid (Parent Blok)
   ========================================================================== */
.drie-kolommen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}

@media (max-width: 991px) {
  .drie-kolommen-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .drie-kolommen-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==========================================================================
   7. Losse Tegel binnen Drie-kolommen Grid (Child Blokken)
   ========================================================================== */
.tegel-kaart {
  display: flex !important;
  flex-direction: column !important; /* Dwingt de titel ALTIJD onder de afbeelding */
  gap: 16px;
  height: 100% !important;
}

.tegel-kaart img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}

/* ==========================================================================
   8. Utility Class: Universal Hover Lift Animation
   ========================================================================== */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  will-change: transform;
}

.hover-lift:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
}

/* ==========================================================================
   9. Blokje Bij Headings
   ========================================================================== */
.heading-with-block {
  position: relative;
  display: inline-block; 
  z-index: 1;           
}

.heading-with-block::after {
  content: "";
  position: absolute;
  right: -18px;           /* Hoe ver het blokje naar rechts uitsteekt */
  bottom: -12px;          /* Hoe ver het blokje naar onderen uitsteekt */
  width: 60px;            /* Breedte van het blokje */
  height: 60px;           /* Hoogte van het blokje */
  background-color: #CBF5EF; 
  z-index: -1;           /* Plaatst het blokje achter de tekst */
  border-radius: 4px;     
  opacity: 0.8;          
  transform: rotate(12deg);
}