@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-primary: #F7931A;
  --color-primary-dark: #d97a0e;
  --color-text: #1A1A2E;
  --color-text-muted: #6B7280;
  --color-bg: #FAFAFA;
  --color-surface: #FFFFFF;
  --color-border: #E5E7EB;
  --color-success: #16A34A;
  --color-success-bg: #F0FDF4;
  --max-width: 1160px;
  --radius: 10px;
  --radius-sm: 6px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── HEADER ─── */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.site-logo__img {
  height: 40px;
  width: auto;
  display: block;
}

/* ─── NAV ─── */
.site-header nav {
  display: flex;
  align-items: center;
}

.site-nav {
  display: none;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active { color: var(--color-primary); }

.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg { display: block; }

/* ─── MOBILE NAV ─── */
.site-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.5rem;
  gap: 1rem;
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--color-text);
  color: #9CA3AF;
  font-size: 0.875rem;
  padding: 3rem 0 2rem;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #374151;
  margin-bottom: 2rem;
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.footer-nav h4 {
  color: #F9FAFB;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  color: #9CA3AF;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--color-primary); }

.footer-bottom {
  font-size: 0.8rem;
  color: #6B7280;
}

/* ─── TYPOGRAPHY ─── */
h1 { font-size: 1.875rem; font-weight: 700; line-height: 1.25; }
h2 { font-size: 1.4rem; font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.4; }

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.4rem; margin-bottom: 1.1rem; }
li { margin-bottom: 0.35rem; }

strong { font-weight: 600; }

/* ─── TABLES ─── */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th {
  background: #F3F4F6;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  padding: 0.75rem 1rem;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--color-border);
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: #FAFAFA; }

.badge-yes {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-success-bg);
  color: var(--color-success);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}

.badge-no {
  display: inline-flex;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

/* ─── UTILS ─── */
.section { padding: 3rem 0; }
.section + .section { padding-top: 0; }

.section-title {
  margin-bottom: 1.5rem;
}

.text-muted { color: var(--color-text-muted); font-size: 0.85rem; }

.note {
  background: #FFF7ED;
  border-left: 3px solid var(--color-primary);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.875rem;
  color: #92400E;
  margin-top: 1rem;
}

/* ─── STEP LIST ─── */
.steps { list-style: none; padding: 0; counter-reset: steps; }
.steps li {
  counter-increment: steps;
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}
.steps li::before {
  content: counter(steps);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ─── MEDIA ─── */
@media (min-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.6rem; }

  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    border: none;
    padding: 0;
  }

  .nav-toggle { display: none; }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
