/* Components: hero carousel, service cards, split blocks, reviews, history, faq, gallery, contact, booking */

/* Hero carousel (homepage) */

.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background: var(--dark);
    color: #ffffff;
    overflow: hidden;
    touch-action: pan-y;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0.9s;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0) 70%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 40%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: clamp(72px, 11vh, 112px);
    transition: opacity 0.6s ease 0.3s;
}

/* The text of the leaving slide disappears quickly, so two texts never overlap during the fade */
.hero-slide:not(.is-active) .hero-content {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.hero-content > div {
    max-width: 620px;
}

.hero-content p {
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
}

.hero-title {
    margin-bottom: 0.3em;
    font-size: clamp(2.3rem, 5.4vw, 4rem);
    font-weight: 500;
    line-height: 1.05;
}

.hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 28px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.hero-dot {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.hero-dot::before {
    content: "";
    display: block;
    width: 22px;
    height: 4px;
    margin: 0 auto;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.45);
    transition: background-color 0.3s, width 0.3s;
}

.hero-dot[aria-current="true"]::before {
    width: 30px;
    background: var(--accent-bright);
}

/* Service cards (homepage) */

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.25s;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.service-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px 22px 24px;
}

.service-card h3 {
    margin-bottom: 0.4em;
}

.service-card p {
    flex: 1;
    color: var(--muted);
}

.service-card a {
    text-decoration: none;
}

/* The whole card is clickable via the link */
.service-card a::after {
    content: "";
    position: absolute;
    inset: 0;
}

@media (max-width: 1000px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

/* Split: image beside text */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(32px, 6vw, 80px);
}

.split-reverse .split-media {
    order: 2;
}

.split-media img {
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
}

.split-media .media-tall {
    aspect-ratio: 4 / 5;
}

.split-media .media-wide {
    aspect-ratio: 4 / 3;
}

.media-pair {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: end;
    gap: 16px;
}

.media-pair img {
    aspect-ratio: 3 / 4;
}

.media-pair img:last-child {
    aspect-ratio: 1 / 1;
}

.split-text > :last-child {
    margin-bottom: 0;
}

@media (max-width: 860px) {
    .split {
        grid-template-columns: 1fr;
    }

    .split-reverse .split-media {
        order: 0;
    }

    .split-media .media-tall {
        aspect-ratio: 4 / 3;
    }
}

/* Check list */

.check-list {
    margin: 1.2em 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 34px;
}

.check-list li + li {
    margin-top: 0.55em;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Reviews */

.rating-summary {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 12px;
    color: inherit;
    text-decoration: none;
}

.rating-summary strong {
    font-size: 2rem;
    font-weight: 500;
}

.stars {
    display: inline-flex;
    gap: 2px;
    color: #f4b400;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 28px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.review-card blockquote {
    flex: 1;
    margin: 12px 0 16px;
    font-size: 1.05rem;
}

.review-card figcaption {
    color: var(--muted);
    font-size: 0.95rem;
}

.review-card figcaption strong {
    color: var(--ink);
    font-weight: 500;
}

.reviews-more {
    margin-top: 32px;
    text-align: center;
}

@media (max-width: 1000px) {
    .review-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .review-grid {
        grid-template-columns: 1fr;
    }
}

/* History: "Het vak van vroeger" (black-and-white photos) */

.history-photo {
    margin: 0;
}

.history-photo img {
    width: 100%;
    border-radius: var(--radius);
    filter: grayscale(1) contrast(1.05);
}

.history-photo figcaption {
    margin-top: 10px;
    font-size: 0.92rem;
    font-style: italic;
    color: var(--on-dark-muted);
}

.section:not(.section-dark) .history-photo figcaption {
    color: var(--muted);
}

.history-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 20px;
}

@media (max-width: 560px) {
    .history-pair {
        grid-template-columns: 1fr;
    }
}

/* Call to action band */

.cta-band {
    border-top: 3px solid var(--accent-bright);
    background: var(--dark-soft);
    color: #ffffff;
}

.cta-band-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 48px;
    padding-bottom: 48px;
}

.cta-band h2 {
    margin-bottom: 0.15em;
}

.cta-band p {
    margin: 0;
    color: var(--on-dark-muted);
}

.cta-band a:not(.button) {
    color: var(--accent-bright);
}

.cta-band .button-row {
    margin-top: 0;
}

/* Outline button in orange for dark backgrounds, filled only on hover */
.button-outline-accent {
    border-color: var(--accent-bright);
    color: #ffffff;
}

.button-outline-accent:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

/* Diensten page: jump links and service sections */

.service-nav {
    position: sticky;
    top: var(--header-height);
    z-index: 20;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.service-nav ul {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 12px 0;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: none;
}

.service-nav a {
    display: block;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}

.service-nav a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.service-section {
    scroll-margin-top: calc(var(--header-height) + 64px);
}

.task-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 1.4em 0;
}

.task {
    padding: 18px 20px;
    border-radius: var(--radius-small);
    background: #ffffff;
    border: 1px solid var(--line);
}

.task h3 {
    margin-bottom: 0.3em;
    font-size: 1.1rem;
}

.task p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
}

.task-grid.steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (max-width: 560px) {
    .task-grid {
        grid-template-columns: 1fr;
    }
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: clamp(32px, 5vw, 56px);
}

.gallery img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-small);
    object-fit: cover;
}

@media (max-width: 760px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* FAQ (native details / summary, no JavaScript) */

.faq {
    border-top: 1px solid var(--line);
}

.faq details {
    border-bottom: 1px solid var(--line);
}

.faq summary {
    position: relative;
    padding: 20px 44px 20px 0;
    font-size: 1.12rem;
    font-weight: 500;
    list-style: none;
    cursor: pointer;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 50%;
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1;
    color: var(--accent);
    transform: translateY(-50%);
    transition: transform 0.2s;
}

.faq details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq details p {
    margin: 0 0 20px;
    color: var(--muted);
}

/* Contact */

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: start;
}

.panel {
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.panel + .panel {
    margin-top: 24px;
}

.panel-title-small {
    font-size: 1.35rem;
}

.panel-dark {
    background: var(--dark);
    color: var(--on-dark);
}

.panel-dark p {
    color: var(--on-dark-muted);
}

.contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-list li {
    display: flex;
    gap: 12px;
}

.contact-list li + li {
    margin-top: 0.8em;
}

.contact-list .icon {
    margin-top: 0.25em;
    color: var(--accent-bright);
}

.contact-list-large li + li {
    margin-top: 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.contact-list-large li {
    padding-bottom: 18px;
}

.contact-list-large .icon {
    width: 1.4em;
    height: 1.4em;
    color: var(--accent);
}

.contact-list-large strong {
    display: block;
    font-weight: 500;
}

@media (max-width: 860px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Booking page: the Lakender planner (<x-booking>) with an aside */

x-booking {
    --booking-accent: #d24b22;
}

.booking-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}

.booking-planner {
    min-height: 480px;
}

.aside-box + .aside-box {
    margin-top: 20px;
}

.aside-box h2 {
    font-size: 1.25rem;
}

.aside-box p:last-child,
.aside-box ul:last-child {
    margin-bottom: 0;
}

@media (max-width: 960px) {
    .booking-grid {
        grid-template-columns: 1fr;
    }
}

/* Running text (privacy) */

.prose h2 {
    margin-top: 1.6em;
    font-size: 1.5rem;
}

.prose ul {
    padding-left: 1.2em;
}
