/* ============================================================
   RigiFlow — Shared layout v2: nav, footer, section rhythm
   ============================================================ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--surface-border);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; object-fit: contain; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 999px;
}
.nav-links a:hover { color: var(--text); background: rgba(10,13,20,0.05); }
.nav-links a.active { color: var(--text); background: rgba(10,13,20,0.08); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--surface-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 10px 20px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 14px; }
  .nav-toggle { display: inline-block; flex-shrink: 0; }
}

/* Phone-width only — tablets keep the full nav treatment above */
@media (max-width: 480px) {
  .nav-cta { gap: 8px; }
  .nav-cta .btn { padding: 9px 14px; font-size: 0.74rem; flex-shrink: 0; }
  .brand-tag { display: none; }
}

/* Breadcrumb */
.crumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  padding: 22px 0 0;
  position: relative;
  z-index: 1;
}
.crumb a { text-decoration: none; color: var(--text-faint); }
.crumb a:hover { color: var(--text-dim); }

/* Section rhythm */
section { padding: 100px 0; position: relative; }
section.tight { padding: 60px 0; }
section.raised { background: var(--bg-2); }
section.hero-section { position: relative; overflow: hidden; }

/* Footer */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--surface-border);
  padding: 64px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--surface-border);
}
.footer-blurb {
  font-size: 0.88rem;
  color: var(--text-faint);
  max-width: 300px;
  margin-top: 14px;
  line-height: 1.6;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { text-decoration: none; color: var(--text-dim); font-size: 0.88rem; }
.footer-col a:hover { color: var(--text); }
.footer-note { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-faint); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-legal { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-faint); }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
