/* ==========================================================
   FitNEXT — Shared theme styles (demo)
   Palette: Charcoal + Electric Lime
   ========================================================== */

:root {
  --bg: #0E0F12;
  --bg-soft: #15171C;
  --bg-card: #1A1B20;
  --border: #2A2B30;
  --border-soft: #22242A;
  --text: #FFFFFF;
  --text-dim: rgba(255,255,255,0.72);
  --text-muted: rgba(255,255,255,0.55);
  --text-faint: rgba(255,255,255,0.35);
  --accent: #C6FF3D;
  --accent-dim: rgba(198,255,61,0.12);
  --accent-soft: rgba(198,255,61,0.06);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --max: 1200px;
  --max-narrow: 760px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 24px; }

/* ---------- HEADER ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14,15,18,0.85);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-weight: 900;
  letter-spacing: -0.5px;
  font-size: 22px;
  color: var(--text);
}
.logo .accent { color: var(--accent); }
.nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.nav ul a { color: var(--text-dim); transition: color .2s var(--ease); }
.nav ul a:hover { color: var(--accent); }
.nav .cta-small {
  background: var(--accent);
  color: var(--bg);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
}
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 24px; cursor: pointer; }
@media (max-width: 820px) {
  .nav ul { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(32px, 5.5vw, 54px); }
h2 { font-size: clamp(26px, 3.6vw, 36px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
p { color: var(--text-dim); }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--ease), background .2s var(--ease);
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #d4ff66; }
.btn-ghost { border-color: rgba(255,255,255,0.2); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 16px 28px; font-size: 15px; }

/* ---------- BREADCRUMBS ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumbs a { color: var(--text-dim); transition: color .15s; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--text-faint); }
.breadcrumbs .current { color: var(--accent); }

/* ---------- SECTIONS ---------- */
section { padding: 72px 0; position: relative; }
@media (max-width: 720px) { section { padding: 48px 0; } }

/* ---------- FOOTER ---------- */
footer.site {
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  color: var(--text-muted);
  background: var(--bg);
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h4 {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 8px; font-size: 14px; }
.foot-grid a:hover { color: var(--accent); }
.foot-about p { font-size: 14px; margin-top: 10px; max-width: 320px; }
.foot-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

/* ---------- CARDS / POST TILES ---------- */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.post-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.post-card .thumb {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
}
.post-card .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card .tag {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.post-card h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.3; }
.post-card p { font-size: 13px; margin-bottom: 14px; color: var(--text-dim); }
.post-card .meta { font-size: 12px; color: var(--text-muted); margin-top: auto; }

/* ---------- UTILITIES ---------- */
.text-center { text-align: center; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
