/* ============================================================
   STUDIO WESTONIA — Diensten
   ============================================================ */

.diensten-hero {
    padding-top: calc(var(--nav-height) + clamp(3rem, 6vw, 6rem));
    position: relative;
    overflow: hidden;
}

.diensten-hero__grid {
    display: flex;
    flex-direction: column;
}

.diensten-hero__text {
    padding-top: clamp(1rem, 2vw, 2rem);
}

.diensten-hero__form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.diensten-hero__form-title {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: var(--font-bold);
    margin-bottom: 0.5rem;
}

.diensten-hero__form-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
}

.diensten-intro {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin-top: 1.5rem;
}

/* --- Pakket detail cards on overview --- */
.dienst-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    padding: clamp(3rem, 5vw, 5rem) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dienst-block:last-child {
    border-bottom: none;
}

.dienst-block--reversed {
    direction: rtl;
}

.dienst-block--reversed > * {
    direction: ltr;
}

.dienst-block__visual {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dienst-block__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dienst-block__visual-icon {
    width: 60%;
    height: auto;
    fill: rgba(255, 255, 255, 0.15);
}

.dienst-block__number {
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: var(--font-black);
    color: var(--blue);
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.dienst-block__title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: var(--font-bold);
    margin-bottom: 1rem;
}

.dienst-block__desc {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.dienst-block__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    color: var(--blue);
    transition: gap var(--transition);
}

@media (hover:hover){
.dienst-block__link:hover {
    gap: 0.85rem;
}
}

.dienst-block__link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* --- Other services grid --- */
.other-diensten__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-top: clamp(2rem, 4vw, 3rem);
}

.other-dienst-card {
    display: block;
    padding: clamp(1.5rem, 2vw, 2.5rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    transition: border-color var(--transition), background var(--transition);
}

.other-dienst-card__arrow {
    display: block;
    margin-top: 1.25rem;
    font-size: 1rem;
    color: var(--blue);
    transition: transform var(--transition);
}

@media (hover:hover){
.other-dienst-card:hover .other-dienst-card__arrow {
    transform: translateX(5px);
}
}

@media (hover:hover){
.other-dienst-card:hover {
    border-color: var(--blue);
    background: rgba(0, 0, 255, 0.05);
}
}

.other-dienst-card__title {
    font-size: clamp(1.15rem, 1.5vw, 1.35rem);
    font-weight: var(--font-bold);
    margin-bottom: 0.75rem;
}

.other-dienst-card__desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Detail page --- */
.dienst-detail-hero {
    padding-top: calc(var(--nav-height) + clamp(3rem, 6vw, 6rem));
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
}

/* Features grid */
.dienst-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
    margin: clamp(2rem, 4vw, 3rem) 0;
}

.dienst-feature-card {
    padding: clamp(1.5rem, 2vw, 2rem);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: border-color var(--transition), background var(--transition);
}

@media (hover:hover){
.dienst-feature-card:hover {
    border-color: var(--blue);
    background: rgba(0, 0, 255, 0.03);
}
}

.dienst-feature-card__number {
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    font-weight: var(--font-black);
    color: var(--blue);
    line-height: 1;
    display: block;
    margin-bottom: 1rem;
}

.dienst-feature-card__title {
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    font-weight: var(--font-bold);
    margin-bottom: 0.5rem;
}

.dienst-feature-card__desc {
    font-size: 0.85rem;
    line-height: 1.55;
    color: rgba(0, 0, 0, 0.55);
}

/* Process steps */
.dienst-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(1rem, 2vw, 2rem);
    margin: clamp(2rem, 4vw, 3rem) 0;
}

/* Responsive */
@media (max-width: 768px) {
    .dienst-features {
        grid-template-columns: 1fr;
    }
}

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

.dienst-detail-content {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.dienst-detail-content h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: var(--font-bold);
    margin-top: clamp(2rem, 3vw, 3rem);
    margin-bottom: 1rem;
}

.dienst-detail-content p {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.5rem;
}

.dienst-detail-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.dienst-detail-content li {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    list-style: disc;
    margin-bottom: 0.5rem;
}

.dienst-detail-content li::marker {
    color: var(--blue);
}

.dienst-detail-content h3 {
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    font-weight: var(--font-bold);
    padding: 0.9rem 1rem 0.9rem 1.25rem;
    margin-top: 1rem;
    margin-bottom: 0;
    border-left: 3px solid var(--blue);
    background: rgba(0, 0, 255, 0.06);
    line-height: 1.4;
    border-top: none;
}

.dienst-detail-content h3:first-of-type {
    margin-top: 0.5rem;
}

.dienst-detail-content h3 + p {
    padding: 0.75rem 1rem 0.75rem 1.5rem;
    border-left: 3px solid rgba(0, 0, 255, 0.12);
    margin-bottom: 0;
}

/* --- Light-mode overrides --- */
.section--light .diensten-hero__form {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

.section--light .diensten-hero__form-desc {
    color: rgba(0, 0, 0, 0.5);
}

.section--light .diensten-intro {
    color: rgba(0, 0, 0, 0.55);
}

.section--light .dienst-block {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.section--light .dienst-block__desc {
    color: rgba(0, 0, 0, 0.6);
}

.section--light .other-dienst-card {
    border-color: rgba(0, 0, 0, 0.08);
}

@media (hover:hover){
.section--light .other-dienst-card:hover {
    border-color: var(--blue);
    background: rgba(0, 0, 255, 0.03);
}
}

.section--light .other-dienst-card__desc {
    color: rgba(0, 0, 0, 0.55);
}

.section--light .dienst-detail-content p {
    color: rgba(0, 0, 0, 0.65);
}

.section--light .dienst-detail-content li {
    color: rgba(0, 0, 0, 0.6);
}

.section--light .dienst-detail-content h3 {
    color: var(--black);
    background: rgba(0, 0, 255, 0.04);
    border-left-color: var(--blue);
}

.section--light .dienst-detail-content h3 + p {
    color: rgba(0, 0, 0, 0.65);
    border-left-color: rgba(0, 0, 255, 0.1);
}

/* --- Horizontal form layout on diensten hero --- */

.diensten-hero .diensten-hero__form {
    background: var(--blue);
    border: none;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: clamp(2rem, 3vw, 3rem);
}

.diensten-hero .diensten-hero__form-title,
.diensten-hero .diensten-hero__form-desc {
    color: var(--white);
}

.diensten-hero .diensten-hero__form-desc {
    color: rgba(255, 255, 255, 0.7);
}

.diensten-hero .diensten-hero__form .form-group label {
    color: rgba(255, 255, 255, 0.7);
}

.diensten-hero .diensten-hero__form .form-group input,
.diensten-hero .diensten-hero__form .form-group select,
.diensten-hero .diensten-hero__form .form-group textarea {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.diensten-hero .diensten-hero__form .form-group input::placeholder,
.diensten-hero .diensten-hero__form .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.diensten-hero .diensten-hero__form .form-group input:focus,
.diensten-hero .diensten-hero__form .form-group textarea:focus {
    border-color: rgba(255, 255, 255, 0.7);
}

.diensten-hero .diensten-hero__form .form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(255,255,255,0.7)' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
}

.diensten-hero .diensten-hero__form .form-group select option {
    background: var(--blue);
    color: var(--white);
}

.diensten-hero .diensten-hero__form .form-group label .required {
    color: var(--white);
}

.diensten-hero .diensten-hero__form .form-success {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.diensten-hero .diensten-hero__form .form-success__animation {
    color: var(--white);
}

.diensten-hero .diensten-hero__form .form-success__title,
.diensten-hero .diensten-hero__form .form-success__msg {
    color: var(--white);
}

.diensten-hero .diensten-hero__form-title {
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    margin-bottom: 0.25rem;
}

.diensten-hero .diensten-hero__form-desc {
    margin-bottom: 1.25rem;
}

.diensten-hero .contact-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    align-items: end;
}

.diensten-hero .contact-form .form-group:nth-child(4) {
    grid-column: 1 / 4;
}

.diensten-hero .contact-form textarea {
    min-height: auto;
    resize: none;
    height: calc(0.875rem * 1.5 + 0.875rem * 2 + 2px);
}

.diensten-hero .form-submit {
    grid-column: 4 / 5;
    margin-top: 0;
}

.diensten-hero .form-submit .btn {
    height: 100%;
    min-height: calc(0.875rem * 1.5 + 0.875rem * 2 + 2px);
}

/* Responsive */
@media (max-width: 900px) {
    .diensten-hero .contact-form {
        grid-template-columns: repeat(2, 1fr);
    }

    .diensten-hero .contact-form .form-group:nth-child(5) {
        grid-column: 1 / -1;
    }

    .diensten-hero .form-submit {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .dienst-block {
        grid-template-columns: 1fr;
    }

    .dienst-block--reversed {
        direction: ltr;
    }

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

    .diensten-hero .contact-form {
        grid-template-columns: 1fr;
    }

    .diensten-hero .contact-form .form-group:nth-child(4),
    .diensten-hero .contact-form .form-group:nth-child(5),
    .diensten-hero .form-submit {
        grid-column: 1 / -1;
    }

    .diensten-hero .contact-form textarea {
        min-height: 100px;
        height: auto;
    }
}

@media (max-width: 480px) {
    .diensten-hero .contact-form {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* --- Dienst detail hero with form (side by side) --- */
.dienst-detail-hero .dienst-detail-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
}

.dienst-detail-hero .dienst-detail-hero__form {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: clamp(1.5rem, 2.5vw, 2rem);
}

.dienst-detail-hero .dienst-detail-hero__form .form-title {
    font-size: clamp(1.1rem, 1.4vw, 1.3rem);
    font-weight: var(--font-bold);
    color: var(--black);
    margin-bottom: 0.25rem;
}

.dienst-detail-hero .dienst-detail-hero__form .form-subtitle {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 1.25rem;
}

/* --- SEO content split (text + image) --- */
.dienst-content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    margin-bottom: clamp(3rem, 5vw, 5rem);
}

.dienst-content-split--reversed {
    direction: rtl;
}

.dienst-content-split--reversed > * {
    direction: ltr;
}

.dienst-content-split h2 {
    color: var(--blue);
}

/* --- Image reveal + tilt container --- */
.dienst-content-split__img-wrap {
    position: relative;
    overflow: hidden;
}

/* Default 16:9 video wrapper on dienst splits — applied when the
   host has data-default-aspect="16/9" (set by the HTML). Keeps the
   layout stable when CSS hasn't yet loaded + lets us override for
   vertical reels without fighting inline styles. */
.dienst-content-split__img-wrap[data-default-aspect="16/9"] {
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

/* CMS-driven 9:16 mode for the inline split videos. Portrait reel
   inside the 2-column text/media layout. Width capped so a huge
   1fr column doesn't blow up the vertical height; align self to
   center the portrait inside the wider column. */
.dienst-content-split__img-wrap--vertical {
    aspect-ratio: 9 / 16 !important;
    max-width: 380px;
    width: 100%;
    justify-self: center;
    margin: 0 auto;
}

.dienst-content-split > img {
    position: relative;
}

.dienst-content-split__img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: clip-path, transform;
}



@media (max-width: 900px) {
    .dienst-detail-hero .dienst-detail-hero__grid {
        grid-template-columns: 1fr;
    }

    .dienst-content-split {
        grid-template-columns: 1fr;
    }

    .dienst-content-split--reversed {
        direction: ltr;
    }
}

/* --- Portfolio video grid for diensten --- */
.dienst-videos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.5rem, 2.5vw, 2rem);
}

.dienst-video-card {
    position: relative;
}

.dienst-video-card__embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: var(--grey-light);
    cursor: pointer;
}

/* CMS-driven 9:16 mode for dienst-video-card embeds. Mirrors
   .project-split__video--vertical: lock aspect-ratio, constrain
   width so the portrait card doesn't dwarf the grid. iframe
   cover-fit + sw-player inset:0 are handled in video-player.css. */
.dienst-video-card__embed--vertical {
    padding-bottom: 0;
    height: auto;
    aspect-ratio: 9 / 16;
    max-width: 340px;
    margin: 0 auto;
}

.dienst-video-card__thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

@media (hover:hover){
.dienst-video-card__embed:hover .dienst-video-card__thumb {
    transform: scale(1.04);
}
}

.dienst-video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(72px, 10vw, 110px);
    height: clamp(72px, 10vw, 110px);
    background: rgba(0, 0, 255, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

@media (hover:hover){
.dienst-video-card__embed:hover .dienst-video-card__play {
    transform: translate(-50%, -50%) scale(1.12);
    border-color: rgba(255, 255, 255, 0.6);
}
}

.dienst-video-card__play:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.dienst-video-card__play svg {
    width: 38%;
    height: auto;
    fill: #FFFFFF;
    margin-left: 0;
    transition: transform 0.3s ease;
}

@media (hover:hover){
.dienst-video-card__embed:hover .dienst-video-card__play svg {
    transform: scale(1.08);
}
}

.dienst-video-card__embed.is-playing .dienst-video-card__thumb,
.dienst-video-card__embed.is-playing .dienst-video-card__play {
    display: none;
}

.dienst-video-card__embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: none;
}

.dienst-video-card__embed.is-playing iframe {
    display: block;
}

.dienst-video-card__info {
    padding: 1rem 0;
}

.dienst-video-card__title {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    font-weight: var(--font-bold);
}

.dienst-video-card__cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blue);
    margin-top: 0.25rem;
    display: block;
}

.dienst-video-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: var(--font-medium);
    color: var(--blue);
    margin-top: 0.5rem;
    transition: gap var(--transition);
}

@media (hover:hover){
.dienst-video-card__link:hover {
    gap: 0.75rem;
}
}

.dienst-video-card__link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

@media (max-width: 768px) {
    .dienst-videos {
        grid-template-columns: 1fr;
    }
}
