/* ==================== 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(var(--color-shadow-rgb), 0) 0%, rgba(var(--color-shadow-rgb), 1) 0.5%, rgba(var(--color-shadow-rgb), 1) 99.5%, rgba(var(--color-shadow-rgb), 0) 100%),
        linear-gradient(to right, rgba(var(--color-shadow-rgb), 0) 0%, rgba(var(--color-shadow-rgb), 1) 0.4%, rgba(var(--color-shadow-rgb), 1) 99.6%, rgba(var(--color-shadow-rgb), 0) 100%);
    -webkit-mask-composite: source-in, source-in;
    mask-image:
        linear-gradient(to bottom, rgba(var(--color-shadow-rgb), 0) 0%, rgba(var(--color-shadow-rgb), 1) 0.5%, rgba(var(--color-shadow-rgb), 1) 99.5%, rgba(var(--color-shadow-rgb), 0) 100%),
        linear-gradient(to right, rgba(var(--color-shadow-rgb), 0) 0%, rgba(var(--color-shadow-rgb), 1) 0.4%, rgba(var(--color-shadow-rgb), 1) 99.6%, rgba(var(--color-shadow-rgb), 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));
    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));
    }
    
    .site-title {
        font-size: calc(1.6rem * var(--lang-font-scale));
    }
    .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));
    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));
    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));
    }
    .site-locations {
        font-size: calc(1rem * var(--lang-font-scale));
    }
}

/* ==================== 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));
    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));
    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: var(--color-text-dark);
    font-weight: 600;
}

.site-titles .breadcrumb-sep {
    color: var(--color-text-faint);
    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));
    }
    
    .header-main-menu li.current-menu-item > a::after,
    .header-main-menu li.current_page_item > a::after {
        bottom: -2px;
        height: 1.5px;
    }
}

/* ===================================================================== */
/* HEADER QUOTE (2026-09-30, per Anthony): the optional quote under the  */
/* breadcrumb (header.php, 'common.header.quote'; WCBW only — Syndesi    */
/* has no header quote) gets the same size and look as the quote         */
/* admonitions on the page (admonitions.css ".brochure-container         */
/* .admonition.admonition-quote"): thin olive frame, cream wash, the     */
/* quote as a small italic capitals line, and the author line under a    */
/* hairline, right-aligned, in the site's highlight colour. Colours are  */
/* variables only (site/brand.css). Scoped to .site-titles, so [pro_quote]*/
/* in page content is unchanged.                                         */
/* ===================================================================== */
.site-titles .pro-quote-wrapper .pro-quote {
    background: rgba(var(--brochure-cream-rgb), 0.6);
    color: var(--brochure-olive-dark);
    border: 1px solid var(--brochure-olive);
    border-left: 1px solid var(--brochure-olive);
    border-radius: 4px;
    box-shadow: none;
    padding: 1.1em 1.3em;
    margin: 1em 16px;              /* same width as the page's quote boxes */
    font-family: var(--font-elegant);
    font-size: calc(14.5px * var(--lang-font-scale));
    line-height: 1.5;
    text-align: left;
}
.site-titles .pro-quote-wrapper .pro-text {
    color: var(--brochure-olive-dark);
    font-family: var(--font-elegant);
    font-size: calc(10pt * var(--lang-font-scale));
    line-height: 1.35;
    font-style: italic;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.6em 0;
}
.site-titles .pro-quote-wrapper .pro-footer,
.site-titles .pro-quote-wrapper .pro-author,
.site-titles .pro-quote-wrapper .pro-author-link {
    color: var(--color-highlight);
}
.site-titles .pro-quote-wrapper .pro-footer {
    text-align: right;
    font-family: var(--font-body);
    font-size: calc(10.5pt * var(--lang-font-scale));
    font-style: italic;
    font-weight: 600;
    line-height: 1.45;
    border-top: 1px solid var(--brochure-hairline);
    padding-top: 0.5em;
    margin-top: 0.7em;
}
.site-titles .pro-quote-wrapper .pro-author-link {
    border-bottom-color: var(--color-highlight);
}
@media (max-width: 640px) {
    .site-titles .pro-quote-wrapper .pro-quote { padding: 1.1em 1.3em; margin: 1em 0; }
    .site-titles .pro-quote-wrapper .pro-text { font-size: calc(10pt * var(--lang-font-scale)); }
}
