/* ── Arrow Button Styles ────────────────────────────────────────────────────── */
/* Three variants: Bold Brush, Marker, Marker Large                           */
/* Pure CSS animations, zero JavaScript.                                      */

/* ── Bold Brush ────────────────────────────────────────────────────────────── */
/* Same approach as marker: one SVG covers the full element.                  */
/* <line> = underline (always visible), <path> = arrow (draws on hover).      */
/* Both at the same y → guaranteed connection.                                */

.gft-ab--bold {
  position: relative;
  display: inline-block;
  cursor: pointer;
  text-decoration: none !important;
  width: fit-content;
}

.gft-ab--bold .gft-ab__text {
  white-space: nowrap;
  position: relative;
  z-index: 1;
  padding-right: 65px;
}

.gft-ab--bold .gft-ab__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(-100% 0 0 0);
}

.gft-ab__underline {
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: butt;
  transition: stroke-width 0.3s ease;
}

.gft-ab--bold .gft-ab__path {
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              stroke-width 0.3s ease;
}

.gft-ab--bold:hover .gft-ab__underline {
  stroke-width: 3;
}

.gft-ab--bold:hover .gft-ab__path {
  stroke-dashoffset: 0;
  stroke-width: 4;
}

/* ── Marker (shared) ───────────────────────────────────────────────────────── */

.gft-ab--marker {
  position: relative;
  display: inline-block;
  cursor: pointer;
  text-decoration: none !important;
  width: fit-content;
}

.gft-ab__text--marker {
  position: relative;
  z-index: 1;
  white-space: nowrap;
  padding-right: 65px;
  padding-bottom: 0;
}

.gft-ab__text--marker-md {
  padding-right: 85px;
}

.gft-ab__text--marker-lg {
  padding-right: 110px;
}

.gft-ab__svg--marker {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  bottom: -8px;
  width: 100%;
  height: 100%;
  clip-path: inset(-100% 0 0 0);
}

.gft-ab__svg--marker-md {
  inset: auto 0 0 0;
  height: 47px;
}

.gft-ab__svg--marker-lg {
  inset: auto 0 0 0;
  height: 65px;
}

.gft-ab__band {
  stroke: var(--marker-color, rgba(110, 94, 247, 0.25));
  stroke-width: 16; /* fallback, overridden by Elementor selectors */
  stroke-linecap: butt;
  transition: stroke-width 0.3s ease;
}

.gft-ab__arrow {
  stroke: var(--marker-color, rgba(110, 94, 247, 0.25));
  stroke-width: 16; /* fallback, overridden by Elementor selectors */
  stroke-linecap: butt;
  stroke-linejoin: miter;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              stroke-width 0.3s ease;
}

.gft-ab--marker:hover .gft-ab__arrow {
  stroke-dashoffset: 0;
}

/* ── Marker CTA (doodle variant) ───────────────────────────────────────────── */
/* Same spirit as the regular marker: a single stroked path animates via
   stroke-dasharray on hover. The path's first point is placed exactly at the
   underline's end (x=0, y=cy) via the <g> transform, and its first tangent is
   horizontal so the stroke continues the underline with no visible seam. */

.gft-ab--marker-doodle .gft-ab__svg--marker-doodle {
  overflow: visible;               /* let rotated doodle render past viewBox */
  inset: auto 0 0 0 !important;
}
/* Doodle is bigger than the arrow — needs taller SVG area and extra text
   padding to make room for the flourish. Width matches vbW. */
.gft-ab__svg--marker-doodle-sm { height: 80px !important; }
.gft-ab__svg--marker-doodle-md { height: 100px !important; }
.gft-ab__svg--marker-doodle-lg { height: 120px !important; }

.gft-ab--marker-doodle .gft-ab__text--marker        { padding-right: 90px; }
.gft-ab--marker-doodle .gft-ab__text--marker-md     { padding-right: 115px; }
.gft-ab--marker-doodle .gft-ab__text--marker-lg     { padding-right: 140px; }

.gft-ab--marker-doodle .gft-ab__doodle-path {
  stroke: currentColor;
  stroke-width: 9;                 /* fallback, Elementor selectors override */
  fill: none;
  stroke-linecap: butt;            /* flat cap so start butts against underline */
  stroke-linejoin: round;          /* soft joins around the doodle curves */
  vector-effect: non-scaling-stroke; /* stroke stays 9px regardless of SVG scale */
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.gft-ab--marker-doodle:hover .gft-ab__doodle-path {
  stroke-dashoffset: 0;
}

/* ── Marker CTA (wrapping variant) ─────────────────────────────────────────── */
/* The underline uses native text-decoration — it's drawn in a decoration layer
   that isn't clipped by inline-box bounds. The arrow SVG's translateY is
   pixel-calibrated (measured via Playwright) so its horizontal stroke sits at
   the exact same y as the text-decoration underline center.                  */

.gft-ab--marker-wrap {
  display: inline;
  cursor: pointer;
  --gft-mw-thickness: 9px;
  --gft-mw-opacity: 0.25;
  --gft-mw-underline-offset: 2px;
  text-decoration-line: underline !important;
  text-decoration-color: color-mix(in srgb, currentColor calc(var(--gft-mw-opacity, 0.25) * 100%), transparent) !important;
  text-decoration-thickness: var(--gft-mw-thickness, 9px) !important;
  text-underline-offset: var(--gft-mw-underline-offset, 2px) !important;
  text-decoration-skip-ink: none;
}

/* Tail segment: the last word stays nobreak; the arrow SVG is absolutely
   positioned AFTER the last word so it doesn't affect inline wrap layout. */
.gft-ab--marker-wrap .gft-ab__tail {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

/* inline-block creates a new text-decoration scope, so the parent's underline
   doesn't propagate. Re-apply it on the tail-text explicitly. */
.gft-ab--marker-wrap .gft-ab__tail-text {
  text-decoration-line: underline;
  text-decoration-color: color-mix(in srgb, currentColor calc(var(--gft-mw-opacity, 0.25) * 100%), transparent);
  text-decoration-thickness: var(--gft-mw-thickness, 9px);
  text-underline-offset: var(--gft-mw-underline-offset, 2px);
  text-decoration-skip-ink: none;
}

/* Arrow SVG at native viewBox dimensions (1:1). Translated so its y=cy lands
   exactly at the underline center: underline_center_from_box_bottom = offset
   + thickness/2. Path y=cy is (viewBox_h - cy) = 4 above SVG bottom. With SVG
   bottom at tail bottom, we translateY by (4 + offset + thickness/2). */
.gft-ab--marker-wrap .gft-ab__tail-arrow {
  position: absolute;
  left: 100%;
  bottom: 0;
  overflow: visible;
  /* Pixel-calibrated translateY (via Playwright pixel sampling) to align the
     arrow's horizontal stroke center with the text-decoration underline center.
     K = -4px absorbs the diff between the tail's inline-block bottom edge and
     the font's native underline position (font-metric + line leading offsets). */
  transform: translateY(calc(-4px + var(--gft-mw-underline-offset, 2px) + var(--gft-mw-thickness, 9px) / 2));
}

.gft-ab--marker-wrap .gft-ab__tail-arrow-path {
  stroke: currentColor;
  stroke-width: var(--gft-mw-thickness, 9px);
  stroke-linecap: butt;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
  opacity: var(--gft-mw-opacity, 0.25);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.gft-ab--marker-wrap:hover .gft-ab__tail-arrow-path {
  stroke-dashoffset: 0;
}

.gft-ab--marker-wrap:hover .gft-ab__arrow-inline-path {
  stroke-dashoffset: 0;
}

/* ── Star CTA ──────────────────────────────────────────────────────────────── */
/* Underline + 4-pointed star — same translucent marker style as the marker CTA */

.gft-ab--star {
  position: relative;
  display: inline-block;
  cursor: pointer;
  text-decoration: none !important;
  width: fit-content;
}

.gft-ab__text--star {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.gft-ab__text--star-sm { padding-right: 90px; }
.gft-ab__text--star-md { padding-right: 115px; }
.gft-ab__text--star-lg { padding-right: 150px; }

.gft-ab__svg--star {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  clip-path: inset(-100% 0 -100% 0);
  overflow: visible;
}

.gft-ab__svg--star-sm { height: 40px; bottom: -20px; }
.gft-ab__svg--star-md { height: 50px; bottom: -25px; }
.gft-ab__svg--star-lg { height: 64px; bottom: -32px; }

/* Underline — translucent thick marker stroke. Short by default, extends on hover. */
.gft-ab__star-band {
  stroke: currentColor;
  stroke-width: 12;
  stroke-linecap: butt;
  opacity: 0.25;
  transition: x2 0.4s ease, stroke-width 0.3s ease, opacity 0.3s ease;
}

/* Default line endpoints — line ends right where the text content ends */
.gft-ab__svg--star-sm .gft-ab__star-band { x2: -40; }
.gft-ab__svg--star-md .gft-ab__star-band { x2: -55; }
.gft-ab__svg--star-lg .gft-ab__star-band { x2: -75; }

/* Hover: line extends to where the star's left tip is */
.gft-ab--star-sm:hover .gft-ab__svg--star-sm .gft-ab__star-band { x2: -15; }
.gft-ab--star-md:hover .gft-ab__svg--star-md .gft-ab__star-band { x2: -22; }
.gft-ab--star-lg:hover .gft-ab__svg--star-lg .gft-ab__star-band { x2: -30; }

/* Star outline — same translucent marker style, animates on hover after line extends */
.gft-ab__star {
  fill: none;
  stroke: currentColor;
  stroke-width: 12;
  stroke-linejoin: miter;
  stroke-linecap: butt;
  vector-effect: non-scaling-stroke;
  opacity: 0.25;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s,
              stroke-width 0.3s ease,
              opacity 0.3s ease;
}

.gft-ab--star:hover .gft-ab__star {
  stroke-dashoffset: 0;
}

/* ── Curved Heading ────────────────────────────────────────────────────────── */

.gft-ch {
  display: block;
  margin: 0;
  line-height: 1;
}

.gft-ch__link {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}

/* Hidden span used for measurement — inherits heading typography */
.gft-ch__measure {
  font: inherit;
  visibility: hidden;
  white-space: nowrap;
  position: absolute;
  pointer-events: none;
}

.gft-ch__svg {
  display: inline-block;
  overflow: visible;
  max-width: 100%;
  height: auto;
}

.gft-ch__text {
  font: inherit;
}

.gft-ch__text--svg {
  font-family: inherit;
  font-weight: inherit;
  font-style: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.gft-ch__band {
  fill: transparent; /* overridden by Elementor selector when color is set */
}

/* ── Rotating Badge ────────────────────────────────────────────────────────── */

.gft-rb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid currentColor;
  position: relative;
  text-decoration: none !important;
  color: inherit;
  background: transparent;
  overflow: visible;
}

.gft-rb__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: gft-rb-spin 15s linear infinite;
  overflow: visible;
}

.gft-rb__text {
  fill: currentColor;
  font-size: 7.6px; /* sized relative to the 100-unit viewBox */
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
}

.gft-rb__inner {
  width: 60%;
  height: 60%;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.gft-rb__center {
  font-size: 1.5em;
  line-height: 1;
}

@keyframes gft-rb-spin {
  to { transform: rotate(360deg); }
}

/* ── Image Split ───────────────────────────────────────────────────────────── */
/* Nested widget: single nested container + an image, side-by-side.           */

.gft-is {
  display: flex;
  gap: 60px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.gft-is__content {
  flex: 1;
  min-width: 0;
}

.gft-is__media {
  flex: 0 0 50%;
}

.gft-is__media img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 767px) {
  .gft-is {
    flex-direction: column-reverse !important;
    gap: 30px;
  }
  .gft-is__media {
    flex: none;
    width: 100%;
  }
}

/* ── SVG Marquee ───────────────────────────────────────────────────────────── */

.gft-mq {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
}

.gft-mq__line {
  display: block;
  width: 100%;
  height: 2px;
  overflow: visible;
}

.gft-mq__line line {
  stroke: currentColor;
  stroke-width: 2;
}

.gft-mq__track {
  display: flex;
  width: max-content;
  animation: gft-mq-scroll 30s linear infinite;
  will-change: transform;
}

.gft-mq__chunk {
  flex: none;
  display: flex;
  align-items: center;
}

.gft-mq__item {
  flex: none;
  height: 60px;
  width: auto;
  display: block;
  margin-right: 40px;
}

.gft-mq__item--masked {
  -webkit-mask-image: var(--gft-mq-svg);
  mask-image: var(--gft-mq-svg);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  background-color: currentColor;
  width: auto;
}

@keyframes gft-mq-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Dynamic Shape ─────────────────────────────────────────────────────────── */

.gft-ds {
  display: block;
  /* Definite inline size so aspect-ratio reliably derives height when the
     width control is left empty. Per-widget Elementor selectors override. */
  width: 100%;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  aspect-ratio: var(--gft-ds-ratio, 1);
}

.gft-ds--empty {
  background: rgba(128,128,128,0.2) !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  color: #999;
  font-size: 14px;
}


/* ── A13 marker (gft_arrow_marker) — moved from theme style.css ── */
/* ── CTA · Marker → A13 "Zwaartekracht" (settling-ink highlight, faded text color) ── */
/* Replaces the old arrow-marker look on the gft_arrow_marker widget. Highlight is     */
/* derived from the text color via currentColor (color-mix), so each instance's text   */
/* color carries straight through. Params lifted verbatim from the marker-cta lab A13. */
.gft-ab--a13 {
    display: inline;
    padding: .04em .12em;
    line-height: 1.6;
    text-decoration: none;
    cursor: pointer;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    background-image:
        linear-gradient(color-mix(in srgb, currentColor 22%, transparent), color-mix(in srgb, currentColor 22%, transparent)),
        linear-gradient(color-mix(in srgb, currentColor 14%, transparent), color-mix(in srgb, currentColor 14%, transparent));
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 0, 100% 100%;
    background-position: 0 100%, 0 100%;
    transition: background-size .5s cubic-bezier(.4, 0, .2, 1);
}
.gft-ab--a13:hover {
    background-size: 100% .5em, 100% .5em;
}

/* ── Round Image + Text ──────────────────────────────────────────────────────
   Square image force-clipped to a circle, with text draped around its edge on
   an SVG textPath. The <image> and the text ring share one viewBox so they stay
   aligned across placements; only the text group (.gft-rit__ring) rotates, so
   the image never spins. */
.gft-rit {
  position: relative;
  display: inline-block;
  max-width: 100%;
  color: inherit;
  line-height: 1;
  text-decoration: none;
  vertical-align: middle;
}
.gft-rit__svg {
  display: block;
  max-width: 100%;           /* intrinsic px size from width/height attrs; shrinks to fit */
  height: auto;
  overflow: visible;         /* let "outside" text render past the image circle */
}
.gft-rit__text {
  /* fill and font-size are set via presentation attributes in render()
     (a CSS fill:currentColor mis-resolves to black on SVG text in some
     engines, and font-size drives the ring geometry so it's baked in). */
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* Position wrapper: static rotation from the Text Position control.
   Ring: continuous rotation from the Motion control. Nested so they compose,
   both turning around the circle centre (transform-box/-origin set inline in
   render() — a percentage origin resolves to 0,0 on nested SVG groups). */
@keyframes gft-rit-spin { to { transform: rotate(360deg); } }
.gft-rit--rotate .gft-rit__ring {
  animation: gft-rit-spin 18s linear infinite;
}
.gft-rit--hover .gft-rit__ring {
  animation: gft-rit-spin 18s linear infinite;
  animation-play-state: paused;
}
.gft-rit--hover:hover .gft-rit__ring {
  animation-play-state: running;
}
/* Scroll-triggered: spins only while JS marks it active (widget centre near the
   vertical middle of the viewport). */
.gft-rit--center .gft-rit__ring {
  animation: gft-rit-spin 18s linear infinite;
  animation-play-state: paused;
}
.gft-rit--center.is-active .gft-rit__ring {
  animation-play-state: running;
}
@media (prefers-reduced-motion: reduce) {
  .gft-rit__ring { animation: none !important; }
}

/* ── A13 marker: wrapped lines must follow the widget's OWN alignment ──────── */
/* Bug: the gft_arrow_marker label is an inline <a> (display:inline is required
   for the box-decoration-break marker highlight). Its Elementor wrapper is a
   flex item sized fit-content, so a ONE-LINE label looks correctly aligned.
   As soon as the label wraps, the wrapper grows to the full container width and
   the inline text inside falls back to the inherited `text-align: start` — i.e.
   left — no matter what the widget's alignment is set to.
   Fix: turn the wrapper's own alignment into a `text-align` on the block box
   that contains the inline <a>. Elementor writes each element's alignment as a
   custom property on that very wrapper (`--align-self: flex-start | center |
   flex-end`), re-declared per breakpoint, so this is per-instance and
   responsive for free.
   The bare `text-align: var(--align-self)` below is the fallback for engines
   without style queries: `center` is a valid text-align value and applies,
   while `flex-start` / `flex-end` are invalid at computed-value time, so the
   property falls back to the inherited value — exactly today's rendering.
   No rule is added for flex-start: left-aligned instances keep inheriting
   text-align exactly as they do today. */
.elementor-widget-gft_arrow_marker > .elementor-widget-container {
	text-align: var(--align-self);
}
@container style(--align-self: center) {
	.elementor-widget-gft_arrow_marker > .elementor-widget-container { text-align: center; }
}
@container style(--align-self: flex-end) {
	.elementor-widget-gft_arrow_marker > .elementor-widget-container { text-align: right; }
}
