/* ===========================================================
   PitStock — base
   Design tokens, reset, tipografia, botões e o "casco"
   compartilhado por todas as páginas (header, footer).
   =========================================================== */

:root {
  --ink-900: #0d1117;
  --ink-800: #161b22;
  --ink-700: #21262d;
  --ink-500: #4b5563;
  --ink-400: #6b7280;
  --ink-300: #9aa3af;

  --paper: #ffffff;
  --paper-soft: #f7f8fa;
  --paper-mute: #eef0f3;
  --line: #e4e7ec;

  --brand: #f0531f;
  --brand-dark: #d6431296;
  --brand-strong: #cf3f10;
  --brand-tint: #fff2ec;

  --ok: #1f9d57;
  --ok-tint: #e7f6ee;
  --warn: #c2791a;
  --warn-tint: #fbf0db;

  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1140px;

  --shadow-sm: 0 1px 2px rgba(13, 17, 23, .05), 0 1px 1px rgba(13, 17, 23, .04);
  --shadow-md: 0 10px 30px -12px rgba(13, 17, 23, .18);
  --shadow-lg: 0 30px 60px -24px rgba(13, 17, 23, .28);

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-800);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink-900);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-strong);
  margin-bottom: 16px;
}
.eyebrow.center { display: block; text-align: center; }

.center { text-align: center; }

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

/* ----------------------- Buttons ----------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 550;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(240, 83, 31, .7);
}
.btn-primary:hover { background: var(--brand-strong); }

.btn-ghost {
  background: var(--paper);
  color: var(--ink-900);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink-300); background: var(--paper-soft); }

.link-muted { color: var(--ink-500); font-weight: 500; font-size: 15px; }
.link-muted:hover { color: var(--ink-900); }

/* ----------------------- Header ----------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--ink-900);
  color: var(--brand);
}
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

.main-nav { display: flex; gap: 30px; }
.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-500);
  transition: color .15s ease;
}
.main-nav a:hover { color: var(--ink-900); }

.header-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--ink-800);
  border-radius: 2px;
  transition: .2s ease;
}

.mobile-nav { display: none; }

/* Header simples das páginas internas */
.simple-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.simple-header .header-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; }

/* ----------------------- Footer ----------------------- */
.site-footer { background: var(--ink-900); color: var(--ink-300); padding: 64px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--ink-700);
}
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-mark { background: var(--ink-700); }
.footer-brand p { margin-top: 14px; font-size: 14.5px; max-width: 300px; color: var(--ink-400); }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 16px; font-family: var(--font-body); font-weight: 600; }
.footer-col a {
  display: block;
  font-size: 14.5px;
  color: var(--ink-300);
  margin-bottom: 10px;
  transition: color .15s ease;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13.5px;
  color: var(--ink-400);
}
.footer-bottom.bare { border-top: 0; padding-top: 32px; }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a:hover { color: #fff; }

/* ----------------------- Responsivo (casco) ----------------------- */
@media (max-width: 940px) {
  .main-nav, .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .mobile-nav.open {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }
  .mobile-nav a { padding: 12px 0; font-weight: 500; color: var(--ink-700); border-bottom: 1px solid var(--line); }
  .mobile-nav .btn { margin-top: 12px; border-bottom: 0; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 14px; }
}
