:root {
    --abeiff-primary: #d4af37;
    --abeiff-primary-dark: #b8941f;
    --abeiff-primary-light: #e5c65a;
    --abeiff-on-primary: #1f1a0f;
    --abeiff-bg: #f7f7f7;
    --abeiff-text: #333333;
    --navbar-height: 56px;
    --anchor-offset: var(--navbar-height);
}

html {
    overflow-x: clip;
    scroll-behavior: smooth;
    scroll-padding-top: var(--anchor-offset);
    background-color: var(--abeiff-bg);
}

body {
    font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
    color: var(--abeiff-text);
    background-color: var(--abeiff-bg);
    padding-top: var(--navbar-height);
    overflow-x: clip;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 1100;
    padding: 0.5rem 1rem;
    background: #fff;
    border-radius: 0.25rem;
}

.skip-link:focus {
    top: 1rem;
}

/* Navbar */
.navbar-abeiff {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 100%);
    backdrop-filter: blur(8px);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    --bs-navbar-padding-y: 0;
    min-height: var(--navbar-height);
}

.navbar-abeiff > .container {
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

@media (max-width: 991.98px) {
    .navbar-abeiff > .container {
        flex-wrap: nowrap;
    }

    .navbar-abeiff .navbar-toggler {
        margin-left: auto;
    }

    .navbar-abeiff .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1;
        padding: 0.5rem 1rem 1rem;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.85) 100%);
        backdrop-filter: blur(8px);
    }

    .navbar-abeiff.navbar-scrolled .navbar-collapse {
        background: var(--abeiff-primary);
    }

    .navbar-abeiff .navbar-nav {
        padding-top: 0.25rem;
    }
}

.navbar-brand-abeiff {
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    line-height: 1;
    color: #fff;
    text-decoration: none;
    flex: 0 1 auto;
    min-width: 0;
    max-width: min(48vw, 20rem);
    margin-right: auto;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s ease;
}

@media (min-width: 1200px) {
    .navbar-brand-abeiff {
        font-size: 0.95rem;
        max-width: 26rem;
    }
}

@media (min-width: 1400px) {
    .navbar-brand-abeiff {
        max-width: none;
    }
}

.navbar-brand-abeiff:hover,
.navbar-brand-abeiff:focus {
    color: #fff;
    opacity: 0.88;
}

.navbar-abeiff.navbar-scrolled .navbar-brand-abeiff {
    color: var(--abeiff-on-primary);
}

.navbar-abeiff.navbar-scrolled .navbar-brand-abeiff:hover,
.navbar-abeiff.navbar-scrolled .navbar-brand-abeiff:focus {
    color: var(--abeiff-on-primary);
    opacity: 0.85;
}

.navbar-abeiff.navbar-scrolled {
    background: var(--abeiff-primary);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.navbar-abeiff.navbar-scrolled .nav-link {
    color: var(--abeiff-on-primary) !important;
}

.navbar-abeiff.navbar-scrolled .nav-link:hover,
.navbar-abeiff.navbar-scrolled .nav-link:focus {
    color: #000 !important;
    opacity: 0.85;
}

.navbar-abeiff.navbar-scrolled .theme-toggle-btn,
.navbar-abeiff.navbar-scrolled .theme-toggle-btn:hover,
.navbar-abeiff.navbar-scrolled .theme-toggle-btn:focus {
    color: var(--abeiff-on-primary);
}

.navbar-abeiff.navbar-scrolled .navbar-toggler-icon {
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2831, 26, 15, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-abeiff .nav-link {
    font-weight: 600;
    padding: 0.375rem 0.75rem !important;
    line-height: 1.25;
    transition: opacity 0.2s ease;
}

.navbar-abeiff .nav-link:hover,
.navbar-abeiff .nav-link:focus {
    opacity: 0.85;
}

.navbar-abeiff .nav-link.active {
    text-decoration: underline;
    text-underline-offset: 0.35rem;
}

.theme-toggle-btn {
    color: #fff;
    line-height: 1;
    border: 0;
    opacity: 0.9;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.theme-toggle-btn:hover,
.theme-toggle-btn:focus {
    color: #fff;
    opacity: 1;
}

.bee-icon {
    vertical-align: -0.15em;
}

/* Buttons */
.btn-abeiff {
    --bs-btn-color: var(--abeiff-on-primary);
    --bs-btn-bg: var(--abeiff-primary);
    --bs-btn-border-color: var(--abeiff-primary);
    --bs-btn-hover-color: var(--abeiff-on-primary);
    --bs-btn-hover-bg: var(--abeiff-primary-dark);
    --bs-btn-hover-border-color: var(--abeiff-primary-dark);
    --bs-btn-focus-shadow-rgb: 212, 175, 55;
    --bs-btn-active-color: var(--abeiff-on-primary);
    --bs-btn-active-bg: var(--abeiff-primary-dark);
    --bs-btn-active-border-color: var(--abeiff-primary-dark);
    font-weight: 600;
}

/* Sections */
section[id],
.contact-section {
    scroll-margin-top: var(--anchor-offset);
}

#main-content > section {
    border-bottom: 1px solid var(--bs-border-color);
}

#main-content > section:last-child {
    border-bottom: none;
}

.section-py {
    padding: 4.5rem 0;
}

.section-alt {
    background-color: var(--abeiff-bg);
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--abeiff-primary);
}

.service-list li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

.section-media-img {
    width: 600px;
    max-width: 100%;
    aspect-ratio: 600 / 400;
    height: auto;
    object-fit: cover;
}

.section-media-img-wide {
    width: 600px;
    max-width: 100%;
    aspect-ratio: 600 / 200;
    height: auto;
    object-fit: cover;
}

/* Scroll reveal (zoals vtvwbk.nl) */
.reveal {
    opacity: 0;
    transition: opacity 1.3s ease, transform 1.3s ease;
}

.reveal.from-left {
    transform: translateX(-60px);
}

.reveal.from-right {
    transform: translateX(60px);
}

.reveal.from-bottom {
    transform: translateY(50px);
}

.reveal.visible {
    opacity: 1;
    transform: translate(0, 0);
}

#main-content {
    overflow-x: clip;
}

/* Hero carousel */
.hero-carousel-section {
    overflow: hidden;
}

.hero-carousel {
    overflow: hidden;
}

.hero-carousel .carousel-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 1;
    max-height: 520px;
    background-color: var(--abeiff-primary-dark);
    overflow: hidden;
}

.hero-carousel .carousel-item {
    width: 100%;
    min-width: 100%;
    height: 100%;
}

.hero-carousel .carousel-item,
.hero-carousel .carousel-item picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-banner-img {
    width: 100%;
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    vertical-align: top;
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #fff;
    opacity: 0.5;
    border: none;
    margin: 0 4px;
}

.hero-carousel .carousel-indicators .active {
    opacity: 1;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 8%;
}

@media (max-width: 767.98px) {
    /*
     * Alleen desktop-banners (1920×640): hoger kader (16:9).
     * Snijdt links/rechts bij; tekst in het midden van de banner blijft zichtbaar.
     */
    .hero-carousel:not(.hero-carousel--has-mobile) .carousel-inner {
        aspect-ratio: 16 / 9;
        max-height: none;
    }

    .hero-carousel:not(.hero-carousel--has-mobile) .hero-banner-img {
        object-position: center center;
    }

    /* Aparte mobiele banners (800×400, 2:1) */
    .hero-carousel--has-mobile .carousel-inner {
        aspect-ratio: 2 / 1;
        max-height: 400px;
    }

    .hero-carousel--has-mobile .hero-banner-img {
        object-position: center center;
    }

    .hero-carousel .carousel-indicators {
        margin-bottom: 0.5rem;
    }

    /* Voorkom 1px gap rechts door afronding/subpixels */
    .hero-banner-img {
        width: calc(100% + 2px);
        max-width: none;
        margin-left: -1px;
    }
}

/* Article cards */
.article-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.1) !important;
}

.article-card .card-title a:hover {
    color: var(--abeiff-primary) !important;
}

.article-list-more {
    text-align: center;
}

@media (min-width: 768px) {
    .article-list-more {
        text-align: end;
    }
}

/* Article page sidebar */
.article-nav-heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--abeiff-primary);
    margin-bottom: 0;
}

.article-nav-list li + li {
    margin-top: 0.65rem;
}

.article-nav-link {
    display: block;
    color: var(--abeiff-text);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.article-nav-link:not(.active):hover {
    color: var(--abeiff-primary);
}

.article-nav-link.active {
    color: var(--abeiff-primary);
    font-weight: 600;
}

/* Article page: mobile list/detail toggle (zoals vtvwbk.nl/docs.php) */
@media (max-width: 991.98px) {
    .article-page--detail .article-sidebar-col {
        display: none;
    }

    .article-page--list .article-content-col {
        display: none;
    }
}

/* Carousel indicators */
.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--abeiff-primary);
    opacity: 0.35;
}

.carousel-indicators .active {
    opacity: 1;
}

/* Profile */
.profile-photo {
    max-width: 280px;
    border: 4px solid #fff;
}

/* Contact */
.contact-details {
    font-style: normal;
}

.contact-details a {
    color: var(--abeiff-primary);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.link-abeiff,
.site-footer a,
.privacy-content a {
    color: var(--abeiff-primary);
    text-decoration: none;
}

.link-abeiff:hover,
.site-footer a:hover,
.privacy-content a:hover {
    text-decoration: underline;
}

.privacy-content ul {
    padding-left: 1.25rem;
}

.privacy-content li + li {
    margin-top: 0.35rem;
}

/* Footer */
.site-footer {
    background-color: var(--abeiff-bg);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

[data-bs-theme="dark"] {
    --abeiff-bg: #242426;
    --abeiff-text: #e8e8ea;
    color-scheme: dark;
}

[data-bs-theme="dark"] body {
    background-color: var(--abeiff-bg);
    color: var(--abeiff-text);
}

[data-bs-theme="dark"] .skip-link {
    background: #2c2c2e;
    color: #fff;
}

[data-bs-theme="dark"] .profile-photo {
    border-color: #3a3a3c;
}

[data-bs-theme="dark"] .site-footer {
    background-color: var(--abeiff-bg);
    border-top-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .article-card:hover {
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.35) !important;
}

/* Back to top */
.btn-back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
    z-index: 1040;
}

.btn-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.btn-back-to-top:hover {
    transform: translateY(-3px);
}

@media (max-width: 767.98px) {
    .section-py {
        padding: 3rem 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .article-card,
    .btn-back-to-top,
    .navbar-abeiff,
    .hero-carousel.carousel-fade .carousel-item,
    .reveal {
        transition: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
