:root {
  --paddap-container: 1280px;
  --paddap-gutter: clamp(1rem, 4vw, 3rem);
  --paddap-radius-sm: 0.5rem;
  --paddap-radius-md: 1rem;
  --paddap-transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--wp--preset--font-family--body);
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a,
button,
input,
select,
textarea {
  transition: color var(--paddap-transition), background-color var(--paddap-transition), border-color var(--paddap-transition), opacity var(--paddap-transition), transform var(--paddap-transition);
}

:focus-visible {
  outline: 3px solid var(--wp--preset--color--brand);
  outline-offset: 3px;
}
.paddap-bg--dark :focus-visible,
.paddap-hero :focus-visible,
.paddap-cta-banner :focus-visible { outline-color: #fff; }

.paddap-container {
  width: min(calc(100% - (2 * var(--paddap-gutter))), var(--paddap-container));
  margin-inline: auto;
}

.paddap-section {
  position: relative;
}

.paddap-space-top-none { padding-top: 0; }
.paddap-space-top-sm { padding-top: var(--wp--preset--spacing--sm); }
.paddap-space-top-md { padding-top: var(--wp--preset--spacing--md); }
.paddap-space-top-lg { padding-top: var(--wp--preset--spacing--lg); }
.paddap-space-top-xl { padding-top: var(--wp--preset--spacing--xl); }
.paddap-space-bottom-none { padding-bottom: 0; }
.paddap-space-bottom-sm { padding-bottom: var(--wp--preset--spacing--sm); }
.paddap-space-bottom-md { padding-bottom: var(--wp--preset--spacing--md); }
.paddap-space-bottom-lg { padding-bottom: var(--wp--preset--spacing--lg); }
.paddap-space-bottom-xl { padding-bottom: var(--wp--preset--spacing--xl); }

.wp-element-button:hover,
.wp-block-button__link:hover {
  filter: brightness(0.94);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* ---- Gedeelde componenten (huisstijl Securitas) ---- */
h1, h2, h3, h4 { color: inherit; }
.paddap-bg--surface { background: var(--wp--preset--color--surface); }
.paddap-bg--surface-alt { background: var(--wp--preset--color--surface-alt); }
.paddap-bg--dark { background: var(--wp--preset--color--foreground); color: #fff; }

.paddap-eyebrow {
  margin: 0;
  color: var(--wp--preset--color--brand);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.paddap-eyebrow--light { color: #fff; font-weight: 600; letter-spacing: .1em; }

.paddap-section-head { display: grid; grid-template-columns: minmax(0, 700fr) minmax(0, 580fr); gap: 0; align-items: end; }
.paddap-section-head__title { margin: 14px 0 0; font-size: 44px; line-height: 50px; letter-spacing: -.035em; font-weight: 700; }
.paddap-section-head__intro { margin: 0; padding-bottom: 2px; font-size: 20px; line-height: 32px; font-weight: 400; color: var(--wp--preset--color--muted); }
.paddap-section:not(.paddap-bg--dark) .paddap-section-head__title { color: var(--wp--preset--color--foreground); }
.paddap-section-head:not(:has(.paddap-section-head__intro)) { grid-template-columns: minmax(0, 1fr); }

.paddap-section.paddap-space-top-lg { padding-top: 112px; }
.paddap-section.paddap-space-bottom-lg { padding-bottom: 112px; }

.paddap-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 48px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--wp--preset--color--brand);
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.paddap-button:hover { filter: brightness(.92); transform: translateY(-1px); color: #fff; }
.paddap-button--outline-light { background: transparent; border-color: #fff; color: #fff; }
.paddap-button--outline-light:hover { background: #fff; color: var(--wp--preset--color--foreground); filter: none; }
.paddap-button--small { /* zelfde maat als alle knoppen */ }

.paddap-person { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.paddap-person__meta { display: grid; gap: 2px; margin: 0; font-size: 14px; line-height: 20px; color: var(--wp--preset--color--muted); }
.paddap-person__meta strong { font-size: 15px; font-weight: 700; color: var(--wp--preset--color--foreground); }
.paddap-avatar { position: relative; display: block; flex: none; width: 48px; height: 48px; overflow: hidden; border-radius: 50%; background: var(--wp--preset--color--surface-alt); }
.paddap-avatar img { position: absolute; max-width: none; object-fit: cover; }

.paddap-logo { display: inline-flex; color: var(--wp--preset--color--foreground); text-decoration: none; }
.paddap-logo__svg { width: 84px; height: 46px; }

@media (max-width: 900px) {
  .paddap-section-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .paddap-section-head__title { font-size: 32px; line-height: 38px; }
  .paddap-section-head__intro { font-size: 18px; line-height: 28px; }
}
@media (max-width: 782px) {
  .paddap-section.paddap-space-top-lg { padding-top: 64px; }
  .paddap-section.paddap-space-bottom-lg { padding-bottom: 64px; }
}

/* WordPress-blockGap mag de volle-breedte secties niet uit elkaar duwen. */
.wp-site-blocks > *,
.wp-block-post-content > *,
.wp-site-blocks main.wp-block-group > * { margin-block-start: 0; margin-block-end: 0; }
.wp-site-blocks { padding: 0; }

/* Skiplink: volledige klikmaat en hoog contrast; buiten beeld tot hij focus krijgt. */
#wp-skip-link.skip-link,
.skip-link.screen-reader-text {
  position: absolute !important;
  top: -200px;
  left: 16px;
  z-index: 100000;
  display: inline-flex;
  align-items: center;
  width: auto !important;
  height: auto !important;
  min-height: 48px;
  padding: 12px 20px !important;
  clip: auto !important;
  clip-path: none !important;
  overflow: visible !important;
  border-radius: 8px;
  background: #031f30 !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 24px;
  text-decoration: none;
  white-space: nowrap;
}
#wp-skip-link.skip-link:focus,
.skip-link.screen-reader-text:focus { top: 16px; outline: 3px solid #fff; outline-offset: 2px; }

/* Mobiel (< 768px): knoppen zo breed als hun inhoud (sticky sollicitatiebalk blijft volledig breed). */
@media (max-width: 767px) {
  .paddap-button, .paddap-content-section__button, .wp-block-button__link, .paddap-form-section__panel .gform_wrapper .gform_button { width: auto; max-width: 100%; }
  .paddap-form-section__panel .gform_wrapper .gform_footer .gform_button, .paddap-form-section__panel .gform_wrapper input[type=submit].gform_button { width: auto; max-width: 100%; }
  .paddap-hero__actions .paddap-button { width: fit-content; }
  .paddap-sticky-cta .paddap-button { width: 100%; }

  /* Generieke slider (data-paddap-slider, zie assets/js/slider.js) */
  [data-paddap-slider].is-slider {
    display: flex; grid-template-columns: none; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  [data-paddap-slider].is-slider::-webkit-scrollbar { display: none; }
  [data-paddap-slider].is-slider > * { flex: 0 0 84%; min-width: 0; scroll-snap-align: start; box-sizing: border-box; }
  .paddap-slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
  .paddap-slider-dot { width: 8px; height: 8px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: currentColor; opacity: .25; cursor: pointer; }
  .paddap-slider-dot.is-active { opacity: 1; background: var(--wp--preset--color--brand); }
  .paddap-slider-dot:focus-visible { outline: 2px solid var(--wp--preset--color--brand); outline-offset: 3px; }
  /* Eén USP per keer */
  .paddap-key-facts__list.is-slider { gap: 0; padding: 28px 0 0; min-height: 0; }
  .paddap-key-facts__list.is-slider > * { flex-basis: 100%; justify-content: center; }
  .paddap-key-facts .paddap-slider-dots { margin: 0; padding: 14px 0 20px; }
  .paddap-key-facts .paddap-slider-dot.is-active { background: #fff; }
  .paddap-benefits__grid.is-slider { margin-top: 32px; }
  .paddap-benefits__grid.is-slider > * { flex-basis: 84%; }
  .paddap-media-columns__grid.is-slider { margin-top: 32px; }
  .paddap-media-columns__grid.is-slider > * { flex-basis: 84%; }
}
@media (prefers-reduced-motion: reduce) { [data-paddap-slider].is-slider { scroll-behavior: auto; } }

/* ===== Eén knopstijl voor alle knoppen (primair, omlijnd, header, formulier, filter) ===== */
.paddap-button, .wp-element-button, .wp-block-button__link, .paddap-content-section__button,
.paddap-form-section__panel .gform_wrapper .gform_button, .paddap-form-section__panel .gform_wrapper input[type=submit] {
  position: relative; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 30px; border-width: 1px; border-style: solid; border-radius: 999px;
  font-family: inherit; font-size: 16px; line-height: 1.2; font-weight: 600; text-decoration: none; cursor: pointer;
}
.paddap-form-section__panel .gform_wrapper .gform_button, .paddap-form-section__panel .gform_wrapper input[type=submit] { min-height: 48px; }
.paddap-button, .wp-element-button, .wp-block-button__link, .paddap-content-section__button {
  transition: color .22s ease-out, background-color .22s ease-out, border-color .22s ease-out, filter .22s ease-out, transform .22s ease-out, padding .22s ease-out;
}
/* Hover/focus: dun pijl-icoon schuift van links in, tekst schuift mee naar rechts (breedte blijft gelijk) */
.paddap-button::before, .wp-element-button::before, .wp-block-button__link::before, .paddap-content-section__button::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  background: currentColor; opacity: 0; transform: translateX(-8px); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: opacity .22s ease-out, transform .22s ease-out;
}
.paddap-button:hover, .paddap-button:focus-visible, .wp-element-button:hover, .wp-element-button:focus-visible,
.wp-block-button__link:hover, .wp-block-button__link:focus-visible, .paddap-content-section__button:hover, .paddap-content-section__button:focus-visible {
  padding-left: 44px; padding-right: 16px;
}
.paddap-button:hover::before, .paddap-button:focus-visible::before, .wp-element-button:hover::before, .wp-element-button:focus-visible::before,
.wp-block-button__link:hover::before, .wp-block-button__link:focus-visible::before, .paddap-content-section__button:hover::before, .paddap-content-section__button:focus-visible::before {
  opacity: 1; transform: translateX(0);
}
.paddap-button--outline-light:focus-visible { background: #fff; color: var(--wp--preset--color--foreground); }
@media (prefers-reduced-motion: reduce) {
  .paddap-button, .wp-element-button, .wp-block-button__link, .paddap-content-section__button, .paddap-button::before, .wp-element-button::before { transition-duration: .01ms; }
}

/* ===== Scroll-in per sectie (klassen worden door assets/js/reveal.js gezet; zonder JS blijft alles zichtbaar) ===== */
.paddap-reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease-out, transform .55s ease-out; }
.paddap-reveal.is-visible { opacity: 1; transform: none; }

/* ===== Desktop eerste scherm: header + hero + USP-balk = 100svh ===== */
:root { --paddap-header-h: 82px; --paddap-usp-h: 92px; }
@media (min-width: 1024px) {
  .paddap-hero:not(.paddap-hero--compact) { min-height: max(520px, calc(100vh - var(--paddap-header-h) - var(--paddap-usp-h))); min-height: max(520px, calc(100svh - var(--paddap-header-h) - var(--paddap-usp-h))); }
  .paddap-hero:not(.paddap-hero--compact) .paddap-hero__inner { padding-block: 56px; }
}
.wp-element-button, .wp-block-button__link, .paddap-content-section__button { border-color: transparent; }
