/* Base Styles */
body {
    font-family: 'Roboto light', Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section Adjustments */
.hero-bg {
    background-image: url(figures/background-image.jpg);
    background-size: cover;
    background-position: center;
    height: 75vh;
    min-height: 320px;
    position: relative;
}

/* --- Hero text readability overlay (revert: remove this block) --- */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.65);
    z-index: 1;
}

.hero-bg > * {
    position: relative;
    z-index: 2;
}

.hero-bg h1,
.hero-bg p,
.hero-bg a.btn {
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.6);
}
/* --- End hero text readability overlay --- */

/* Navigation Active State */
.nav-link.active {
    border-bottom: 2px solid #000;
    font-weight: 600;
}

/* Form Inputs */
.form-control {
    border: 1px solid #dee2e6;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: #000;
    box-shadow: none;
}

/* Project Detail Images */
.project-image {
    transition: transform 0.3s ease;
}

.project-image:hover {
    transform: scale(1.03);
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

/* Animation for Page Transitions */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Badge filter link hover styles (portfolio pages) */
.badge-filter-link {
    cursor: pointer;
    transition: all 0.2s ease;
}
.badge-filter-link:hover {
    background-color: #212529 !important;
    color: #fff !important;
    transform: scale(1.05);
}

/* Portfolio page styles */
.portfolio-thumb {
    overflow: hidden;
}
.portfolio-thumb img {
    transition: transform 0.3s ease;
}
.portfolio-thumb:hover img {
    transform: scale(1.05);
}
.filter-badge {
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}
.filter-badge:hover {
    transform: scale(1.05);
}
.filter-badge.active {
    background-color: #212529 !important;
    color: #fff !important;
}
.filter-badge.active:hover {
    background-color: #343a40 !important;
}
.portfolio-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.portfolio-item.hidden {
    display: none !important;
}

/* Mobile-only crop for the spout close-up (affects only elements using these classes) */
.spout-crop { display: none; }
.spout-crop-fallback { display: block; }

@media (max-width: 767px) {
    .spout-crop {
        display: block;
        width: 100%;
        height: 500px; /* matches previous inline height */
        background-repeat: no-repeat;
        /* scale so 60% of original fills the element: 100 / 0.6 = 166.6667% */
        background-size: 166.6667% auto;
        /* position so first 5% is hidden and middle 60% is shown */
        background-position: 5% center;
        border-radius: 0.25rem; /* match .rounded */
        overflow: hidden;
        background-color: transparent;
    }

    .spout-crop-fallback { display: none !important; }

    /* Reduce vertical gap and image heights specifically for earthenware page figures */
    .earthenware-figs { gap: 0.5rem; }
    .earthenware-figs .img-fluid.object-fit-cover,
    .earthenware-figs .spout-crop {
        height: 260px !important;
    }
    .earthenware-figs .mb-2 { margin-bottom: 0.25rem !important; }
    .earthenware-figs p.small { margin-top: 0.25rem; margin-bottom: 0.5rem; }
}
/* Multi-line text from the content editor keeps its line breaks. */
.pre-line { white-space: pre-line; }

/* Bilingual legal text ([data-lang] blocks): show only the page's language,
   without waiting for JavaScript (the server sets <html lang>). */
html[lang="nl"] [data-lang="en"],
html[lang="en"] [data-lang="nl"] { display: none !important; }
