/* shared.css — Single source of truth for nav, footer, theme, and common elements */

/* ── Reset & Root Variables (DARK DEFAULT) ─────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}

:root {
  --bg: #050505;
  --bg-alt: #0c0c0c;
  --card: #111111;
  --border: rgba(255,255,255,0.08);
  --acid: #226F54;
  --acid-dim: #c1f721;
  --acid-glow: rgba(34,111,84,0.14);
  --text: #f0f0f0;
  --muted: #666;
  --nav-bg: rgba(8,8,8,0.82);
  --shadow: 0 2px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.7);
  --tt: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
}
[data-theme="light"] {
  --bg: #fafafa;
  --bg-alt: #f0f0f0;
  --card: #ffffff;
  --border: rgba(0,0,0,0.08);
  --acid: #226F54;
  --acid-dim: #1a5c40;
  --acid-glow: rgba(34,111,84,0.08);
  --text: #111111;
  --muted: #777;
  --nav-bg: rgba(250,250,250,0.90);
  --shadow: 0 2px 16px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  transition: var(--tt);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ── Pill Navigation ───────────────────────────────────────── */
nav.site-nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 100; width: calc(100% - 32px); max-width: 1080px;
}
.nav-pill {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; border-radius: 999px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  transition: background 0.35s, border-color 0.35s;
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--text); text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.nav-logo span { color: var(--acid); }
.nav-links {
  display: flex; align-items: center; gap: 2px; list-style: none; flex: 1;
  justify-content: center; padding: 0 12px;
}
.nav-links a {
  font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 500;
  color: var(--muted); text-decoration: none; padding: 6px 11px; border-radius: 999px;
  white-space: nowrap; transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--border); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ── Theme Toggle ──────────────────────────────────────────── */
.theme-toggle {
  position: relative; width: 48px; height: 26px;
  border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg-alt); cursor: pointer; outline: none; flex-shrink: 0;
  transition: border-color 0.2s;
}
.theme-toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--acid);
  transition: transform 0.32s cubic-bezier(0.34,1.56,0.64,1);
}
[data-theme="light"] .theme-toggle::after { transform: translateX(22px); }
.toggle-icons {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: space-between;
  padding: 0 5px; pointer-events: none;
}
.t-icon { font-size: 10px; }
[data-theme="dark"] .t-sun { opacity: 0.3; }
[data-theme="light"] .t-moon { opacity: 0.3; }

/* ── Nav CTA ───────────────────────────────────────────────── */
.nav-cta {
  font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: -0.01em;
  background: var(--acid); padding: 8px 18px;
  border: none; cursor: pointer; border-radius: 999px;
  transition: background 0.2s, transform 0.15s; white-space: nowrap;
}
[data-theme="dark"] .nav-cta { color: #050505; }
[data-theme="light"] .nav-cta { color: #fff; }
.nav-cta:hover { background: var(--acid-dim); transform: translateY(-1px); }
[data-theme="light"] .nav-cta:hover { color: #fff; }

/* ── Hamburger ─────────────────────────────────────────────── */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 100%; height: 1.5px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile Drawer ─────────────────────────────────────────── */
.mobile-drawer {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99; background: var(--bg);
  flex-direction: column; padding: 100px 36px 48px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-nav-links { list-style: none; flex: 1; }
.mobile-nav-links li { border-bottom: 1px solid var(--border); }
.mobile-nav-links a {
  display: block; padding: 18px 0;
  font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 700;
  letter-spacing: -0.03em; color: var(--text); text-decoration: none;
  transition: color 0.2s;
}
.mobile-nav-links a:hover { color: var(--acid); }
.mobile-drawer-footer {
  padding-top: 32px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--muted);
}
.mobile-cta {
  display: block; width: 100%; background: var(--acid);
  padding: 16px; border-radius: var(--radius);
  font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center; text-decoration: none; margin-top: 24px;
  transition: background 0.2s;
}
[data-theme="dark"] .mobile-cta { color: #050505; }
[data-theme="light"] .mobile-cta { color: #fff; }

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--bg-alt); border-top: 1px solid var(--border);
  padding: 64px 48px 32px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px;
  transition: var(--tt);
}
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-logo {
  font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--text);
}
.footer-logo span { color: var(--acid); }
.footer-tagline { font-size: 13px; color: var(--muted); max-width: 220px; line-height: 1.6; }
.footer-social { display: flex; gap: 12px; margin-top: 4px; }
.footer-social a {
  font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.2s;
  display: flex; align-items: center;
}
.footer-social a:hover { color: var(--acid); }
.footer-nav-label {
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--acid); margin-bottom: 4px;
}
.footer-nav { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
  font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.2s;
}
.footer-nav a:hover { color: var(--text); }
.footer-phone {
  font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--text); text-decoration: none;
  transition: color 0.2s;
}
.footer-phone:hover { color: var(--acid); }
.footer-call-btn {
  display: inline-block; background: var(--acid);
  padding: 11px 22px; border-radius: var(--radius);
  font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600;
  text-decoration: none; margin-top: 4px; transition: background 0.2s; width: fit-content;
}
[data-theme="dark"] .footer-call-btn { color: #050505; }
[data-theme="light"] .footer-call-btn { color: #fff; }
.footer-call-btn:hover { background: var(--acid-dim); }
[data-theme="light"] .footer-call-btn:hover { color: #fff; }
.footer-email {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--muted); text-decoration: none; transition: color 0.2s;
}
.footer-email:hover { color: var(--acid); }
.footer-bottom {
  padding: 20px 48px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--muted);
  background: var(--bg-alt);
}

/* ── Common Buttons ────────────────────────────────────────── */
.btn-primary {
  background: var(--acid); padding: 14px 28px;
  font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 600;
  letter-spacing: -0.01em;
  border: none; cursor: pointer; text-decoration: none; display: inline-block;
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: all 0.2s;
}
[data-theme="dark"] .btn-primary { color: #050505; }
[data-theme="light"] .btn-primary { color: #fff; }
.btn-primary:hover {
  background: var(--acid-dim); transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
[data-theme="light"] .btn-primary:hover { color: #fff; }

/* ── Section labels ────────────────────────────────────────── */
.section-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--acid); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--acid); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-drawer { display: flex; }
}
@media (max-width: 600px) {
  nav.site-nav { top: 12px; width: calc(100% - 24px); }
}
@media (max-width: 900px) {
  footer { grid-template-columns: 1fr 1fr; padding: 48px 24px 24px; gap: 32px; }
  .footer-bottom { padding: 16px 24px; flex-direction: column; gap: 6px; text-align: center; }
}
@media (max-width: 560px) {
  footer { grid-template-columns: 1fr; }
}
