/* ==========================================================================
   CTA band above the footer (beta design) – used on any page.

   Loaded on every page (customblocks_page_attachments); the rules only apply
   to a section whose text uses .sv-cta__title / .sv-cta__text:

     <p class="sv-cta__title"><strong>Bold part.</strong><br>Second part.</p>
     <p class="sv-cta__text">Text…</p>
     + the section's Link as the button.

   The band flows into the footer: footer curve on top, no bottom curve and no
   separate footer curve. Works with or without "Gradient background".
   ========================================================================== */

/* Type scale, same as the partner page (our-partner.css):
   headings 3vw, card titles 1.25vw, text and buttons 0.85vw. */
:root {
  --sv-h: 3vw;           /* section headings */
  --sv-sub: 1.25vw;      /* card titles, list labels */
  --sv-lead: 0.85vw;     /* hero intro */
  --sv-body: 0.85vw;     /* body text */
  --sv-cta-text: 0.85vw; /* CTA band text */
  --sv-btn: 0.85vw;      /* buttons */
  --sv-num: 8.7vw;       /* step numbers (design size) */
}

/* ==========================================================================
   CTA band ("Meer tijd voor je zaak"): gradient section whose text uses
   .sv-cta. It flows straight into the footer: footer curve on top, no bottom
   curve and no separate footer curve.
   ========================================================================== */
.gradient-bg:has(.sv-cta__title) > .w-100:first-child {
  aspect-ratio: 1920 / 136;
  background: url("/themes/absoluteyou/images/footer-bg.png") center top / 100% auto no-repeat;
}
.gradient-bg:has(.sv-cta__title) > .w-100:first-child img,
.gradient-bg:has(.sv-cta__title) > .w-100:last-child:has(> img) {
  display: none;
}
body:has(.sv-cta__title) .gradient-bg:has(> img[src*="footer-bg.png"]) {
  display: none;
}
.sv-cta__title,
.sv-cta__text {
  color: var(--color-white) !important;
}
.sv-cta__title {
  margin-bottom: 3vw;
  font-family: var(--poppins-medium);
  font-size: var(--sv-h);
  line-height: 1.1;
}
.sv-cta__title strong {
  font-family: var(--poppins-bold);
}
.sv-cta__text {
  max-width: 50%;
  margin-bottom: 0;
  font-family: var(--poppins-semibold);
  font-size: var(--sv-cta-text);
  line-height: 1.5;
}
[class*="-inner-wrapper"]:has(.sv-cta__title) .block_page_more {
  margin-top: 3.5vw;
}
[class*="-inner-wrapper"]:has(.sv-cta__title) .custom-block-links {
  padding: 0.6vw 1.4vw;
  border-radius: 1vw;
  background: var(--color-white);
  color: var(--primary-color) !important;
  font-family: var(--poppins-semibold);
  font-size: var(--sv-btn);
}
[class*="-inner-wrapper"]:has(.sv-cta__title) .custom-block-links::before {
  display: none;
}

@media (max-width: 991px) {
  .sv-cta__title {
    margin-bottom: 16px;
    font-size: 28px;
  }
  .sv-cta__text {
    max-width: none;
    font-size: 15px;
    line-height: 1.5;
  }
  [class*="-inner-wrapper"]:has(.sv-cta__title) .block_page_more {
    margin-top: 24px;
  }
  [class*="-inner-wrapper"]:has(.sv-cta__title) .custom-block-links {
    height: auto;
    max-width: 100%;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.4;
    white-space: normal;
    text-align: center;
  }
}
.gradient-bg:has(.sv-cta__title) .row {
  padding-bottom: 5vw !important;
}
@media (max-width: 991px) {
  .gradient-bg:has(.sv-cta__title) .row {
    padding-bottom: 40px !important;
  }
}
.gradient-bg:has(.sv-cta__title) {
  padding-bottom: 3.5vw;
}
@media (max-width: 991px) {
  .gradient-bg:has(.sv-cta__title) {
    padding-bottom: 28px;
  }
}


/* CTA band saved without "Gradient background": give the plain section the
   same look (gradient + footer curve on top, left aligned). */
[class*="-outer-wrapper"]:not(.gradient-bg *):has(> [class*="-inner-wrapper"] .sv-cta__title) {
  padding-top: calc(7.1vw + 4vw) !important;
  padding-bottom: 5vw !important;
  background:
    url("/themes/absoluteyou/images/footer-bg.png") center top / 100% auto no-repeat,
    var(--gradient);
}
[class*="-outer-wrapper"]:not(.gradient-bg *):has(> [class*="-inner-wrapper"] .sv-cta__title) [class*="-inner-wrapper"] {
  background: none !important;
  color: var(--color-white) !important;
}
[class*="-inner-wrapper"]:has(.sv-cta__title) .block_page_body,
[class*="-inner-wrapper"]:has(.sv-cta__title) .block_page_more {
  text-align: left !important;
}
@media (max-width: 991px) {
  [class*="-outer-wrapper"]:not(.gradient-bg *):has(> [class*="-inner-wrapper"] .sv-cta__title) {
    padding-top: calc(7.1vw + 32px) !important;
    padding-bottom: 40px !important;
  }
}


/* The section wrapper centres its content; the CTA starts at the left content
   edge like the other sections. */
[class*="-inner-wrapper"]:has(.sv-cta__title) > .row,
[class*="-inner-wrapper"]:has(.sv-cta__title) > [class*="content-"] {
  width: 100%;
}

/* CTA band as a block (block type "CTA band"): the button is a link in the
   block text, styled like the section link button. */
.sv-cta-block .sv-cta__actions {
  margin: 3.5vw 0 0;
}
.sv-cta-block .sv-cta__actions a {
  display: inline-flex;
  align-items: center;
  padding: 0.6vw 1.4vw;
  border-radius: 1vw;
  background: var(--color-white);
  color: var(--primary-color) !important;
  font-family: var(--poppins-semibold);
  font-size: var(--sv-btn);
  line-height: 1.3;
  text-decoration: none;
}
@media (max-width: 991px) {
  .sv-cta-block .sv-cta__actions {
    margin-top: 24px;
  }
  .sv-cta-block .sv-cta__actions a {
    max-width: 100%;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.4;
    white-space: normal;
    text-align: center;
  }
}
