/* Vista Trade — base site stylesheet
   Handles global reset, typography, header/nav, and footer scaffold.
   Page-specific content blocks carry their own scoped <style> tags
   (kept as authored) and are not duplicated here. */

:root {
  --red-700: #a80115;
  --red-600: #d8021a;
  --red-500: #ea1428;
  --red-100: #fdeaec;
  --ink-900: #13161b;
  --ink-600: #4b5058;
  --ink-400: #83878f;
  --paper-0: #ffffff;
  --mist-100: #f5f6f8;
  --mist-200: #eceef1;
  --line-200: #e3e5ea;
  --color-navy: #13161b;
  --color-navy-dark: #13161b;
  --color-gold: #d8021a;
  --font-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--ink-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); }

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

a { color: inherit; }

.skip-to-content-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: var(--red-600);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-to-content-link:focus { left: 8px; top: 8px; }

body.nav-open { overflow: hidden; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.98);
  position: sticky;
  top: 0;
  z-index: 500;
  border-bottom: 1px solid var(--line-200);
  box-shadow: 0 1px 6px rgba(19, 22, 27, 0.04);
}

.site-header__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
}

.site-header__logo {
  flex: 0 0 auto;
  line-height: 0;
}

.site-header__logo img {
  height: 46px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 1 auto;
  justify-content: flex-start;
  min-width: 0;
}

.site-nav__item {
  position: relative;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  color: var(--ink-900);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  border-radius: 4px;
  white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__item.is-open > .site-nav__link {
  color: var(--red-600);
}

.site-nav__caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .15s ease;
  flex-shrink: 0;
}
.site-nav__item.is-open .site-nav__caret { transform: rotate(-135deg) translateY(2px); }

.site-nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  border-radius: 6px;
  border: 1px solid var(--line-200);
  box-shadow: 0 12px 30px rgba(19, 22, 27, 0.12);
  padding: 8px 0;
  list-style: none;
  margin: 4px 0 0;
}
.site-nav__item.is-open .site-nav__dropdown { display: block; }

.site-nav__dropdown a {
  display: block;
  padding: 10px 18px;
  color: var(--ink-900);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}
.site-nav__dropdown a:hover { background: var(--mist-100); color: var(--red-600); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn-outline {
  color: var(--ink-900);
  background: transparent;
  border-color: var(--line-200);
}
.btn-outline:hover { border-color: var(--ink-900); background: var(--mist-100); }
.btn-primary {
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
  color: #fff;
  border-color: var(--red-600);
  box-shadow: 0 6px 16px rgba(216, 2, 26, 0.25);
}
.btn-primary:hover { background: var(--red-700); border-color: var(--red-700); box-shadow: 0 8px 20px rgba(216, 2, 26, 0.32); }

.site-header__hamburger {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.site-header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink-900);
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}
.site-header__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav__mobile-actions { display: none; }

/* Tablet: tighten spacing before switching to mobile nav */
@media (max-width: 1080px) and (min-width: 901px) {
  .site-header__inner { gap: 14px; padding: 12px 18px; }
  .site-nav__link { padding: 10px 9px; font-size: 14px; }
  .btn { padding: 9px 13px; font-size: 13px; }
  .site-header__actions { gap: 6px; }
}

/* Mobile nav */
@media (max-width: 900px) {
  .site-header__inner { padding: 10px 16px; gap: 12px; }
  .site-header__logo img { height: 36px; }
  .site-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 78px 20px 30px;
    overflow-y: auto;
    z-index: 400;
    gap: 2px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav__item { width: 100%; }
  .site-nav__link {
    width: 100%;
    justify-content: space-between;
    padding: 14px 6px;
    font-size: 16px;
    color: var(--ink-900);
    border-bottom: 1px solid var(--line-200);
    border-radius: 0;
  }
  .site-nav__dropdown {
    position: static;
    background: var(--mist-100);
    border: none;
    box-shadow: none;
    margin: 0 0 4px;
    border-radius: 0;
  }
  .site-nav__dropdown a { color: var(--ink-900); padding: 12px 16px; }
  .site-nav__dropdown a:hover { background: var(--mist-200); color: var(--red-600); }

  .site-header__actions { gap: 8px; }
  .site-header__actions .btn-outline { display: none; }
  .site-header__actions .btn-primary { padding: 9px 16px; font-size: 13px; }
  .site-header__hamburger { display: block; }

  .site-nav__mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line-200);
  }
  .site-nav__mobile-actions .btn { width: 100%; }
  .site-nav__mobile-actions .btn-outline { color: var(--ink-900); border-color: var(--line-200); }
  .site-nav__mobile-actions .btn-outline:hover { border-color: var(--ink-900); }
}

@media (max-width: 380px) {
  .site-header__logo img { height: 32px; }
  .site-header__actions .btn-primary { padding: 8px 12px; font-size: 12px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); }

.content-block { overflow-x: clip; }

/* generic container used by simple content pages */
.page-content-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 20px;
}
