/*
Theme Name: A4K Vibe
Theme URI: https://a4k.ai
Author: A4K
Author URI: https://a4k.ai
Description: A premium Block Theme (FSE) featuring a high-contrast aesthetic (Black, Signature Yellow, A4K Blue), built for the A4K project.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: a4k-vibe
Tags: full-site-editing, block-theme, minimalist, custom-colors, high-contrast
*/

/* ???? Global Document Background ?????????????????????????????????????????????????? */
html {
    scroll-behavior: smooth;
}
html, body {
    background-color: var(--wp--preset--color--background) !important;
}

/* 🏴 Matrix Hero Integration 🏴🏴🏴🏴🏴🏴🏴🏴🏴🏴🏴🏴🏴🏴🏴🏴🏴🏴🏴🏴🏴🏴🏴🏴🏴🏴🏴🏴🏴🏴🏴🏴🏴🏴 */
.a4k-matrix-hero {
    position: relative !important;
    background-color: #504743 !important;
    min-height: 100vh;
    margin: 0 !important;
}

#a4k-matrix-hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
}

.a4k-matrix-overlay {
    z-index: 2;
    position: relative;
    background: radial-gradient(circle at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
}

.a4k-intel-header div,
.a4k-intel-footer div {
    text-shadow: 0 0 10px rgba(255, 242, 0, 0.4);
    animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
    from { opacity: 0.4; }
    to { opacity: 0.9; }
}

.a4k-glass-header {
    position: fixed !important;
    top: 15px !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: max-content !important;
    max-width: 95vw !important;
    padding: 12px 56px !important; /* Extra horizontal padding to give logo room */
    z-index: 9999 !important;

    /* Apple Vision Pro Glassmorphism */
    background: rgba(255, 255, 255, 0.02) !important;
    backdrop-filter: blur(40px) saturate(180%) brightness(1.1) !important;
    -webkit-backdrop-filter: blur(40px) saturate(180%) brightness(1.1) !important;

    /* Sharp Glass Edge and Soft Shadow */
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;

    border-radius: 100px !important;
    transition: all 0.3s ease;

    /* Center the nav as the only flex child */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* REMOVED: legacy steel blue hover - now handled by a4k-glass-header rules */

/* Hide WooCommerce Cart and Login icons to perfectly center the menu */
.wp-block-navigation-item:has(a[aria-label="Login"]),
.wp-block-navigation-item:has(a[href*="/my-account/"]),
.wc-block-customer-account__account-icon,
.wp-block-navigation-item:has(a[href*="cart"]),
.wp-block-woocommerce-mini-cart,
.wc-block-mini-cart,
.site-header-cart {
    display: none !important;
}

/* ???? Gallery Interactions ???????????????????????????????????????????????????????????? */

.a4k-vibe-gallery .wp-block-image img {
	transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
	border: 2px solid transparent;
	border-radius: var(--wp--custom--border-radius--lg, 16px);
}

.a4k-vibe-gallery .wp-block-image:hover img {
	transform: translateY(-8px) scale(1.02);
	border-color: var(--wp--preset--color--accent);
	box-shadow: 0 20px 40px rgba(255, 242, 0, 0.15);
	filter: brightness(1.1);
}

/* ???? Seamless Full-Width Background Bleed ???????????????????????????????? */
/* This automatically extends the background color of constrained blocks to the edges of the browser */
.wp-block-post-content > .wp-block-group.has-background,
.wp-site-blocks > main > .wp-block-group.has-background {
	position: relative;
}

.wp-block-post-content > .wp-block-group.has-background::before,
.wp-site-blocks > main > .wp-block-group.has-background::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 100vw;
	transform: translateX(-50%);
	z-index: -1;
	background-color: inherit;
	background-image: inherit;
	pointer-events: none;
}

/* ???? Sticky Footer & Zero Gap Layout ???????????????????????????????????????????????? */
/* Removed global overflow-x: hidden; to ensure position: sticky can calculate against the viewport */

.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	padding-top: 0; /* Remove space at the top for fullbleed hero video */
	gap: 0 !important;
}

.wp-site-blocks > header,
.wp-site-blocks > main,
.wp-site-blocks > footer,
.wp-block-post-content {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.wp-site-blocks > main {
	width: 100%;
	flex-grow: 0;
}

.wp-site-blocks > footer {
	flex-grow: 1;
	background-color: #504743;
	display: flex;
	flex-direction: column;
}

.wp-site-blocks > footer > .wp-block-group {
	flex-grow: 1;
}

/* ???? Header Logo & Menu Alignment ?????????????????????????????????????????????? */
.wp-block-navigation .wp-block-site-logo img {
	height: 1em !important;
	width: auto !important;
	vertical-align: text-bottom;
	display: inline-block;
}

/* ???? Header Glassmorphism (Removed duplicate) ?????????????????????????? */

/* ???? Navigation Appearance ?????????????????????????????????????????????????????????? */
/* Menu & Logo Interactive States */

/* 1. Default State: Light silver-gray (same for logo and text) */
.a4k-logo-svg path {
    fill: var(--wp--preset--color--heading-text) !important;
    transition: fill 0.3s ease;
}
.wp-block-navigation a.wp-block-navigation-item__content {
    color: var(--wp--preset--color--text) !important;
    transition: color 0.3s ease !important;
    font-weight: 600 !important;
}

/* 2. Mouse over the whole pill: logo + all text get slightly dimmer/focused */
.a4k-glass-header:hover .wp-block-navigation a.wp-block-navigation-item__content {
    color: var(--wp--preset--color--text) !important;
    opacity: 0.85;
}

/* 3. Mouse over SPECIFIC item: turns yellow */
.a4k-glass-header .a4k-logo-link:hover .a4k-logo-svg path {
    fill: var(--wp--preset--color--accent) !important;
}
.a4k-glass-header .wp-block-navigation a.wp-block-navigation-item__content:hover {
    color: var(--wp--preset--color--accent) !important;
}

.wp-block-navigation .wp-block-site-title a {
    text-decoration: none;
    color: var(--wp--preset--color--black) !important;
}

/* ???? Global Text Hover Effects ???????????????????????????????????????????????????? */
/* Applying a subtle color shift to Steel Blue on hover for a dynamic 'Vibe' feel */
h1, h2, h3, h4, h5, h6, p, li {
	transition: color 0.3s ease;
}

h1:hover, h2:hover, h3:hover, h4:hover, h5:hover, h6:hover, p:hover, li:hover {
	color: var(--wp--preset--color--accent) !important;
}

/* ???? Dark Mode Link Smart Hover ?????????????????????????????????????????????? */
/* Ensure standard text links glow Volt Yellow when placed on dark backgrounds */
.has-black-background-color a:not(.wp-element-button):not(.wp-block-navigation-item__content):hover,
.has-footer-bg-background-color a:not(.wp-element-button):not(.wp-block-navigation-item__content):hover {
    color: var(--wp--preset--color--accent) !important;
}










/* =====================================================
   NUCLEAR TRANSPARENCY — strip ALL color from the
   interior of the glass pill. Every child element
   must be purely transparent so nothing interferes
   with the backdrop-filter glass effect.
   ===================================================== */
.a4k-glass-header,
.a4k-glass-header *,
.a4k-glass-header *::before,
.a4k-glass-header *::after {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Restore ONLY the glass background on the pill itself */
.a4k-glass-header {
    background: rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(24px) saturate(100%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(100%) !important;
}

/* Center the nav menu perfectly inside the pill */
.a4k-glass-header {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
.a4k-glass-header .wp-block-navigation {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex: 0 0 auto !important;
}

/* =====================================================
   CLIENT LOGO CAROUSEL
   - Shows 4 logos at a time
   - Continuous right-to-left scroll
   - Grayscale default, full color on hover
   ===================================================== */

.a4k-client-carousel-wrap {
    overflow: hidden;
    width: 100%;
    position: relative;
    /* Soft fade edges */
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.a4k-client-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: max-content;
    animation: a4k-logo-scroll 30s linear infinite;
}

.a4k-client-track:hover {
    animation-play-state: paused;
}

@keyframes a4k-logo-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Move exactly one full set (14 logos) */
}

.a4k-client-item {
    flex: 0 0 auto;
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.a4k-client-item img {
    width: 100%;
    height: 48px;
    object-fit: contain;
    /* Grayscale + muted opacity by default */
    filter: grayscale(100%) opacity(0.45);
    transition: filter 0.4s ease;
}

/* On hover: restore full original color */
.a4k-client-item:hover img {
    filter: grayscale(0%) opacity(1);
}

/* =====================================================
   DARK BACKGROUND & VOLT YELLOW TITLE RULES
   - On dark BG elements (using #504743 / secondary / black background),
     headings are colored #f3e926.
   ===================================================== */
.has-secondary-background-color h1,
.has-secondary-background-color h2,
.has-secondary-background-color h3,
.has-secondary-background-color h4,
.has-secondary-background-color h5,
.has-secondary-background-color h6,
.has-secondary-background-color .wp-block-heading,
.has-footer-bg-background-color h1,
.has-footer-bg-background-color h2,
.has-footer-bg-background-color h3,
.has-footer-bg-background-color h4,
.has-footer-bg-background-color h5,
.has-footer-bg-background-color h6,
.has-footer-bg-background-color .wp-block-heading,
[style*="--wp--preset--color--secondary"] h1,
[style*="--wp--preset--color--secondary"] h2,
[style*="--wp--preset--color--secondary"] h3,
[style*="--wp--preset--color--secondary"] h4,
[style*="--wp--preset--color--secondary"] h5,
[style*="--wp--preset--color--secondary"] h6,
[style*="--wp--preset--color--secondary"] .wp-block-heading,
[style*="#504743"] h1,
[style*="#504743"] h2,
[style*="#504743"] h3,
[style*="#504743"] h4,
[style*="#504743"] h5,
[style*="#504743"] h6,
[style*="#504743"] .wp-block-heading,
footer.has-background h1,
footer.has-background h2,
footer.has-background h3,
footer.has-background h4,
footer.has-background h5,
footer.has-background h6,
footer.has-background .wp-block-heading {
    color: #f3e926 !important;
}

/* Ensure clean hover transitions on dark BG headings */
.has-secondary-background-color h1:hover,
.has-secondary-background-color h2:hover,
.has-secondary-background-color h3:hover,
.has-secondary-background-color h4:hover,
.has-secondary-background-color h5:hover,
.has-secondary-background-color h6:hover,
[style*="--wp--preset--color--secondary"] h1:hover,
[style*="--wp--preset--color--secondary"] h2:hover,
[style*="--wp--preset--color--secondary"] h3:hover,
[style*="--wp--preset--color--secondary"] h4:hover,
[style*="--wp--preset--color--secondary"] h5:hover,
[style*="--wp--preset--color--secondary"] h6:hover,
[style*="--wp--preset--color--secondary"] .wp-block-heading:hover,
[style*="#504743"] h1:hover,
[style*="#504743"] h2:hover,
[style*="#504743"] h3:hover,
[style*="#504743"] h4:hover,
[style*="#504743"] h5:hover,
[style*="#504743"] h6:hover,
[style*="#504743"] .wp-block-heading:hover,
footer.has-background h1:hover,
footer.has-background h2:hover,
footer.has-background h3:hover,
footer.has-background h4:hover,
footer.has-background h5:hover,
footer.has-background h6:hover {
    color: #f3e926 !important;
    opacity: 0.85;
}

/* Enforce the basic main background to light cream */
html, body {
    background-color: #f9edde !important;
    color: #504743;
}

/* =====================================================
   FOOTER TEXT STYLE OVERRIDES
   - All text inside footer (paragraphs, spans, headings, links, etc.)
     must be #f9edde by default and on hover, with no hover effect.
   ===================================================== */
.wp-site-blocks > footer,
.wp-site-blocks > footer *,
.wp-site-blocks > footer *:hover {
    color: #f9edde !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

/* =====================================================
   THINKGEN BENTO GRID SYSTEM
   - Responsive 4-column layout
   - Interactive hover transitions on desktop
   - Absolute badge at the top-left
   - Custom tags and details matching mockup
   ===================================================== */

.thinkgen-bento-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

.thinkgen-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: none;
    border-radius: 0;
    overflow: hidden;
    background-color: #f9edde;
    position: relative;
    box-shadow: none;
}

.thinkgen-bento-badge-top {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #504743;
    color: #f9edde;
    padding: 10px 20px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: -0.02em;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

/* Bento Column / Card */
.thinkgen-bento-col {
    padding: 56px 28px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: none;
    background-color: #f9edde;
    text-decoration: none !important;
    color: #504743 !important;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    cursor: pointer;
}

.thinkgen-bento-col:last-child {
    border-right: none;
}

/* Top Header of Card */
.thinkgen-bento-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
    width: 100%;
}

.thinkgen-bento-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #504743;
    margin-bottom: 12px;
    transition: transform 0.5s ease;
}

.thinkgen-bento-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.thinkgen-bento-col:hover .thinkgen-bento-icon img {
    filter: invert(67%) sepia(19%) saturate(1475%) hue-rotate(178deg) brightness(96%) contrast(92%);
}

.thinkgen-bento-name {
    font-family: 'Wanted Sans', 'Inter', sans-serif;
    font-size: 2.64rem;
    font-weight: 900;
    color: #111111;
    margin: 0 !important;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

/* Image Wrap */
.thinkgen-bento-img-wrap {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 28px;
    position: relative;
}

.thinkgen-bento-img-wrap img {
    width: 60%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Details Section */
.thinkgen-bento-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 8px;
    margin-bottom: 24px;
    margin-top: auto; /* Push entire text group to bottom */
}

.thinkgen-bento-session-badge {
    background-color: #111111;
    color: #ffffff;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 9999px;
    margin-bottom: 12px;
    line-height: 1;
}

.thinkgen-bento-title {
    font-size: 23px;
    font-weight: 800;
    color: #111111;
    line-height: 1.4;
    margin: 0 0 10px 0 !important;
    letter-spacing: -0.03em;
    text-align: center;
}

.thinkgen-bento-desc {
    font-size: 17px;
    font-weight: 500;
    color: #6e655f;
    line-height: 1.5;
    margin: 0 !important;
    letter-spacing: -0.02em;
    text-align: center;
}

/* Link Button Circle */
.thinkgen-bento-link-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #504743;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(80, 71, 67, 0.1);
}

.thinkgen-bento-link-btn svg {
    transition: transform 0.3s ease;
}

/* Footer Section */
.thinkgen-bento-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
}

.thinkgen-bento-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
    width: 100%;
}

.thinkgen-bento-tag {
    font-size: 14px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 9999px;
    line-height: 1;
    letter-spacing: -0.01em;
}

.tag-black {
    background-color: #111111;
    color: #ffffff;
}

.tag-darkgray {
    background-color: #555555;
    color: #ffffff;
}

.tag-gray {
    background-color: #7c726a;
    color: #ffffff;
}

.tag-lightgray {
    background-color: #a8a098;
    color: #ffffff;
}

.tag-white {
    background-color: #ffffff;
    color: #504743;
    border: 1px solid #dec8ab;
}

.thinkgen-bento-subtext {
    font-size: 16px;
    font-weight: 600;
    color: #6e655f;
    margin: 0 0 24px 0 !important;
    text-align: center;
    letter-spacing: -0.02em;
}

.thinkgen-bento-number {
    font-family: 'Wanted Sans', 'Inter', sans-serif;
    font-size: 38px;
    font-weight: 900;
    color: #111111;
    line-height: 1;
}

/* Hover effects */
@media (min-width: 1024px) {
    .thinkgen-bento-grid {
        transition: grid-template-columns 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .thinkgen-bento-grid:has(.thinkgen-bento-col:nth-of-type(1):hover) {
        grid-template-columns: 1.25fr 0.916fr 0.916fr 0.916fr;
    }
    .thinkgen-bento-grid:has(.thinkgen-bento-col:nth-of-type(2):hover) {
        grid-template-columns: 0.916fr 1.25fr 0.916fr 0.916fr;
    }
    .thinkgen-bento-grid:has(.thinkgen-bento-col:nth-of-type(3):hover) {
        grid-template-columns: 0.916fr 0.916fr 1.25fr 0.916fr;
    }
    .thinkgen-bento-grid:has(.thinkgen-bento-col:nth-of-type(4):hover) {
        grid-template-columns: 0.916fr 0.916fr 0.916fr 1.25fr;
    }

    .thinkgen-bento-col:hover {
        background-color: #fdf8f2;
    }
    
    .thinkgen-bento-col:hover .thinkgen-bento-icon {
        transform: translateY(-4px) scale(1.05);
        color: #64b4e4;
    }
    
    .thinkgen-bento-col:hover .thinkgen-bento-img-wrap img {
        transform: scale(1.04) translateY(-4px);
    }
}

/* Responsive styles */
@media (max-width: 1023px) {
    .thinkgen-bento-grid {
        grid-template-columns: 1fr;
    }
    
    .thinkgen-bento-col {
        border-right: none;
        border-bottom: none;
        padding: 48px 24px 32px;
    }
    
    .thinkgen-bento-col:last-child {
        border-bottom: none;
    }
    
    .thinkgen-bento-img-wrap {
        height: 280px;
        margin-top: 16px;
        margin-bottom: 32px;
    }

    .thinkgen-bento-img-wrap img {
        max-height: 100%;
        width: auto;
        max-width: 60%;
        object-fit: contain;
    }
}

/* Desktop: Align menu logo and text to the bottom of the logo (baseline alignment) */
@media (min-width: 1024px) {
    .a4k-glass-header .wp-block-navigation__container {
        align-items: baseline !important;
    }
    .a4k-glass-header .wp-block-navigation-item {
        display: flex !important;
        align-items: baseline !important;
    }
    .a4k-glass-header .wp-block-navigation-item a.wp-block-navigation-item__content {
        padding-bottom: 0 !important;
        line-height: 1.1 !important;
    }
    .a4k-glass-header .a4k-logo-link {
        display: inline-flex !important;
        align-items: baseline !important;
    }
}

/* Mobile: Pill Header grows vertically when expanded, closed as a floating circle */
@media (max-width: 1023px) {
    .a4k-glass-header:not(:has(.is-menu-open)) {
        padding: 0 !important;
        width: 56px !important;
        height: 56px !important;
        border-radius: 50% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        top: 15px !important;
    }

    .a4k-glass-header:not(:has(.is-menu-open)) .wp-block-navigation {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        height: 100% !important;
    }

    .a4k-glass-header:not(:has(.is-menu-open)) .wp-block-navigation__responsive-container-open {
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        height: 100% !important;
    }

    /* When the menu is open, expand the pill frame vertically */
    .a4k-glass-header:has(.is-menu-open) {
        width: 260px !important;
        max-width: 90vw !important;
        height: auto !important;
        border-radius: 24px !important;
        padding: 24px 20px !important;
        flex-direction: column !important;
        align-items: center !important;
        /* Apple Vision Pro Glassmorphism */
        background: rgba(255, 255, 255, 0.08) !important;
        backdrop-filter: blur(40px) saturate(180%) brightness(1.1) !important;
        -webkit-backdrop-filter: blur(40px) saturate(180%) brightness(1.1) !important;
    }

    /* Hide the hamburger button (=) when the menu is open */
    .a4k-glass-header:has(.is-menu-open) .wp-block-navigation__responsive-container-open {
        display: none !important;
    }

    /* Position the open container statically within the expanded pill */
    .a4k-glass-header .wp-block-navigation__responsive-container.is-menu-open {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        background: transparent !important;
        background-color: transparent !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        z-index: auto !important;
    }

    /* Remove full-screen dark overlay background */
    .a4k-glass-header .wp-block-navigation__responsive-container.is-menu-open::before,
    .a4k-glass-header .wp-block-navigation__responsive-container.is-menu-open::after {
        display: none !important;
    }

    /* Position the close button (X) at the top-center of the pill */
    .a4k-glass-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
        position: absolute !important;
        top: 20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        padding: 4px !important;
        z-index: 10 !important;
        cursor: pointer !important;
        display: block !important;
    }

    /* Match sizes of closed hamburger and close X icon SVGs */
    .a4k-glass-header .wp-block-navigation__responsive-container-open svg,
    .a4k-glass-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg {
        width: 24px !important;
        height: 24px !important;
        display: block !important;
    }

    /* Adjust the links container spacing to sit below the centered X */
    .a4k-glass-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
        margin: 48px 0 0 0 !important;
        padding: 0 !important;
        list-style: none !important;
        width: 100% !important;
    }

    /* Set font size and spacing inside the vertical menu */
    .a4k-glass-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
        font-size: 18px !important;
        font-weight: 700 !important;
        color: inherit !important;
        text-decoration: none !important;
        display: block !important;
        padding: 6px 12px !important;
        text-align: center !important;
    }

    /* Reduce logo height to 16px to match the text height */
    .a4k-glass-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a img {
        height: 16px !important;
        width: auto !important;
        display: block !important;
        margin: 0 auto 8px auto !important;
    }

    /* Dynamic Colors for Open / Close / Toggle SVGs */
    /* Color on dark background (hero) */
    .a4k-glass-header.is-on-hero .wp-block-navigation__responsive-container-close,
    .a4k-glass-header.is-on-hero .wp-block-navigation__responsive-container-close svg,
    .a4k-glass-header.is-on-hero .wp-block-navigation__responsive-container-open,
    .a4k-glass-header.is-on-hero .wp-block-navigation__responsive-container-open svg,
    .a4k-glass-header.is-on-hero .wp-block-navigation__responsive-container-open svg path,
    .a4k-glass-header.is-on-hero .wp-block-navigation__responsive-container-close svg path {
        color: #f9edde !important;
        fill: #f9edde !important;
        stroke: #f9edde !important;
    }

    /* Color on bright background (other blocks) */
    .a4k-glass-header:not(.is-on-hero) .wp-block-navigation__responsive-container-close,
    .a4k-glass-header:not(.is-on-hero) .wp-block-navigation__responsive-container-close svg,
    .a4k-glass-header:not(.is-on-hero) .wp-block-navigation__responsive-container-open,
    .a4k-glass-header:not(.is-on-hero) .wp-block-navigation__responsive-container-open svg,
    .a4k-glass-header:not(.is-on-hero) .wp-block-navigation__responsive-container-open svg path,
    .a4k-glass-header:not(.is-on-hero) .wp-block-navigation__responsive-container-close svg path {
        color: #504743 !important;
        fill: #504743 !important;
        stroke: #504743 !important;
    }
}

/* =====================================================
   HERO SCROLL-LINKED VIDEO SCRUBBING
   ===================================================== */
#hero {
    position: relative !important;
    height: 100vh !important; /* Autoplay loop video hero section */
    background-color: #504743 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.hero-sticky-element {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    overflow: hidden !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 1 !important;
}

.hero-sticky-element video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.hero-video-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: radial-gradient(circle at center, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.35) 100%) !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

/* =====================================================
   DYNAMIC HEADER & LOGO COLOR (ON HERO VS OTHER BLOCKS & SCROLLSPY)
   ===================================================== */
/* 1. Inactive Text Colors */
.a4k-glass-header:not(.is-on-hero) .wp-block-navigation a.wp-block-navigation-item__content {
    color: #504743 !important;
}
.a4k-glass-header.is-on-hero .wp-block-navigation a.wp-block-navigation-item__content {
    color: #f9edde !important;
}

/* 2. Inactive Logo Filters */
.a4k-glass-header:not(.is-on-hero) .a4k-logo-link img {
    filter: brightness(0) !important; /* Pure Black on Block 2 & 3 */
    transition: filter 0.3s ease;
}
.a4k-glass-header.is-on-hero .a4k-logo-link img {
    filter: brightness(0) invert(1) !important; /* White / Warm Cream on Hero */
    transition: filter 0.3s ease;
}

/* 3. Active Text & Logo Colors (Scrollspy & Hover) */
.a4k-glass-header .wp-block-navigation a.wp-block-navigation-item__content.is-active,
.a4k-glass-header .wp-block-navigation a.wp-block-navigation-item__content:hover {
    color: #64b4e4 !important; /* Electric Blue active/hover state */
}
.a4k-glass-header .a4k-logo-link.is-active img,
.a4k-glass-header .a4k-logo-link:hover img {
    filter: drop-shadow(0 0 8px rgba(102, 180, 228, 0.15)) !important; /* Original Electric Blue */
}

/* =====================================================
   HERO TEXT OVERLAY (COMING SOON)
   ===================================================== */
.hero-text-overlay {
    position: absolute !important;
    z-index: 3 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    pointer-events: none !important;
    color: #f0ec72 !important;
    font-family: 'Wanted Sans', 'Inter', sans-serif !important;
}

.hero-text-overlay .hero-tagline {
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
    color: #f0ec72 !important;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45) !important;
    animation: fade-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

.hero-text-overlay .hero-title {
    font-size: 5.8rem !important; /* Very large bold title */
    font-weight: 900 !important;
    margin: 0 0 16px 0 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.03em !important;
    color: #f0ec72 !important;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45) !important;
    animation: fade-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both !important; /* Delayed */
}

.hero-text-overlay .hero-subtitle {
    font-size: 2.8rem !important; /* Medium bold subtitle */
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
    color: #f0ec72 !important;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45) !important;
    animation: fade-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both !important; /* Delayed more */
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive sizes for tablet and mobile devices */
@media (max-width: 1023px) {
    .hero-text-overlay .hero-tagline {
        font-size: 2.2rem !important;
        margin-bottom: 6px !important;
    }
    .hero-text-overlay .hero-title {
        font-size: 4.2rem !important;
        margin-bottom: 12px !important;
    }
    .hero-text-overlay .hero-subtitle {
        font-size: 2.2rem !important;
    }
}

@media (max-width: 767px) {
    .hero-text-overlay .hero-tagline {
        font-size: 1.68rem !important;
        margin-bottom: 4px !important;
    }
    .hero-text-overlay .hero-title {
        font-size: 3.2rem !important;
        margin-bottom: 8px !important;
    }
    .hero-text-overlay .hero-subtitle {
        font-size: 1.68rem !important;
    }
}

/* =====================================================
   RESPONSIVE SURVEY FORM CARD
   ===================================================== */
.thinkgen-survey-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    width: 100% !important;
}

@media (max-width: 599px) {
    .thinkgen-survey-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .thinkgen-survey-card {
        padding: 24px 20px !important;
    }
}