/* ── Header ───────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-height);
  background: #fff;
  border-bottom: 2px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo img { width: 38px; height: 38px; border-radius: 8px; }
.site-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.site-logo-name { font-size: .95rem; font-weight: 700; color: var(--color-primary-dark); }
.site-logo-tag  { font-size: .65rem; font-weight: 500; color: var(--color-text-muted); letter-spacing: .06em; text-transform: uppercase; }

/* Main nav */
.site-nav { display: flex; align-items: center; gap: .25rem; }
.nav-link {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .85rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-link .nav-icon { font-size: 1.1em; }
.nav-link:hover { background: var(--color-surface-2); color: var(--color-primary); }
.nav-link.active {
  background: var(--color-surface-2);
  color: var(--color-primary-dark);
  font-weight: 600;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-muted);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 2px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    padding: .75rem 1rem;
    box-shadow: var(--shadow-md);
    gap: .25rem;
  }
  .site-nav.open { display: flex; }
  .nav-link { padding: .7rem 1rem; }
}

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-surface);
  border-top: 2px solid var(--color-border);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-brand p { font-size: .875rem; color: var(--color-text-muted); margin-top: .5rem; max-width: 280px; }
.footer-section h4 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-text-muted);
  margin-bottom: .75rem;
  margin-top: 0;
  border: none;
}
.footer-section ul { list-style: none; padding: 0; margin: 0; }
.footer-section li { margin-bottom: .4rem; }
.footer-section a {
  font-size: .875rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-section a:hover { color: var(--color-primary); }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: .8rem;
  color: var(--color-text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}

