/* ========================================================================
   VideoLogic - Custom overrides on Adrian template
   ======================================================================== */

/* Vimeo background video for hero */
.banner-video {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.vimeo-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.vimeo-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Force 16:9 aspect-ratio while covering the viewport */
    width: 100vw;
    height: 56.25vw; /* 100vw * 9/16 */
    min-height: 100vh;
    min-width: 177.78vh; /* 100vh * 16/9 */
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}

/* Lichte overlay - video blijft uitnodigend zichtbaar */
.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.25));
    z-index: 1;
    pointer-events: none;
}

/* Banner text gecentreerd op video.
   Belangrijk: ook left/right:0 + margin:auto zodat de centering werkt ongeacht
   inline-block / typed.js inhoud-shifts. */
.banner-video .banner-text {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 16px rgba(0,0,0,.7), 0 0 32px rgba(0,0,0,.4);
    width: 100%;
    padding: 0 5%;
}

/* Typed-string echt groot, gecentreerd (30% groter dan voorheen). */
.banner-video #typed {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 4.2rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
    display: inline-block;
    text-align: center;
}

@media (max-width: 768px) {
    .banner-video #typed { font-size: 2.3rem; }
}

/* Portfolio overlay on hover */
.portfolio-items .single-item {
    position: relative;
    margin-bottom: 24px;
}

.portfolio-items .single-item a.popup,
.portfolio-items .single-item a.popup-video {
    display: block;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Play-icon on video thumbnails */
.portfolio-items .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    font-size: 64px !important;
    color: #fff;
    opacity: 0;
    text-shadow: 0 2px 12px rgba(0,0,0,.6);
    transition: all .3s ease;
    z-index: 2;
}

.portfolio-items .single-item:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Slight darken on video thumbnails by default so play-icon is more visible */
.portfolio-items .single-item a.popup-video::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.15);
    transition: background .3s ease;
    pointer-events: none;
    z-index: 1;
}

.portfolio-items .single-item:hover a.popup-video::after {
    background: rgba(0,0,0,.45);
}

.portfolio-items .single-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.portfolio-items .single-item:hover img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    /* Sterker contrast: hogere opacity onderaan, plus extra deklaag voor leesbare tekst,
       maar video blijft door semi-transparantie zichtbaar. */
    background:
        linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.85) 100%),
        rgba(0,0,0,.15);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #fff;
    opacity: 0;
    transition: opacity .3s ease;
}

.portfolio-items .single-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Touch-devices hebben geen hover — toon overlay altijd. Detect via hover:none
   (CSS Media Queries Level 4, ondersteund door iOS Safari, Android Chrome etc.). */
@media (hover: none), (max-width: 768px) {
    .portfolio-items .portfolio-overlay {
        opacity: 1;
    }
    /* Op mobile is de hover-zoom irritant — uitschakelen. */
    .portfolio-items .single-item:hover img {
        transform: none;
    }
    /* Play-icon ook altijd zichtbaar op touch. */
    .portfolio-items .play-icon {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1);
    }
}

.portfolio-overlay h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,.7);
}

.portfolio-overlay span {
    font-size: 13px;
    opacity: 1;
    font-style: italic;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

/* Klanten logos grid */
.klanten-section { padding: 80px 0; }

.klanten-logos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
    align-items: center;
    justify-items: center;
}

.klanten-logos img {
    max-width: 140px;
    max-height: 70px;
    width: auto;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.75;
    transition: all .3s;
}

.klanten-logos img:hover {
    filter: grayscale(0);
    opacity: 1;
}

@media (max-width: 992px) { .klanten-logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 576px) { .klanten-logos { grid-template-columns: repeat(2, 1fr); } }

/* About — Daan portrait */
.about-info .info-item img {
    max-width: 280px;
    border-radius: 8px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

/* Blog cards */
.blog-post .post-image img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

/* Small layout polish */
.portfolio-header { text-align: center; }
.portfolio-filter ul { justify-content: center; }


/* Blog article pages */
.single-blog-hero {
    padding: 100px 0 40px;
    background: #1a1a1a;
    color: #fff;
}
.single-blog-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-top: 12px;
}
.single-blog-hero .post-meta {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 13px;
    opacity: .7;
}
.single-blog-content { padding: 60px 0 80px; background: #fafafa; }
.blog-article { font-family: 'Poppins', sans-serif; line-height: 1.75; }
.blog-article p { margin-bottom: 1.2em; font-size: 17px; color: #333; }
.blog-article a { color: #c41e3a; }
.blog-hero-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 32px;
}
.blog-listing .blog-post {
    margin-bottom: 32px;
    text-decoration: none !important;
    color: #333;
}
.blog-listing .blog-post:hover h3 { color: #c41e3a; }

/* Contact section — geïntegreerd met Over mij */
.contact-portrait {
    width: 220px;
    max-width: 100%;
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1/1;
    box-shadow: 0 12px 32px rgba(0,0,0,.15);
    margin-bottom: 18px;
}
.contact-name {
    margin-top: 12px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}
.contact-about {
    margin-bottom: 40px;
}
.contact-about h2 {
    margin-bottom: 18px;
}
.contact-about p {
    font-size: 16px;
    line-height: 1.7;
}
.contact-divider {
    border: 0;
    border-top: 2px solid #eee;
    margin: 48px 0;
}

/* Verberg blog-datums (evergreen content, beter voor GEO/AI-search) */
.post-meta .post-date,
.entry-meta .entry-date,
.posted-on,
time.published,
time.updated {
    display: none !important;
}

/* Navbar donker + fixed bovenaan - blijft altijd in beeld bij scrollen */
.navbar.navbar-expand-md,
nav.navbar {
    background-color: #1a1a1a !important;
    padding: 14px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

/* Body krijgt padding-top zodat content niet onder de fixed nav verdwijnt.
   Banner-video heeft min-height:100vh dus die wordt automatisch hoog genoeg. */
body.vl-theme {
    padding-top: 78px;
}
/* Banner heeft volledige hoogte nodig zonder nav-padding-top mee te tellen. */
body.vl-theme .banner-video {
    margin-top: -78px;
    padding-top: 78px;
}
/* WP's custom-logo (the_custom_logo) zet inline height op de natural height.
   Specifieke selector + !important is nodig om dat te overrulen. */
.navbar-brand img,
.navbar-brand img.custom-logo,
.navbar .custom-logo-link img {
    max-height: 45px !important;
    height: auto !important;
    width: auto !important;
}
/* Target zowel .nav-link als gewone <a> in .navbar-nav (robuuste fallback) */
.navbar .nav-link,
.navbar .nav-link.active,
.navbar-nav a,
.navbar-nav li > a {
    color: #ffffff !important;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin: 0 6px;
    padding: 8px 4px;
    display: inline-block;
    text-decoration: none;
    transition: color .2s;
}
.navbar .nav-link:hover,
.navbar-nav a:hover {
    color: #c41e3a !important;
}
.navbar-nav li {
    list-style: none;
    display: inline-block;
}
.navbar-toggler {
    border-color: rgba(255,255,255,.3);
}

/* Services "Lees meer" link */
.services-readmore {
    margin-top: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.services-readmore a {
    color: #c41e3a;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}
.services-readmore a:hover {
    border-color: #c41e3a;
}

/* Page template (single page) */
.page-content .vl-page-article {
    line-height: 1.7;
    font-size: 1.05rem;
}
.page-content .vl-page-article p,
.page-content .vl-page-article ul,
.page-content .vl-page-article ol {
    margin-bottom: 1.2em;
}
.page-content .vl-page-article h2,
.page-content .vl-page-article h3 {
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    color: #1a1a1a;
}
.page-content .vl-page-article a {
    color: #c41e3a;
    text-decoration: underline;
}
.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}
.page-back a {
    color: #c41e3a;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}
.page-back a:hover {
    border-color: #c41e3a;
}

/* ─────────────────────────────────────────────────────────────────
   Services / Producten — card-layout met foto
   ───────────────────────────────────────────────────────────────── */
.services-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: transform .25s, box-shadow .25s;
    color: inherit;
    cursor: pointer;
    height: calc(100% - 30px);
}
.services-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}
.services-card-body p a {
    color: #c41e3a;
    text-decoration: underline;
    word-break: break-word;
}
.services-card-image {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #f4f4f4;
}
.services-card-image--gradient {
    background-image: linear-gradient(135deg, #c41e3a 0%, #6b1d44 50%, #1f1f3f 100%);
}
.services-card-icon {
    position: absolute;
    bottom: 12px;
    right: 16px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
}
.services-card-body {
    padding: 24px 24px 28px;
}
.services-card-body h3 {
    margin: 0 0 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
}
.services-card-body p {
    margin: 0 0 14px;
    color: #444;
    line-height: 1.55;
    font-size: 0.95rem;
}
.services-card-body .services-readmore {
    display: inline-block;
    color: #c41e3a;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}
.services-card:hover .services-readmore {
    border-bottom-color: #c41e3a;
}

/* Safety: ensure .wow elements zijn altijd zichtbaar, ook als wow.js niet triggert.
   wow.js animaties werken niet betrouwbaar bij anchor-navigation (#services etc).
   Beter een statische pagina dan onzichtbare content. */
.wow,
body.vl-theme .wow {
    visibility: visible !important;
    opacity: 1 !important;
    animation: none !important;
}

/* Portfolio-tile beschrijving op hover (binnen .portfolio-overlay) */
.portfolio-items .portfolio-overlay .portfolio-desc {
    margin-top: 12px;
    font-size: 0.88rem;
    line-height: 1.5;
    font-weight: 500;
    max-width: 100%;
    color: #fff;
    opacity: 1;
    text-shadow: 0 1px 6px rgba(0,0,0,.8);
}
.portfolio-items .portfolio-overlay .portfolio-sub {
    display: block;
    margin-top: 2px;
    margin-bottom: 6px;
    font-weight: 400;
}

/* Sticky navbar offset: anchor-scrolls landen anders ONDER de navbar. */
section[id] {
    scroll-margin-top: 78px;
}

/* ───────────────────────────────────────────────────────────────────
   Newsletter signup in footer — Mailchimp lijst 'Video's met resultaat'
   ─────────────────────────────────────────────────────────────────── */
.newsletter-block {
    text-align: center;
    padding: 24px 0 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 24px;
}
.newsletter-title {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 1.25rem;
    margin: 0 0 8px;
}
.newsletter-sub {
    color: rgba(255,255,255,0.7);
    margin: 0 0 18px;
    font-size: 0.95rem;
}
.newsletter-form {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0;
    max-width: 480px;
    width: 100%;
    justify-content: center;
}
.newsletter-input {
    flex: 1 1 280px;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 4px 0 0 4px;
    font-size: 15px;
    outline: none;
    transition: border-color .2s, background .2s;
}
.newsletter-input::placeholder {
    color: rgba(255,255,255,0.45);
}
.newsletter-input:focus {
    border-color: #c41e3a;
    background: rgba(255,255,255,0.12);
}
.newsletter-button {
    padding: 12px 22px;
    background: #c41e3a;
    color: #fff;
    border: 1px solid #c41e3a;
    border-radius: 0 4px 4px 0;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s, transform .1s;
}
.newsletter-button:hover {
    background: #a01830;
}
.newsletter-button:active {
    transform: translateY(1px);
}
@media (max-width: 480px) {
    .newsletter-form { flex-direction: column; }
    .newsletter-input { border-radius: 4px; margin-bottom: 8px; }
    .newsletter-button { border-radius: 4px; }
}
