/* Layout for the PHP pages (homepage tiles, service pages, vacatures).
   Plain CSS on top of styles.css (which is compiled from the SCSS sources). */

/* Homepage hero: stacked buttons with even spacing (.button is display: table) */
#hero .hero-buttons .button { margin-bottom: 12px; }
#hero h1 + .hero-buttons { margin-top: 32px; }

/* Service pages: title, short intro, buttons; compact and evenly spaced.
   Mobile: no full-screen height, just enough room at the bottom for the photo. */
#hero.hero--dienst {
    min-height: 0;
    padding-bottom: 400px;
}
#hero.hero--dienst .container article {
    padding-top: 110px;
}
#hero.hero--dienst .container article p {
    max-width: 480px;
    margin: 16px 0 32px;
    font-size: 1.125em;
    line-height: 1.5;
}
@media screen and (min-width: 767px) {
    #hero.hero--dienst {
        min-height: 640px;
        padding-bottom: 0;
    }
    #hero.hero--dienst .container article {
        padding-top: 140px;
        padding-bottom: 80px;
        max-width: 520px;
    }
}
@media screen and (min-width: 1100px) {
    /* Full height again: the background photo is anchored at the bottom, so a lower
       hero would push the person in the photo up behind the intro text. */
    #hero.hero--dienst { min-height: 810px; }
    #hero.hero--dienst .container article {
        padding-top: 170px;
    }
    #hero.hero--dienst .container article p {
        max-width: 320px; /* same narrow column as the homepage, left of the person in the photo */
        margin-bottom: 40px;
    }
}

/* Homepage service tiles (inside #diensten, which styles.css gives the blue band) */
#diensten h2 { margin-bottom: 32px; }
.diensten-tegels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 576px) {
    .diensten-tegels { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
    .diensten-tegels { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.dienst-tegel {
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #333;
    padding: 28px;
    border-radius: 4px;
    text-decoration: none;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dienst-tegel:hover,
.dienst-tegel:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}
.dienst-tegel h3 {
    color: #1F6188;
    margin-bottom: 12px;
}
.dienst-tegel p {
    flex: 1;
    margin-bottom: 20px;
    line-height: 1.6;
}
.dienst-tegel__meer {
    color: #2DB157;
    font-weight: 700;
}

.dienst-section { padding: 80px 0; background: #f8f8f8; }

.dienst-card {
    background: #fff;
    border-radius: 4px;
    padding: 48px;
    margin-bottom: 40px;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.07);
}
.dienst-card:last-child { margin-bottom: 0; }
.dienst-card h2 { margin-bottom: 20px; }
.dienst-card p { margin-bottom: 16px; }

.dienst-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dienst-list li {
    padding: 8px 0 8px 24px;
    position: relative;
}
.dienst-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #2a7a5a;
    font-weight: 700;
}

.dienst-cta {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}
.dienst-cta .button { margin: 0 12px 12px 0; }

.dienst-back { margin-top: 32px; }

/* Card with image + text side by side */
.dienst-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 768px) {
    .dienst-split { grid-template-columns: 2fr 3fr; align-items: start; }
}
.dienst-split__image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Simple photo gallery (opens in fslightbox) */
.dienst-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}
@media (min-width: 768px) {
    .dienst-gallery { grid-template-columns: repeat(4, 1fr); }
}
.dienst-gallery a {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 4px;
}
.dienst-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.dienst-gallery a:hover img { transform: scale(1.04); }

/* Before/after gallery */
.voor-na-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 8px;
}
@media (min-width: 768px) {
    .voor-na-grid { grid-template-columns: 1fr 1fr; }
}
.voor-na { margin: 0; }
.voor-na__pair.voor-na__pair--drie { grid-template-columns: repeat(3, 1fr); }
.voor-na + .voor-na { margin-top: 32px; }
.voor-na__pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.voor-na__img {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 4px;
    background: #eee;
}
.voor-na__img img,
.dienst-media__photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.voor-na__img:hover img,
.dienst-media__photos a:hover img { transform: scale(1.04); }
.voor-na__label {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
}
.voor-na__label--na { background: #2a7a5a; }
.voor-na figcaption {
    margin-top: 10px;
    font-weight: 700;
}

/* Video + work photos */
.dienst-media {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 768px) {
    /* 3:4 columns make the portrait video (480x848) as tall as the 2x2 photo grid */
    .dienst-media { grid-template-columns: 3fr 4fr; align-items: start; }
}
.dienst-media__video {
    width: 100%;
    height: auto;
    aspect-ratio: 480 / 848;
    display: block;
    border-radius: 4px;
    background: #000;
}
.dienst-media__photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.dienst-media__photos a {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 4px;
}

@media (max-width: 576px) {
    /* Service names are long single words ("Dieptereiniging"); the default 3.75em H1 overflows on phones */
    #hero h1 { font-size: 2.25em; overflow-wrap: break-word; }
    .dienst-section { padding: 48px 0; }
    .dienst-card { padding: 28px 20px; }
}

/* Vacatures page (moved from inline <style> in vacatures.html) */
#vacatures { padding: 80px 0; background: #f8f8f8; }
.vacature-card {
    background: #fff;
    border-radius: 4px;
    padding: 48px;
    margin-bottom: 40px;
    box-shadow: 0 2px 24px rgba(0,0,0,0.07);
}
.vacature-card:last-child { margin-bottom: 0; }
.vacature-card h3 { margin-bottom: 12px; }
.vacature-card .vacature-label {
    display: inline-block;
    background: #e8f5f0;
    color: #2a7a5a;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.vacature-card h4 {
    margin-top: 28px;
    margin-bottom: 10px;
    font-size: 16px;
}
.vacature-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 8px 0;
}
.vacature-card ul li {
    padding: 4px 0 4px 20px;
    position: relative;
}
.vacature-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2a7a5a;
    font-weight: 700;
}
.vacature-card .vacature-cta {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}
.vacature-card .vacature-cta p { margin-bottom: 16px; }

/* Contact form (footer): all fields visible, real <button>, subject select.
   Mirrors the input styles in styles.css (footer .container .footer-left form input.active). */
footer .container .footer-left form select {
    display: block;
    width: 100%;
    height: 60px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 21px;
    outline: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
footer .container .footer-left form select.is-empty { color: rgba(255, 255, 255, 0.5); }
footer .container .footer-left form select option { color: #333; }
footer .container .footer-left form input:focus,
footer .container .footer-left form textarea:focus,
footer .container .footer-left form select:focus {
    border-bottom-color: #fff;
}
footer .container .footer-left form .false-input {
    color: #fff;
    border-bottom: 2px solid #ffd1d1;
}
footer .container .footer-left form .form-error {
    min-height: 1.5em;
    margin: 16px 0 0;
    font-weight: 700;
    color: #fff;
}
footer .container .footer-left form button.button__form {
    border: 0;
    font-family: inherit;
    text-align: left;
    margin-top: 16px;
}
footer .container .footer-left form button.button__form:disabled { opacity: 0.6; cursor: wait; }
@media screen and (min-width: 1100px) {
    footer .container .footer-left form select {
        font-size: 30px;
        margin-top: 40px;
    }
}

/* Homepage gallery: horizontal scroll-snap strip (replaces the slick slider).
   Arrow buttons sit top-right next to the heading, like the old slider arrows. */
#galerij .galerij-wrap {
    position: relative;
    padding-top: 60px;
    margin-top: -50px;
}
@media screen and (min-width: 1100px) {
    #galerij .galerij-wrap { padding-top: 80px; margin-top: -65px; }
}
#galerij .galerij-nav {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 15px;
}
#galerij .galerij-nav button {
    position: relative;
    width: 45px;
    height: 45px;
    border: 0;
    border-radius: 100%;
    background: #fff;
    cursor: pointer;
    transition: box-shadow 0.2s ease-in-out, opacity 0.2s ease-in-out;
}
#galerij .galerij-nav button::after {
    content: '';
    position: absolute;
    top: calc(50% - 7.5px);
    left: calc(50% - 4.5px);
    width: 9px;
    height: 15px;
    background: url('../images/icons/arrow-small-blue.svg') center / 9px 15px no-repeat;
}
#galerij .galerij-nav .galerij-prev::after { transform: rotate(180deg); }
#galerij .galerij-nav button:hover { box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.25); }
#galerij .galerij-nav button:disabled { opacity: 0.2; cursor: default; box-shadow: none; }
#galerij .galerij-scroller {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
#galerij .galerij-scroller::-webkit-scrollbar { display: none; }
#galerij .galerij-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: block;
    border: 4px solid #fff;
    background: #fff;
    box-sizing: border-box;
}
@media (min-width: 576px) {
    #galerij .galerij-item { flex-basis: calc((100% - 12px) / 2); }
}
@media (min-width: 768px) {
    #galerij .galerij-item { flex-basis: calc((100% - 24px) / 3); }
}
#galerij .galerij-item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 31 / 20;
    object-fit: cover;
}
