/* ===== FiresideCME — Shared Styles ===== */

:root {
  --bg: #0b0c10;
  --panel: #111318;
  --brand: #f97316;
  --brand-2: #fb923c;
  --text: #e8ebf5;
  --text-dim: #b8c0d8;
  --border: rgba(255,255,255,.08);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 16px;
  --maxw: 1200px;
  --ring: rgba(249,115,22,.4);
  --gap: 16px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box }
html:focus-within { scroll-behavior: smooth }
html, body { height: 100% }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #0b0c10 0%, #0b0c10 25%, #0f1115 100%);
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none }
img, video { max-width: 100%; display: block }
img { height: auto }

/* Skip link */
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden }
.skip-link:focus { left: 16px; top: 12px; width: auto; height: auto; padding: 8px 12px; background: #111318; border-radius: 10px; z-index: 1000 }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(120%) blur(8px); background: rgba(11,12,16,.7); border-bottom: 1px solid rgba(255,255,255,.06) }
.nav-wrap { max-width: var(--maxw); margin: auto; display: flex; align-items: center; justify-content: space-between; padding: 14px 20px }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .3px }
.brand img { height: 40px; width: auto }
.logo { border-radius: 12px; box-shadow: var(--shadow) }
header .nav { display: flex; gap: 18px }
header .nav a { padding: 8px 12px; border-radius: 10px; color: var(--text-dim) }
header .nav a:hover,
header .nav a:focus-visible { color: var(--text); background: rgba(255,255,255,.06); outline: 2px solid transparent; box-shadow: 0 0 0 2px var(--ring) }
.menu-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; padding: 8px; cursor: pointer }
.menu-toggle span { display: block; width: 24px; height: 3px; background: var(--text); border-radius: 2px }

@media (max-width: 760px) {
  header .nav { display: none; position: absolute; top: 100%; right: 20px; background: #111318; flex-direction: column; min-width: 220px; padding: 12px; border-radius: var(--radius); box-shadow: var(--shadow) }
  header .nav a { padding: 10px; color: var(--text) }
  header .nav.show { display: flex }
  .menu-toggle { display: flex }
}

/* ===== Footer ===== */
.site-footer { border-top: 1px solid rgba(255,255,255,.06); margin-top: 56px; background: #0a0b0f }
.footer-inner { max-width: var(--maxw); margin: auto; padding: 26px 20px; display: flex; flex-direction: column; gap: 14px }
.foot-top { display: flex; gap: 12px; align-items: center; justify-content: space-between }
.site-footer .nav { display: flex; gap: 16px; flex-wrap: wrap }
.site-footer .nav a { padding: 6px 10px; color: var(--text-dim) }
.site-footer .nav a:hover,
.site-footer .nav a:focus-visible { color: var(--text); outline: 2px solid transparent; box-shadow: 0 0 0 2px var(--ring) }

@media (min-width: 760px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center }
}

/* ===== Buttons ===== */
.btn { padding: 14px 22px; border-radius: 16px; font-weight: 600; font-size: 1rem; cursor: pointer; text-decoration: none; display: inline-block; transition: all .3s ease }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 0 25px rgba(249,115,22,.6) }
.btn-primary:hover,
.btn-primary:focus-visible { background: var(--brand-2); outline: 2px solid transparent; box-shadow: 0 0 0 2px var(--ring) }
.btn-dark { background: #1c1f26; color: #fff; box-shadow: 0 0 15px rgba(0,0,0,.4) }
.btn-dark:hover,
.btn-dark:focus-visible { background: #2a2d36; outline: 2px solid transparent; box-shadow: 0 0 0 2px var(--ring) }

/* ===== Eyebrow label ===== */
.eyebrow { color: var(--brand-2); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem }

/* ===== Footer social icons ===== */
.foot-social { display:flex; gap:10px; align-items:center }
.foot-social a { display:flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:8px; color:var(--text-dim); transition:color .2s, background .2s }
.foot-social a:hover, .foot-social a:focus-visible { color:var(--text); background:rgba(255,255,255,.08); outline:2px solid transparent; box-shadow:0 0 0 2px var(--ring) }
.foot-social svg { width:18px; height:18px }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important }
}
