/* src/css/theme.css */
header.wp-block-group.site-header {
  position: sticky;
  z-index: 100;
  min-height: 120px;
  padding: 0;
  top: 0;
}

.alpina-header:before {
  content: "";
  position: absolute;
  clip-path: path("M0 0 L3000 0 L3000 64 L480 64 L409 64 C402 64 398 68 395 70 L375 90 L356 109 C354 111 349 115 343 115 L0 115 Z");
  z-index: 0;
  pointer-events: none;
  background: #fff;
  inset: 0;
}

.alpina-header__inner {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  min-height: 120px;
  padding-left: clamp(24px, 50% - 624px, 96px);
  padding-right: max(24px, 50% - 624px);
  max-width: none !important;
}

header.wp-block-group.site-header > .alpina-header__inner, .alpina-header {
  display: flex;
  align-items:  center;
}

.alpina-header__inner .wp-block-site-logo .custom-logo {
  display: block;
  width: 175px;
  max-width: none;
  height: auto;
}

.alpina-header__right {
  align-self:  flex-start;
  align-items:  center;
  gap: 28px;
}

.alpina-funda {
  position: relative;
  z-index: 1;
  display: flex;
  white-space: nowrap;
  align-self:  flex-start;
  align-items:  center;
  gap: 10px;
  height: 64px;
}

.alpina-funda__logo {
  display: block;
  flex: none;
  width: 77px;
  height: 28px;
}

.alpina-funda__text {
  color: var(--wp--preset--color--petrol);
  font-family: Etelka Text Pro, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
  font-size: 14px;
  line-height: 1.25;
}

.alpina-funda__score {
  display: inline-block;
  background: var(--wp--preset--color--hardroze);
  color: #fff;
  border-radius: 4px;
  margin: 0 2px;
  padding: 1px 7px;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .alpina-funda {
    display: none;
  }
}

main.wp-block-group {
  margin-top: 0 !important;
}

.wp-block-post-content > .ah-hero:first-child {
  margin-top: -120px !important;
}

.wp-block-button__link {
  border: 2px solid #0000;
}

.ah-cta .wp-block-button__link {
  position: relative;
  display: inline-flex;
  box-sizing: border-box;
  letter-spacing: -.3125px;
  clip-path: path("M22 0 L259 0 L244.5 58.2 Q243 64 237 64 L0 64 L14.5 5.8 Q16 0 22 0 Z");
  border-radius: 0;
  justify-content: center;
  align-items:  center;
  gap: 10px;
  min-width: 259px;
  min-height: 64px;
  padding: 8px 22px 8px 16px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  background: var(--wp--preset--color--hardroze) !important;
  color: #fff !important;
  border: none !important;
}

.ah-cta .wp-block-button__link:after {
  content: "";
  border-top: 1.5px solid #fff;
  border-right: 1.5px solid #fff;
  width: 9px;
  height: 9px;
  margin-left: -2px;
  transform: rotate(45deg);
}

.ah-cta .wp-block-button__link {
  transition: transform .12s, background-color .12s, filter .12s;
}

@media (hover: hover) {
  .ah-cta .wp-block-button__link:hover {
    filter: drop-shadow(0 4px 10px #e5005352);
    transform: translateY(-1px);
    background: #c70047 !important;
  }
}

@media (max-width: 781px) {
  .wp-block-post-content > .ah-hero:first-child {
    margin-top: 0 !important;
  }

  header.wp-block-template-part {
    position: sticky;
    z-index: 200;
    top: 0;
  }

  .alpina-header, header.site-header.alpina-header {
    background: #fff;
    min-height: 0;
    box-shadow: 0 1px 8px #0a364b1a;
  }

  .alpina-header:before {
    display: none;
  }

  .alpina-header__inner {
    min-height: 64px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .alpina-header__inner > .alpina-header__right, .alpina-header__inner > .wp-block-buttons {
    align-self:  center;
  }
}

@media (max-width: 640px) {
  .alpina-header__inner {
    gap: 12px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .alpina-header__inner .wp-block-site-logo .custom-logo {
    width: 120px;
  }

  .ah-cta .wp-block-button__link {
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    min-width: 0;
    min-height: 0;
    padding: 10px 16px 10px 14px;
    font-size: 13px;
  }
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.ap-proces, .apk-pakketten, .af-form {
  scroll-margin-top: 24px;
}

@media (max-width: 781px) {
  .ap-proces, .apk-pakketten, .af-form {
    scroll-margin-top: 76px;
  }
}

.entry-content.wp-block-post-content > * + * {
  margin-block-start: 0 !important;
}

.wp-block-group > main.wp-block-group, main.wp-block-group {
  row-gap: 0 !important;
}

.wp-site-blocks > footer.wp-block-template-part, .wp-site-blocks > .wp-block-template-part:last-child {
  margin-block-start: 0 !important;
}

.wp-block-alpina-form .af-gf .gform_confirmation_wrapper, .wp-block-alpina-form .af-gf .gform_confirmation_message, .wp-block-alpina-form .af-gf .gform_confirmation_message p {
  color: #fff;
}

.wp-block-alpina-form .af-gf .gform_confirmation_message a {
  color: #f39200;
}

.wp-block-alpina-form .af-photo img, .af-photo img {
  width: auto;
}

.aft-wedge {
  display: none !important;
}

.aft-legal {
  background: #fff;
}
