/* ================================================================
   inzopay — Home / Public Pages
   ================================================================ */

/* ── nav desktop overrides ── */
nav.primary a {
  padding: 7px 13px; border-radius: 8px;
  color: var(--ink-700); font-size: 14px; font-weight: 500;
  transition: background .12s, color .12s;
}
nav.primary a:hover,
nav.primary a.active { background: var(--line); color: var(--ink-900); }

/* ── nav dropdown ── */
.nav-drop { position: relative; }
.nav-drop-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 13px; border-radius: 8px;
  color: var(--ink-700); font-size: 14px; font-weight: 500;
  background: transparent; border: none; cursor: pointer;
  transition: background .12s, color .12s;
  font-family: inherit; line-height: inherit;
}
.nav-drop-btn svg { width: 12px; height: 12px; transition: transform .15s; flex-shrink: 0; }
.nav-drop-btn:hover,
.nav-drop-btn.active,
.nav-drop.open .nav-drop-btn { background: var(--line); color: var(--ink-900); }
.nav-drop.open .nav-drop-btn svg { transform: rotate(180deg); }

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  min-width: 210px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 8px 24px color-mix(in oklab, var(--ink-900) 10%, transparent);
  opacity: 0; visibility: hidden;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 200;
}
html[dir="rtl"] .nav-drop-menu {
  left: auto; right: 50%;
  transform: translateX(50%) translateY(-6px);
}
.nav-drop.open .nav-drop-menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
html[dir="rtl"] .nav-drop.open .nav-drop-menu {
  transform: translateX(50%) translateY(0);
}
.nav-drop-menu a {
  display: block; padding: 9px 14px; border-radius: 8px;
  font-size: 13.5px; color: var(--ink-700); font-weight: 500;
  transition: background .1s, color .1s;
}
.nav-drop-menu a:hover { background: var(--line); color: var(--ink-900); }
.nav-drop-menu a.active { color: var(--primary); background: var(--primary-tint); }

/* ── hamburger toggle button ── */
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: transparent;
  border: none;
  color: var(--ink-700);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ── nav overlay ── */
.nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: color-mix(in oklab, var(--ink-900) 50%, transparent);
  backdrop-filter: blur(3px);
  z-index: 98;
}
.nav-overlay.open { display: block; }

/* ── nav drawer ── */
.nav-drawer {
  position: fixed;
  top: 0; left: 0;
  width: min(82vw, 300px);
  height: 100dvh;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 20px 18px;
  gap: 4px;
  z-index: 99;
  transform: translateX(-110%);
  transition: transform .22s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
html[dir="rtl"] .nav-drawer {
  left: auto; right: 0;
  border-right: 0;
  border-left: 1px solid var(--line);
  transform: translateX(110%);
}
.nav-drawer.open,
html[dir="rtl"] .nav-drawer.open { transform: translateX(0); }

.nav-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.nav-drawer-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink-500); cursor: pointer;
}
.nav-drawer-close:hover { background: var(--line); color: var(--ink-900); }

.nav-drawer a.nav-item {
  display: flex; align-items: center;
  padding: 11px 12px;
  border-radius: 9px;
  color: var(--ink-700);
  font-size: 15px; font-weight: 500;
  transition: background .1s, color .1s;
}
.nav-drawer a.nav-item:hover,
.nav-drawer a.nav-item.active { background: var(--line); color: var(--ink-900); }

.nav-drawer-divider { height: 1px; background: var(--line); margin: 10px 0; }
.nav-drawer-bottom {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 12px;
}

/* ── Site footer ── */
.site-footer {
  padding: 52px 0 32px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
.foot-col h6 {
  font-size: 11px; color: var(--ink-400);
  letter-spacing: .1em; text-transform: uppercase;
  margin: 0 0 12px; font-weight: 700;
}
.foot-col a {
  display: block; color: var(--ink-700);
  font-size: 13.5px; padding: 5px 0;
}
.foot-col a:hover { color: var(--ink-900); }
.foot-about p {
  color: var(--ink-500); font-size: 13px;
  margin: 10px 0 0; max-width: 260px; line-height: 1.6;
}
.foot-bot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-400); font-size: 12px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
  .foot-about p { max-width: 100%; }
}

@media (max-width: 768px) {
  nav.primary { display: none; }
  .top-inner > .pill-btn,
  .top-inner > .btn-ghost,
  .top-inner > .btn-primary { display: none; }
  .nav-toggle { display: flex; }

  .foot-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .foot-about { grid-column: 1 / -1; }
  .foot-bot { flex-direction: column; gap: 6px; text-align: center; }
}

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