/* ============================================================
   TORIBOX — Shared Site Styles
   Used by: creators.html, writing-services.html, blog/index.html
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: #100718;
  color: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,153,29,.3); border-radius: 3px; }

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --orange: #ff991d;
  --orange-dark: #c97614;
  --bg: #100718;
  --bg-deep: #09040e;
  --surface: rgba(255,255,255,0.04);
  --surface-mid: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.08);
  --border-orange: rgba(255,153,29,0.25);
  --text-muted: rgba(255,255,255,0.5);
  --text-dim: rgba(255,255,255,0.35);
}

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-label .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

/* ─── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 900;
  padding: 16px 0;
  background: rgba(16,7,24,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: padding .3s;
}
.navbar .container {
  display: flex; align-items: center; gap: 32px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.nav-brand img { width: 36px; height: 36px; border-radius: 8px; }
.nav-brand span { font-size: 1.2rem; font-weight: 900; color: #fff; letter-spacing: -0.5px; }
.nav-brand b { color: var(--orange); font-weight: 900; }

.nav-links {
  display: flex; gap: 28px; flex: 1;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active { color: var(--orange); }

.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-cta {
  padding: 9px 20px;
  background: var(--orange); color: #fff;
  border: none; border-radius: 50px;
  font-family: inherit; font-weight: 800; font-size: 13px;
  cursor: pointer; transition: opacity .2s;
  white-space: nowrap;
}
.nav-cta:hover { opacity: .85; }
.nav-cta.ghost {
  background: transparent;
  border: 1px solid var(--border-orange);
  color: var(--orange);
}
.nav-cta.ghost:hover { background: rgba(255,153,29,0.1); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; background: none; border: none;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px; transition: .3s;
}

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: rgba(16,7,24,0.98);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 28px; z-index: 1100; backdrop-filter: blur(12px);
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  font-size: 1.2rem; font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: 1px;
}
.mobile-menu a:hover { color: var(--orange); }
.mobile-close {
  position: absolute; top: 16px; right: 20px;
  font-size: 2.2rem; color: #fff; background: none; border: none;
  cursor: pointer; line-height: 1; padding: 8px;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  color: var(--text-dim); font-size: 13px; line-height: 1.65;
  margin-top: 12px; max-width: 220px;
}
.footer-col h4 {
  color: #fff; font-weight: 700; font-size: 11px;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px;
}
.footer-col a {
  display: block; color: var(--text-muted); font-size: 13.5px;
  margin-bottom: 9px; transition: color .2s;
}
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom span { color: var(--text-dim); font-size: 12px; }
.footer-social { display: flex; gap: 12px; margin-top: 4px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface-mid);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all .2s;
}
.footer-social a:hover { background: var(--border-orange); color: var(--orange); }

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 8px;
  font-family: inherit; font-weight: 800; font-size: 15px;
  cursor: pointer; transition: opacity .2s, transform .2s;
  text-decoration: none; border: none;
}
.btn:hover { opacity: .85; transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.8);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); opacity: 1; }

/* ─── CARDS ─────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-orange); }

/* ─── HIGHLIGHT BOX ──────────────────────────────────────── */
.highlight-box {
  background: rgba(255,153,29,0.06);
  border: 1px solid var(--border-orange);
  border-radius: 12px;
  padding: 20px 24px;
}

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .5s ease both; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
