/**
 * Custom Improvements for Office for Imagination Theme
 * Incremental improvements without removing existing functionality
 *
 * @package Office_For_Imagination
 * @since 1.0.1
 */

/* ==========================================================================
   Font Imports
   ========================================================================== */

/* Brandon Grotesque - Lokaal gehost met OTF bestanden */
@font-face {
    font-family: 'Brandon Grotesque';
    src: url('../fonts/HvDTrial_Brandon_Grotesque_thin-BF64a625c9034b9.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Brandon Grotesque';
    src: url('../fonts/HvDTrial_Brandon_Grotesque_light-BF64a625c93e709.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Brandon Grotesque';
    src: url('../fonts/HvDTrial_Brandon_Grotesque_regular-BF64a625c9311e1.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Brandon Grotesque';
    src: url('../fonts/HvDTrial_Brandon_Grotesque_medium-BF64a625c84a521.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Brandon Grotesque';
    src: url('../fonts/HvDTrial_Brandon_Grotesque_bold-BF64a625c9151d5.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Brandon Grotesque';
    src: url('../fonts/HvDTrial_Brandon_Grotesque_black-BF64a625c944b08.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Karla font - Lokaal gehost met variable font */
@font-face {
    font-family: 'Karla';
    src: url('../fonts/Karla-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Karla';
    src: url('../fonts/Karla-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 800;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Karla';
    src: url('../fonts/Karla-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* ALLE paragraphs: Karla met font-weight 500 */
p {
    font-family: 'Karla', sans-serif !important;
    font-weight: 500 !important;
}

/* ==========================================================================
   Container Width
   ========================================================================== */

/* Max width naar 1600px */
.container,
.container-wide {
    max-width: 1600px !important;
}

/* ==========================================================================
   Font Overrides
   ========================================================================== */

/* Kopteksten: Brandon Grotesque, groot formaat, vet */
h1, h2,
.section-title {
    font-family: 'Brandon Grotesque', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 4.5rem !important;
    font-weight: 500 !important;
    letter-spacing: -0.02em !important;
}

h3 {
    font-family: 'Brandon Grotesque', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 1.8rem !important;
    font-weight: 600 !important;
}

/* "Office for Imagination" logo tekst: Helvetica */
.site-title,
.logo-text {
    font-family: Helvetica, Arial, sans-serif !important;
}

/* Standaard paragraphs: Karla, weight 400, iets kleiner */
p, body {
    font-family: 'Karla', sans-serif !important;
    font-weight: 400 !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
}

/* ==========================================================================
   Projecten: Hover Effect & Mager Letterbeeld
   ========================================================================== */

/* H2 dunner maken over hele site */
h2 {
    font-weight: 300 !important;
}

/* Project content container - use flexbox for visual ordering */
.project-content {
    padding: 8px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

/* Mager letterbeeld voor project tekst + EXTREEM compacte spacing - GEEN ruimte */
.project-content .project-client {
    font-weight: 300 !important;
    line-height: 0.8 !important;
    margin: 0 0 -18px 0 !important;
    font-size: 1rem !important;
}

.project-content .project-title {
    font-weight: 300 !important;
    line-height: 0.9 !important;
    margin: 0 0 -18px 0 !important;
    font-size: 0.85rem !important;
}

.project-content .project-description {
    font-weight: 300 !important;
    line-height: 0.8 !important;
    margin: 0 !important;
    font-size: 0.85rem !important;
}

/* Text overflow with ellipsis - volgorde: client > title > description */
.project-content .project-client,
.project-content .project-title,
.project-content .project-description {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
}

/* Client: max 1 regel */
.project-content .project-client {
    -webkit-line-clamp: 1 !important;
    line-clamp: 1 !important;
}

/* Title: max 3 regels */
.project-content .project-title {
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
}

/* Description: max 2 regels */
.project-content .project-description {
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
}

/* Hover effect: zelfde blauw als gradient ovaal achtergrond */
.project-card:hover .project-overlay {
    background: rgba(63, 109, 141, 0.75) !important;
}

/* ==========================================================================
   Reviews Sectie: COMPLETE REBUILD - Hoogste Prioriteit
   ========================================================================== */

/* Testimonial Card: ALLES LINKS UITLIJNEN */
.testimonial-card,
.testimonials-section .testimonial-card,
.testimonials-scroll-container .testimonial-card,
.testimonials-track .testimonial-card {
    text-align: left !important;
    background: rgba(63, 109, 141, 0.6) !important;
    padding: 25px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    max-width: 400px !important;
    min-width: 350px !important;
    flex-shrink: 0 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    align-self: flex-start !important;
}

/* Header: Sterren en Titel op 1 HORIZONTALE REGEL */
.testimonial-header,
.testimonials-section .testimonial-header,
.testimonial-card .testimonial-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    text-align: left !important;
}

/* VERBERG FOTO */
.testimonial-photo,
.testimonial-card .testimonial-photo {
    display: none !important;
}

/* Sterren (Rating) LINKS - Geen flex-shrink */
.testimonial-rating,
.testimonial-card .testimonial-rating,
.testimonial-header .testimonial-rating {
    color: #ffc107 !important;
    font-size: 1.1rem !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    order: 1 !important;
}

/* Header Content Container */
.testimonial-header-content,
.testimonial-card .testimonial-header-content {
    flex: 1 !important;
    text-align: left !important;
    display: block !important;
}

/* Korte uitroep/titel RECHTS naast sterren - MAX 4 woorden */
.testimonial-title,
.testimonial-card .testimonial-title,
.testimonial-header .testimonial-title,
.testimonial-meta-top .testimonial-title {
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    color: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    text-align: left !important;
    font-family: 'Karla', sans-serif !important;
    order: 2 !important;
}

/* VERBERG meta-top (Google/verified badges) */
.testimonial-meta-top,
.testimonial-card .testimonial-meta-top {
    display: none !important;
}

/* Platte tekst (NIET cursief) - Gewone recensietekst */
.testimonial-text,
.testimonial-card .testimonial-text {
    font-style: normal !important;
    font-family: 'Karla', sans-serif !important;
    font-weight: 400 !important;
    color: #ffffff !important;
    margin-bottom: 12px !important;
    padding: 0 !important;
    line-height: 1.7 !important;
    font-size: 0.9rem !important;
    text-align: left !important;
}

/* Onderzin (naam/bron) - ALTIJD BOLD */
.testimonial-source,
.testimonial-card .testimonial-source {
    font-weight: 700 !important;
    color: #ffffff !important;
    font-size: 0.85rem !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    font-family: 'Karla', sans-serif !important;
}

/* Footer: Ondertekst in cursief (bedrijfsnaam, datum, projectnaam) */
.testimonial-footer,
.testimonial-card .testimonial-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 5px !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
}

.testimonial-author,
.testimonial-card .testimonial-author {
    font-style: italic !important;
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.85) !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    font-family: 'Karla', sans-serif !important;
}

.testimonial-author strong,
.testimonial-card .testimonial-author strong {
    font-weight: 600 !important;
    font-style: italic !important;
}

.testimonial-author-title,
.testimonial-card .testimonial-author-title {
    font-style: italic !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 400 !important;
    text-align: left !important;
    font-family: 'Karla', sans-serif !important;
}

/* VERBERG Google label en geverifieerd label */
.testimonial-platform,
.testimonial-card .testimonial-platform,
.testimonial-verified,
.testimonial-card .testimonial-verified {
    display: none !important;
}

/* ==========================================================================
   Project Cards: Scherpe Hoeken & Aspect Ratios - HOOGSTE PRIORITEIT
   ========================================================================== */

/* SCHERPE HOEKEN (border-radius 0) voor alle project cards */
.project-card,
.projects-grid .project-card,
.projects-section .project-card {
    border-radius: 0 !important;
    overflow: hidden !important;
    background: #000 !important;
    cursor: pointer !important;
    break-inside: avoid !important;
    display: inline-block !important;
    width: 100% !important;
}

.project-image,
.project-card .project-image {
    border-radius: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.project-image img,
.project-card .project-image img {
    border-radius: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* ASPECT RATIOS - Specifiek met hoge prioriteit */
.projects-grid .project-card.aspect-1-1,
.project-card.aspect-1-1 {
    aspect-ratio: 1 / 1 !important;
}

.projects-grid .project-card.aspect-3-1,
.project-card.aspect-3-1 {
    aspect-ratio: 3 / 1 !important;
}

.projects-grid .project-card.aspect-3-2,
.project-card.aspect-3-2 {
    aspect-ratio: 3 / 2 !important;
}

.projects-grid .project-card.aspect-2-3,
.project-card.aspect-2-3 {
    aspect-ratio: 2 / 3 !important;
}

.projects-grid .project-card.aspect-1-3,
.project-card.aspect-1-3 {
    aspect-ratio: 1 / 3 !important;
}

/* Backwards compatibility: oude aspect classes */
.projects-grid .project-card.aspect-standard,
.project-card.aspect-standard {
    aspect-ratio: 3 / 2 !important;
}

.projects-grid .project-card.aspect-wide,
.project-card.aspect-wide {
    aspect-ratio: 3 / 1 !important;
}

/* ==========================================================================
   Aspect Ratio Specific Styling - Padding Only (text size blijft consistent)
   ========================================================================== */

/* Wide/short cards (3:1) - compactere padding voor beperkte verticale ruimte */
.projects-grid .project-card.aspect-3-1 .project-content,
.projects-grid .project-card.aspect-wide .project-content {
    padding: 10px 12px !important;
}

/* Square cards (1:1) - standaard padding */
.projects-grid .project-card.aspect-1-1 .project-content {
    padding: 12px 15px !important;
}

/* Tall cards (2:3, 1:3) - ruimere padding */
.projects-grid .project-card.aspect-2-3 .project-content,
.projects-grid .project-card.aspect-1-3 .project-content {
    padding: 15px 18px !important;
}

/* ==========================================================================
   Hero Video: Mute Button Styling
   ========================================================================== */

/* Mute button altijd zichtbaar */
.mute-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.mute-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.mute-button svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Toon juiste icon gebaseerd op mute state */
.mute-button.muted .mute-icon.unmuted {
    display: none;
}

.mute-button.muted .mute-icon.muted {
    display: block;
}

.mute-button:not(.muted) .mute-icon.unmuted {
    display: block;
}

.mute-button:not(.muted) .mute-icon.muted {
    display: none;
}

/* ==========================================================================
   Header Language Flags (naast hamburger menu)
   ========================================================================== */

.header-flags {
    position: fixed;
    top: 30px;
    right: 100px;
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 1001;
    height: 50px; /* Zelfde hoogte als hamburger voor verticale centrering */
}

.header-flags .flag-link {
    display: inline-block;
    opacity: 0.7;
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 4px;
}

.header-flags .flag-link:hover {
    opacity: 1;
    transform: scale(1.1);
}

.header-flags .flag-link.active {
    opacity: 1;
}

.header-flags .flag-link img {
    display: block;
}

/* Verberg footer volledig (vlaggen nu in header) */
.site-footer {
    display: none !important;
}

/* ==========================================================================
   Paragraph Spacing
   ========================================================================== */

/* Paragraph spacing dichter op elkaar */
p {
    margin-bottom: 0.7rem !important;
    line-height: 1.6 !important;
}

/* ==========================================================================
   Layout & Tekst Styling Verbeteringen (gebaseerd op original)
   ========================================================================== */

/* Headings: algemene styling */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2 !important;
    margin-top: 0 !important;
}

/* Section subtitle (Office for Imagination tekst boven titel) - H1 met Helvetica */
h1.section-subtitle,
.section-subtitle {
    font-family: Helvetica, sans-serif !important;
    font-size: 2.5rem !important;
    font-weight: 100 !important;
    margin-bottom: 0.5rem !important;
    margin-top: 0 !important;
}

/* Section intro tekst */
.section-intro {
    font-size: 1.2rem !important;
    line-height: 1.8 !important;
    margin-bottom: 50px !important;
}

/* Section titles: lowercase */
.section-title,
h2.section-title {
    text-transform: lowercase !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 2rem !important;
}

/* Review cards: specifieke styling */
.testimonial-card {
    padding: 30px !important;
    min-width: 450px !important;
    max-width: 500px !important;
}

.testimonial-card h3,
.testimonial-title {
    font-family: 'Karla', sans-serif !important;
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    line-height: 1.4 !important;
}

.testimonial-text {
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
    margin-bottom: 1.2rem !important;
}

.testimonial-author,
.testimonial-footer {
    font-size: 0.95rem !important;
}

.testimonial-rating {
    font-size: 1.1rem !important;
}

/* Paragraph: algemene verbetering */
p {
    font-family: 'Karla', sans-serif !important;
}

/* Strong en em binnen paragraphs */
p strong {
    font-weight: 600 !important;
}

p em {
    font-style: italic !important;
}

p em strong,
p strong em {
    font-weight: 700 !important;
    font-style: italic !important;
}

/* Project cards: text alignment */
.project-content {
    text-align: center !important;
}

.project-content .project-title {
    font-family: 'Brandon Grotesque', -apple-system, sans-serif !important;
    font-size: 2rem !important;
    font-weight: 300 !important;
    margin-bottom: 0.8rem !important;
    line-height: 1.3 !important;
    color: #ffffff !important;
}

.project-content .project-client {
    font-family: 'Karla', sans-serif !important;
    font-size: 1.6rem !important;
    font-weight: 300 !important;
    margin-bottom: 1rem !important;
    color: #ffffff !important;
}

.project-content .project-description {
    font-family: 'Karla', sans-serif !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    font-weight: 300 !important;
    color: #ffffff !important;
}

/* Projects Grid: Gelijke horizontale en verticale afstand */
.projects-grid {
    column-gap: 10px !important;
}

/* Alle tekst in projects-grid wit */
.projects-grid,
.projects-grid *,
.project-card,
.project-card *,
.project-content,
.project-content * {
    color: #ffffff !important;
}

/* ==========================================================================
   Project Detail Page Styling
   ========================================================================== */

/* Sidebar meta items: veel dichter bij elkaar, grotere labels */
.sidebar-meta .meta-item {
    margin-bottom: 0.8rem !important;
}

.sidebar-meta .meta-item strong {
    font-family: 'Brandon Grotesque', -apple-system, sans-serif !important;
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    text-transform: lowercase !important;
    margin-bottom: 0.2rem !important;
    display: block !important;
    color: #e0e0e0 !important;
}

.sidebar-meta .meta-item p {
    font-family: 'Karla', sans-serif !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    color: #e0e0e0 !important;
}

/* Meta item lists: bullets op aparte regels */
.sidebar-meta .meta-item-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sidebar-meta .meta-item-list li {
    font-family: 'Karla', sans-serif !important;
    font-size: 0.95rem !important;
    margin-bottom: 0.3rem !important;
    position: relative !important;
    padding-right: 1.2rem !important;
    text-align: right !important;
    color: #e0e0e0 !important;
    line-height: 1.4 !important;
}

.sidebar-meta .meta-item-list li::before {
    content: "•" !important;
    position: absolute !important;
    right: 0 !important;
    color: #64b5f6 !important;
    font-weight: bold !important;
    font-size: 1.2rem !important;
}

/* Back link styling */
.back-link {
    font-family: 'Karla', sans-serif !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    color: #e0e0e0 !important;
}

.sidebar-back {
    margin-bottom: 2rem !important;
}

/* Project title and client */
.project-title {
    font-family: 'Brandon Grotesque', -apple-system, sans-serif !important;
    font-size: 3rem !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    color: #e0e0e0 !important;
}

.project-client {
    font-family: 'Karla', sans-serif !important;
    font-size: 1.4rem !important;
    font-weight: 400 !important;
    color: #e0e0e0 !important;
}

/* About section layout - afbeelding volledig zichtbaar met max-height 650px */
.about-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
    align-items: start !important;
}

.about-text {
    grid-column: 2 !important;
    font-family: 'Karla', sans-serif !important;
}

.about-image {
    grid-column: 1 !important;
    grid-row: 1 / -1 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
}

.about-image img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 650px !important;
    display: block !important;
    object-fit: contain !important;
}

/* CRITICAL: About-image moet ALTIJD zichtbaar zijn op alle viewports */
.about-image,
.about-section .about-image,
.about-content .about-image {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.about-text p {
    font-size: 1.15rem !important;
    line-height: 1.5 !important;
    color: #e0e0e0 !important;
    margin-bottom: 0.8rem !important;
}

/* Partners intro - gelijke styling als about-text */
.partners-intro p {
    font-size: 1.15rem !important;
    line-height: 1.5 !important;
    color: #e0e0e0 !important;
    margin-bottom: 0.8rem !important;
}

/* Project description tekst */
.project-short-description,
.project-description {
    font-family: 'Karla', sans-serif !important;
}

/* project-short-description even groot als meta-item */
.project-short-description p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
    color: #e0e0e0 !important;
}

.project-description p {
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
    margin-bottom: 1.2rem !important;
    color: #e0e0e0 !important;
}

/* Section spacing */
.section {
    padding: 100px 0 !important;
}

.section-header {
    margin-bottom: 80px !important;
}

/* ==========================================================================
   Responsive: 2 Kolommen vanaf 1447px
   ========================================================================== */

@media (max-width: 1447px) and (min-width: 1025px) {
    /* Projects Grid: 2 kolommen voor medium schermen */
    .projects-grid {
        column-count: 2 !important;
        column-gap: 10px !important;
    }
}

/* ==========================================================================
   Responsive: Tablet Optimalisatie (769px - 1024px)
   ========================================================================== */

@media (max-width: 1024px) and (min-width: 769px) {
    /* Projects Grid: 2 kolommen */
    .projects-grid {
        column-count: 2 !important;
        column-gap: 10px !important;
    }

    /* Project Cards: Behoud aspect ratios op tablet */
    .projects-grid .project-card.aspect-1-1,
    .project-card.aspect-1-1 {
        aspect-ratio: 1 / 1 !important;
    }

    .projects-grid .project-card.aspect-3-1,
    .project-card.aspect-3-1 {
        aspect-ratio: 3 / 1 !important;
    }

    .projects-grid .project-card.aspect-3-2,
    .project-card.aspect-3-2 {
        aspect-ratio: 3 / 2 !important;
    }

    .projects-grid .project-card.aspect-2-3,
    .project-card.aspect-2-3 {
        aspect-ratio: 2 / 3 !important;
    }

    .projects-grid .project-card.aspect-1-3,
    .project-card.aspect-1-3 {
        aspect-ratio: 1 / 3 !important;
    }

    .projects-grid .project-card.aspect-standard,
    .project-card.aspect-standard {
        aspect-ratio: 3 / 2 !important;
    }

    .projects-grid .project-card.aspect-wide,
    .project-card.aspect-wide {
        aspect-ratio: 3 / 1 !important;
    }

    /* Headings: iets kleiner op tablet */
    h1, h2, .section-title {
        font-size: 3.5rem !important;
    }

    .section-subtitle {
        font-size: 2.8rem !important;
    }

    h3 {
        font-size: 1.6rem !important;
    }

    /* Paragraphs: behoud leesbaarheid */
    p {
        font-size: 1rem !important;
        line-height: 1.7 !important;
    }

    /* Section spacing: compacter */
    .section {
        padding: 80px 0 !important;
    }

    .section-header {
        margin-bottom: 60px !important;
    }

    /* Container: volle breedte gebruiken */
    .container,
    .container-wide {
        max-width: 100% !important;
        padding: 0 40px !important;
    }

    /* Project cards: grotere touch targets */
    .project-content .project-title {
        font-size: 1.8rem !important;
    }

    .project-content .project-client {
        font-size: 1.4rem !important;
    }

    /* Review cards: aangepaste breedte */
    .testimonial-card {
        min-width: 350px !important;
        max-width: 400px !important;
        padding: 25px !important;
    }

    /* About section: behoud 2 kolommen op tablet, afbeelding naast tekst */
    .about-content {
        grid-template-columns: 300px 1fr !important;
        gap: 30px !important;
    }

    .about-image {
        display: flex !important;
        max-width: 300px !important;
        justify-content: center !important;
        grid-column: 1 !important;
        grid-row: 1 / -1 !important;
    }

    .about-text {
        grid-column: 2 !important;
    }

    /* Project detail: behoud desktop layout (sidebar links, content rechts) */
    .project-layout {
        grid-template-columns: 200px 1fr !important;
        gap: 40px !important;
    }

    .sidebar-meta .meta-item strong {
        font-size: 1.8rem !important;
    }

    /* Sidebar: behoud verticale layout op tablet */
    .project-sidebar {
        display: flex !important;
        flex-direction: column !important;
    }

    .sidebar-meta {
        display: flex !important;
        flex-direction: column !important;
    }
}

/* ==========================================================================
   Responsive: Desktop (min 1025px)
   ========================================================================== */

@media (min-width: 1025px) {
    /* Project card tekst styling voor desktop - voorkomt overlap */
    .project-content .project-client {
        font-size: 1.6rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.5rem !important;
    }

    .project-content .project-title {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.5rem !important;
    }

    .project-content .project-description {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
    }
}

/* ==========================================================================
   Responsive: Mobile Optimalisatie (max 768px)
   ========================================================================== */

@media (max-width: 768px) {
    /* Projects Grid: 1 kolom full-width */
    .projects-grid {
        column-count: 1 !important;
        column-gap: 0 !important;
        padding: 0 20px !important;
    }

    .project-card {
        margin-bottom: 20px !important;
    }

    /* Project Cards: Behoud aspect ratios op mobile */
    .projects-grid .project-card.aspect-1-1,
    .project-card.aspect-1-1 {
        aspect-ratio: 1 / 1 !important;
    }

    .projects-grid .project-card.aspect-3-1,
    .project-card.aspect-3-1 {
        aspect-ratio: 3 / 1 !important;
    }

    .projects-grid .project-card.aspect-3-2,
    .project-card.aspect-3-2 {
        aspect-ratio: 3 / 2 !important;
    }

    .projects-grid .project-card.aspect-2-3,
    .project-card.aspect-2-3 {
        aspect-ratio: 2 / 3 !important;
    }

    .projects-grid .project-card.aspect-1-3,
    .project-card.aspect-1-3 {
        aspect-ratio: 1 / 3 !important;
    }

    .projects-grid .project-card.aspect-standard,
    .project-card.aspect-standard {
        aspect-ratio: 3 / 2 !important;
    }

    .projects-grid .project-card.aspect-wide,
    .project-card.aspect-wide {
        aspect-ratio: 3 / 1 !important;
    }

    /* Headings: veel kleiner voor mobile leesbaarheid */
    h1, h2, .section-title {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
        letter-spacing: -0.01em !important;
    }

    h3 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
    }

    /* Paragraphs: optimaal leesbaar op kleine schermen */
    p, body {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }

    /* Section spacing: veel compacter op mobile */
    .section {
        padding: 60px 0 !important;
    }

    .section-header {
        margin-bottom: 40px !important;
        padding: 0 20px !important;
    }

    .section-subtitle {
        font-size: 2rem !important;
    }

    .section-intro {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        padding: 0 10px !important;
    }

    /* Container: minder padding op mobile */
    .container,
    .container-wide {
        max-width: 100% !important;
        padding: 0 20px !important;
    }

    /* Project cards: touch-friendly */
    .project-content .project-title {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .project-content .project-client {
        font-size: 1.2rem !important;
        margin-bottom: 0.8rem !important;
    }

    .project-content .project-description {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }

    .project-overlay {
        padding: 20px !important;
    }

    /* Review cards: smaller op mobile */
    .testimonial-card {
        min-width: 280px !important;
        max-width: 320px !important;
        padding: 20px !important;
    }

    .testimonial-card h3,
    .testimonial-title {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
    }

    .testimonial-text {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }

    .testimonial-author,
    .testimonial-footer {
        font-size: 0.85rem !important;
    }

    /* Reviews: kleinere gap tussen rijen */
    .testimonials-scroll-container {
        gap: 40px !important;
        padding: 30px 0 !important;
    }

    /* About section: mobile layout */
    .about-content {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .about-image {
        display: flex !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
        justify-content: center !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .about-image img {
        max-height: none !important;
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
    }

    .about-text {
        grid-column: auto !important;
    }

    .about-text p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 0.8rem !important;
    }

    /* Partners intro */
    .partners-intro p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }

    /* Contact section: mobile friendly */
    .contact-section {
        padding: 80px 0 !important;
    }

    .contact-wrapper {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .form-row {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* Project detail page: mobile layout met custom volgorde */
    .project-detail-wrapper {
        padding: 60px 0 40px !important;
    }

    .project-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        padding: 0 20px !important;
    }

    /* display: contents maakt parent containers "onzichtbaar" zodat kinderen direct geordend kunnen worden */
    .project-sidebar {
        display: contents !important;
    }

    .project-main-content {
        display: contents !important;
    }

    /* Mobile volgorde: 1. Terug link */
    .sidebar-back {
        order: 1 !important;
        margin-bottom: 0 !important;
    }

    /* Mobile volgorde: 2. Header met titel en client */
    .project-header {
        order: 2 !important;
        text-align: center !important;
        width: 100% !important;
    }

    .project-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.5rem !important;
        text-align: center !important;
    }

    .project-client {
        font-size: 1.1rem !important;
        text-align: center !important;
    }

    /* Mobile volgorde: 3. Afbeeldingen */
    .project-image-container {
        order: 3 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .project-main-image {
        order: 1 !important;
    }

    /* Thumbnails onder de main image */
    .project-right-thumbnails {
        order: 2 !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        margin-top: 15px !important;
    }

    .project-right-thumbnails .thumbnail-item {
        width: calc(25% - 8px) !important;
        height: auto !important;
        aspect-ratio: 3/2 !important;
    }

    /* Mobile volgorde: 4. Sidebar meta (wat, status, samen met) */
    .sidebar-meta {
        order: 4 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .sidebar-meta .meta-item {
        margin-bottom: 0 !important;
        text-align: left !important;
    }

    .sidebar-meta .meta-item strong {
        font-size: 1.6rem !important;
        margin-bottom: 0.3rem !important;
        text-align: left !important;
    }

    .sidebar-meta .meta-item p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        text-align: left !important;
    }

    .sidebar-meta .meta-item-list li {
        font-size: 0.9rem !important;
        margin-bottom: 0.25rem !important;
        text-align: left !important;
    }

    /* Verberg sidebar thumbnails op mobile */
    .sidebar-thumbnails {
        display: none !important;
    }

    /* Mobile volgorde: 5. Korte beschrijving */
    .project-short-description {
        order: 5 !important;
    }

    .project-short-description p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }

    /* Mobile volgorde: 6. Plain text */
    .project-plain-text {
        order: 6 !important;
    }

    /* Mobile volgorde: 7. Italic text */
    .project-italic-text {
        order: 7 !important;
    }

    /* Mobile volgorde: 8. Volledige beschrijving */
    .project-description {
        order: 8 !important;
    }

    .project-description p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1rem !important;
    }

    /* Hamburger menu: groter touch target */
    .hamburger-menu {
        width: 50px !important;
        height: 50px !important;
        top: 20px !important;
        right: 20px !important;
    }

    /* Verberg hamburger menu op project detail pagina's */
    body.single-ofi_project .hamburger-menu {
        display: none !important;
    }

    /* Header flags: mobile aanpassing */
    .header-flags {
        top: 20px !important;
        right: 80px !important;
        height: 50px !important;
    }

    .header-flags .flag-link img {
        width: 28px !important;
        height: 19px !important;
    }

    /* Verberg header flags op project detail pagina's */
    body.single-ofi_project .header-flags {
        display: none !important;
    }

    /* Navigation: volle breedte op mobile */
    .main-navigation {
        width: 100% !important;
        max-width: 100% !important;
    }

    .nav-menu .menu-item a {
        font-size: 1.8rem !important;
        padding: 18px 30px !important;
    }

    /* Team photos: kleiner op mobile */
    .team-photo {
        width: 140px !important;
        height: 140px !important;
    }

    .team-name {
        font-size: 1rem !important;
    }

    .team-role {
        font-size: 0.9rem !important;
    }

    /* Better touch targets for links and buttons */
    .btn {
        padding: 14px 30px !important;
        font-size: 1rem !important;
    }

    .back-link {
        padding: 10px 0 !important;
        display: inline-block !important;
        font-size: 0.85rem !important;
    }

    /* Sidebar thumbnails: verberg op mobile (worden getoond als .project-right-thumbnails) */
    .sidebar-thumbnails {
        display: none !important;
    }
}

/* ==========================================================================
   Responsive: Extra Small Mobile (max 480px)
   ========================================================================== */

@media (max-width: 480px) {
    /* Extra small headings */
    h1, h2, .section-title {
        font-size: 2rem !important;
    }

    .section-subtitle {
        font-size: 1.6rem !important;
    }

    h3 {
        font-size: 1.2rem !important;
    }

    /* Extra compact spacing */
    .section {
        padding: 40px 0 !important;
    }

    .section-header {
        margin-bottom: 30px !important;
    }

    /* Smaller containers */
    .container,
    .container-wide {
        padding: 0 15px !important;
    }

    /* Smaller project cards */
    .project-content .project-title {
        font-size: 1.3rem !important;
    }

    .project-content .project-client {
        font-size: 1.1rem !important;
    }

    /* Extra small review cards */
    .testimonial-card {
        min-width: 260px !important;
        max-width: 280px !important;
        padding: 18px !important;
    }

    .testimonial-title {
        font-size: 1rem !important;
    }

    .testimonial-text {
        font-size: 0.9rem !important;
    }

    /* Sidebar meta: smaller labels */
    .sidebar-meta .meta-item strong {
        font-size: 1.4rem !important;
    }

    /* Project title: smaller */
    .project-title {
        font-size: 1.6rem !important;
    }
}

/* ==========================================================================
   Video Gallery Support
   ========================================================================== */

/* Video thumbnail placeholder in gallery */
.video-thumbnail-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.video-play-icon {
    font-size: 2rem;
    color: #ffffff;
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.thumbnail-item.is-video:hover .video-play-icon {
    transform: scale(1.2);
    opacity: 1;
}

.video-label {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 2px 6px;
    font-size: 9px;
    font-weight: 600;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

/* Main video styling - centered and full width */
#project-main-video {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    background: #000;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

/* Project main image/video container - center content */
.project-main-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 400px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.project-main-image img,
.project-main-image video {
    max-width: 100%;
    max-height: 600px;
    width: auto;
    height: auto;
}

/* Video thumbnail item styling */
.thumbnail-item.is-video {
    cursor: pointer;
}

.thumbnail-item.is-video .video-thumbnail-placeholder {
    border-radius: 4px;
    overflow: hidden;
}

/* ==========================================================================
   Testimonial Expand/Collapse
   ========================================================================== */

/* Expandable testimonial cards */
.testimonial-card.expandable {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card.expandable:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Read more indicator */
.testimonial-read-more {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-top: 8px;
    font-style: italic;
    transition: color 0.3s ease;
}

.testimonial-card.expandable:hover .testimonial-read-more {
    color: rgba(255, 255, 255, 0.9);
}

/* Expanded state */
.testimonial-card.expanded {
    position: relative;
    z-index: 100;
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.testimonial-card.expanded .testimonial-read-more {
    display: none;
}

/* Show "Lees minder" when expanded */
.testimonial-card.expanded::after {
    content: 'Lees minder';
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-top: 8px;
    font-style: italic;
}

/* Pause scroll animation when card is expanded */
.testimonials-scroll-row.has-expanded .testimonials-track {
    animation-play-state: paused !important;
}
