:root {
	  	--forest: #042721;
	  --forest-2: #123a2c;
	  	--mint: #9AF5BE;
	  --sage: #9fd8b9;
	  	--teal: #2CC295;
	  	--cream: #F1F7F6;
	  --white: #ffffff;
	  	--ink: #042721;
	  --radius-lg: 28px;
	  --radius-pill: 999px;
	  --container: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
	font-family: 'Inter', sans-serif;
	  color: var(--ink);
	  background: var(--white);
	  line-height: 1.5;
	  }
h1, h2, h3 { font-family: 'Poppins', sans-serif; font-weight: 600; line-height: 1.05; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== header ===== */
.site-header { position: sticky; top: 0; background: #fff; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 128px; }
.logo { display: flex; align-items: center; }
.logo-img { height: 38px; width: auto; display: block; }
.main-nav { display: flex; gap: 40px; font-weight: 600; font-size: 15px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); }

/* ===== buttons ===== */
/* Reset de browserstijl van <button>. Zonder dit rendert iOS Safari de
   verzendknop met zijn eigen systeemuiterlijk (blauwe vulling, Arial)
   in plaats van de themastijl. De andere knoppen zijn <a> en hebben er
   geen last van, vandaar dat het alleen bij het formulier opviel. */
.btn {
	-webkit-appearance: none;
	appearance: none;
	background-color: transparent;
	border: 0;
	font-family: inherit;
	cursor: pointer;
}

.btn { display: inline-block; padding: 20px 30px; border-radius: var(--radius-pill); font-weight: 600; font-size: 18px; transition: .2s; }
.pill { padding: 14px 26px; }
.btn-line-light { border: 1.5px solid var(--mint); color: var(--mint); }
.btn-line-light:hover { background: var(--mint); color: var(--forest); }
.btn-line-mint { border: 1.5px solid var(--mint); color: var(--white); font-size: 13px; letter-spacing: .03em; }
.btn-line-mint:hover { background: transparent; color: var(--mint); }
.btn-line-dark { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-line-dark:hover { background: var(--ink); color: var(--white); }

/* ===== hero ===== */
.hero { position: relative; background: linear-gradient(135deg, var(--forest), var(--forest-2)); border-radius: var(--radius-lg); margin: 24px 56px 0; color: var(--white); --badge-w: clamp(170px, calc(25vw - 55px), 320px); --badge-h: calc(var(--badge-w) * 0.454); }
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; color: var(--mint); border-radius: inherit; }
.weave-svg { width: 100%; height: 100%; display: block; position: relative; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: rgba(4,39,33,.45); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 80px 24px; }
.hero-title { font-size: 100px; }
.accent-mint { color: var(--mint); }
.accent-teal { color: var(--teal); }
.intro-section h2 .accent-teal { color: inherit; }
.hero-left .btn { margin-top: 32px; }
.hero-right .pill { color: var(--mint); border-radius: 5px; padding: 10px; font-size: 16px; line-height: 34px; letter-spacing: 0; }
.hero-lead { margin-top: 24px; font-size: 15px; opacity: .95; }
.hero-lead-highlight { color: var(--sage); font-weight: 600; }
/* label schaalt mee met de vensterbreedte en schuift naar binnen, zodat het nooit over de tekst valt */
.hero-badge { position: absolute; top: clamp(24px, 2.6vw, 40px); right: clamp(-60px, calc(24px - (100vw - 900px) * 0.14), 24px); }
.hero-badge-img { display: block; width: var(--badge-w); height: auto; }
.hero-right { padding-top: clamp(0px, calc((1400px - 100vw) * 0.6), calc(var(--badge-h) - 24px)); }

/* ===== intro ===== */
.intro-section { position: relative; overflow: hidden; text-align: center; padding: 100px 24px 60px; }
.weave-bg { position: absolute; left: 50%; top: calc(50% - 20px); width: 1065px; height: 1087px; transform: translate(-622.5px, -628.5px); pointer-events: none; color: var(--teal); background: url('assets/images/Laag_1.png') center center / contain no-repeat; }
.weave-bg .weave-svg { display: none; }
.intro-section h2, .intro-section p { position: relative; z-index: 1; }
.intro-section h2 { font-size: 60px; margin-bottom: 20px; }
.intro-section p { max-width: 640px; margin: 0 auto; color: #3c5a4e; }

/* ===== stacked cards (component: zie cardsData in script.js) ===== */
.cards-stack { padding: 0 24px 120px; }
.stack-card {
	  position: sticky;
        top: calc(138px + var(--i) * 18px);
	  display: grid;
	  grid-template-columns: 1fr 1fr;
	  gap: 40px;
	  align-items: center;
        max-width: calc(738px + var(--i) * 30px);
	  margin: 0 auto 40px;
	  padding: 56px;
	  border-radius: 20px;
	  box-shadow: 0 20px 40px rgba(0,0,0,.12);
}
.card-dark { background: var(--forest); color: var(--white); }
.card-mint { background: var(--mint); color: var(--forest); }
.card-light { background: var(--cream); color: var(--forest); }
.stack-card h3 { font-size: 60px; margin: 16px 0; }
.badge-label { display: inline-block; border: 1px solid currentColor; border-radius: 5px; padding: 5px 10px; font-size: 12px; font-weight: 600; text-transform: uppercase; }
.badge-label.light { color: var(--mint); }
.card-media { position: relative; }
.card-media img { border-radius: 20px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.icon-badge { position: absolute; bottom: -28px; left: -28px; width: 96px; height: 96px; border-radius: 22px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.icon-badge img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
.icon-badge.light { background: var(--mint); color: var(--forest); }
.icon-badge.dark { background: var(--forest); color: var(--mint); }

/* ===== contact ===== */
.contact-section { background: var(--cream); padding: 100px 24px; }
.contact-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.contact-heading { font-size: 60px; }
.madlib-form p { font-family: 'Poppins', sans-serif; font-size: 36px; line-height: 50px; font-weight: 600; margin-bottom: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.madlib-form input {
	  font-family: 'Inter', sans-serif;
  font-size: 18px;
	  font-weight: 600;
  letter-spacing: 0;
	  border: none;
	  border-bottom: 2px solid var(--ink);
	  background: transparent;
	  padding: 4px 2px;
  width: 132px;
	  color: var(--ink);
}
.madlib-form input[name="naam"] { width: 176px; } .madlib-form input[name="dienstverlening"] { width: 185px; }
.madlib-form input::placeholder { color: #7c948a; }
.madlib-form input:focus { outline: none; border-color: var(--teal); }
.form-static { font-size: 26px; }
.madlib-form { display: flex; flex-direction: column; width: fit-content; justify-self: start; } .madlib-form .btn { margin-top: 24px; align-self: flex-end; }
.madlib-form .btn:disabled { opacity: .6; cursor: not-allowed; }
.form-message { margin-top: 16px; font-size: 14px; color: var(--teal); font-weight: 600; }

/* ===== footer ===== */
.site-footer { background: var(--cream); padding: 60px 24px; border-top: 1px solid #d7e5dd; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; align-items: start; }
.footer-logo { display: flex; align-items: center; }
.footer-logo-img { height: 34px; width: auto; display: block; }
.footer-col p { font-size: 16px; font-weight: 500; color: #000; }

/* ===== responsive ===== */
@media (max-width: 900px) {
	.hero-inner, .contact-inner, .stack-card { grid-template-columns: 1fr; }
	.hero-title { font-size: 44px; }
	.stack-card h3 { font-size: 36px; overflow-wrap: break-word; word-break: break-word; }
	.hero-badge { position: relative; top: auto; right: auto; z-index: 5; margin: 24px auto 0; display: block; }
	.hero-right { padding-top: 0; }
	.hero-badge-img { width: 200px; margin: 0 auto; }
	  .main-nav {
		      position: absolute;
		      top: 80px;
		      left: 0;
		      right: 0;
		      background: #fff;
		      flex-direction: column;
		      padding: 20px 24px;
		      display: none;
		      gap: 20px;
		      border-bottom: 1px solid #eee;
	}
	.main-nav.open { display: flex; }
	.nav-toggle { display: flex; }
	.footer-inner { grid-template-columns: 1fr 1fr; }
	    	.stack-card { top: calc(150px + var(--i) * 34px); width: calc(100% - (4 - var(--i)) * 16px); margin-left: auto; margin-right: auto; }
}

/* ===== word reel: "Woven into your strength" rolt om naar het echte woord ===== */
.word-reel {
	  display: inline-block;
	  overflow: hidden;
	  height: 1.3em;
	  line-height: 1.3em;
	  vertical-align: top;
}
.word-reel-inner {
	  display: block;
	  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
	  will-change: transform;
}
.word-slot {
	  display: block;
	  height: 1.3em;
	  line-height: 1.3em;
}
.word-reel.is-revealed .word-reel-inner {
	  transform: translateY(-50%);
}

/* ===== mobiel: hero aanpassingen ===== */
@media (max-width: 900px) {
	/* label hangt half buiten de hero aan de onderkant (zoals op desktop bovenaan) */
	.hero { z-index: 2; overflow: visible; }
	.hero-badge { position: absolute; top: auto; left: auto; right: 20px; bottom: 0; transform: translateY(50%); margin: 0; z-index: 6; }
	.hero-badge-img { width: 180px; margin: 0; }

	/* volgorde: titel -> label-knop -> tekst -> contactknop */
	.hero-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 32px 24px 72px; }
	.hero-left, .hero-right { display: contents; }
	.hero-title { order: 1; }
	.hero-right .btn-line-mint { order: 2; }
	.hero-lead { order: 3; margin-top: 0; }
	.hero-left .btn { order: 4; margin-top: 4px; font-size: 14px; padding: 13px 24px; }

	/* kleiner blokje 'over vidi ortho solutions' */
	.hero-right .btn.btn-line-mint.pill { font-size: 11px; line-height: 1.2; padding: 8px 12px; letter-spacing: .04em; }
}

/* ===== sticky header: secties niet onder de header laten vallen bij ankerlinks ===== */
section[id] { scroll-margin-top: 140px; }
@media (max-width: 900px) { section[id] { scroll-margin-top: 100px; } }

/* ===== spambescherming: honeypot buiten beeld, wel invulbaar voor bots ===== */
.hp-veld { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== footer: telefoon en e-mail als link, zelfde uiterlijk als de tekst ===== */
.footer-col a { color: inherit; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }

/* ===== reCAPTCHA-badge iets rustiger positioneren ===== */
.grecaptcha-badge { z-index: 90; }


/* =========================================================================
   RESPONSIVE FIXES  (toegevoegd 21-08-2026)
   Extra breakpoints onder 900px: hero-marge, kopgroottes, footer en
   ruimte onder de footer voor de reCAPTCHA-badge.
   ========================================================================= */

/* Hero-kaart: vaste marge van 56px links/rechts had geen mobiele override */
@media (max-width: 900px) {
  .hero { margin: 24px 24px 0; }
}
@media (max-width: 480px) {
  .hero       { margin: 16px 16px 0; }
  .hero-inner { padding: 28px 20px 64px; }
}

/* Lange onbreekbare strings (BTW-nummer, e-mailadres) binnen de rand houden */
.footer-col p,
.footer-col a { overflow-wrap: anywhere; }

.hero-title,
.intro-section h2,
.contact-heading,
.stack-card h3 { overflow-wrap: break-word; }

.madlib-form input { max-width: 100%; }

/* Kleine telefoons: koppen stonden hier nog op 60px (desktopformaat) */
@media (max-width: 480px) {
  .hero-title       { font-size: 38px; }
  .intro-section h2 { font-size: 40px; }
  .contact-heading  { font-size: 40px; }
  .stack-card h3    { font-size: 32px; }
  .intro-section    { padding: 64px 20px 40px; }
  .stack-card       { padding: 32px 24px; }
  .madlib-form p    { font-size: 28px; line-height: 40px; }
}

/* Zeer smalle schermen (iPhone SE 320px, Galaxy Fold 280px) */
@media (max-width: 360px) {
  .container,
  .intro-section,
  .site-footer      { padding-left: 16px; padding-right: 16px; }
  .hero             { margin: 12px 12px 0; }
  .hero-inner       { padding: 24px 16px 56px; }
  .hero-badge-img   { width: 140px; }
  .hero-title       { font-size: 30px; }
  .intro-section h2 { font-size: 32px; }
  .contact-heading  { font-size: 32px; }
  .stack-card h3    { font-size: 26px; }
  .stack-card       { padding: 24px 20px; }
  .footer-inner     { grid-template-columns: 1fr; }
  .madlib-form p    { font-size: 24px; line-height: 34px; }
}

/* Ruimte onder de footer zodat de reCAPTCHA-badge geen tekst afdekt */
@media (max-width: 900px) {
  .site-footer { padding-bottom: 120px; }
  .main-nav a  { display: block; padding: 10px 0; }
  .nav-toggle  { padding: 10px; margin-right: -10px; }
}

/* Hero-achtergrond: direct zichtbaar, ook voordat de video geladen is.
   Op mobiel laadt de video niet, dan blijft dit staan. */
.hero-bg {
  background-color: var(--forest, #042721);
  background-image:
    radial-gradient(60% 55% at 78% 84%, #163831 0%, rgba(22,56,49,0) 62%),
    radial-gradient(52% 46% at 44% 70%, #123a2c 0%, rgba(18,58,44,0) 66%),
    linear-gradient(163deg, #0a2c26 0%, #042721 56%, #062721 100%);
}
