/* SurvivalBest — design tokens & global shell */
:root {
  --sb-forest: #1f3d2d;
  --sb-forest-dark: #14261c;
  --sb-moss: #3d5a45;
  --sb-sand: #f4f1ea;
  --sb-ink: #1a1a1a;
  --sb-muted: #5d6d77;
  --sb-accent: #c8a951;
  --sb-border: #dde6ec;
  --sb-display: "Barlow Condensed", Barlow, system-ui, sans-serif;
  --sb-body: Barlow, system-ui, sans-serif;
  --sb-max: 1240px;
  --sb-header-h: 64px;
  --sb-radius: 12px;
  --sb-shadow: 0 10px 40px rgba(20, 38, 28, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--sb-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--sb-ink);
  background: var(--sb-sand);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sb-forest);
}

a:hover {
  color: var(--sb-moss);
}

.sb-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100001;
  padding: 10px 16px;
  background: var(--sb-forest-dark);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.sb-skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Header */
.sb-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--sb-forest-dark);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-bar .sb-site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .sb-site-header {
    top: 46px;
  }
}

.sb-header-inner {
  max-width: var(--sb-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--sb-header-h);
  padding: 0 28px;
}

.sb-logo,
.sb-branding .custom-logo-link {
  font-family: var(--sb-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  line-height: 1;
}

.sb-branding .custom-logo {
  max-height: 40px;
  width: auto;
}

.sb-primary-nav {
  display: none;
}

.sb-nav-list {
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sb-nav-list a {
  color: #d8e2d8;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.15s;
}

.sb-nav-list a:hover,
.sb-nav-list .current-menu-item > a,
.sb-nav-list .current_page_item > a {
  color: #fff;
}

.sb-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.sb-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform 0.2s, opacity 0.2s;
}

.sb-nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.sb-nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.sb-nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.sb-mobile-nav {
  background: var(--sb-forest);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sb-mobile-nav[hidden] {
  display: none;
}

.sb-mobile-nav-list {
  margin: 0;
  padding: 12px 28px 20px;
  list-style: none;
}

.sb-mobile-nav-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sb-mobile-nav-list a {
  display: block;
  padding: 14px 0;
  color: #e8efe8;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.88rem;
}

@media (min-width: 900px) {
  .sb-primary-nav {
    display: block;
  }

  .sb-nav-toggle {
    display: none;
  }

  .sb-mobile-nav {
    display: none !important;
  }
}

/* Main layout */
.sb-site-main {
  min-height: 50vh;
}

.sb-container {
  max-width: var(--sb-max);
  margin: 0 auto;
  padding: 32px 28px 64px;
}

/* Footer */
.sb-site-footer {
  background: var(--sb-forest-dark);
  color: #d8e2d8;
  margin-top: auto;
}

.sb-footer-inner {
  max-width: var(--sb-max);
  margin: 0 auto;
  padding: 40px 28px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  justify-content: space-between;
}

.sb-footer-brand strong {
  font-family: var(--sb-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}

.sb-footer-brand p {
  margin: 8px 0 0;
  max-width: 36ch;
  font-size: 0.9rem;
  line-height: 1.55;
}

.sb-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sb-footer-links a {
  color: #b8c9b8;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
}

.sb-footer-links a:hover {
  color: #fff;
}

.sb-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 28px 24px;
  text-align: center;
}

.sb-footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: #8fa08f;
}

@media (max-width: 767px) {
  .sb-header-inner,
  .sb-container,
  .sb-footer-inner {
    padding-left: 20px;
    padding-right: 20px;
  }
}