/* ============================================================
   KODREX — Navigation & Footer
   ============================================================ */

/* ── Desktop Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 5%;
  transition:
    background 0.35s var(--ease),
    border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

/* ── Logo ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  z-index: 210;
}

.nav-logo-mark {
  width: 34px;
  height: 34px;
  position: relative;
}

.nav-logo-mark svg {
  width: 100%;
  height: 100%;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 26px;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  line-height: 1;
}

.nav-logo-text span {
  color: var(--red);
}

/* ── Nav Links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.25s var(--ease);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active::after {
  width: 100%;
}

/* ── Nav CTA ── */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── Hamburger ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  z-index: 210;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all 0.3s var(--ease);
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Mobile Menu ── */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--bg-base);
  z-index: 205;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out);
  padding: 80px 5% 40px;
}

.nav-mobile.open {
  transform: translateX(0);
}

/* Close button — top-right corner of the mobile menu */
.nav-mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--bg-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.nav-mobile-close:hover {
  background: var(--red-dim);
  border-color: var(--border-red);
  color: var(--red);
}

.nav-mobile a {
  font-family: var(--font-heading);
  font-size: clamp(38px, 8vw, 64px);
  letter-spacing: 0.04em;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.1;
}

.nav-mobile a:hover {
  color: var(--red);
}

.nav-mobile-cta {
  margin-top: 32px;
}

.nav-mobile-bottom {
  position: absolute;
  bottom: 40px;
  left: 5%;
  right: 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-mobile-bottom p {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ── Footer ── */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-brand-logo {
  font-family: var(--font-heading);
  font-size: 32px;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.footer-brand-logo span {
  color: var(--red);
}

.footer-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 280px;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 14px;
  transition: all 0.2s;
}

.footer-social-link:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-dim);
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-contact-icon {
  font-size: 16px;
  margin-top: 1px;
  flex-shrink: 0;
}

.footer-contact-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.footer-contact-item a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-item a:hover {
  color: var(--red);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--text-secondary);
}

/* ── Responsive Nav ── */
@media (max-width: 900px) {
  .nav-links,
  .nav-cta .btn {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-col-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
