/* ─────────────────────────────────────────────────────────
   Anchor.com.ua — shared site styles
   Nav, footer, mobile toggle — shared across all public pages.
   ───────────────────────────────────────────────────────── */

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); font-family: var(--f-sans); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; }

/* ───── Nav ───── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px var(--edge);
  border-bottom: 1px solid var(--hair);
  position: sticky; top: 0; background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  z-index: 50;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 28px; height: 28px;
  background-image: url('../assets/anchor-logo.png');
  background-size: contain; background-repeat: no-repeat; background-position: center;
  border-radius: 3px;
}
.brand-word { font-family: var(--f-serif); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.brand-word .tld { color: var(--muted-2); font-weight: 400; }
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 28px; flex-wrap: nowrap; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; letter-spacing: 0.01em; transition: color .15s; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); position: relative; }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px; background: var(--navy); }

/* Nav CTA pill */
.nav-cta {
  background: var(--navy); color: #fff !important; text-decoration: none;
  padding: 10px 22px; border-radius: 999px;
  font-family: var(--f-sans); font-size: 13.5px; font-weight: 500; letter-spacing: 0.01em;
  white-space: nowrap; transition: background .15s; line-height: 1;
}
.nav-cta:hover { background: var(--navy-2); }
.nav-cta.active { background: var(--navy-2); }

/* Mobile menu toggle (hidden on desktop) */
.nav-toggle { display: none; }

/* ───── Eyebrow / label ───── */
.eyebrow { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ───── Footer ───── */
.foot {
  border-top: 1px solid var(--hair);
  background: var(--bg-soft);
  padding: 32px var(--edge);
  font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 22px; align-items: center;
}
.foot .sep { color: var(--muted-2); }
.foot span, .foot a, .foot .foot-link { white-space: nowrap; }
.foot a, .foot .foot-link { color: var(--navy); text-decoration: none; }
.foot a:hover, .foot .foot-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.foot-grp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }

/* ───── Mobile nav ───── */
@media (max-width: 860px) {
  .nav { padding: 14px var(--edge); flex-wrap: nowrap; gap: 14px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; margin-right: -10px; flex: 0 0 auto;
    border: none; background: transparent; cursor: pointer; color: var(--ink);
  }
  .nav-toggle-bars { position: relative; width: 22px; height: 14px; display: block; }
  .nav-toggle-bars span {
    position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform .25s ease, opacity .15s ease, top .25s ease;
  }
  .nav-toggle-bars span:nth-child(1) { top: 0; }
  .nav-toggle-bars span:nth-child(2) { top: 6px; }
  .nav-toggle-bars span:nth-child(3) { top: 12px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

  .nav-right {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--hair);
    box-shadow: 0 20px 44px rgba(11,31,58,0.10);
    padding: 4px var(--edge) 22px;
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav-right.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { font-size: 19px; padding: 17px 0; border-bottom: 1px solid var(--hair); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.active { color: var(--ink); font-weight: 600; }
  .nav-links a.active::after { display: none; }
  .nav-cta { align-self: stretch; text-align: center; margin-top: 16px; padding: 15px 22px; font-size: 16px; }
  .nav-cta.as-link { background: var(--navy) !important; color: #fff !important; border-radius: 999px; padding: 15px 22px !important; font-size: 16px !important; font-weight: 500; }

  .foot { flex-direction: column; align-items: flex-start; gap: 12px; padding: 26px var(--edge); line-height: 1.5; }
}
