/* ============================================================
   CONSTRUVERSE — Header & Navigation
   ============================================================ */

.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(8, 10, 15, 0.7);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: all 0.35s var(--ease);
}
.header.is-scrolled {
    background: rgba(8, 10, 15, 0.92);
    border-bottom-color: var(--border);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    padding: 0 var(--gutter);
    max-width: var(--container);
    margin: 0 auto;
}

/* ─── LOGO ─── */
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text);
    text-transform: uppercase;
    transition: opacity var(--dur-fast);
}
.logo:hover { opacity: 0.85; }
.logo__mark {
    width: 32px; height: 32px;
    background: var(--yellow);
    border-radius: 8px;
    display: grid; place-items: center;
    color: #000; font-weight: 800;
    box-shadow: 0 0 20px rgba(245,197,24,0.3);
}
.logo__dot { color: var(--yellow); }
.logo__image {
    display: block;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}
.logo__image--sm {
    height: 36px;
    max-width: 150px;
}
.logo__image--md {
    height: 48px;
    max-width: 210px;
}
.logo__image--lg {
    height: 56px;
    max-width: 250px;
}

/* ─── NAV ─── */
.nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}
.nav__list {
    display: flex;
    gap: 2rem;
}
.nav__link {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--dur-fast);
    position: relative;
    padding: 0.4rem 0;
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: var(--yellow);
    transition: width var(--dur) var(--ease);
}
.nav__link:hover,
.nav__link.is-active {
    color: var(--text);
}
.nav__link:hover::after,
.nav__link.is-active::after {
    width: 100%;
}

/* ─── MOBILE TOGGLE ─── */
.menu-toggle {
    display: none;
    width: 44px; height: 44px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--r);
}
.menu-toggle__icon {
    position: relative;
    width: 18px; height: 12px;
}
.menu-toggle__icon span {
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--dur-fast) var(--ease);
}
.menu-toggle__icon span:nth-child(1) { top: 0; }
.menu-toggle__icon span:nth-child(2) { top: 5px; }
.menu-toggle__icon span:nth-child(3) { top: 10px; }
.menu-toggle.is-open .menu-toggle__icon span:nth-child(1) {
    top: 5px; transform: rotate(45deg);
}
.menu-toggle.is-open .menu-toggle__icon span:nth-child(2) {
    opacity: 0; transform: scaleX(0);
}
.menu-toggle.is-open .menu-toggle__icon span:nth-child(3) {
    top: 5px; transform: rotate(-45deg);
}

/* ─── MOBILE MENU ─── */
.mobile-menu {
    position: fixed;
    top: 0; right: 0;
    width: 100%; max-width: 380px;
    height: 100dvh;
    background: var(--bg-elevated);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 99;
    overflow-y: auto;
    padding: 6rem 2rem 2rem;
}
.mobile-menu.is-open { transform: none; }
.mobile-menu__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.mobile-menu__link {
    display: block;
    padding: 1rem 1.2rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    border-radius: var(--r);
    transition: all var(--dur-fast);
}
.mobile-menu__link:hover,
.mobile-menu__link.is-active {
    background: var(--yellow-soft);
    color: var(--yellow);
}
.mobile-menu__cta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 98;
}
.menu-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}
body.menu-open { overflow: hidden; }

/* ─────── RESPONSIVE ─────── */
@media (max-width: 1024px) {
    .nav__list { gap: 1.5rem; }
    .nav__link { font-size: 0.84rem; }
}

@media (max-width: 860px) {
    .nav__list, .nav .btn { display: none; }
    .menu-toggle { display: flex; }
    .header__inner { height: 64px; }
    .logo__image--sm { height: 30px; max-width: 130px; }
    .logo__image--md { height: 36px; max-width: 160px; }
    .logo__image--lg { height: 42px; max-width: 190px; }
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer-cta {
    background: linear-gradient(135deg, rgba(245,197,24,0.06) 0%, transparent 70%);
    border-top: 1px solid rgba(245,197,24,0.15);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.footer-cta::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(245,197,24,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.footer-cta__inner {
    text-align: center;
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}
.footer-cta__inner h2 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 2.8rem);
}
.footer-cta__inner p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.footer {
    background: #050608;
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer__brand { max-width: 320px; }
.footer__brand .logo {
    display: inline-flex;
    max-width: 100%;
}
.footer__logo-image {
    height: 52px;
    max-width: 220px;
}
.footer__logo-image.logo__image--sm {
    height: 42px;
    max-width: 170px;
}
.footer__logo-image.logo__image--md {
    height: 52px;
    max-width: 220px;
}
.footer__logo-image.logo__image--lg {
    height: 64px;
    max-width: 260px;
}
.footer__brand p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.7;
    margin: 1rem 0 1.5rem;
}
.footer__title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--yellow);
    margin-bottom: 1rem;
}
.footer__list { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__list a {
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: color var(--dur-fast);
}
.footer__list a:hover { color: var(--yellow); }

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.footer__contact a { color: var(--text-muted); transition: color var(--dur-fast); }
.footer__contact a:hover { color: var(--text); }

.footer__bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--text-subtle);
}
.footer__legal {
    display: flex;
    gap: 1.5rem;
}
.footer__legal a { color: var(--text-subtle); }
.footer__legal a:hover { color: var(--text-muted); }

.social {
    display: flex;
    gap: 0.75rem;
}
.social__link {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text-muted);
    transition: all var(--dur-fast);
}
.social__link:hover {
    border-color: var(--yellow);
    color: var(--yellow);
    background: var(--yellow-soft);
}
.social__link svg { width: 16px; height: 16px; }

@media (max-width: 860px) {
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer__brand { grid-column: 1 / -1; max-width: 100%; }
}
@media (max-width: 520px) {
    .footer__grid { grid-template-columns: 1fr; }
    .footer__bottom { flex-direction: column; text-align: center; }
    .footer__logo-image.logo__image--sm { height: 34px; max-width: 150px; }
    .footer__logo-image.logo__image--md { height: 42px; max-width: 180px; }
    .footer__logo-image.logo__image--lg { height: 52px; max-width: 220px; }
}
