/* BallRoute — additions for the static site: top navigation menu, mobile
   menu, and the support form. Kept SEPARATE from styles.css (which is the
   unchanged design). Uses the design's existing CSS variables. */

/* ---- Top navigation ---- */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  font-weight: 650;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: .2px;
  white-space: nowrap;
  transition: color .2s ease;
}
.site-nav a:hover { color: var(--accent); }

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

@media (max-width: 880px) {
  .site-nav {
    position: absolute;
    top: var(--headerH);
    left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px clamp(18px, 5vw, 78px) 18px;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(24px) saturate(145%);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-cb:checked ~ .site-nav { display: flex; }
  .site-nav a { width: 100%; padding: 12px 2px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 43px; height: 43px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface);
    box-shadow: 0 16px 42px rgba(0,0,0,.15);
    cursor: pointer;
  }
  .nav-toggle span { display: block; width: 100%; height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s ease, opacity .2s ease; }
  .nav-cb:checked ~ .header-actions .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-cb:checked ~ .header-actions .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-cb:checked ~ .header-actions .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---- Support form (matches the design's card aesthetic) ---- */
.support-form {
  width: 100%;
  max-width: 520px;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.support-form .ff { display: flex; flex-direction: column; gap: 6px; }
.support-form label {
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}
.support-form input,
.support-form textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  outline: 0;
  transition: border-color .2s ease;
}
.support-form input:focus,
.support-form textarea:focus { border-color: var(--line2); }
.support-form textarea { resize: vertical; min-height: 110px; }
.support-form .form-send {
  align-self: flex-start;
  margin-top: 2px;
  padding: 12px 24px;
  font: inherit;
  font-weight: 800;
  color: #05221b;
  background: var(--accent);
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(var(--accentRgb), .32);
  transition: transform .15s ease, filter .2s ease;
}
.support-form .form-send:hover { transform: translateY(-2px); filter: brightness(1.05); }
.support-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.support-form .form-note { margin: 2px 0 0; font-size: 14px; font-weight: 650; min-height: 1.2em; }
.support-form .form-note.ok { color: var(--accent); }
.support-form .form-note.err { color: #ff6b6b; }
