/*
Theme Name: Kadence Child - Damme HR Design
Template: kadence
Version: 2.0, backup staat lokaal
*/

/* =========================================================
   1) HERO CURVE (Kadence pattern rij)
   ========================================================= */

.hero-curve{
  position: relative;
  overflow: hidden;
  padding-bottom: 140px;

  /* Achtergrond: effen + klein gradient rechtsonder */
  background-color: #27413b;
  background-image:
    radial-gradient(
      circle at 95% 150%,
      rgba(92, 203, 230, 0.95) 5%,
      rgba(92, 203, 230, 0.55) 20%,
      rgba(92, 203, 230, 0.00) 30%
    );
  background-repeat: no-repeat;

  /* Afgeronde onderkant */
  clip-path: ellipse(90% 100% at 50% 0%);
}

/* Mobiel: iets “dieper” en breder */
@media (max-width: 768px){
  .hero-curve{
    padding-bottom: 110px;
    clip-path: ellipse(170% 100% at 50% 0%);
    background-image:
      radial-gradient(
        circle at 75% 90%,
        rgba(92, 203, 230, 0.95) 0%,
        rgba(92, 203, 230, 0.55) 15%,
        rgba(92, 203, 230, 0.00) 33%
      );
  }
}


/* =========================================================
   2) WAARDEN KAARTEN (Kadence)
   - gelijke hoogte
   - vaste beeldhoogte + nette crop
   ========================================================= */

.waarden-cards > .kt-row-column-wrap{
  align-items: stretch;
}

.waarden-cards > .kt-row-column-wrap > .wp-block-kadence-column{
  height: 100%;
  display: flex;
}

.waarden-cards > .kt-row-column-wrap > .wp-block-kadence-column > .kt-inside-inner-col{
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.waarden-cards figure.wp-block-kadence-image{
  margin: 0;
}

.waarden-cards .kb-is-ratio-image{
  height: 160px !important;
  padding-bottom: 0 !important;
  overflow: hidden;
}

.waarden-cards img.kb-img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

.waarden-cards > .kt-row-column-wrap > .wp-block-kadence-column
  > .kt-inside-inner-col
  > .wp-block-kadence-column{
  flex: 1;
  display: flex;
}

.waarden-cards > .kt-row-column-wrap > .wp-block-kadence-column
  > .kt-inside-inner-col
  > .wp-block-kadence-column
  > .kt-inside-inner-col{
  flex: 1;
  display: flex;
  flex-direction: column;
}

.waarden-cards .wp-block-kadence-advancedheading + p{
  flex: 1;
  margin-bottom: 0;
}


/* =========================================================
   3) KADENCE DROPDOWN ALS "TEKSTBALLON"
   Voor menu-item met class: balloon-dd
   ========================================================= */

.balloon-dd{
  position: relative;
}

.balloon-dd > .sub-menu{
  background: #163A90;
  border-radius: 16px;
  padding: 14px;
  margin-top: 12px;
  min-width: 260px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);

  border: 0 !important;
  overflow: visible !important;
}

.balloon-dd > .sub-menu::before{
  content: "";
  position: absolute;
  top: -10px;
  left: 20%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #163A90;
}

.balloon-dd > .sub-menu li{
  background: transparent !important;
}

.balloon-dd > .sub-menu a{
  display: block;
  color: #d8d8d8 !important;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  line-height: 1.25;
}

.balloon-dd > .sub-menu a:hover,
.balloon-dd > .sub-menu a:focus{
  background: rgba(255, 255, 255, 0.10);
  color: #5ccbe6 !important;
}

.balloon-dd > .sub-menu li + li{
  margin-top: 2px;
}


/* =========================================================
   4) KLANTVERHALEN (ARCHIEF + KAARTEN)
   ========================================================= */

.single-klantverhalen img,
.post-type-archive-klantverhalen img{
  max-width: 100%;
  height: auto;
}

/* Kaarten */
.dh-klantkaart{
  background: #ffffff;
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  padding: 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
  box-shadow: 0 6px 18px rgba(17,17,17,0.06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  text-align: left;
}

.dh-klantkaart:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(17,17,17,0.10);
  border-color: #1c4aba;
}

/* Logo in kaart (gecentreerd + groter) */
.dh-klantkaart img.dh-klantkaart-logo{
  height: 90px;
  width: 240px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
}

.dh-klantkaart-titel{
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  color: #111111;
}

.dh-klantkaart-intro{
  margin: 0;
  color: #4a4a4a;
  font-size: 16px;
  line-height: 1.5;
}

.dh-klantkaart-link{
  margin-top: auto;
  color: #1c4aba;
  font-weight: 600;
  text-decoration: none;
}

/* Achtergrondrij (indien gebruikt) */
.dh-klantverhalen-rij{
  background: #f5f5f5;
}

/* Grid: 3 desktop, 2 tablet, 1 mobiel */
.dh-klantverhalen-grid{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 1024px){
  .dh-klantverhalen-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px){
  .dh-klantverhalen-grid{
    grid-template-columns: 1fr !important;
  }
}


/* =========================================================
   5) LOGOWALL (RIJ 5)
   ========================================================= */

.dh-logo-grid{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  align-items: center;
}

@media (max-width: 1024px){
  .dh-logo-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .dh-logo-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.dh-logo-item{
  background: #ffffff;
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  text-decoration: none;
}

.dh-logo-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(17,17,17,0.10);
  border-color: #1c4aba;
}

.dh-logo{
  max-width: 200px;
  width: 100%;
  height: 150px;
  object-fit: contain;
  display: block;
}


/* =========================================================
   6) KLANTVERHALEN SINGLE (DETAILPAGINA)
   ========================================================= */

/* Geen extra spacing bovenaan op single klantverhalen */
.single-klantverhalen #primary,
.single-klantverhalen #main,
.single-klantverhalen .content-area,
.single-klantverhalen .site-content,
.single-klantverhalen .content-wrap{
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* -------------------------
   HERO (shortcode output in Kadence row)
   - Binnen Kadence containerbreedte (theme)
   ------------------------- */

/* Let op: we limiteren NIET met vaste px, maar laten Kadence container de breedte bepalen.
   Deze selectors houden alleen de inhoud “netjes” binnen de bestaande inner col. */
.single-klantverhalen .hero-curve .dh-kv-hero-quote{
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 32px;
  align-items: center;
  padding: 40px 0 10px;
}

.single-klantverhalen .hero-curve .dh-kv-hero-quote-text{
  color: #D8D8D8;
  opacity: 0.95;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.35;
  font-weight: 600;
  max-width: 58ch;
}

.single-klantverhalen .hero-curve .dh-kv-hero-quote-person{
  justify-self: start;
  display: grid;
  gap: 8px;
  align-content: start;
}

.single-klantverhalen .hero-curve .dh-kv-hero-quote-avatar img{
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  border: 2px solid rgba(255,255,255,0.25);
}

.single-klantverhalen .hero-curve .dh-kv-hero-quote-name{
  color: #EB7B2F;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
}

.single-klantverhalen .hero-curve .dh-kv-hero-quote-role{
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  line-height: 1.2;
}

/* Mobiel: stapelen + person centreren */
@media (max-width: 900px){
  .single-klantverhalen .hero-curve .dh-kv-hero-quote{
    grid-template-columns: 1fr;
    padding: 28px 0 6px;
  }

  .single-klantverhalen .hero-curve .dh-kv-hero-quote-person{
    justify-self: center;
    text-align: center;
  }

  .single-klantverhalen .hero-curve .dh-kv-hero-quote-avatar{
    display: flex;
    justify-content: center;
  }
}

/* -------------------------
   VERHAAL + LOGO (66/33)
   ------------------------- */

.dh-kv-verhaal{
  padding: 18px 0 8px;
}

.dh-kv-verhaal p{
  margin-bottom: 1em;
}

/* Wrapper grid (jouw HTML gebruikt .dh-kv-verhaal-grid / .dh-kv-verhaal-text / .dh-kv-verhaal-logo) */
.dh-kv-verhaal-grid{
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); /* 66/33 */
  gap: 48px;
  align-items: start;
}

.dh-kv-verhaal-text{
  min-width: 0;
}

/* Logo kolom: centreer inhoud */
.dh-kv-verhaal-logo{
  min-width: 0;
  justify-self: center;
  text-align: center;
  position: sticky;
  top: 120px;
}

.dh-kv-verhaal-logo-img{
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
}

.dh-kv-verhaal-logo-name{
  margin-top: 12px;
  font-weight: 700;
  line-height: 1.2;
}

/* Tablet/mobiel: stapelen */
@media (max-width: 900px){
  .dh-kv-verhaal-grid{
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .dh-kv-verhaal-logo{
    position: static;
    top: auto;
    justify-self: center;
    max-width: 280px;
  }
}


/* -------------------------
   QUOTE CARD (onder het verhaal)
   ------------------------- */

.dh-kv-quote{
  padding: 22px 0 8px;
}

.dh-kv-quote-card{
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(17,17,17,0.06);
  align-items: start;
  /* Geen vaste max-width: Kadence container bepaalt breedte */
}

@media (max-width: 640px){
  .dh-kv-quote-card{
    grid-template-columns: 1fr;
  }
}

.dh-kv-quote-avatar img{
  width: 88px;
  height: 88px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  border: 1px solid #e6e6e6;
}

.dh-kv-quote-text{
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.5;
}

.dh-kv-quote-meta{
  margin: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.dh-kv-quote-naam{
  font-weight: 700;
}

.dh-kv-quote-functie{
  opacity: 0.85;
}


/* -------------------------
   BOTTOM IMAGE (max 800x600, gecentreerd)
   ------------------------- */

.dh-kv-bottom{
  padding: 18px 0 10px;
}

.single-klantverhalen .dh-kv-bottom-media{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d8d8d8;

  max-width: 800px;           /* jouw gewenste formaat */
  margin-left: auto;
  margin-right: auto;
}

.single-klantverhalen .dh-kv-bottom-media img{
  width: 100%;
  height: auto;
  max-height: 600px;          /* jouw gewenste formaat */
  object-fit: cover;
  object-position: center;
  display: block;
}


/* =========================
   CTA (centreren)
   ========================= */

/* De sectie zelf */
.single-klantverhalen .dh-kv-cta{
  padding: 26px 0 0;
}

/* Card centreren + niet full-width */
.single-klantverhalen .dh-kv-cta-card{
  width: 100%;
  max-width: var(--global-content-width, 1100px); /* volgt theme container, fallback */
  margin-left: auto;
  margin-right: auto;

  border: 0;
  padding: 18px;
  background: transparent;
}
/* CTA: inhoud centreren */
.single-klantverhalen .dh-kv-cta-card{
  text-align: center;
}

/* Knop ook echt in het midden */
.single-klantverhalen .dh-kv-cta-card .dh-kv-button{
  display: inline-flex;
  margin-left: auto;
  margin-right: auto;
}


/* (optioneel) als je 'm visueel meer "card" wil laten voelen zonder rand:*/
.single-klantverhalen .dh-kv-cta-card{
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(17,17,17,0.06);
}

