/* =========================================================
   uitbesteden klantenservice — design tokens & base styles
   ========================================================= */

@font-face {
  font-family: "Urbanist";
  src: url("../fonts/Urbanist-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Urbanist";
  src: url("../fonts/Urbanist-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Urbanist";
  src: url("../fonts/Urbanist-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Urbanist";
  src: url("../fonts/Urbanist-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Urbanist";
  src: url("../fonts/Urbanist-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Urbanist";
  src: url("../fonts/Urbanist-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Climate Crisis";
  src: url("../fonts/ClimateCrisis-Variable.woff2") format("woff2-variations"),
       url("../fonts/ClimateCrisis-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/Caveat-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/Caveat-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/Caveat-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- Brand color tokens ---- */
  --c-yellow: #FFFF00;
  --c-yellow-deep: #E8E800;
  --c-black: #000000;
  --c-ink: #0D0D0D;
  --c-charcoal: #333333;
  --c-mist: #EBEBEB;
  --c-mist-deep: #E0E0E0;
  --c-white: #FFFFFF;

  /* ---- Semantic tokens ---- */
  --bg-page: var(--c-white);
  --bg-alt: var(--c-mist);
  --text-primary: var(--c-black);
  --text-muted: var(--c-charcoal);
  --border-soft: #E5E2DC;

  /* ---- Type ---- */
  --font-display: "Climate Crisis", sans-serif;
  --font-script: "Caveat", cursive;
  --font-body: "Urbanist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-hero: clamp(2.6rem, 5.6vw, 5.25rem);
  --fs-display-word: clamp(3.4rem, 9vw, 8rem);
  --fs-h2: clamp(1.9rem, 3.4vw, 3rem);
  --fs-h3: clamp(1.25rem, 1.8vw, 1.625rem);
  --fs-lead: clamp(1.05rem, 1.4vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.8125rem;

  /* ---- Spacing ---- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* ---- Shape ---- */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-hover: ease;
  --dur-fast: 150ms;
  --dur-base: 220ms;
  --dur-slow: 420ms;

  /* ---- Layout ---- */
  --container-w: 1240px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 640px) {
  .container { padding-inline: 2.5rem; }
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-black);
}
.eyebrow--on-dark { color: var(--c-yellow); }

.section-heading { max-width: 640px; position: relative; }
.section-heading h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "YEAR" 1979;
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: 0;
  margin-top: var(--sp-3);
}
.section-heading p {
  margin-top: var(--sp-4);
  font-size: var(--fs-lead);
  color: var(--text-muted) !important;
  line-height: 1.55;
}
.section-heading--center { max-width: 620px; margin-inline: auto; text-align: center; }

.section { padding-block: var(--sp-24); }
@media (max-width: 640px) {
  .section { padding-block: var(--sp-16); }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9375rem;
  border: 2px solid transparent;
  transition: transform var(--dur-fast) var(--ease-hover),
              background-color var(--dur-fast) var(--ease-hover),
              border-color var(--dur-fast) var(--ease-hover),
              box-shadow var(--dur-fast) var(--ease-hover);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,0.16); }
.btn:active { transform: translateY(0) scale(0.97); box-shadow: none; }
.btn-primary {
  background: var(--c-black);
  color: var(--c-white);
}
.btn-primary:hover { background: var(--c-yellow); color: var(--c-black); }
.btn-primary:active { background: var(--c-yellow-deep); color: var(--c-black); }

.btn-secondary {
  background: transparent;
  color: var(--c-black);
  border-color: var(--c-black);
}
.btn-secondary:hover { background: var(--c-black); color: var(--c-white); }

.btn-on-yellow {
  background: var(--c-black);
  color: var(--c-white);
}
.btn-on-yellow:hover { background: var(--c-white); color: var(--c-black); }

.btn-ghost-yellow {
  background: transparent;
  color: var(--c-black);
  border-color: var(--c-black);
}
.btn-ghost-yellow:hover { background: var(--c-black); color: var(--c-yellow); }
@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}

.btn-sm { padding: 0.7rem 1.25rem; font-size: 0.875rem; }

/* ---- Focus states ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--c-black);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Reveal on scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Shared hover-lift for cards ---- */
.lift-on-hover {
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.lift-on-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 36px rgba(0,0,0,0.1);
}
@media (prefers-reduced-motion: reduce) {
  .lift-on-hover:hover { transform: none; }
}

/* ---- Gentle idle float (used sparingly, decorative UI only) ---- */
@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float-idle { animation: gentle-float 5s var(--ease-in-out) infinite; }
.float-idle--delay { animation-delay: 1.4s; }
@media (prefers-reduced-motion: reduce) {
  .float-idle { animation: none; }
}

/* ---- Attention pulse ring (e.g. floating WhatsApp button) ---- */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.pulse-ring { animation: pulse-ring 2.6s ease-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .pulse-ring { animation: none; }
}

/* ---- Animated underline for nav-style text links ---- */
.underline-sweep { position: relative; }
.underline-sweep::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.underline-sweep:hover::after,
.underline-sweep:focus-visible::after { transform: scaleX(1); }

/* ---- Signal motif (shared arc + dot, echoes the logo mark) ---- */
.signal-arc { display: block; }

/* ---- Scroll progress bar ---- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--c-black), var(--c-yellow));
  z-index: 999;
  transition: width 80ms linear;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
}

/* ---- Decorative statue accents ---- */
.decorative-statue {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.decorative-statue img { width: 100%; height: auto; display: block; }

.decorative-statue--testimonial {
  display: none;
  width: 108px;
  left: 660px;
  top: -0.5rem;
}
@media (min-width: 780px) {
  .decorative-statue--testimonial { display: block; }
}
@media (max-width: 1040px) {
  .decorative-statue--testimonial { display: none; }
}

/* ---- Edge-bleed statue accents (large, page-margin decoration) ---- */
.edge-statue {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 20px 24px rgba(0,0,0,0.14));
}
.edge-statue img { width: 100%; height: auto; display: block; }
.edge-statue--right { right: 0; }
.edge-statue--left { left: 0; }
@media (min-width: 1180px) {
  .edge-statue { display: block; width: clamp(160px, 15vw, 260px); }
}

/* ---- Section shape dividers ---- */
.shape-divider {
  position: relative;
  height: 0;
  width: 100%;
  line-height: 0;
  z-index: 2;
}
.shape-divider svg {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 34px;
  display: block;
}
@media (min-width: 900px) {
  .shape-divider svg { height: 54px; }
}

/* ---- Big-text section dividers ---- */
.bigtext-divider {
  position: relative;
  overflow: hidden;
  padding-block: clamp(0.75rem, 2vw, 1.75rem);
  text-align: center;
  line-height: 1;
}
.bigtext-divider .bigtext-word {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "YEAR" 1979;
  font-size: clamp(2.75rem, 11vw, 8rem);
  line-height: 1;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}
.bigtext-divider--onlight { background: var(--c-mist); }
.bigtext-divider--onlight .bigtext-word {
  background-image: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.85) 35%, rgba(0,0,0,0.08) 85%);
}
.bigtext-divider--onwhite { background: var(--c-white); }
.bigtext-divider--onwhite .bigtext-word {
  background-image: linear-gradient(90deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 30%, rgba(0,0,0,0.85) 70%, rgba(0,0,0,0.1) 100%);
}
.bigtext-divider--ondark { background: var(--c-black); }
.bigtext-divider--ondark .bigtext-word {
  background-image: linear-gradient(90deg, rgba(255,255,0,0.12) 0%, rgba(255,255,0,0.95) 40%, rgba(255,255,0,0.95) 60%, rgba(255,255,0,0.12) 100%);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---- Defensive safety net: headings can never silently clip ----
   Font metrics can render slightly differently across devices/OSes.
   This guarantees text always wraps instead of being cut off by a
   parent's overflow:hidden, regardless of exact glyph widths. */
h1, h2, h3, h4 {
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}


/* Manual honeypot for Contact Form 7 (this CF7 version has no built-in honeypot module) */
.ku-hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
