/* ==========================================================================
   Onze diensten hero (beta design, page 2) – .sv-hero
   Uses the theme tokens from absoluteyou/css/config.css and the type scale
   variables (--sv-*) from cta-band.css, which is loaded on every page.
   ========================================================================== */

/* Headings: bold first part (<strong>), medium second part. */
.sv-intro-title.font-30 {
  font-family: var(--poppins-medium);
}

/* Shaped image (curve + rounded corners in the file) with text on top. */
.sv-hero {
  position: relative;
  /* Sit close under the header curve, as in the design. */
  margin-top: -3.2vw;
  margin-bottom: 5vw;
  color: var(--color-white);
}
.sv-hero__img {
  display: block;
  width: 100%;
  height: auto;
}
.sv-hero__content {
  position: absolute;
  top: 54%;
  left: 5%;
  max-width: 42%;
  transform: translateY(-50%);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.sv-hero__body h1,
.sv-hero__body h2,
.sv-hero__body .font-30,
.sv-hero__body:not(:has(h1, h2, .font-30)) > p:first-child {
  color: var(--color-white);
  font-family: var(--poppins-bold);
  font-size: var(--sv-h);
  line-height: 1.15;
  margin-bottom: 1.6vw;
}
.sv-hero__body p {
  line-height: 1.5;
  color: var(--color-white);
  font-family: var(--poppins-semibold);
  font-size: var(--sv-lead);
  margin-bottom: 0;
}
.sv-hero__body p + p {
  margin-top: 1vw;
}

/* Links in the hero text are shown as white pill buttons. */
.sv-hero__body a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 1.6vw 0.8vw 0 0;
  padding: 0.45em 1.3em;
  border-radius: 50px;
  background: var(--color-white);
  color: var(--primary-color) !important;
  font-family: var(--poppins-semibold);
  font-size: var(--sv-btn);
  line-height: 1.2;
  text-decoration: none;
  text-shadow: none;
  transition: box-shadow 0.2s;
}
/* Buttons side by side, also when wider than the text column (design). */
.sv-hero__body p:has(> a) {
  white-space: nowrap;
}
@media (max-width: 991px) {
  .sv-hero__body p:has(> a) {
    white-space: normal;
  }
}
.sv-hero__body a:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* Tablet / mobile ----------------------------------------------------- */
@media (max-width: 991px) {
  .sv-hero {
    margin-top: 0;
    margin-bottom: 40px;
    padding: 40px 24px;
    border-radius: 20px 20px 48px 20px;
    overflow: hidden;
    background:
      linear-gradient(0deg, rgba(20, 20, 30, 0.85) 0%, rgba(20, 20, 30, 0.6) 60%, rgba(20, 20, 30, 0.35) 100%),
      /* Zoomed from the bottom so the white top curve of the image is cut off. */
      var(--sv-hero-image) 70% 100% / auto 135% no-repeat;
  }
  .sv-hero__img {
    display: none;
  }
  .sv-hero__content {
    position: static;
    max-width: none;
    transform: none;
  }
  .sv-hero__body h1,
  .sv-hero__body h2,
  .sv-hero__body .font-30,
  .sv-hero__body:not(:has(h1, h2, .font-30)) > p:first-child {
    font-size: 28px;
    margin-bottom: 16px;
  }
  .sv-hero__body p {
    font-size: 15px;
  }
  .sv-hero__body p + p {
    margin-top: 12px;
  }
  .sv-hero__body a {
    min-height: 44px;
    margin: 12px 10px 0 0;
    font-size: 15px;
  }
}

/* ==========================================================================
   Intro + benefits ("Jij plant je mensen in"): classes used in the section
   text of the new services page.
   ========================================================================== */
.sv-intro-title.font-30 {
  font-size: var(--sv-h);
  line-height: 1.15;
  margin-bottom: 3.4vw;
}
.sv-intro-lead {
  max-width: 60%;
  margin-bottom: 4vw;
  color: #6b6b6b;
  font-family: var(--poppins-medium);
  font-size: var(--sv-body);
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.sv-benefits {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sv-benefits li {
  position: relative;
  margin-bottom: 1.6vw;
  padding-left: 0.9vw;
  color: #6b6b6b;
  font-family: var(--poppins-medium);
  font-size: var(--sv-body);
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.sv-benefits li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-size: var(--sv-sub);
  line-height: 1;
}
.sv-benefits strong {
  color: var(--primary-color);
  font-family: var(--poppins-bold);
  font-size: var(--sv-sub);
  letter-spacing: 0.01em;
}

@media (max-width: 991px) {
  .sv-intro-title.font-30 {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .sv-intro-lead {
    max-width: none;
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.5;
  }
  .sv-benefits li {
    margin-bottom: 18px;
    padding-left: 14px;
    font-size: 15px;
    line-height: 1.5;
  }
  .sv-benefits li::before,
  .sv-benefits strong {
    font-size: 17px;
  }
  .sv-benefits br {
    display: none;
  }
}

/* ==========================================================================
   Steps ("Zo eenvoudig werkt het"): layout 4 cards whose text uses .sv-step.
   :has() keeps this to these cards only; !important beats the inline styles
   the page builder generates per card.
   ========================================================================== */
/* Narrow, tall cards as in the design (331 x 508 at 1706px wide). */
.ay-desktop-view > [class*="-per-row"]:has(.sv-step) {
  grid-template-columns: repeat(4, 1fr);
  justify-content: start;
  gap: 5vw;
}
.layout-4-inner-wrapper:has(.sv-step) {
  display: block;
  /* Height follows the text (no empty space at the bottom). */
  min-height: 0;
  margin: 0 !important;
  padding: 2.6vw 1.7vw 2.5vw;
  border-radius: 3.4vw !important;
  background: #eeebf3 !important;
}
.sv-step p {
  margin: 0;
}
.sv-step .sv-step__num {
  padding-left: 1.4vw;
  margin-bottom: 3.4vw;
  color: var(--primary-color);
  font-family: var(--poppins-bold);
  font-size: var(--sv-num);
  line-height: 1;
}
.sv-step .sv-step__title {
  margin-bottom: 1.6vw;
  color: var(--primary-color);
  font-family: var(--poppins-bold);
  font-size: var(--sv-sub);
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.sv-step .sv-step__text {
  color: #6b6b6b;
  font-family: var(--poppins-medium);
  font-size: var(--sv-body);
  line-height: 1.5;
  letter-spacing: 0.04em;
}
/* Button under the cards. */
[class*="-inner-wrapper"]:has(.sv-step) .block_page_more {
  margin-top: 3.2vw;
}
[class*="-inner-wrapper"]:has(.sv-step) .custom-block-links {
  padding: 0.75vw 2.5vw;
  font-family: var(--poppins-semibold);
  font-size: var(--sv-btn);
}

@media (max-width: 991px) {
  .layout-4-container:has(.sv-step) {
    gap: 16px;
  }
  .layout-4-inner-wrapper:has(.sv-step) {
    display: block;
    min-height: 0;
    aspect-ratio: auto;
    height: auto !important;
    padding: 24px;
    border-radius: 24px !important;
    color: #6b6b6b !important;
    white-space: normal;
    text-align: left;
  }
  .sv-step .sv-step__num {
    padding-left: 0;
    margin-bottom: 16px;
    font-size: 64px;
    text-align: left;
  }
  .sv-step .sv-step__title {
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.5;
    text-align: left;
  }
  .sv-step .sv-step__text {
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
  }
  [class*="-inner-wrapper"]:has(.sv-step) .block_page_more {
    margin-top: 24px;
  }
  [class*="-inner-wrapper"]:has(.sv-step) .custom-block-links {
    max-width: 100%;
    padding: 12px 24px;
    font-size: 15px;
    line-height: 1.4;
    white-space: normal;
    text-align: center;
  }
}

/* ==========================================================================
   MyCORE ("Digitaal waar het kan"): layout 13 item text, same type as the
   intro above.
   ========================================================================== */
.sv-app-text {
  max-width: none;
  margin-bottom: 2vw;
  color: #6b6b6b;
  font-family: var(--poppins-medium);
  font-size: var(--sv-body);
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.sv-app-stores img {
  height: 2.6vw;
  width: auto;
}

@media (max-width: 991px) {
  .sv-app-text {
    max-width: none;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.5;
  }
  .sv-app-stores img {
    height: 40px;
  }
}

/* MyCORE block layout (design): wide text column, image on the far right. */
@media (min-width: 992px) {
  .layout-13-inner-wrapper:has(.sv-app-text) {
    grid-template-columns: minmax(0, 1fr) 27vw;
    gap: 3vw;
    align-items: center;
  }
  .layout-13-inner-wrapper:has(.sv-app-text) .layout13-content-container {
    width: auto;
  }
  .layout-13-inner-wrapper:has(.sv-app-text) .sv-intro-title.font-30 {
    font-size: var(--sv-h);
    white-space: nowrap;
    line-height: 1.12;
    margin-bottom: 2.6vw;
  }
  .layout-13-inner-wrapper:has(.sv-app-text) .image-section img {
    display: block;
    width: 80%;
    height: auto;
    margin-left: -4vw;
  }
}
.sv-app-text {
  max-width: 70%;
  font-family: var(--poppins-medium);
  font-size: var(--sv-body);
  line-height: 1.5;
}
@media (max-width: 991px) {
  .sv-app-text {
    max-width: none;
    font-size: 15px;
    line-height: 1.5;
  }
  /* MyCORE tablets image: a bit smaller and centred on mobile. */
  .layout-13-inner-wrapper:has(.sv-app-text) .image-section img {
    display: block;
    width: 75%;
    height: auto;
    margin: 0 auto;
  }
}

/* The layout 13 template shows a Google Reviews badge (home page design);
   not part of the MyCORE block on this page. */
.layout-13-inner-wrapper:has(.sv-app-text) .google-review-wrapper {
  display: none;
}

/* Steps section heading and background, also when the section was saved
   with the gradient on or its heading lost its classes (Basic HTML). */
.gradient-bg:has(.sv-step) {
  background: none !important;
}
.gradient-bg:has(.sv-step) > .w-100 > img {
  display: none;
}
[class*="-inner-wrapper"]:has(.sv-step) .block_page_body > p:first-child {
  margin-bottom: 3.4vw;
  color: var(--primary-color) !important;
  font-family: var(--poppins-medium);
  font-size: var(--sv-h);
  line-height: 1.15;
  text-align: left;
}
[class*="-inner-wrapper"]:has(.sv-step) .block_page_body > p:first-child strong {
  font-family: var(--poppins-bold);
}
@media (max-width: 991px) {
  [class*="-inner-wrapper"]:has(.sv-step) .block_page_body > p:first-child {
    margin-bottom: 20px;
    font-size: 28px;
  }
}

/* Steps button left aligned, also if the section is set to "center". */
[class*="-inner-wrapper"]:has(.sv-step) .block_page_more {
  text-align: left !important;
}
.sv-benefits li::before {
  line-height: 1.5 !important;
}