:root {
    --gz-accent: var(--accent, #7ed321);
    --gz-accent-glow: var(--accent-glow, rgba(126, 211, 33, 0.25));
    --gz-bg: var(--bg, #fdfdfd);
    --gz-text: var(--text, #0a0a0c);
    --gz-border: var(--border, rgba(10, 10, 12, 0.1));
    --gz-font-body: var(--font-body, 'Outfit', sans-serif);
    --gz-font-mono: var(--font-mono, 'Outfit', sans-serif);
}

/* Home-page navigation, promoted to the shared site standard. */
body .gz-global-nav {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
    height: 100px;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10050;
    mix-blend-mode: difference;
    transition: padding 0.4s ease, background-color 0.35s ease, border-color 0.35s ease;
    overflow: visible;
    box-sizing: border-box;
}

body .gz-global-nav.scrolled {
    padding: 1.5rem 4rem;
    mix-blend-mode: normal;
    background: rgba(253, 253, 253, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gz-border);
}

body .gz-global-nav.menu-active {
    mix-blend-mode: normal !important;
    background: rgba(253, 253, 253, 0.98) !important;
}

body .gz-global-nav .logo {
    display: block;
    flex: 0 0 auto;
    color: #fff;
    text-decoration: none;
    line-height: 0;
    position: relative;
    z-index: 10052;
}

body .gz-global-nav .logo img {
    display: block;
    width: auto;
    height: 160px;
    max-width: none;
}

body .gz-global-nav .gz-logo-fallback {
    display: none;
    color: #fff;
    font-family: var(--gz-font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

body .gz-global-nav .logo.logo-missing img { display: none; }
body .gz-global-nav .logo.logo-missing .gz-logo-fallback { display: block; }
body .gz-global-nav.scrolled .gz-logo-fallback,
body .gz-global-nav.menu-active .gz-logo-fallback { color: var(--gz-text); }

body .gz-global-nav .menu-links {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

body .gz-global-nav .menu-links li {
    margin: 0;
    padding: 0;
    list-style: none;
}

body .gz-global-nav .menu-links a {
    display: block;
    position: relative;
    padding: 0.5rem 0;
    color: #40b705;
    font-family: var(--gz-font-mono);
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

body .gz-global-nav .menu-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--gz-accent);
    transition: width 0.3s ease;
}

body .gz-global-nav .menu-links a:hover::after,
body .gz-global-nav .menu-links a:focus-visible::after,
body .gz-global-nav .menu-links a[aria-current='page']::after {
    width: 100%;
}

body .gz-global-nav .menu-links a:focus-visible,
body .gz-global-nav .menu-toggle:focus-visible,
body .wa-trigger:focus-visible,
body .wa-option:focus-visible,
body .chatbot-close:focus-visible,
body .chatbot-send-btn:focus-visible,
body .quick-reply-btn:focus-visible {
    outline: 2px solid var(--gz-accent);
    outline-offset: 4px;
}

body .gz-global-nav .menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    min-width: 0;
    min-height: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    position: relative;
    z-index: 10052;
}

body .gz-global-nav .menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--gz-accent);
    border-radius: 2px;
    transform-origin: left center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body .gz-global-nav .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(2px, -2px);
}

body .gz-global-nav .menu-toggle.active span:nth-child(2) {
    width: 0;
    opacity: 0;
}

body .gz-global-nav .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(2px, 2px);
}

body.gz-menu-open {
    overflow: hidden !important;
}

/* Home-page floating action menu. */
body .custom-whatsapp-menu {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 60px;
    height: 60px;
    z-index: 9999;
    font-family: var(--gz-font-body);
}

body .wa-trigger-pulse {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 50%;
    background: var(--gz-accent);
    opacity: 0.4;
    animation: gz-wa-pulse 2s infinite;
}

@keyframes gz-wa-pulse {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.6); opacity: 0; }
}

body .wa-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    padding: 0;
    color: #fff;
    background: var(--gz-accent);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 8px 24px var(--gz-accent-glow);
    cursor: pointer;
    outline: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s, box-shadow 0.3s, color 0.3s;
}

body .wa-trigger:hover {
    color: var(--gz-accent);
    background: #fff;
    box-shadow: 0 12px 32px rgba(126, 211, 33, 0.4);
    transform: scale(1.05);
}

body .wa-trigger-icon,
body .wa-close-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
}

body .wa-trigger-icon svg { width: 30px; height: 30px; }

body .wa-close-icon {
    font-size: 2.2rem;
    font-weight: 300;
    line-height: 1;
    opacity: 0;
    transform: rotate(-180deg);
}

body .custom-whatsapp-menu.active .wa-trigger {
    color: #fff;
    background: #050505;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

body .custom-whatsapp-menu.active .wa-trigger-pulse { animation: none; opacity: 0; }
body .custom-whatsapp-menu.active .wa-trigger-icon { opacity: 0; transform: rotate(180deg) scale(0.5); }
body .custom-whatsapp-menu.active .wa-close-icon { opacity: 1; transform: rotate(0) scale(1); }

body .wa-options {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 60px;
    height: 60px;
    pointer-events: none;
}

body .custom-whatsapp-menu.active .wa-options { pointer-events: auto; }

body .wa-option {
    position: absolute;
    right: 6px;
    bottom: 6px;
    display: flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transform: translate(0, 0) scale(0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
    transition-delay: calc(var(--delay) * 0.05s);
}

body .custom-whatsapp-menu.active .wa-option { opacity: 1; pointer-events: auto; }
body .custom-whatsapp-menu.active .wa-option[style*='--delay: 4'] { transform: translate(-100px, 0) scale(1); }
body .custom-whatsapp-menu.active .wa-option[style*='--delay: 3'] { transform: translate(-86.6px, -50px) scale(1); }
body .custom-whatsapp-menu.active .wa-option[style*='--delay: 2'] { transform: translate(-50px, -86.6px) scale(1); }
body .custom-whatsapp-menu.active .wa-option[style*='--delay: 1'] { transform: translate(0, -100px) scale(1); }

body .wa-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--gz-accent);
    background: #050505;
    border: 1px solid var(--gz-accent);
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}

body .wa-icon-wrapper svg { width: 20px; height: 20px; }
body .wa-option:hover .wa-icon-wrapper { color: #050505; background: var(--gz-accent); box-shadow: 0 6px 20px var(--gz-accent-glow); transform: scale(1.1); }

body .wa-tooltip {
    margin-right: 12px;
    padding: 6px 12px;
    color: #fff;
    background: rgba(5, 5, 5, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: var(--gz-font-mono);
    font-size: 0.75rem;
    line-height: 1.2;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: opacity 0.3s, transform 0.3s;
}

body .wa-option:hover .wa-tooltip,
body .wa-option:focus-visible .wa-tooltip { opacity: 1; transform: translateX(0); }
body .chatbot-icon-wrapper { position: relative; }

body .chatbot-status-dot {
    position: absolute;
    top: -1px;
    left: -1px;
    width: 9px;
    height: 9px;
    background: var(--gz-accent);
    border: 1.5px solid #050505;
    border-radius: 50%;
}

/* Chat window and its Home-page interactions. */
body .chatbot-window {
    position: fixed;
    right: 24px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    width: 380px;
    height: 520px;
    overflow: hidden;
    color: #fff;
    background: rgba(10, 10, 12, 0.95);
    border: 1px solid rgba(126, 211, 33, 0.25);
    border-radius: 20px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(126, 211, 33, 0.1);
    clip-path: circle(0 at 90% 90%);
    font-family: var(--gz-font-body);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.9);
    transition: clip-path 0.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.4s ease, transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 10000;
}

body .chatbot-window.active {
    clip-path: circle(150% at 90% 90%);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

body .chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(126, 211, 33, 0.08);
    border-bottom: 1px solid rgba(126, 211, 33, 0.15);
}

body .chatbot-header-info { display: flex; align-items: center; gap: 10px; }

body .chatbot-avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--gz-accent);
    background: rgba(126, 211, 33, 0.15);
    border: 1px solid var(--gz-accent);
    border-radius: 50%;
}

body .chatbot-avatar svg { width: 20px; height: 20px; }

body .chatbot-header-dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--gz-accent);
    border: 1.5px solid #0a0a0c;
    border-radius: 50%;
}

body .chatbot-header-text h3 {
    margin: 0;
    color: #fff;
    font-family: var(--gz-font-body);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-transform: none;
}

body .chatbot-header-text p {
    margin: 0;
    color: var(--gz-accent);
    font-family: var(--gz-font-mono);
    font-size: 0.72rem;
    line-height: 1.3;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

body .chatbot-close {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #888;
    background: transparent;
    border: 0;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s;
}

body .chatbot-close:hover { color: #fff; }

body .chatbot-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

body .chat-msg {
    position: relative;
    max-width: 80%;
    padding: 12px 16px;
    font-size: 0.88rem;
    line-height: 1.5;
}

body .chat-msg.bot {
    align-self: flex-start;
    color: #e4e4e7;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px 16px 16px 4px;
}

body .chat-msg.user {
    align-self: flex-end;
    color: #0a0a0c;
    background: var(--gz-accent);
    border-radius: 16px 16px 4px 16px;
    box-shadow: 0 4px 12px var(--gz-accent-glow);
    font-weight: 500;
}

body .typing-indicator { display: flex; align-items: center; gap: 4px; padding: 4px 8px; }
body .typing-indicator span { width: 6px; height: 6px; background: var(--gz-accent); border-radius: 50%; opacity: 0.4; animation: gz-bounce 1.4s infinite both; }
body .typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
body .typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes gz-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

body .chatbot-quick-replies { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 10px; }

body .quick-reply-btn {
    padding: 6px 14px;
    color: var(--gz-accent);
    background: transparent;
    border: 1px solid rgba(126, 211, 33, 0.3);
    border-radius: 50px;
    font-family: var(--gz-font-body);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
}

body .quick-reply-btn:hover { color: #0a0a0c; background: var(--gz-accent); border-color: var(--gz-accent); box-shadow: 0 4px 12px var(--gz-accent-glow); }

body .chatbot-input-area {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(10, 10, 12, 0.6);
    border-top: 1px solid rgba(126, 211, 33, 0.15);
}

body .chatbot-input {
    flex: 1;
    min-width: 0;
    padding: 10px 16px;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    outline: none;
    font-family: var(--gz-font-body);
    font-size: 0.85rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

body .chatbot-input:focus { border-color: var(--gz-accent); box-shadow: 0 0 10px rgba(126, 211, 33, 0.15); }

body .chatbot-send-btn {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #0a0a0c;
    background: var(--gz-accent);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
}

body .chatbot-send-btn:hover { background: #fff; transform: scale(1.05); }
body .chatbot-send-btn svg { width: 16px; height: 16px; }

@media (max-width: 1200px) {
    body .gz-global-nav,
    body .gz-global-nav.scrolled {
        height: 64px;
        padding: 0 1.25rem;
    }

    body .gz-global-nav .logo img { height: 45px; }

    body .gz-global-nav .menu-toggle {
        display: flex;
        width: 32px;
        height: 22px;
        align-items: center;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    body .gz-global-nav .menu-links {
        position: fixed;
        inset: 0 -100% 0 auto;
        z-index: 10051;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100dvh;
        gap: 1.55rem;
        padding: 5rem 2rem 2rem;
        overflow-y: auto;
        background: rgba(253, 253, 253, 0.98);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        transition: right 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    }

    body .gz-global-nav .menu-links.active { right: 0; }

    body .gz-global-nav .menu-links a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 0.6rem 1.5rem;
        color: var(--gz-text);
        font-size: clamp(1.05rem, 4vw, 1.4rem);
        touch-action: manipulation;
    }
}

@media (max-width: 768px) {
    body .custom-whatsapp-menu { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: 50px; height: 50px; }
    body .wa-options { width: 50px; height: 50px; }
    body .wa-option { right: 5px; bottom: 5px; }
    body .wa-trigger { width: 50px; height: 50px; }
    body .wa-trigger-icon svg { width: 24px; height: 24px; }
    body .wa-icon-wrapper { width: 40px; height: 40px; }
    body .wa-icon-wrapper svg { width: 18px; height: 18px; }
    body .custom-whatsapp-menu.active .wa-option[style*='--delay: 4'] { transform: translate(-80px, 0) scale(1); }
    body .custom-whatsapp-menu.active .wa-option[style*='--delay: 3'] { transform: translate(-69.3px, -40px) scale(1); }
    body .custom-whatsapp-menu.active .wa-option[style*='--delay: 2'] { transform: translate(-40px, -69.3px) scale(1); }
    body .custom-whatsapp-menu.active .wa-option[style*='--delay: 1'] { transform: translate(0, -80px) scale(1); }
    body .custom-whatsapp-menu.active .wa-tooltip { opacity: 1; transform: translateX(0); }
}

@media (max-width: 480px) {
    body .chatbot-window {
        right: 16px;
        bottom: calc(80px + env(safe-area-inset-bottom));
        width: calc(100% - 32px);
        height: min(480px, calc(100dvh - 104px));
    }
}

@media (prefers-reduced-motion: reduce) {
    body .wa-trigger-pulse,
    body .typing-indicator span { animation: none; }
    body .gz-global-nav *,
    body .custom-whatsapp-menu *,
    body .chatbot-window { transition-duration: 0.01ms !important; }
}
