/* Hides the Astra theme's own header/footer chrome so only the ztech-core
   Header/Footer (Masterplan Phase 4) renders. Astra + generic _s-derived
   selectors both covered for safety. */
#masthead,
header.site-header,
.ast-header-break-point .site-header,
#colophon,
footer.site-footer,
.ast-small-footer,
.ast-footer-copyright {
    display: none !important;
}

.nav-u {
    position: relative;
    transition: border-color .2s;
}
.nav-u:hover {
    border-color: rgba(55, 224, 216, 0.4) !important;
}
.nav-u::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    background: linear-gradient(90deg, #2f8fd0, #37e0d8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.nav-u:hover::after {
    transform: scaleX(1);
}

.link-u {
    position: relative;
    display: inline-block;
}
.link-u::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1.5px;
    background: linear-gradient(90deg, #2f8fd0, #37e0d8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.link-u:hover::after {
    transform: scaleX(1);
}

.glow-btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.glow-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s;
}
.glow-btn:hover::before {
    left: 130%;
}

.zt-newsletter-btn:hover {
    background: rgba(47, 143, 208, .25);
    border-color: #37e0d8;
    transform: translateY(-2px);
}

.ztech-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
}
@media (min-width: 600px) {
    .ztech-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (min-width: 900px) {
    .ztech-footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
@media (min-width: 1300px) {
    .ztech-footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr 1.1fr;
    }
}

/* Header nav row: full pill nav >=980px, hamburger trigger below it */
.ztech-nav-full {
    display: none;
}
.ztech-hamburger-btn {
    display: flex;
}
@media (min-width: 980px) {
    .ztech-nav-full {
        display: flex;
    }
    .ztech-hamburger-btn {
        display: none;
    }
}

.ztech-header-extra-link {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    position: relative;
    transition: color .2s;
}
.ztech-header-extra-link:hover {
    color: #8fd4ec;
}
.ztech-header-extra-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1.5px;
    background: linear-gradient(90deg, #2f8fd0, #37e0d8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.ztech-header-extra-link:hover::after {
    transform: scaleX(1);
}

.ztech-hamburger-btn {
    width: 50%;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(47, 143, 208, 0.08);
    border: 1px solid rgba(47, 143, 208, 0.3);
    border-radius: 8px;
    height: 44px;
    color: #e6e4f0;
    font-size: 13px;
    cursor: pointer;
}

.ztech-mobile-menu-drop {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows .35s cubic-bezier(0.4,0,0.2,1);
    margin-top: 8px;
}
.ztech-mobile-menu-drop.open {
    grid-template-rows: 1fr;
}
.ztech-mobile-menu-drop-inner {
    min-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity .22s ease .04s;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 19px 14px;
    background: #181a29;
    border: 1px solid rgba(47,143,208,.2);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,.5);
}
.ztech-mobile-menu-drop.open .ztech-mobile-menu-drop-inner {
    opacity: 1;
}
.ztech-mobile-menu-drop-inner a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.32);
    background: transparent;
    color: #e6e4f0;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    padding: 0 12px;
    transition: border-color .2s, background .2s;
}
.ztech-mobile-menu-drop-inner a:hover,
.ztech-mobile-menu-drop-inner a:active {
    border-color: rgba(55, 224, 216, 0.4);
    background: rgba(47, 143, 208, 0.08);
}

.ztech-lang-wrap {
    position: relative;
}
.ztech-lang-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(47, 143, 208, 0.08);
    border: 1px solid rgba(47, 143, 208, 0.25);
    color: #e6e4f0;
    border-radius: 999px;
    padding: 7px 12px;
    min-height: 44px;
    box-sizing: border-box;
    font-size: 13px;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}
.ztech-lang-trigger:hover,
.ztech-lang-wrap[data-ztech-lang-wrap] .ztech-lang-trigger[aria-expanded="true"] {
    background: rgba(47, 143, 208, 0.16);
    border-color: rgba(55, 224, 216, 0.4);
}
.ztech-lang-drop {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #181a29;
    border: 1px solid rgba(47,143,208,.2);
    border-radius: 10px;
    overflow: hidden;
    min-width: 160px;
    box-shadow: 0 12px 32px rgba(0,0,0,.5);
    z-index: 200;
    opacity: 0;
    transform: translateY(-6px) scale(.98);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}
.ztech-lang-drop.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.ztech-lang-drop a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 11px;
    color: #e6e4f0;
    text-decoration: none;
    font-size: 13px;
}
.ztech-lang-drop a:hover {
    background: rgba(47,143,208,.1);
}
.ztech-lang-drop a img {
    display: block;
    width: 18px;
    height: auto;
}

