/**
 * salesfeedr — Shared Styles (Nav, Footer, Legal Pages)
 * Extracted from index.html for reuse across all subpages.
 * Refactor target: Astro global stylesheet.
 */

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Invisible scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0D0D0D; }
::-webkit-scrollbar-thumb { background: #0D0D0D; }
html { scrollbar-color: #0D0D0D #0D0D0D; }

:root {
  --bg: #0D0D0D;
  --bg-elevated: #111111;
  --bg-card: rgba(255,255,255,0.02);
  --primary: #0D9373;
  --vivid: #2BF5A0;
  --hover: #0E7E65;
  --accent: #1AB68C;
  --deep: #042A24;
  --text: #ffffff;
  --text-secondary: #999999;
  --text-muted: #777777;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --max-w: 1200px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--vivid); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Navigation ──────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(13, 13, 13, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 150ms;
}

.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--vivid); }

.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 150ms !important;
}

.nav-cta:hover { background: var(--hover) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 110;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 300ms;
}

.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── Footer ──────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 10;
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-w);
  margin: 0 auto 3rem;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

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

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-column h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer-column ul { list-style: none; }

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 150ms;
}

.footer-column a:hover { color: var(--vivid); text-decoration: none; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: var(--text-muted);
  transition: color 150ms;
  text-decoration: none;
}

.footer-social a:hover { color: var(--vivid); }

/* ─── Legal / Content Pages ──────────────────────── */
.page-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 120px 2rem 5rem;
}

.page-content h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 3rem;
}

.page-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.page-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.page-content p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.page-content ul, .page-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-content li {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.page-content strong {
  color: var(--text);
  font-weight: 600;
}

.page-content a {
  color: var(--vivid);
  text-decoration: none;
}

.page-content a:hover { text-decoration: underline; }

.legal-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.legal-section:last-child { border-bottom: none; }

/* ─── Placeholder / Coming Soon Pages ────────────── */
.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 120px 2rem 5rem;
  text-align: center;
}

.coming-soon h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.coming-soon p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.coming-soon .badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  background: var(--deep);
  color: var(--vivid);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 150ms;
}

.btn-primary:hover { background: var(--hover); text-decoration: none; }

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-content { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 80px 2rem 2rem;
    gap: 1.5rem;
    transition: right 300ms cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid var(--border);
  }

  .nav-links.open { right: 0; }
  .nav-hamburger { display: flex; }

  .footer-content { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

  .page-content h1 { font-size: 1.75rem; }
  .coming-soon h1 { font-size: 1.75rem; }
}
