/* Body text: overrides the 14px / #939292 from style.css */
body {
    font-size: 16px;
    color: #4b4b4b;
}

#about img {
    width: 570px;
    border-radius: 8px;
    margin-top: 30px;
}

.footer-panel p > a:hover {
    color: rgb(147, 146, 146);
    text-decoration: underline;
}

/* Desktop menu: small chevron for items with a dropdown (the dropdown itself is styled by the template) */
.rd-navbar-fullwidth .rd-navbar-nav > li.rd-navbar--has-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 0 3px 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .25s;
}

.rd-navbar-fullwidth .rd-navbar-nav > li.rd-navbar--has-dropdown:hover > a::after,
.rd-navbar-fullwidth .rd-navbar-nav > li.rd-navbar--has-dropdown.opened > a::after {
    transform: rotate(225deg);
    margin-bottom: 0;
}

/* Header Image Section */
.header-image-section {
    min-height: 764px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.header-image-section .parallax-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.65));
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.header-content h1 {
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.header-content p {
    color: #fff;
    font-size: 24px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

@media (max-width: 767px) {
    .header-image-section {
        min-height: 500px;
    }

    .header-content h1 {
        font-size: 32px;
    }

    .header-content p {
        font-size: 16px;
    }
}

/* Subpages: the header is transparent and sits on top of the content, so start with a dark title banner */
.page-hero {
    padding: 250px 0 80px;
    color: #fff;
    background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)), url(/images/swiper1-slide1-1920x764.jpg) center / cover no-repeat;
}

.page-hero h1 {
    margin: 0;
    color: #fff;
    font-size: 36px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .page-hero h1 {
        font-size: 48px;
    }
}

@media (max-width: 1199px) {
    .page-hero {
        padding: 110px 0 50px;
    }
}

.page-content .list-marked {
    margin-bottom: 30px;
}


/* FAQ accordion on detail pages */
.faq {
    margin: 40px 0;
}

.faq-item {
    border-bottom: 1px solid #e2e2e2;
}

.faq-item:first-of-type {
    border-top: 1px solid #e2e2e2;
}

.faq-item summary {
    position: relative;
    padding: 16px 40px 16px 0;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    line-height: 1;
    color: #72af30;
}

.faq-item[open] summary::after {
    content: '\2212';
}

.faq-item summary:hover {
    color: #72af30;
}

.faq-answer {
    padding: 0 0 16px;
}

.faq h3 {
    margin-bottom: 30px;
}


/* Home hero: the tagline is the page h1 but keeps the old h6 look */
.swiper-bg-content h1.heading-6 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: .15em;
    text-transform: uppercase;
    text-shadow: 0 0 5px #72af30;
    font-size: 31px;
    font-weight: bold;
    color: #ffffff;
}

.swiper-bg-content h1.heading-6 + h2 {
    margin-top: 22px;
}

@media (min-width: 768px) {
    .swiper-bg-content h1.heading-6 {
        margin-left: 0;
    }
}

/* 404 */
.error-404 {
    padding: 40px 0 20px;
}

.error-404 .error-code {
    margin: 0 0 10px;
    font-family: Montserrat, sans-serif;
    font-size: 96px;
    line-height: 1;
    color: #72af30;
}


/* Contact: map that loads after a click (no third-party request before consent) */
.map-consent {
    min-height: 450px;
    padding: 0;
    text-align: center;
    background: #ededed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-consent .shell {
    padding-top: 40px;
    padding-bottom: 40px;
}

.map-consent iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: 0;
}


/* Home - Over ons: photo next to the intro, three equal blocks below */
#over-ons .about-photo img {
    width: 100%;
}

/* Frame around each of the three blocks */
#over-ons .about-block .unit {
    height: 100%;
    padding: 30px;
    border: 1px solid #e2e2e2;
    background: #fff;
    box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .15);
}

@media (min-width: 992px) {
    #over-ons .about-block .unit {
        flex-direction: column;
    }

    #over-ons .about-block .unit__left + .unit__body {
        padding-left: 0;
        padding-top: 20px;
    }
}

/* Plain bullet instead of the template's dash */
.list.list-disc {
    list-style: disc;
    padding-left: 20px;
}


/* Long-form content pages (e.g. carport): spacing, lists, table and in-text links */
.article-content h2 {
    margin: 50px 0 15px;
    font-size: 26px;
    line-height: 1.3;
}

.article-content h3 {
    margin: 30px 0 10px;
    font-size: 20px;
    line-height: 1.4;
}

.article-content > p.big + h2 {
    margin-top: 45px;
}

.article-content p + p,
.article-content p + .table-wrap,
.article-content .table-wrap + p,
.article-content p + ul,
.article-content p + ol,
.article-content ul + p,
.article-content ol + p {
    margin-top: 15px;
}

.article-content p a,
.article-content li a {
    display: inline;
    font-family: inherit;
    text-decoration: underline;
}

.article-content p a:hover,
.article-content li a:hover {
    text-decoration: none;
}

.article-content .faq {
    margin-top: 50px;
}

.article-content .faq h2 {
    margin: 0 0 30px;
}

.list.list-decimal {
    list-style: decimal;
    padding-left: 22px;
}

.list.list-decimal > li,
.list.list-disc > li {
    padding-left: 4px;
}

.table-wrap {
    overflow-x: auto;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
}

.article-content th,
.article-content td {
    padding: 12px 16px;
    border: 1px solid #e2e2e2;
    text-align: left;
    vertical-align: top;
}

.article-content th {
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    background: #f5f5f5;
}


/* Photo rows inside long-form content */
.article-content .photo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 30px 0;
}

@media (min-width: 768px) {
    .article-content .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-content .photo-grid--single {
        grid-template-columns: minmax(0, 560px);
    }
}

@media (min-width: 992px) {
    .article-content .photo-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.article-content .photo-grid figure {
    margin: 0;
}

.article-content .photo-grid img {
    display: block;
    width: 100%;
    height: auto;
    box-shadow: 0 0 20px -10px #8b949c;
}

.article-content .photo-grid + p {
    margin-top: 0;
}

/* Photo beside the text: floats right on larger screens, full width above the heading on small ones */
.article-content .photo-side {
    margin: 30px 0 25px;
}

.article-content .photo-side img {
    display: block;
    width: 100%;
    height: auto;
    box-shadow: 0 0 20px -10px #8b949c;
}

@media (min-width: 768px) {
    .article-content .photo-side {
        float: right;
        width: 40%;
        margin: 50px 0 20px 40px;
    }
}

.article-content h2 {
    clear: both;
}

/* The heading that directly follows the photo sits beside it */
.article-content .photo-side + h2 {
    clear: none;
}

/* Landscape + portrait photo side by side, same height (16:9 width ratio = 4:3 next to 3:4) */
@media (min-width: 768px) {
    .article-content .photo-grid--mixed {
        grid-template-columns: 16fr 9fr;
    }

    .article-content .photo-grid--mixed img {
        height: 100%;
        object-fit: cover;
    }
}

/* On small screens the portrait photo would be very tall: show it as 4:3 */
@media (max-width: 767px) {
    .article-content .photo-grid--mixed figure:last-child img {
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }
}

/* Back link under the content of the tuinaanleg subpages */
.article-content .back-link {
    margin: 0 0 35px;
}

/* "Lees meer" line at the end of a homepage service tab */
.tab-pane .more-link {
    margin: 25px 0 30px;
}

.tab-pane .more-link a {
    font-weight: 700;
}

/* Heading that may run on beside a floated photo of the section above */
.article-content h2.wrap-photo {
    clear: none;
}

/* Call-out box: framed block with a very light green background (works inside and outside .article-content) */
.cta-box {
    margin: 50px 0;
    padding: 30px 35px;
    background: #f5faee;
    border: 1px solid #cde3ab;
}

.cta-box h2 {
    margin: 0 0 15px;
    font-size: 26px;
    line-height: 1.3;
}

@media (max-width: 767px) {
    .cta-box {
        padding: 25px 20px;
    }
}

/* Links inside the call-out box read as normal text links, also on pages without .article-content */
.cta-box p a {
    display: inline;
    font-family: inherit;
    text-decoration: underline;
}

.cta-box p a:hover {
    text-decoration: none;
}

/* In-text links on content pages without the .article-content wrapper and on the homepage intro */
.page-content .text-left p a,
#over-ons p a {
    display: inline;
    font-family: inherit;
    text-decoration: underline;
}

.page-content .text-left p a:hover,
#over-ons p a:hover {
    text-decoration: none;
}

/* Home gallery: masonry columns; thumbnails are cropped to mixed shapes, the lightbox shows the full photo */
.masonry-gallery {
    column-count: 2;
    column-gap: 12px;
    margin-top: 30px;
}

.masonry-gallery .masonry-item {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    break-inside: avoid;
}

.masonry-gallery .masonry-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.masonry-item--wide img { aspect-ratio: 4 / 3; }
.masonry-item--square img { aspect-ratio: 1 / 1; }
.masonry-item--tall img { aspect-ratio: 3 / 4; }

@media (min-width: 992px) {
    .masonry-gallery {
        column-count: 3;
        column-gap: 20px;
    }

    .masonry-gallery .masonry-item {
        margin-bottom: 20px;
    }
}


/* Photos on all pages: thin green border, no shadow, square corners (logo and slider are left alone) */
#over-ons .about-photo img,
.article-content .photo-grid img,
.article-content .photo-side img,
.masonry-gallery .masonry-item {
    border: 1px solid #72af30;
    border-radius: 0;
    box-shadow: none;
}

.masonry-gallery .masonry-item:hover {
    box-shadow: none;
}

.masonry-gallery .masonry-item img,
.masonry-gallery .masonry-item .thumb__overlay,
.masonry-gallery .masonry-item:before,
.masonry-gallery .masonry-item:after {
    border-radius: 0;
}


/* Home services: masonry tiles, 3 per row, with a green overlay and framed title (like the gallery hover) */
.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.service-tile {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid #72af30;
}

.service-tile img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.service-tile__overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(114, 175, 48, .45);
    transition: background .3s ease;
}

.service-tile__overlay:before {
    content: '';
    position: absolute;
    top: 14px;
    right: 14px;
    bottom: 14px;
    left: 14px;
    border: 1px solid #fff;
    transition: transform .3s ease;
}

.service-tile__title {
    position: relative;
    color: #fff;
    font-family: Montserrat, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}

.service-tile:hover .service-tile__overlay,
.service-tile:focus .service-tile__overlay {
    background: rgba(114, 175, 48, .7);
}

.service-tile:hover img,
.service-tile:focus img {
    transform: scale(1.06);
}

.service-tile:hover .service-tile__overlay:before,
.service-tile:focus .service-tile__overlay:before {
    transform: scale(.96);
}

@media (min-width: 600px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: staggered heights (7 or 5 rows of 50px) that add up to the same total in every column */
@media (min-width: 992px) {
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 31px;
        grid-auto-flow: row dense;
    }

    .service-tile {
        aspect-ratio: auto;
    }

    .service-tile:nth-child(3n+1) { grid-column: 1; }
    .service-tile:nth-child(3n+2) { grid-column: 2; }
    .service-tile:nth-child(3n) { grid-column: 3; }

    .service-tile:nth-child(1),
    .service-tile:nth-child(3),
    .service-tile:nth-child(5) { grid-row-end: span 8; }

    .service-tile:nth-child(2),
    .service-tile:nth-child(4),
    .service-tile:nth-child(6) { grid-row-end: span 6; }
}

/* Keep anchored headings clear of the sticky header */
.article-content h2[id] {
    scroll-margin-top: 110px;
}
