/* ===========================================================================
   Harv hero overrides — layered on top of the Webflow stylesheet.
   Brand green: #77fb38 · display font: Albert Sans
   =========================================================================== */

/* --- Text selection: brand green instead of the browser-default blue ------ */
::selection      { background: #77fb38; color: #06180a; text-shadow: none; }
::-moz-selection { background: #77fb38; color: #06180a; text-shadow: none; }

/* --- Brand-green arrow cursor (the original selecting cursor) -------------- */
*, *::before, *::after {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' shape-rendering='crispEdges'%3E%3Cpath d='M3 2L3 21L8 16L11 23L14 22L11 15L18 15Z' fill='%2377fb38' stroke='%23101314' stroke-width='2' stroke-linejoin='miter'/%3E%3C/svg%3E") 3 2, auto;
}
a, button, .w-button, [role='button'], .nav-link, .navbar-brand, label, summary, select {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 28 28' shape-rendering='crispEdges'%3E%3Cpath d='M3 2L3 21L8 16L11 23L14 22L11 15L18 15Z' fill='%239bff5c' stroke='%23101314' stroke-width='2' stroke-linejoin='miter'/%3E%3C/svg%3E") 3 2, pointer;
}
input, textarea, [contenteditable='true'] { cursor: text; }

/* --- Services / Blog dropdowns: just titles, stacked, open on hover --------- */
.nav-menu-two .harv-has-mega { position: relative; display: flex; align-items: center; }
.harv-has-mega > .harv-mega-toggle { cursor: pointer; }
@media (min-width: 992px) {
  .navbar, .navbar-logo-left-container, .container-2, .navbar-wrapper, .nav-menu-wrapper { overflow: visible; }
}
.harv-mega {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border-top: 16px solid transparent; background-clip: padding-box;
  background: #fff; border-radius: 16px; box-shadow: 0 22px 60px rgba(0, 0, 0, .14);
  padding: 6px; min-width: 232px; display: none; z-index: 90;
}
.harv-has-mega:hover > .harv-mega,
.harv-has-mega:focus-within > .harv-mega { display: block; }
.harv-mega a { display: block; padding: 11px 16px; border-radius: 11px; font-family: "Albert Sans", sans-serif; font-weight: 600; font-size: .95rem; color: #101314; text-decoration: none; white-space: nowrap; transition: background-color .2s; }
.harv-mega a:hover { background: #f1f4f0; }
@media (max-width: 991px) { .harv-mega { display: none !important; } }

/* --- "Harv." wordmark (top-left) -------------------------------------------- */
.navbar-brand.w-nav-brand { width: auto; }
.harv-wordmark {
  font-family: "Albert Sans", sans-serif;
  font-weight: 700;
  font-size: 2.6rem;
  letter-spacing: -0.045em;
  line-height: 1;
  color: #101314;
  display: inline-block;
}
.harv-wordmark .harv-dot { display: inline-block; width: .2em; height: .2em; border-radius: 50%; background: #77fb38; vertical-align: baseline; margin-left: .04em; }

/* --- Hero headline ---------------------------------------------------------
   Keep the original Webflow sizing: h1 = 7.2em, .typing-text = 8rem tall with
   the green underline. We only stop lines wrapping per-word on desktop.        */
.hero-section .h1-wrapper {
  width: 100%;
  /* headline vertical position */
  margin-top: 1rem;
  /* the headline isn't interactive and its full-width line boxes sit on top of
     the MacBook canvas; let clicks pass through to the laptop (-> boek.html) */
  pointer-events: none;
}
.hero-section .title-awards-wrapper { pointer-events: none; }
@media screen and (min-width: 992px) {
  .hero-section .h1-wrapper h1 { white-space: nowrap; }
}

/* --- Rotating headline word (typed by typed.js) ---------------------------
   The line gets a FIXED height (its own line box, decoupled from the word and
   from the line above), so the word sits on a fixed spot and "voor groei"
   never shifts as the word types/clears. */
.hero-section .h1-wrapper .harv-rot {
  display: block;
  height: 1.1em;
  line-height: 1.1;
  overflow: visible;
}
.hero-section .harv-rot .typing-text {
  color: #101314;
  display: inline-block;
  height: auto;
  line-height: 1.1;
}

/* --- MacBook 3D stage (reuses .spline's right-60% absolute box) ------------ */
.harv-stage { pointer-events: none; z-index: 5; }
/* the brand pointer-cursor only while actually hovering the laptop (the JS
   raycast toggles .harv-hot); elsewhere the canvas keeps the normal arrow */
#harv-macbook-canvas canvas.harv-hot {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 28 28' shape-rendering='crispEdges'%3E%3Cpath d='M3 2L3 21L8 16L11 23L14 22L11 15L18 15Z' fill='%239bff5c' stroke='%23101314' stroke-width='2' stroke-linejoin='miter'/%3E%3C/svg%3E") 3 2, pointer;
}
/* nudge the stage right so the big headline has room on the left */
.spline.harv-stage { left: 44%; }
#harv-macbook-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#harv-macbook-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
/* feather the left edge so the green glow never hard-clips into a vertical stripe */
#harv-macbook-canvas {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 15%);
  mask-image: linear-gradient(to right, transparent 0%, #000 15%);
}

/* --- Responsive: drop the MacBook below the headline on small screens ------- */
@media screen and (max-width: 991px) {
  .harv-wordmark { font-size: 2rem; }
  .spline.harv-stage { inset: 42% 0% 0% 0% !important; left: 0 !important; height: 56% !important; }
  /* the canvas is full-width on mobile; no left stripe to feather */
  #harv-macbook-canvas { -webkit-mask-image: none; mask-image: none; }
  .hero-section .h1-wrapper { margin-top: 8rem; }
}
/* --- Phone hero: a clean centred stack -------------------------------------
   1. the headline at the very top, 2. a BIG MacBook filling the middle,
   3. the booking CTA below it. */
@media screen and (max-width: 767px) {
  .hero-section { min-height: 100svh; }
  /* big, LEFT-aligned headline at the very top of the phone hero. z-index lifts it
     ABOVE the MacBook canvas (z-index 5) so the laptop's glow can never clip the
     descender of the "g" in "groei". It's pointer-events:none, so taps still pass
     through to the laptop. */
  /* padding-inline:0 here: the parent .hero-content-wrapper already adds 24px, so
     the headline now starts at 24px — the SAME left edge as the CTA + the logo
     (was 48px = double padding, which left it misaligned with the CTA). */
  /* z-index:8 on the WHOLE title block lifts the headline above the MacBook canvas
     (z-index:5). will-change:auto !important strips Webflow's leftover inline
     will-change:transform,opacity — that kept the headline on its own GPU layer that
     re-rasterised on every typed character (the "flash/flicker" over the canvas).
     z-index:8 still keeps the text above the canvas without the permanent layer. */
  .hero-section .title-awards-wrapper { position: relative; z-index: 8; will-change: auto !important; }
  /* padding-bottom: the parent .hero-content-wrapper has overflow:hidden and its box
     ends exactly at the text baseline, which clipped the descender of the "g" in
     "groei". The bottom padding extends the clip box below the descender. */
  .hero-section .h1-wrapper { margin-top: 2rem; text-align: left; padding: 0 12px 16px 0; position: relative; z-index: 6; }
  /* NO text-wrap:balance on the headline: with the typed word it re-balanced on every
     keystroke and visibly wrapped/un-wrapped ("terugknippert"). The rotating line is
     nowrap (every word fits: widest is 296px in a 330px box) so it never jumps. */
  .hero-section .h1-wrapper h1 { font-size: 3.9em; line-height: 1.05; font-weight: 650; letter-spacing: -0.03em; }
  .hero-section .h1-wrapper .harv-rot, .hero-section .harv-rot .typing-text { white-space: nowrap; }
  /* the MacBook sits right under the headline (tight stack) */
  .spline.harv-stage { inset: 36% 0% 14% 0% !important; left: 0 !important; height: auto !important; }
  /* (the left-aligned CTA override lives in harv-home.css, which owns .harv-hero-cta) */
}
@media screen and (max-width: 479px) {
  .hero-section .h1-wrapper h1 { font-size: 3.25em; font-weight: 650; letter-spacing: -0.03em; }
  .spline.harv-stage { inset: 34% 0% 14% 0% !important; height: auto !important; }
}

@media (prefers-reduced-motion: reduce) {
  #harv-macbook-canvas canvas { transition: none !important; }
}

/* --- Hero blur-disc perf: cheaper blur + paint containment on phones -------- */
@media screen and (max-width:767px){
  .circles-wrapper{ contain:paint; }
  .circles-wrapper .circle-real-1,.circles-wrapper .circle-real-2,.circles-wrapper .circle-real-3,.circles-wrapper .circle-real-4,.circles-wrapper .circle-real-5{ filter:blur(22px)!important; }
}
@media (prefers-reduced-motion:reduce){
  .circles-wrapper .circle-real-1,.circles-wrapper .circle-real-2,.circles-wrapper .circle-real-3,.circles-wrapper .circle-real-4,.circles-wrapper .circle-real-5{ filter:blur(20px)!important; }
}

/* --- Mobile navbar: green "Plan gesprek" pill always visible + hamburger
       nudged in from the edge (same look as the desktop button) ------------- */
.harv-nav-cta { display: none; }
@media (max-width: 991px) {
  .harv-nav-cta {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto; margin-right: 10px;
    background: #77fb38; color: #101314; font-family: "Albert Sans", sans-serif;
    font-weight: 700; font-size: .95rem; line-height: 100%;
    padding: 13px 18px; border-radius: 12px; text-decoration: none;
    transition: background-color .2s;
  }
  .harv-nav-cta:hover { background: #d2ff72; }
  .navbar .menu-button, .navbar .w-nav-button { margin-right: 12px; }
}

/* --- "Boek gesprek" button: same height as the nav pill -------------------- */
@media (min-width:992px){ html{ scroll-behavior:smooth; } }
@media (max-width:991px){ html{ scroll-behavior:auto; } }
@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto; } }
.navbar-wrapper .button-primary {
  padding-top: 21px;
  padding-bottom: 21px;
}

/* --- Scroll-down indicator (green, fades in after 5s) ---------------------- */
.hero-section { position: relative; background-color: #f4f4f3; }
/* zachte overgang naar de volgende sectie: maskeert de afgesneden groene gloed
   (overflow:hidden van Webflow) zodat er geen harde lijn onderaan de hero staat */
.hero-section::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 240px; background: linear-gradient(to bottom, rgba(244,244,243,0), #f4f4f3); pointer-events: none; z-index: 2; }
.harv-scroll {
  position: fixed;              /* anchored to the viewport, always just in view */
  left: 50%;
  bottom: 22px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  z-index: 20;
  color: #101314;
  text-decoration: none;
  font-family: "Albert Sans", sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  /* hidden until JS reveals it at 5s; hidden again on scroll */
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.harv-scroll.is-in {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.harv-scroll svg {
  width: 24px;
  height: 24px;
  color: #77fb38; /* green chevron */
  animation: harv-scroll-bounce 1.7s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@keyframes harv-scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(7px); }
}
@media (prefers-reduced-motion: reduce) {
  .harv-scroll svg { animation: none; }
}
@media screen and (max-width: 767px) {
  .harv-scroll { bottom: calc(4px + env(safe-area-inset-bottom, 0px)); gap: 3px; }
  .harv-scroll span { font-size: 0.74rem; }
}

/* ===================== MOBILE MENU (hamburger) ============================== */
@media (max-width: 991px) {
  .navbar-wrapper { position: relative; }
  /* de pil even "dik" als de hamburger: zelfde hoogte */
  .harv-nav-cta { padding: 0 18px; min-height: 46px; }
  .navbar .menu-button, .navbar .w-nav-button {
    min-height: 46px; min-width: 46px; position: relative; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px; background: #fff; border: 1px solid rgba(16,19,20,.12); padding: 0;
  }
  .harv-nav-open .menu-button, .harv-nav-open .w-nav-button { background: #f1f4f0; }
  /* Replace Webflow's icon-font hamburger (its glyph rides high in the em-box, and
     the button doesn't reliably flex-center the inner div). We overlay the inner
     div on the WHOLE button (absolute inset:0) and paint our own 3-bar SVG dead
     center via background-position — perfectly centered regardless of Webflow. */
  .navbar .menu-button .w-icon-nav-menu, .navbar .w-nav-button .w-icon-nav-menu{
    position:absolute; inset:0; font-size:0; line-height:0; color:transparent;
    background:center center / 22px 16px no-repeat
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='16' viewBox='0 0 22 16'%3E%3Cg fill='%23101314'%3E%3Crect width='22' height='2' rx='1' y='0'/%3E%3Crect width='22' height='2' rx='1' y='7'/%3E%3Crect width='22' height='2' rx='1' y='14'/%3E%3C/g%3E%3C/svg%3E");
  }
  .navbar .menu-button .w-icon-nav-menu:before, .navbar .w-nav-button .w-icon-nav-menu:before{ content:none !important; }

  /* het uitklapmenu, verankerd onder de balk */
  .nav-menu-wrapper.w-nav-menu {
    display: none; position: absolute; top: calc(100% + 8px); left: 12px; right: 12px;
    background: #fff; border: 1px solid rgba(16,19,20,.1); border-radius: 18px;
    padding: 10px; box-shadow: 0 34px 80px -34px rgba(16,19,20,.5);
    max-height: calc(100svh - 110px); overflow-y: auto; z-index: 200;
  }
  .harv-nav-open .nav-menu-wrapper.w-nav-menu { display: block !important; }
  .nav-menu-wrapper .nav-menu-two { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-menu-two .harv-has-mega { display: block; position: static; align-items: stretch; }
  .nav-menu-two .nav-link { display: block; padding: 13px 14px; font-size: 1.1rem; font-weight: 700; border-radius: 10px; color: #101314; }
  .nav-menu-two .nav-link:active { background: #f1f4f0; }
  /* submenu's (Diensten/Blog) uitgeklapt en ingesprongen tonen */
  .harv-nav-open .harv-mega {
    display: block !important; position: static; transform: none; box-shadow: none;
    border: 0; border-top: 0; background: none; padding: 2px 0 8px 12px; min-width: 0;
  }
  .harv-nav-open .harv-mega a { padding: 10px 12px; font-size: 1rem; font-weight: 600; border-radius: 9px; }
  /* dubbele "Plan gesprek" in het menu (alleen homepage) verbergen: de pil staat al in de balk */
  .nav-menu-wrapper .list { display: none; }
}

/* --- Touch feedback: a tactile press on the green pill + hamburger (phones) -- */
@media (max-width: 991px) {
  .harv-nav-cta:active { background: #5fe024; transform: translateY(1px); }
  .navbar .menu-button:active, .navbar .w-nav-button:active { background: #e7ece4; transform: translateY(1px); }
  .harv-nav-cta, .navbar .menu-button, .navbar .w-nav-button { transition: background-color .18s ease, transform .12s ease; -webkit-tap-highlight-color: transparent; }
}

/* === Hero loading state (mobile) ==========================================
   While the model + font load, a calm brand-green pulse sits where the MacBook
   will appear, so the wait reads as intentional instead of a blank/frozen hero.
   JS adds .harv-hero-ready to #hero-section on the shared 'harv:hero-ready'
   signal (the SAME instant the fly-in + headline begin) — the pulse fades out. */
@media (max-width: 767px) {
  .hero-section .spline.harv-stage::after {
    content: ""; position: absolute; left: 50%; top: 50%;
    width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
    background: radial-gradient(circle, rgba(119,251,56,.55), rgba(119,251,56,0) 70%);
    animation: harv-load-pulse 1.25s ease-in-out infinite;
    pointer-events: none; opacity: 1; transition: opacity .45s ease;
  }
  .hero-section.harv-hero-ready .spline.harv-stage::after { opacity: 0; animation: none; }
}
@keyframes harv-load-pulse {
  0%, 100% { transform: scale(.7); opacity: .3; }
  50%      { transform: scale(1.15); opacity: .8; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-section .spline.harv-stage::after { animation: none; }
}
