/* ===============================
   ONTWERP-DETAILPAGINA
   =============================== */

.design-product-hero {
    display: grid;
    grid-template-columns: minmax(0,.9fr) minmax(420px,1.1fr);
    min-height: 650px;
    color: #fff;
    background: var(--blue);
}

.design-product-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(3rem,7vw,7rem);
    padding-left: max(1.25rem,calc((100vw - 1240px)/2));
    padding-right: clamp(2rem,5vw,5rem);
}

.design-product-copy .breadcrumb {
    margin-bottom: 2rem;
}

.design-product-copy h1 {
    margin-bottom: 1rem;
}

.design-product-copy .rich-text {
    color: #fff;
    font-size: 1.15rem;
}

.design-product-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.design-product-image {
    display: grid;
    place-items: center;
    margin: 0;
    padding: clamp(2rem,5vw,5rem);
    background: #dcecf5;
}

.design-product-image img {
    display: block;
    width: min(100%,720px);
    height: auto;
}

.design-gallery {
    width: min(1240px,calc(100% - 2.5rem));
    margin: auto;
    padding: 0 0 clamp(4rem,8vw,7rem);
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 1.5rem;
}

.design-gallery>div {
    grid-column: 1/-1;
}

.design-gallery h2 {
    font-size: clamp(1.8rem,4vw,3.5rem);
}

.design-gallery figure {
    margin: 0;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.design-gallery img {
    display: block;
    width: 100%;
    height: 430px;
    object-fit: cover;
    object-position: top;
}

.design-pagination {
    width: min(1240px,calc(100% - 2.5rem));
    margin: auto;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #dce4e8;
}

.design-pagination a {
    font-weight: 700;
    text-decoration: none;
}

.info-hero {
    background: var(--purple);
}

/* ===============================
   ONTWERPENOVERZICHT
   =============================== */

.template-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
}

.template-card {
    min-width: 0;
}

.template-card>img {
    display: block;
    width: 100%;
    height: 270px;
    padding: 1.5rem;
    object-fit: contain;
    background: #edf5f8;
}

.template-card>div {
    min-height: 265px;
    padding: 2rem;
    color: #fff;
}

.template-card h2 {
    margin: .5rem 0;
    font-size: clamp(1.35rem,2vw,2rem);
}

.template-card p {
    margin-bottom: 1.25rem;
}

.template-card a {
    font-weight: 700;
}

.template-card.blue>div {
    background: var(--blue);
}

.template-card.purple>div {
    background: var(--purple);
}

.template-card.orange>div {
    background: var(--orange);
}

.template-card.green>div {
    background: var(--green);
}

/* ===============================
   VERGELIJKING EN STAPPEN
   =============================== */

.comparison-section {
    padding: clamp(4rem,8vw,7rem) 1.25rem;
    background: #f3f7f8;
}

.comparison-section>.rich-text {
    width: min(100%,1050px);
    margin: auto;
}

.steps-section {
    width: min(1240px,calc(100% - 2.5rem));
    margin: auto;
    padding: clamp(4rem,8vw,7rem) 0;
}

.steps-section>h2 {
    max-width: 800px;
    font-size: clamp(2rem,4vw,4rem);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.steps-grid article {
    padding: 2rem;
    border-radius: 20px;
    background: #f2f8fa;
}

.steps-grid span {
    display: block;
    margin-bottom: 2rem;
    color: var(--orange);
    font: 700 2rem/1 var(--font-head);
}

.steps-grid h3 {
    font-size: 1.25rem;
}

.steps-grid p {
    margin: 0;
}

@media(max-width:1000px) {
    .design-product-hero {
        grid-template-columns: 1fr 1fr;
    }

    .template-grid,.steps-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

}

@media(max-width:720px) {
    .design-product-hero {
        grid-template-columns: 1fr;
    }

    .design-product-copy {
        padding: 4rem 1.25rem;
    }

  

    .design-gallery {
        grid-template-columns: 1fr;
    }

    .design-gallery img {
        height: 360px;
    }

    .design-pagination {
        align-items: center;
        flex-direction: column;
    }

    .template-grid {
        grid-template-columns: 1fr 1fr;
    }

    .template-card>img {
        height: 210px;
    }

    .template-card>div {
        min-height: 250px;
        padding: 1.4rem;
    }

}

@media(max-width:480px) {
    .template-grid,.steps-grid {
        grid-template-columns: 1fr;
    }

    .template-card>div {
        min-height: 0;
    }

    .design-gallery img {
        height: 280px;
    }

}

/* ===============================
   ALGEMENE ONTWERPENPAGINA
   =============================== */

.design-page-intro {
    position: relative;
    overflow: hidden;
    padding: clamp(5rem,10vw,9rem) max(1.25rem,calc((100% - 1240px)/2));
    color: #fff;
    background: var(--orange);
}

.design-page-intro::after {
    content: "";
    position: absolute;
    inset: auto -4rem -8rem auto;
    width: min(48vw,620px);
    height: min(38vw,430px);
    background: url('../images/brand/Blokjes_Vervolgpagina.svg') right bottom/contain no-repeat;
    opacity: .3;
}

.design-page-intro>* {
    position: relative;
    z-index: 1;
}

.design-page-intro h1 {
    max-width: 900px;
}

.design-page-intro>p:last-child {
    max-width: 720px;
    font-size: 1.2rem;
}

.design-overview {
    width: min(1240px,calc(100% - 2.5rem));
    margin: auto;
 
}

.design-detail {
    scroll-margin-top: 110px;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(2rem,7vw,7rem);
    align-items: center;
    padding: clamp(3rem,7vw,6rem) 0;
    border-bottom: 1px solid #dce4e8;
}

.design-detail:nth-child(even) {
    grid-template-columns: .9fr 1.1fr;
}

.design-detail:nth-child(even) .detail-image {
    order: 2;
}

.detail-image {
    position: relative;
    min-height: 430px;
  border-radius: 24px;
    box-shadow: var(--shadow);
}

.detail-image .design-visual {
    inset: 0;
}

.design-detail small {
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.design-detail h2 {
    margin: .75rem 0 1rem;
    font-size: clamp(2rem,4vw,4rem);
}

.design-detail .button {
    color: #fff;
    background: var(--navy);
}

/* ===============================
   ONTWERPDETAIL RESPONSIVE
   Afbeeldingsverhouding: 800 × 571
   =============================== */

@media (max-width: 1000px) {
    .detail-image {
        width: 100%;
        min-height: 0;
        aspect-ratio: 800 / 571;
        background: #ffffff;
    }

    .detail-image > a {
        display: block;
        width: 100%;
        height: 100%;
    }

    .detail-image img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }
}

@media (max-width: 720px) {
    .design-detail,
    .design-detail:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .design-detail:nth-child(even) .detail-image {
        order: 0;
    }
}


/* ===============================
   ALGEMENE CMS-PAGINA
   =============================== */

.cms-page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem,8vw,7rem) max(1.25rem,calc((100% - 1240px)/2));
    color: #fff;
    background: var(--orange);
}

.cms-page-hero::after {
    content: "";
    position: absolute;
    right: -3rem;
    bottom: -5rem;
    width: min(42vw,470px);
    aspect-ratio: 1;
    background: url('../images/brand/Blokjes_Vervolgpagina.svg') right bottom/contain no-repeat;
    opacity: .28;
}

.cms-page-hero>* {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    margin-bottom: 1rem;
    font-size: .9rem;
    font-weight: 700;
}

.breadcrumb a {
    text-decoration: none;
}

.cms-page-hero h1 {
    margin-bottom: 1rem;
    font-size: clamp(2.3rem,5vw,4.8rem);
}

.cms-page-hero p {
    max-width: 760px;
    margin: 0;
    font-size: clamp(1.05rem,1rem + .35vw,1.3rem);
}

.cms-content-layout {
    width: min(1240px,calc(100% - 2.5rem));
    margin: auto;
    padding: clamp(2.5rem,6vw,4rem) 0;
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(250px,330px);
    gap: clamp(2.5rem,7vw,6rem);
    align-items: start;
}

.cms-content-layout.no-sidebar {
    display: block;
}

.cms-content-layout.no-sidebar .rich-text {
    max-width: 900px;
}

.cms-sidebar {
    position: sticky;
    top: 112px;
    display: grid;
    gap: 1rem;
}

.cms-info-card {
    padding: 1.6rem;
    border-radius: 22px;
    background: var(--cms-soft);
}

.cms-info-card.accent {
    color: #fff;
    background: var(--navy);
}

.cms-info-card h2 {
    margin-bottom: .75rem;
    font-size: 1.25rem;
}

.cms-info-card p {
    margin-bottom: 1rem;
}

.cms-info-card a {
    font-weight: 700;
}

.template-cta {
    padding: clamp(3rem,7vw,5rem) 1.25rem;
    color: #fff;
    background: var(--blue);
    text-align: center;
}

.template-cta h2 {
    max-width: 800px;
    margin: 0 auto 1rem;
    font-size: clamp(1.8rem,4vw,3.4rem);
}

.template-cta p {
    max-width: 680px;
    margin: 0 auto 1.5rem;
}

@media(max-width:820px) {
    .cms-content-layout {
        grid-template-columns: 1fr;
    }

    .cms-sidebar {
        position: static;
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

}

@media(max-width:560px) {
    .cms-sidebar {
        grid-template-columns: 1fr;
    }

}

/* ===============================
   INTRO MET TWEE KOLOMMEN
   =============================== */

.intro-section > .intro-content {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(280px, 0.8fr);
    align-items: end;
    gap: clamp(2rem, 8vw, 8rem);
    width: 100%;
}

.intro-content .intro-heading {
    min-width: 0;
}

.intro-content .intro-heading .eyebrow {
    margin: 0 0 1rem;
}

.intro-content .intro-heading h2 {
    margin: 0;
}

.intro-content > p:not(.mx_buttons) {
    max-width: 480px;
    margin: 0 0 0.5rem;
    line-height: 1.75;
}

/* Bewerkknop over de volledige breedte */

.intro-content > .mx_buttons {
    grid-column: 1 / -1;
    margin: 0 0 1rem;
}

/* Tablet en mobiel */

@media (max-width: 820px) {
    .intro-section > .intro-content {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 1.5rem;
    }

    .intro-content > p:not(.mx_buttons) {
        max-width: 700px;
    }
}

/* =========================================
   KLANTENPAGINA
   ========================================= */


/* vier kolommen op grote desktop */
@media (min-width: 1924px) {
.clients-grid {
  
    grid-template-columns: repeat(4, minmax(0, 1fr))!important  ;
     width: min(2040px, calc(100% - 2.5rem))!important;
}
}


/* Introductie */
.clients-intro {
    padding-top: clamp(3.5rem, 7vw, 6rem);
    padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.clients-intro h1 {
    max-width: 900px;
    font-size: clamp(2.3rem, 4.6vw, 4.5rem);
}

/* Twee kolommen op desktop */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;

    width: min(1240px, calc(100% - 2.5rem));
    margin-inline: auto;
    padding-block: clamp(3rem, 6vw, 6rem);
}

/* Klantkaart */
.client-card {
    min-width: 0;
    border-radius: 18px;
    overflow: hidden;

    box-shadow: 0 8px 30px rgba(23, 83, 125, 0.07);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

@media (hover: hover) {
    .client-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow, 0 22px 60px rgba(23, 83, 125, 0.14));
    }
}

/* Mockup: volledig zichtbaar, zonder afsnijden */
.client-image {
    padding: 1rem 1rem 0;
    background: #fff;
}

.client-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}

/* Gekleurd vlak onder de mockup */
.client-content {
    padding: 1.75rem 2rem 2rem;
    color: #fff;
    background: var(--navy, #17537d);
}

.client-tone-1 .client-content {
    background: var(--purple, #7f3c7d);
}

.client-tone-2 .client-content {
    background: #006071;
}

.client-tone-3 .client-content {
    background: var(--brown, #784525);
}

/* Klantnaam */
.client-content h2 {
    margin: 0 0 1.25rem;
    color: #fff;
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

/* Knoppen */
.client-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.client-actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 0.75rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 99px;

    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* Bekijk live website */
.client-actions .client-live {
    color: var(--navy, #17537d);
    background: #fff;
}

.client-actions .client-live:hover {
    color: #fff;
    background: var(--orange, #df4e10);
}

/* Offerte aanvragen */
.client-actions .client-quote {
    color: #fff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.75);
}

.client-actions .client-quote:hover {
    color: var(--navy, #17537d);
    background: #fff;
}

/* Toetsenbordfocus */
.client-actions a:focus-visible,
.clients-cta a:focus-visible {
    outline: 3px solid var(--yellow, #f3cf00);
    outline-offset: 4px;
}

/* Afsluitend contactvlak */
.clients-cta {
    background: var(--teal, #23988b);
}

.clients-cta h2 {
    font-size: clamp(2rem, 4vw, 3.7rem);
}

.client-location {
    display: block;
    margin-bottom: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.65;
}

.client-location + h2 {
    margin-top: 0;
}


/* Mobiel */
@media (max-width: 720px) {
    .clients-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .client-content {
        padding: 1.5rem;
    }

    .client-image {
        padding: 0.5rem 0.5rem 0;
    }

    .client-actions .button {
        flex: 1 1 180px;
    }
}

/* Minder beweging wanneer ingesteld */
@media (prefers-reduced-motion: reduce) {
    .client-card,
    .client-actions .button {
        transition: none;
    }

    .client-card:hover,
    .client-actions .button:hover {
        transform: none;
    }
}