/* ============================================================
   Navigation, logo, footer
   ============================================================ */

/* ---------- Logo ---------- */
.logo {
  display: flex; align-items: center;
  background: none; border: 0; cursor: pointer; padding: 0; line-height: 0;
}
.logo-img { height: 50px; width: auto; transition: filter .5s var(--ease); }
.footer-logo { height: 118px; width: auto; margin-bottom: 16px; }

.site[data-mode="dark"] .logo-img,
.site[data-mode="dark"] .footer-logo { filter: brightness(0) invert(0.92); }
.nav-light .logo-img { filter: brightness(0) invert(1); }

/* ---------- Top nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .6s var(--ease), border-color .6s var(--ease), backdrop-filter .6s;
  border-bottom: 1px solid transparent;
}
.nav-solid {
  background: color-mix(in oklab, var(--bg), transparent 12%);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 18px var(--pad); display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav-light { color: #fff; }

.nav-links { display: flex; gap: 34px; }
.nav-link {
  background: none; border: 0; cursor: pointer; color: inherit;
  font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 400; padding: 6px 0; position: relative;
  opacity: 0.82; transition: opacity .4s var(--ease);
}
.nav-link:hover { opacity: 1; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }
.nav-light .nav-link::after { background: #fff; }

.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-inquire {
  background: none; border: 0; cursor: pointer; color: inherit;
  font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 500;
  border: 1px solid currentColor; padding: 11px 20px; border-radius: var(--radius);
  opacity: 0.9; transition: background .45s var(--ease), color .45s var(--ease), opacity .45s;
}
.nav-inquire:hover { opacity: 1; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.nav-light .nav-inquire:hover { background: #fff; border-color: #fff; color: #1a1a1a; }

/* ---------- Language toggle ---------- */
.lang { display: flex; align-items: center; gap: 6px; }
.lang-btn {
  background: none; border: 0; cursor: pointer; color: var(--muted);
  font-family: var(--font-sans); font-size: 11.5px; letter-spacing: 0.1em; font-weight: 500;
  padding: 2px; transition: color .35s var(--ease);
}
.lang-btn.on { color: var(--ink); }
.nav-light .lang-btn { color: rgba(255,255,255,.55); }
.nav-light .lang-btn.on { color: #fff; }
.lang-sep { color: var(--line); font-size: 11px; }

/* ---------- Burger + mobile menu ---------- */
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px 0; width: 28px; }
.burger span { display: block; height: 1.5px; width: 100%; background: currentColor;
  transition: transform .4s var(--ease), opacity .3s; }
.burger.open span:first-child { transform: translateY(3.25px) rotate(45deg); }
.burger.open span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad); opacity: 0; pointer-events: none;
  transform: translateY(-12px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.mobile-menu.show { opacity: 1; pointer-events: auto; transform: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mm-link {
  display: flex; align-items: baseline; gap: 18px; background: none; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: var(--disp-weight, 500);
  font-size: clamp(40px, 13vw, 72px); color: var(--ink); text-align: left;
  padding: 8px 0; line-height: 1.05;
}
.mm-foot { margin-top: 48px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line);
  padding-block: clamp(56px, 8vw, 96px) 32px; margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 48px; padding-bottom: 56px; }
.footer-tag { font-family: var(--font-sans); font-size: 13px; color: var(--muted); letter-spacing: 0.02em; margin: 0; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-h { font-family: var(--font-sans); font-size: 10.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 4px; }
.footer-link { background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-sans); font-size: 14px; color: var(--muted); line-height: 1.5;
  padding: 0; transition: color .35s var(--ease); }
.footer-link:hover { color: var(--ink); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 28px; flex-wrap: wrap; }
.footer-bottom span { font-family: var(--font-sans); font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }
.footer-langs { opacity: 0.7; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inquire { display: none; }
  .nav-right .lang { display: none; }
  .burger { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}
