/* ============================================================
   VEKTOR — Architectural Megamenu (standalone, safe to load anywhere)
   ============================================================ */

/* Hamburger button */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(32, 33, 36, 0.08);
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  flex-shrink: 0;
  z-index: 35;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 18px -8px rgba(32, 33, 36, 0.18);
}
.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: scale(1.06);
  box-shadow: 0 10px 22px -8px rgba(32, 33, 36, 0.24);
}
.menu-toggle:active { transform: scale(0.95); }

/* Overlay container */
.mob-nav {
  position: fixed;
  inset: 0;
  z-index: 31;
  pointer-events: none;
  visibility: hidden;
  display: flex;
  flex-direction: column;
}
.mob-nav-bg {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 21, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
}

.mob-panel { position: relative; width: 100%; z-index: 2; }

.mob-top {
  position: absolute;
  inset: 12px 12px auto 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf6 100%);
  border-radius: 28px;
  border: 1px solid rgba(32, 33, 36, 0.08);
  box-shadow: 0 40px 80px -20px rgba(15, 17, 21, 0.45);
  transform: translateY(-110%);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  max-height: calc(100vh - 24px);
  overflow: hidden;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #202124;
}

.mm-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(32, 33, 36, 0.06);
}
.mm-top-bar .mm-logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: #202124;
}
.mm-top-bar .mm-logo img.mark { width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,0.8); object-fit: contain; }
.mm-top-bar .mm-logo img.txt { width: 110px; height: auto; }
.mm-close {
  width: 40px; height: 40px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(32, 33, 36, 0.06);
  border: 1px solid rgba(32, 33, 36, 0.08);
  cursor: pointer;
  font-size: 18px;
  color: #202124;
  transition: background 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mm-close:hover { background: rgba(32, 33, 36, 0.1); transform: rotate(90deg); }

.mob-nav-list {
  list-style: none;
  margin: 0; padding: 12px 22px 16px;
  display: grid;
  gap: 0;
  overflow-y: auto;
}
.mob-nav-item {
  overflow: hidden;
  border-bottom: 1px solid rgba(32, 33, 36, 0.06);
}
.mob-nav-item:last-of-type { border-bottom: none; }
.mob-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #202124;
  padding: 16px 4px;
  font-size: clamp(1.8rem, 7vw, 2.2rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: color 0.25s ease, padding-left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mob-nav-link::after {
  content: "→";
  font-size: 1.1rem;
  color: rgba(32, 33, 36, 0.32);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease;
}
.mob-nav-link:hover,
.mob-nav-link[aria-current="page"] { color: #4285f4; padding-left: 8px; }
.mob-nav-link:hover::after { transform: translateX(6px); color: #4285f4; }

.mob-middle {
  padding: 18px 22px 20px;
  background: #ffffff;
  border-top: 1px solid rgba(32, 33, 36, 0.06);
  display: grid;
  gap: 12px;
}
.mob-projects-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #8b93a1;
}
.mob-projects-label a {
  color: #202124;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.mob-projects-label a:hover { color: #4285f4; }
.mob-thumbs {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 72px 72px;
  gap: 8px;
}
.mob-thumb-card {
  position: relative; overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(32, 33, 36, 0.08);
  text-decoration: none; color: inherit;
  display: block; isolation: isolate;
}
.mob-thumb-card.is-feature { grid-row: span 2; }
.mob-thumb-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s ease;
  filter: brightness(0.78) saturate(1.04);
}
.mob-thumb-card:hover img { transform: scale(1.08); filter: brightness(0.9) saturate(1.1); }
.mob-thumb-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 17, 21, 0.55) 100%);
  pointer-events: none;
}
.mob-thumb-card .mob-thumb-meta {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 10px 12px;
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.1;
}
.mob-thumb-card .mob-thumb-meta small {
  display: block;
  margin-top: 3px;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  opacity: 0.78;
  font-weight: 600;
  text-transform: uppercase;
}

.mob-nav-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px 16px;
  border-top: 1px solid rgba(32, 33, 36, 0.06);
  background: rgba(247, 244, 237, 0.6);
  font-size: 0.78rem;
  color: #5f6368;
}
.mob-nav-meta strong { color: #202124; font-weight: 600; letter-spacing: -0.005em; }
.mm-social { display: flex; gap: 8px; }
.mm-social a {
  width: 30px; height: 30px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(32, 33, 36, 0.04);
  color: #5f6368;
  transition: background 0.25s ease, color 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mm-social a:hover { background: #202124; color: #ffd877; transform: translateY(-2px); }
.mm-social svg { width: 14px; height: 14px; }

.mob-bottom {
  position: absolute;
  inset: auto 12px 12px 12px;
  background: linear-gradient(135deg, #0f2547 0%, #132f5b 55%, #183a70 100%);
  border-radius: 22px;
  border: 1px solid rgba(244, 198, 87, 0.42);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  z-index: 1;
  transform: translateY(110%);
  box-shadow:
    0 24px 50px -16px rgba(15, 37, 71, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 36px rgba(244, 198, 87, 0.18);
  overflow: hidden;
  isolation: isolate;
}
.mob-bottom::before {
  content: ""; position: absolute; inset: -60% -20%;
  background:
    radial-gradient(circle at 28% 36%, rgba(244, 198, 87, 0.3), transparent 30%),
    radial-gradient(circle at 70% 70%, rgba(74, 132, 228, 0.22), transparent 36%);
  z-index: -1;
}
.mob-cta-text { display: flex; flex-direction: column; gap: 2px; color: #ffd877; }
.mob-cta-title {
  font-size: 0.95rem; font-weight: 700; color: #ffd877;
  letter-spacing: -0.01em;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.mob-cta-sub {
  font-size: 0.72rem; color: rgba(255, 255, 255, 0.74); font-weight: 500;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.mob-cta-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #ffd877; color: #0f2547;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem; font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  border: none; cursor: pointer; text-decoration: none;
  white-space: nowrap; flex-shrink: 0;
  transition: background 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mob-cta-btn:hover { background: #fff; transform: translateX(3px); }
