/* ==================== VIDEO HEADER ====================
   Syndesi (2026-09-27): same look as WCBW (rounded corners, soft edge
   mask, 64% width) but sized to the video's own 16:9 frame instead of a
   fixed 80vh box — Syndesi's header video is landscape, so the WCBW
   crop-to-fill approach would cut off most of the picture. */
.wcbw-video-header {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    background-color: transparent;
    text-align: center;
}

.header-video {
    position: relative;
    display: block;
    margin: 0 auto;
    width: 64%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 22px;
    -webkit-mask-image:
        linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 0.5%, rgba(0,0,0,1) 99.5%, rgba(0,0,0,0) 100%),
        linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 0.4%, rgba(0,0,0,1) 99.6%, rgba(0,0,0,0) 100%);
    -webkit-mask-composite: source-in, source-in;
    mask-image:
        linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 0.5%, rgba(0,0,0,1) 99.5%, rgba(0,0,0,0) 100%),
        linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 0.4%, rgba(0,0,0,1) 99.6%, rgba(0,0,0,0) 100%);
    mask-composite: intersect;
}



/* Site Title Below - Flex Centered */
.site-titles {
    background: transparent;
    padding: 1.8rem 0;
    display: flex;
    flex-direction:column;
    justify-content: center;
    align-items: center;
}

.site-title {
    margin: 0;
    font-family: var(--font-elegant);
    color: var(--color-primary-dark);
    font-size: calc(1.9rem * var(--lang-font-scale, 1));
    font-weight: 600;
    text-align: center;
}

.header-video {
    cursor: pointer;           /* Show hand cursor */
    transition: all 0.3s ease;
}

.header-video:hover {
    filter: brightness(1.05);  /* Optional visual feedback */
}

/* Ensure controls are visible when shown */
.header-video::-webkit-media-controls {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .header-main-menu {
        gap: 1.5rem;
        font-size: calc(0.95rem * var(--lang-font-scale, 1));
    }
    
    .site-title {
        font-size: calc(1.6rem * var(--lang-font-scale, 1));
    }
    .header-video{
        width:100%;
        border-radius: 14px;
    }
}

/* ========== NEW HEADER SUBTITLE & LOCATIONS ========== */
.site-subtitle {
    margin: 0.35rem 0 0.15rem;
    font-size: calc(17pt * var(--lang-font-scale, 1));
    color: var(--color-primary);     /* Light green from globals.css */
    text-align: center;
    font-family: var(--font-elegant);
    font-weight: 500;
    line-height: 1.3;
}

.site-locations {
    margin: 0;
    font-size: calc(15pt * var(--lang-font-scale, 1));
    color: var(--color-highlight);     /* Orange from globals.css */
    text-align: center;
    font-family: var(--font-elegant);
    font-weight: 400;
    line-height: 1.4;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .site-subtitle {
        font-size: calc(1.2rem * var(--lang-font-scale, 1));
    }
    .site-locations {
        font-size: calc(1rem * var(--lang-font-scale, 1));
    }
}

/* ==================== HAMBURGER MENU ==================== */

/* Menu and Title - Full Width */
.header-menu-container,
.site-titles {
    width: 100%;
    max-width: 100% !important;
}


.header-main-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2.5rem;
    color: var(--color-primary) !important;
}

.header-main-menu a {
    color: var(--color-primary) !important;
    font-family: var(--font-elegant);
    font-weight: 600;
    text-decoration: none;
}

.header-main-menu a:hover {
    color: var(--color-accent);
}
.header-menu-container {
    background: transparent !important;
    padding: 1.2rem 0;
    text-align: center;
}

.header-main-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2.5rem;
    justify-content: center;
}

.header-main-menu a {
    color: var(--color-primary);
    font-family: var(--font-elegant);
    font-weight: 600;
    text-decoration: none;
}

.header-main-menu a:hover {
    color: var(--color-highlight) !important;
}

/* Hamburger Icon */
.hamburger {
    display: none;
    font-size: calc(1.8rem * var(--lang-font-scale, 1));
    cursor: pointer;
    color: var(--color-primary);
    text-align:center !important;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .header-main-menu {
        display: none;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
        background: var(--color-secondary-light);
        width: 100%;
    }
    
    .header-main-menu.active {
        display: flex;
    }
    
    .hamburger {
        display: block;
    }
    
    .header-menu-container {
        padding: 0.8rem 1rem;
        text-align: right;
    }

}

/* ===================================================== */
/* HEADER UPDATES - Breadcrumb + Active Menu (Orange)   */
/* ===================================================== */

/* Breadcrumb inside header */
.site-titles .header-breadcrumb {
    margin-top: 0.5rem;
    text-align: center;
}

.site-titles .minimal-breadcrumb {
    font-size: calc(13px * var(--lang-font-scale, 1));
    margin: 0;
}

.site-titles .minimal-breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
}

.site-titles .minimal-breadcrumb a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.site-titles .minimal-breadcrumb span {
    color: #333;
    font-weight: 600;
}

.site-titles .breadcrumb-sep {
    color: #999;
    margin: 0 6px;
}

/* ========== HEADER MENU - ACTIVE LINK = ORANGE ========== */
/* Uses --color-highlight from globals.css (#f57c00) */
.header-main-menu li.current-menu-item > a,
.header-main-menu li.current_page_item > a,
.header-main-menu .current-menu-item a,
.header-main-menu .current_page_item a {
    color: var(--color-highlight) !important;
    font-weight: 700;
    position: relative;
}

/* Subtle underline accent on active menu item */
.header-main-menu li.current-menu-item > a::after,
.header-main-menu li.current_page_item > a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-highlight);
}

/* ========== KEEP MENU LINKS GREEN EVEN WHEN CLICKED/VISITED ========== */
/* Only the current/active page becomes orange */
.header-main-menu a:visited,
.header-main-menu a:active {
    color: var(--color-primary) !important;
}

/* Hover still uses the nice gold accent */
.header-main-menu a:hover {
    color: var(--color-accent) !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .site-titles .minimal-breadcrumb {
        font-size: calc(12px * var(--lang-font-scale, 1));
    }
    
    .header-main-menu li.current-menu-item > a::after,
    .header-main-menu li.current_page_item > a::after {
        bottom: -2px;
        height: 1.5px;
    }
}
