/* ── PROF-WORX SHARED STYLES ──
   Used by: index.html, products.html, academy.html, rd.html
   Contains: reset, design tokens, nav (links/cta/hamburger/mobile), footer,
             focus ring, reduced-motion. Page-specific CSS stays inline in each HTML.
*/

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

:root {
  --black: #0a0a0a; --dark: #111214; --card: #16181c;
  --border: #2a2d35; --accent: #A7CD40; --accent-dim: #86a430;
  --text: #f0f0f0; --muted: #8a8f9a;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--black); color: var(--text);
  line-height: 1.6; overflow-x: hidden;
}

/* ── NAV (shared sub-elements — <nav> itself is page-specific) ── */
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.88rem;
  font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.nav-cta {
  background: var(--accent); color: #000; font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.55rem 1.3rem; border-radius: 4px;
  text-decoration: none; transition: background 0.2s; cursor: pointer;
}
.nav-cta:hover { background: var(--accent-dim); }

.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 4px; flex-direction: column; gap: 5px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none; position: fixed; top: 68px; left: 0; right: 0; z-index: 99;
  background: rgba(10,10,10,0.98); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  flex-direction: column; padding: 0.5rem 5% 1.5rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--muted); text-decoration: none; font-size: 0.95rem;
  font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--accent); }

.mob-cta {
  margin-top: 0.5rem;
  background: var(--accent) !important; color: #000 !important;
  text-align: center; border-radius: 4px;
  padding: 0.9rem !important; font-weight: 700 !important;
  border-bottom: none !important;
}

/* ── FOOTER ── */
footer {
  background: var(--dark); border-top: 1px solid var(--border);
  padding: 3rem 5% 1.5rem;
}
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.footer-brand img { height: 28px; margin-bottom: 1rem; display: block; }
.footer-brand p { color: var(--muted); font-size: 0.83rem; line-height: 1.6; max-width: 260px; }
.footer-col-title {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 1rem; display: block;
}
.footer-col { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a {
  color: var(--muted); text-decoration: none;
  font-size: 0.83rem; font-weight: 500; transition: color 0.2s; cursor: pointer;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.5rem;
}
.footer-copy { font-size: 0.75rem; color: var(--muted); }

/* ── ACCESSIBILITY ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px; border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── MOBILE NAV BREAKPOINT ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
