:root{
  --bg:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --accent:#e5007e;
  --accent-dark:#c4006c;
  --radius:18px;
  --header-h:140px;
  --header-h-mobile:104px;
}

*{ box-sizing:border-box; }

html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font-family:"Lato", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size:16px;
  line-height:1.8em;
  font-weight:400;
}

.container{
  width:min(1200px, 92vw);
  margin:0 auto;
}

/* Topbar */
.topbar{
  background:#fff;
  border-bottom:2px solid rgba(17,24,39,.10);
}

.topbar__inner{
  height:var(--header-h);
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  gap:18px;
  padding:0;
}

/* Logo */
.logo{
  justify-self:start;
  display:inline-flex;
  align-items:center;
  text-decoration:none;
}

.logo img{
  display:block;
  width:auto;
  height:auto;
  max-height:72px;
}

.logo img[src*="inhollandlogoint"]{
  max-height:108px;
}

/* Titelblok */
.topbarTitle{
  grid-column:2;
  grid-row:1;
  margin-top:10px;
  justify-self:center;
  align-self:center;
  text-align:center;
  line-height:1.05;
}

.topbarTitle__main{
  font-weight:700;
  font-size:clamp(18px, 2.2vw, 28px);
  line-height:1.05;
  color:#000;
  white-space:nowrap;
}

.topbarTitle__sub{
  margin-top:5px;
  font-weight:400;
  font-size:clamp(18px, 2.2vw, 24px);
  line-height:1.1em;
  color:var(--text);
}

/* Rechts: toggle + CTA */
.topbarRight{
  justify-self:end;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
  padding-top:10px;
  height:100%;
}

/* CTA (basis) */
.cta{
  display:inline-flex;
  align-items:center;
  gap:12px;
  height:54px;
  padding:0 22px;
  background:var(--accent);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  font-size:18px;
  line-height:1;
  border-radius:0;
  border:0;
  cursor:pointer;
  white-space:nowrap;
}

.cta:hover{
  background:var(--accent-dark);
}

.cta__icon{
  font-weight:900;
}

.cta:hover .cta__icon{
  animation:arrowWiggle .6s ease-in-out infinite;
}

/* Desktop header CTA: op de grijze lijn */
.cta--header{
  align-self:flex-end;
  margin-top:auto;
  margin-bottom:0;
}

/* Mobile CTA standaard uit */
.cta--mobile{
  display:none;
}

/* Language switch */
.langswitch{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  user-select:none;
  padding:6px 12px;
  border-radius:999px;
  border:none;
  background:#fff;
  height:42px;
}

.langswitch__label{
  font-weight:700;
  font-size:13px;
  color:rgba(17,24,39,.55);
  line-height:1;
}

.langswitch__label.is-active{
  color:var(--text);
}

.langswitch__track{
  position:relative;
  width:46px;
  height:26px;
  border-radius:999px;
  background:rgba(17,24,39,.10);
  flex:0 0 auto;
}

.langswitch__thumb{
  position:absolute;
  top:3px;
  left:3px;
  width:20px;
  height:20px;
  border-radius:999px;
  background:var(--accent);
  transition:transform .18s ease;
}

.langswitch.is-eng .langswitch__thumb{
  transform:translateX(20px);
}

.main{
  padding:28px 0 60px;
}

/* Player stack (panel + frame samen) */
.playerStack{
  position:relative;
}

/* Player */
.player__frame{
  position:relative;
  width:100%;
  border:0;
  border-radius:var(--radius);
  overflow:hidden;
  background:#fff;
  aspect-ratio:16 / 9;
  max-height:720px;
}

.player__frame--wide{
  max-height:none;
}

.heygenIframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  outline:0;
  background:transparent;
}

/* Floating panel (basis) */
.floatingPanel{
  width:min(360px, calc(100% - 36px));
  background: rgba(255,255,255,.65);
  border:1px solid rgba(17,24,39,.12);
  border-radius:14px;
  box-shadow: 0 10px 30px rgba(17,24,39,.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index:5;
}

/* Desktop: panel overlay linksboven in frame */
@media (min-width: 521px){
  .floatingPanel{
    position:absolute;
    top:18px;
    left:18px;
    margin:0;
  }
}

/* Header bar */
.floatingPanel__bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-bottom:1px solid rgba(17,24,39,.10);
  user-select:none;
}

.floatingPanel__title{
  font-weight:700;
  font-size:13px;
  color:rgba(17,24,39,.85);
  line-height:1.3;
  flex:1 1 auto;
  min-width:0;
}

.floatingPanel__actions{
  display:flex;
  gap:8px;
  flex:0 0 auto;
}

.iconBtn{
  width:30px;
  height:30px;
  border-radius:10px;
  border:0;
  background: rgba(255,255,255,.55);
  cursor:pointer;
  font-weight:200;
  font-size:1.1em;
  line-height:1;
}

.iconBtn:hover{
  color:#DC207F;
}

/* Scrollbar in panel body */
.floatingPanel__body{
  padding:14px 14px 16px;
  max-height:340px;
  overflow:auto;
  scrollbar-width:thin;
}

.floatingPanel.is-min .floatingPanel__body{
  display:none;
}

.floatingPanel__body::-webkit-scrollbar{
  width:10px;
}
.floatingPanel__body::-webkit-scrollbar-thumb{
  background:rgba(17,24,39,.20);
  border-radius:999px;
}

/* Panel text styles */
.kicker{
  margin:0 0 4px;
  color:var(--accent);
  font-weight:700;
  font-size:15px;
}

.panelH2{
  margin:0 0 20px;
  font-size:24px;
  line-height:1.35;
  font-weight:700;
}

.panelText{
  margin:0 0 10px;
  font-size:15px;
  line-height:1.8em;
}

.panelText2{
  margin:0 0 10px;
  margin-top:0px;
  font-size:15px;
  line-height:1.8em;
  font-weight:bold;
}

.panelFine{
  margin-top:15px;
  font-size:15px;
  line-height:1.6;
  color:rgba(17,24,39,.70);
}

/* FAQ: full width + diagonaal begin/eind */
.faq-section{
  position:relative;
  width:100%;
  padding:90px 0 90px;
  margin-top:40px;

  background-color:#EBEBEB;
  background-image: repeating-linear-gradient(
    -25deg,
    rgba(255,255,255,.55) 0px,
    rgba(255,255,255,.55) 2px,
    rgba(255,255,255,0) 2px,
    rgba(255,255,255,0) 10px
  );
}

.faq-section::before{
  content:"";
  position:absolute;
  left:0; right:0;
  top:0;
  height:70px;
  background:#fff;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 100%);
  pointer-events:none;
}

.faq-section::after{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom:0;
  height:70px;
  background:#fff;
  clip-path: polygon(0 0, 100% 65%, 100% 100%, 0 100%);
  pointer-events:none;
}

.cards__grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:26px;
  align-items:stretch;
}

/* Card */
.card{
  background:#fff;
  border:2px solid rgba(255,255,255,.10);
  border-radius:0;
  overflow:hidden;
}

.card__body{
  padding:22px 22px 26px;
}

.card__kicker{
  margin:0 0 10px;
  color:var(--accent);
  font-weight:700;
  font-size:15px;
  line-height:1.2;
}

.card__title{
  margin:0 0 12px;
  font-size:20px;
  line-height:1.2;
  font-weight:700;
  color:#000;
}

/* FIX: spacing tussen alinea's in cards (altijd, niet alleen tablet) */
.card__text{
  margin:0 0 10px;
  font-size:15px;
  line-height:1.8em;
  color:#111827;
}
.card__text:last-child{
  margin-bottom:0;
}

/* Cards met foto */
.card--withphoto{
  border:0;
}

.card--withphoto .card__media{
  width:100%;
  background:#fff;
}

.card--withphoto .card__media img{
  display:block;
  width:100%;
  height:220px;
  object-fit:cover;
  object-position:center;
}

.card--withphoto .card__body{
  border:2px solid rgba(255,255,255,.10);
  border-top:0;
}

/* Contact card */
.card--contact{
  border:0;
}

.card--contact .card__title{
  margin:70px 0 0px;
}

.card--contact .faqBtn{
  margin-top:20px;
}

/* Buttons */
.faqBtn{
  margin-top:14px;
  display:inline-flex;
  align-items:center;
  gap:12px;
  height:54px;
  padding:0 22px;
  background:var(--accent);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  font-size:18px;
  line-height:1;
  border-radius:0;
  border:0;
  cursor:pointer;
  white-space:nowrap;
}

.faqBtn i{
  color:#fff;
  font-size:18px;
}

.faqBtn:hover i{
  animation:arrowWiggle .6s ease-in-out infinite;
}

/* Footer */
.footer{
  padding:24px 0 30px;
  border-top:0;
  background:#fff;
}

.footer__inner{
  display:flex;
  justify-content:center;
}

.footerText{
  margin:0;
  font-size:12px;
  color:rgba(17,24,39,.55);
  text-align:center;
}

.footerText a{
  color:rgba(17,24,39,.55);
  text-decoration:none;
}

.footerText a:hover{
  text-decoration:underline;
}

/* Tablet */
@media (max-width: 980px){
  .cards__grid{
    grid-template-columns: 1fr;
    gap:18px;
  }

  .card__title{
    font-size:18px;
  }

  .cta{
    height:48px;
    padding:0 16px;
    font-size:14px;
  }
}

/* Mobile */
@media (max-width: 520px){
  .topbar__inner{
    height:auto;
    padding:14px 0 14px;
    grid-template-columns:1fr;
    grid-template-rows:auto auto auto;
    row-gap:15px;
    align-items:center;
    justify-items:center;
  }

  .logo{
    justify-self:center;
  }

  .topbarTitle{
    grid-column:auto;
    grid-row:auto;
    margin-top:0;
    justify-self:center;
    text-align:center;
  }

  .topbarTitle__main,
  .topbarTitle__sub{
    white-space:normal;
  }

  .topbarRight{
    justify-self:center;
    align-items:center;
    padding-top:10px;
    height:auto;
  }

  .cta--header{
    display:none;
  }

  .cta--mobile{
    display:inline-flex;
    width:100%;
    justify-content:center;
    margin-top:14px;
    height:44px;
    padding:0 14px;
    font-size:15px;
    gap:10px;
  }

  .logo img{ max-height:52px; }
  .logo img[src*="inhollandlogoint"]{ max-height:80px; }

  .player__frame{
    border-radius:14px;
  }

  .floatingPanel{
    position:static;
    width:100%;
    margin:12px 0 14px;
  }

  /* NEW: op mobiel geen scrollbar, volledig uitklappen */
  .floatingPanel__body{
    max-height:none;
    overflow:visible;
  }

  .panelH2{
    font-size:22px;
  }

  .card__body{
    padding:18px 18px 20px;
  }

  .card__title{
    font-size:18px;
  }

  .card--withphoto .card__media img{
    height:160px;
  }

  .faq-section{
    padding:70px 0 70px;
    margin-top:24px;
  }

  .faq-section::before,
  .faq-section::after{
    height:50px;
  }
}

@keyframes arrowWiggle{
  0%, 100% { transform:translateX(0); }
  50%      { transform:translateX(6px); }
}
