/* ============================================================================
   Aziz Saif — Shared site navigation with link previews
   House theme: cream paper / terracotta / ink, Playfair Display + Inter.
   All destinations visible in 2–3 wrapping rows; nothing hidden behind a click.
   ========================================================================== */
.site-nav {
  --sn-cream: #FBF7F1;
  --sn-paper: #FFFFFF;
  --sn-ink: #1B1813;
  --sn-soft: #5C5448;
  --sn-mute: #8B8275;
  --sn-line: #E7DFD2;
  --sn-line-strong: #D9CFBE;
  --sn-clay: #B0531D;
  --sn-clay-d: #934417;
  --sn-sage: #2F5D4A;

  position: sticky; top: 0; z-index: 200;
  background: rgba(251, 247, 241, 0.94);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--sn-ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-nav.scrolled { border-bottom-color: var(--sn-line); box-shadow: 0 6px 24px -18px rgba(27, 24, 19, .45); }

.site-nav .sn-inner {
  max-width: 1320px; margin: 0 auto; padding: 12px 26px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px 22px;
}

/* Brand */
.site-nav .sn-brand {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800; font-size: 22px; line-height: 1;
  color: var(--sn-ink); text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center;
}
.site-nav .sn-brand em { color: var(--sn-clay); font-style: italic; margin-left: .12em; }
.site-nav .sn-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sn-clay); margin-left: 9px; }

/* Link grid — wraps naturally into 2–3 rows, never truncated */
.site-nav .sn-links {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px 6px; row-gap: 6px;
}
.site-nav .sn-link {
  position: relative;
  font-size: 14.5px; font-weight: 500; color: var(--sn-soft);
  text-decoration: none; white-space: nowrap;
  padding: 7px 13px; border-radius: 9px;
  transition: color .18s ease, background .18s ease;
}
.site-nav .sn-link:hover,
.site-nav .sn-link:focus-visible { color: var(--sn-ink); background: rgba(176, 83, 29, .08); outline: none; }
.site-nav .sn-link[aria-current="page"] { color: var(--sn-clay-d); background: rgba(176, 83, 29, .10); font-weight: 600; }

/* CTAs */
.site-nav .sn-cta { display: flex; align-items: center; gap: 10px; justify-self: end; }
.site-nav .sn-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  padding: 9px 16px; border-radius: 10px; white-space: nowrap;
  transition: transform .16s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.site-nav .sn-btn-ghost { color: var(--sn-ink); border: 1px solid var(--sn-line-strong); background: var(--sn-paper); }
.site-nav .sn-btn-ghost:hover { border-color: var(--sn-ink); transform: translateY(-1px); }
.site-nav .sn-btn-wa { color: #fff; background: #1f2421; }
.site-nav .sn-btn-wa:hover { background: #111513; transform: translateY(-1px); }
.site-nav .sn-btn-wa svg { width: 17px; height: 17px; }

/* ---------- Hover preview card ---------- */
.sn-preview {
  position: fixed; z-index: 240; left: 0; top: 0;
  width: 320px; max-width: calc(100vw - 24px);
  background: var(--sn-paper, #fff);
  border: 1px solid #E7DFD2; border-radius: 16px;
  box-shadow: 0 28px 60px -22px rgba(27, 24, 19, .55), 0 4px 12px rgba(27, 24, 19, .08);
  overflow: hidden;
  opacity: 0; transform: translateY(6px) scale(.98); pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.sn-preview.on { opacity: 1; transform: none; pointer-events: auto; }
.sn-preview-img { aspect-ratio: 16 / 10; background: #F1E9DC; overflow: hidden; border-bottom: 1px solid #EFE8DC; }
.sn-preview-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.sn-preview-body { padding: 13px 15px 15px; }
.sn-preview-title { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 16.5px; color: #1B1813; margin-bottom: 4px; }
.sn-preview-desc { font-size: 13px; line-height: 1.5; color: #6E665C; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .site-nav .sn-inner { grid-template-columns: auto 1fr; }
  .site-nav .sn-cta { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 820px) {
  .site-nav .sn-inner { grid-template-columns: 1fr; gap: 10px; padding: 11px 16px; }
  .site-nav .sn-cta { justify-self: stretch; }
  .site-nav .sn-cta .sn-btn { flex: 1; justify-content: center; }
  .site-nav .sn-link { font-size: 13.5px; padding: 6px 11px; }
}
