/*
 Theme Name:   Cocos Galant
 Theme URI:    https://cocosgalant.com
 Description:  Coconut Child Theme
 Author:       Lysann Küttner
 Author URI:   https://cocosgalant.com
 Template:     generatepress
 Version:      0.1
*/

/* CG | TYPOGRAPHY */
.ff-body {
	font-family: var(--gp-font--body);
}

.ff-heading {
	font-family: var(--gp-font--heading);
}

/* Fluid typography scale */
h1, .fs-h1 {
	font-size: clamp(1.375rem, 1.375rem + 0.25vw, 2.125rem);
	font-family: var(--gp-font--heading);
}

h2, .fs-h2 {
	font-size: clamp(1.250rem, 1.250rem + 0.20vw, 1.750rem);
	font-family: var(--gp-font--heading);
}

h3, .fs-h3 {
	font-size: clamp(1.125rem, 1.125rem + 0.15vw, 1.500rem);
	font-family: var(--gp-font--heading);
}

h4, .fs-h4 {
	font-size: clamp(1.000rem, 1.000rem + 0.10vw, 1.250rem);
	font-family: var(--gp-font--heading);
}

h5, .fs-h5 {
	font-size: clamp(0.875rem, 0.875rem + 0.05vw, 1.000rem);
	font-family: var(--gp-font--heading);
}

h6, .fs-h6 {
	font-size: clamp(0.750rem, 0.750rem, 0.875rem);
	font-family: var(--gp-font--heading);
}

p, .fs-p {
	font-size: clamp(0.9375rem, 0.9071rem + 0.1295vw, 1.0625rem);
	font-family: var(--gp-font--body);
}

/* Links not underlined */
a {
    text-decoration: none;
}   

/* No wrap */
.no-wrap {
    text-wrap: auto;
}   
.dropdown-click .secondary-navigation ul li.sfHover>ul.toggled-on, .dropdown-click .secondary-navigation ul.toggled-on {
    border-right: 5px solid #a7a481;
}

/* CG | Formatting site header + nav */
.site-header {
	padding: 0;
}
.inside-header {
    align-items: flex-end;
}
.site-logo {
    line-height: 55px;
} 

/* Force header to always be on top */
.site-header {
    position: relative;
    z-index: 1;
}

.site-logo.mobile-header-logo,
.menu-toggle {
    position: relative;
    z-index: 1;
}

.main-nav > ul > li:last-child :is(a,span) {
    padding-right: 0 !important;
}

.main-navigation.mobile-menu-control-wrapper .menu-toggle {
background-color: #F6f6f6;
}

.main-navigation:not(.toggled) .main-nav ul ul {
    border-right: 3px solid #a7a481;
	width: 100%;
	font-weight: 300 !important;
}

.secondary-navigation:not(.toggled) .main-nav ul ul{
     border-right: 3px solid #a7a481;
}

body .secondary-navigation ul ul {
	width: 100%;
}
/* HOMEPAGE */
/* CG | Style connecting lines */
.line-connector {
  width: 3px;
  height: 70px; 
  background-color: #a7a481; 
  margin: -40px auto 0 auto; 
	z-index: 1;
	position: relative;
}

/* Embed videos | Thumbnail video wrapper */
.testimonial-video-wrapper {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000;
}

.testimonial-video-wrapper video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
    opacity: 0;
}

/* Play button overlay - pure white SVG icon */
.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
    transition: transform 0.2s;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

.play-button-overlay svg {
    display: block;
}

.testimonial-video-wrapper:hover .play-button-overlay {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Popup/Lightbox styles */
.video-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.video-popup-content {
    position: relative;
    width: 90vw;
    max-width: 1400px;
    margin: auto;
}

/* For WordPress uploaded videos */
.video-popup-content video {
    width: 100%;
    height: auto;
    max-height: 90vh;
    display: block;
}

/* For YouTube embedded videos */
.video-popup-content iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    display: block;
    min-height: 400px;
}

#youtube-player {
    width: 100%;
    aspect-ratio: 16/9;
}

.close-popup {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 100000;
    line-height: 1;
}

.close-popup:hover {
    color: #ccc;
}

/* Hide YouTube controls completely */
.page-hero-media {
    position: relative;
    overflow: hidden;
	z-index: 1;
}

.page-hero-media iframe {
    pointer-events: none;
	position: relative;
    z-index: 1;
}

/* Create overlay to block YouTube UI */
.page-hero-media::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2;
    pointer-events: none;
}

/* Only enable pointer events within the video container */
.page-hero-media {
    pointer-events: none;
}

.page-hero-media iframe,
.page-hero-media video {
    pointer-events: auto;
}

/* Mobile & Tablet optimizations */
@media (max-width: 768px) {
    .video-popup-content {
        width: 95vw;
    }
    
    .close-popup {
        top: -35px;
        font-size: 35px;
        right: 5px;
    }
    
    .play-button-overlay svg {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .testimonial-video-wrapper {
        width: 100%;
        max-width: 390px;
    }
    
    .close-popup {
        top: 10px;
        right: 10px;
        background: rgba(0,0,0,0.5);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Video styling for any page with page-hero-media */
.page-hero-media {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.page-hero-media video {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
}

.page-hero-media img {
    width: 100%;
    height: auto;
    display: block;
}

/* Make sure navigation/header is above everything - delete later
.site-header,
.main-navigation,
.main-navigation .main-nav ul ul,
.main-navigation .sub-menu {
    z-index: 9999 !important;
}
*/

/* For sticky/fixed headers */
.sticky-enabled .site-header,
header.site-header {
    z-index: 9999 !important;
}

/* PROJECTS */
/* CG | Style category list for projects */
/* Add separator after each term link except the last one */
.categories-list a::after {
    content: " | ";
    padding: 0 5px;
}

/* Remove separator from the last term */
.categories-list a:last-of-type::after {
    content: "";
}

/* Contactpage */
.wpforms-container .wpforms-field-label, .wp-core-ui div.wpforms-container .wpforms-field-label {
	font-weight: 500; 
}

/* RESPONSIVE DESIGN */
/* Page Houten bijgebouw important for overflow of subcategories 
.inside-article {
    overflow-x: hidden;
}*/

@media (max-width: 1285px) {
    .site-logo.mobile-header-logo {
        width: 40%;
    }
	 nav#secondary-navigation {
        display: none;
    }
    .main-navigation.has-branding .inside-navigation.grid-container {
        background-color: #F6f6f6 !important;
    }
    .inside-article {
        overflow-x: hidden;
    }
}

@media (min-width: 768px) and (max-width:1285px){ 
#mobile-header button.menu-toggle {
    padding-right: 20px !important;
	
}
	.navigation-branding img, .site-logo.mobile-header-logo img  {
        width: 60% !important; 
		max-width: 80% !important;
	}
}