/*
Theme Name: Divi - Rick van de Streek
Template: Divi
Version: 1.0
Description: Portfolio child theme voor rickvandestreek.nl
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

/* ============================================================
   RESET / GLOBAL
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-padding-top: 64px;
}

body,
#page-container,
#et-boc,
#et-main-area,
#main-content,
.et_pb_section,
.et_pb_row,
.et_pb_column {
    background-color: #000 !important;
    color: #fff !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif !important;
}

/* Divi resets its own font — override */
body {
    font-size: 16px !important;
    line-height: 1.6 !important;
    -webkit-font-smoothing: antialiased;
}

p { padding-bottom: 0 !important; }
a { text-decoration: none; }

/* ============================================================
   NAVIGATION
   ============================================================ */
#rvds-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}
@media (min-width: 768px) {
    #rvds-nav { padding: 0 40px; }
}

#rvds-nav.scrolled {
    background-color: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.rvds-nav-logo {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    color: #fff !important;
    letter-spacing: normal !important;
    text-decoration: none !important;
    line-height: 1 !important;
}

.rvds-nav-links {
    display: none;
    align-items: center;
    gap: 32px;
}
@media (min-width: 768px) {
    .rvds-nav-links { display: flex; }
}
.rvds-nav-links a {
    font-size: 13px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    transition: color 0.3s !important;
}
.rvds-nav-links a:hover { color: #fff !important; }

/* Hamburger */
.rvds-hamburger {
    display: flex;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
}
@media (min-width: 768px) { .rvds-hamburger { display: none; } }

/* Mobile overlay */
#rvds-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#rvds-mobile-menu.open { display: flex; }

#rvds-mobile-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
}
#rvds-mobile-menu nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    background: transparent !important;
}
#rvds-mobile-menu nav a {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 28px !important;
    font-weight: 400 !important;
    color: #fff !important;
    text-decoration: none !important;
    transition: color 0.3s !important;
}
#rvds-mobile-menu nav a:hover { color: #7EBEC5 !important; }

/* ============================================================
   HEADINGS
   ============================================================ */
h1, h2, h3,
.et_pb_text h1,
.et_pb_text h2,
.et_pb_text h3,
.et_pb_fullwidth_header .header-content .title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 400 !important;
    color: #fff !important;
    line-height: 1.1 !important;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.et_pb_fullwidth_header {
    min-height: 100vh !important;
    padding: 0 !important;
}
.et_pb_fullwidth_header .header-content-container,
.et_pb_fullwidth_header .header-content-container.center {
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.et_pb_fullwidth_header .header-content {
    padding: 0 24px !important;
    text-align: center !important;
}
.et_pb_fullwidth_header .title {
    font-size: clamp(48px, 8vw, 80px) !important;
    letter-spacing: -0.02em !important;
    line-height: 1.05 !important;
    color: #fff !important;
}
.et_pb_fullwidth_header .header-subhead,
.et_pb_fullwidth_header .header-content .header-subhead {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: 4px !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-top: 24px !important;
}
/* Remove scroll arrow and buttons */
.et_pb_fullwidth_header_scroll,
.et_pb_fullwidth_header .header-content .et_pb_button_wrapper,
.et_pb_fullwidth_header .et_pb_button {
    display: none !important;
}
/* Hero: fullwidth_header must be transparent so the section video shows through */
.et_pb_fullwidth_header,
.et_pb_fullwidth_header.et_pb_fullwidth_header_0 {
    background-color: transparent !important;
    background: transparent !important;
}
/* Hero overlay — donkerder dan Divi's standaard */
.et_pb_fullwidth_header_overlay,
.et_pb_fullwidth_header_0.et_pb_fullwidth_header .et_pb_fullwidth_header_overlay {
    background: rgba(0, 0, 0, 0.55) !important;
}
/* Ensure video fills the hero */
.et_pb_section_video_bg video {
    object-fit: cover !important;
    min-width: 100% !important;
    min-height: 100% !important;
}
/* Hero section: no background color, video only */
.et_pb_section_0.et_pb_section {
    background-color: #000 !important;
}

/* ============================================================
   GENERAL SECTION OVERRIDES
   ============================================================ */
.et_pb_section {
    padding: 0 !important;
}
.et_pb_row {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
}
@media (max-width: 767px) {
    .et_pb_row { padding: 0 24px !important; }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about { padding: 0 !important; }
#about > .et_pb_row {
    padding-top: 120px !important;
    padding-bottom: 120px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 48px !important;
}
@media (min-width: 768px) {
    #about > .et_pb_row {
        flex-direction: row !important;
        gap: 80px !important;
    }
}
/* Base column rules — desktop and up */
#about .et_pb_column_3_5 {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
}
#about .et_pb_column_2_5 {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 440px !important;
}
@media (min-width: 768px) {
    #about .et_pb_column_2_5 { max-width: 42% !important; }
}
/* Mobile overrides — must come AFTER base rules to win the cascade */
@media (max-width: 767px) {
    /* Image first on mobile via order, then text below */
    #about .et_pb_column_2_5 {
        order: -1 !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    #about .et_pb_column_3_5 {
        order: 1 !important;
        flex: 0 0 auto !important;
        width: 100% !important;
    }
    #about > .et_pb_row {
        padding-bottom: 80px !important;
    }
    /* Hide contact portrait on mobile — contact section stays text-only */
    #contact .et_pb_column_1_2:last-child { display: none !important; }
    #contact .et_pb_column_1_2:first-child {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    /* Push videography down from about */
    #videography {
        margin-top: 60px !important;
    }
    #videography > .et_pb_row {
        padding-top: 40px !important;
    }
}

.rvds-label {
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: #7EBEC5 !important;
    margin: 0 0 20px !important;
}
#about h2 {
    font-size: clamp(30px, 5vw, 48px) !important;
    margin: 0 0 28px !important;
}
#about p {
    color: #cccccc !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
    margin-bottom: 16px !important;
}
#about .et_pb_image,
#about .et_pb_image_wrap {
    display: block !important;
    margin: 0 !important;
}
#about .et_pb_image img {
    width: 100% !important;
    height: auto !important;
    max-height: 620px !important;
    object-fit: cover !important;
    display: block !important;
}

/* ============================================================
   SECTION HEADER (videography / photography)
   ============================================================ */
.rvds-section-header {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    border-bottom: 1px solid #333;
    padding-bottom: 28px;
    margin-bottom: 44px;
}
.rvds-section-header h2 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: clamp(30px, 5vw, 48px) !important;
    font-weight: 400 !important;
    color: #fff !important;
    margin: 0 !important;
}
.rvds-section-header span {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
}

/* ============================================================
   VIDEOGRAPHY / PHOTOGRAPHY PADDING
   ============================================================ */
#videography > .et_pb_row,
#photography > .et_pb_row {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}
#videography .et_pb_text_inner,
#photography .et_pb_text_inner {
    max-width: 100% !important;
}

/* ============================================================
   VIDEO TABS
   ============================================================ */
.rvds-tabs {
    display: flex;
    gap: 32px;
    margin-bottom: 44px;
}
.rvds-tab-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0 0 8px;
    transition: color 0.3s, border-color 0.3s;
}
.rvds-tab-btn.active,
.rvds-tab-btn:hover { color: #fff; border-bottom-color: #fff; }

/* ============================================================
   VIDEO GRID
   ============================================================ */
.rvds-video-panel { display: none; }
.rvds-video-panel.active { display: block; }

.rvds-video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
@media (max-width: 768px) {
    .rvds-video-grid { grid-template-columns: 1fr; gap: 32px; }
}

.rvds-video-item { cursor: pointer; }
.rvds-video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1a1a1a;
}
.rvds-video-thumb img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: filter 0.4s;
}
.rvds-video-item:hover .rvds-video-thumb img { filter: brightness(1.1); }

.rvds-video-thumb-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.2);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.3s;
}
.rvds-video-item:hover .rvds-video-thumb-overlay { background: rgba(0,0,0,0.08); }

.rvds-play-btn {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s;
}
.rvds-video-item:hover .rvds-play-btn { transform: scale(1.1); }
.rvds-play-btn svg { width: 22px; height: 22px; margin-left: 3px; fill: #000; }

.rvds-video-info { margin-top: 16px; }
.rvds-video-info h3 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 20px !important; font-weight: 400 !important;
    color: #fff !important; margin: 0 0 4px !important;
}
.rvds-video-info p {
    font-size: 12px !important; color: #999 !important;
    letter-spacing: 1px; text-transform: uppercase; margin: 0 !important;
}

/* ============================================================
   PHOTO GRID (masonry)
   ============================================================ */
.rvds-photo-grid {
    columns: 3; column-gap: 24px;
}
@media (max-width: 900px) { .rvds-photo-grid { columns: 2; } }
@media (max-width: 500px)  { .rvds-photo-grid { columns: 1; } }

.rvds-photo-item {
    break-inside: avoid;
    margin-bottom: 24px;
    position: relative; overflow: hidden; cursor: pointer;
}
.rvds-photo-item img {
    width: 100%; height: auto; display: block;
    transition: transform 0.5s;
}
.rvds-photo-item:hover img { transform: scale(1.02); }

.rvds-photo-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0);
    display: flex; align-items: flex-end; padding: 16px;
    transition: background 0.3s;
}
.rvds-photo-item:hover .rvds-photo-overlay { background: rgba(0,0,0,0.4); }
.rvds-photo-overlay span {
    color: #fff; font-size: 13px;
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.3s, transform 0.3s;
}
.rvds-photo-item:hover .rvds-photo-overlay span {
    opacity: 1; transform: translateY(0);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
#contact,
#contact .et_pb_section { background-color: #000 !important; }
#contact > .et_pb_row {
    padding-top: 120px !important;
    padding-bottom: 120px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 48px !important;
    align-items: center !important;
}
@media (min-width: 768px) {
    #contact > .et_pb_row {
        flex-direction: row !important;
        gap: 80px !important;
        align-items: center !important;
    }
}
#contact h2 {
    font-size: clamp(30px, 5vw, 48px) !important;
    margin-bottom: 28px !important;
}
#contact p {
    color: #cccccc !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
}
#contact .et_pb_column_1_2 {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
}
#contact .et_pb_image img {
    width: 100% !important;
    height: auto !important;
    max-height: 500px !important;
    object-fit: cover !important;
    display: block !important;
}

/* Contact links */
.rvds-contact-links {
    list-style: none; padding: 0; margin: 36px 0 0;
}
.rvds-contact-links li { margin-bottom: 20px; }
.rvds-contact-links a {
    display: flex; align-items: center; gap: 16px;
    color: #fff !important; text-decoration: none !important;
    font-size: 16px; transition: color 0.3s;
}
.rvds-contact-links a:hover { color: #7EBEC5 !important; text-decoration: underline !important; }
.rvds-contact-icon {
    color: #7EBEC5; flex-shrink: 0; width: 20px; height: 20px;
}

/* ============================================================
   FOOTER
   ============================================================ */
#rvds-footer {
    background-color: #000 !important;
    border-top: 1px solid #333;
    padding: 40px 24px;
    text-align: center;
}
#rvds-footer p:first-child {
    font-size: 13px !important;
    color: #999 !important;
    margin: 0 0 8px !important;
}
#rvds-footer p:last-child {
    font-size: 12px !important;
    color: #666 !important;
    margin: 0 !important;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
#rvds-lightbox {
    display: none;
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,0.96);
    align-items: center; justify-content: center;
    flex-direction: column; padding: 24px;
}
#rvds-lightbox.open { display: flex; }
#rvds-lightbox-inner { position: relative; max-width: 90vw; width: 100%; }
#rvds-lightbox video,
#rvds-lightbox iframe,
#rvds-lightbox img {
    width: 100%; max-height: 80vh; object-fit: contain; display: block;
}
#rvds-lightbox-title {
    color: #fff;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 20px; margin-top: 16px; text-align: center;
}
#rvds-lightbox-close {
    position: fixed; top: 24px; right: 28px;
    background: none; border: none; color: #fff;
    font-size: 36px; cursor: pointer; line-height: 1;
    opacity: 0.7; transition: opacity 0.2s; z-index: 100000;
}
#rvds-lightbox-close:hover { opacity: 1; }

/* ============================================================
   DIVI OVERRIDES — AGGRESSIVE
   ============================================================ */

/* Remove Divi's standard header and footer (we have custom ones) */
#main-header                { display: none !important; }
#main-footer                { display: none !important; }
#sidebar                    { display: none !important; }

/* Fix white body background from Divi parent */
body, html {
    background: #000 !important;
}
/* Remove Divi's nav-height padding — we have a transparent fixed nav */
#page-container,
.et_fixed_nav.et_show_nav #page-container,
.et_fixed_nav.et_show_nav.et_secondary_nav_enabled #page-container,
.et_fixed_nav.et_show_nav.et_header_style_centered #page-container {
    padding-top: 0 !important;
}

/* Divi heading padding */
h1, h2, h3, h4 {
    padding-bottom: 0 !important;
    line-height: 1.1 !important;
}

/* Divi paragraph bottom padding */
.et_pb_text p,
.et_pb_text_inner p {
    padding-bottom: 0 !important;
}

/* Divi light-layout text color on dark sections */
.et_pb_bg_layout_light.et_pb_text .et_pb_text_inner,
.et_pb_bg_layout_light .et_pb_text_inner p,
.et_pb_bg_layout_light .et_pb_module_header,
#about .et_pb_text_inner,
#videography .et_pb_text_inner,
#photography .et_pb_text_inner,
#contact .et_pb_text_inner {
    color: #fff !important;
}
#about .et_pb_text_inner p,
#contact .et_pb_text_inner p {
    color: #cccccc !important;
}

/* Fix Divi column widths — use flexbox properly */
.et_pb_row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch;
}
.et_pb_column {
    padding: 0 !important;
    margin: 0 !important;
}
/* About and Contact rows must not wrap on desktop */
@media (min-width: 768px) {
    #about > .et_pb_row,
    #contact > .et_pb_row { flex-wrap: nowrap !important; }
}

/* Divi adds lazyload placeholder bg to images */
.et_pb_image_wrap img {
    width: 100% !important;
}

/* Videography / Photography full-width row */
#videography .et_pb_column_4_4,
#photography .et_pb_column_4_4 {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Divi page title area */
.et_pb_pagebuilder_layout.et_full_width_page .post-content { padding: 0 !important; }

/* Photography gallery page */
.page-id-719 #page-container,
.page-id-719 .et_pb_section { background-color: #000 !important; }
.page-id-719 .et_pb_section { padding-top: 120px !important; padding-bottom: 80px !important; }
.page-id-719 .entry-title,
.page-id-719 .page-title { display: none !important; }
.page-id-719 .rvds-section-header { margin-bottom: 48px; }

/* Empty Divi text paragraphs */
.et_pb_text_inner > p:empty,
.et_pb_text_inner > br { display: none; }

/* See More button */
.rvds-see-more {
    text-align: center;
    margin-top: 56px;
}
.rvds-btn {
    display: inline-block;
    padding: 14px 40px;
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff !important;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background 0.2s, border-color 0.2s;
}
.rvds-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.7);
}
