/* Scout Ashes — marketing site base styles (shared across pages) */

html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(232, 112, 44, 0.28); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(120, 90, 60, 0.4); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

a { transition: color 0.18s ease-out; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Nav link */
.sa-navlink {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.sa-navlink:hover { color: var(--fg); }
.sa-navlink.is-active { color: var(--fg); border-bottom-color: var(--primary); }

/* Footer link */
.sa-footlink {
  color: var(--ash-300);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 2;
}
.sa-footlink:hover { color: var(--ash-100); }

/* Buttons — hover states (inline styles carry the base look) */
.sa-btn { transition: all 0.18s ease-out; }
.sa-btn:hover { filter: brightness(1.07); }
.sa-btn-outline:hover { background: var(--primary-soft); filter: none; }
.sa-btn-ghostDark:hover { background: rgba(255,255,255,0.2); filter: none; }

/* Layout grids */
.sa-grid2 { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.sa-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sa-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 960px) {
  .sa-grid2 { grid-template-columns: 1fr; gap: 36px; }
  .sa-grid3 { grid-template-columns: 1fr; }
  .sa-grid4 { grid-template-columns: repeat(2, 1fr); }
}

/* Entrance — content rises and fades, reduced-motion aware */
@media (prefers-reduced-motion: no-preference) {
  .sa-rise { animation: saRise 0.32s cubic-bezier(0.22, 1, 0.36, 1) both; }
  @keyframes saRise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  /* The signature ember pulse — live flame + primary CTA only */
  .sa-ember-pulse { animation: saEmber 2.6s ease-in-out infinite; }
  @keyframes saEmber {
    0%, 100% { box-shadow: 0 0 0 1px rgba(232,112,44,0.25), 0 8px 40px -8px rgba(232,112,44,0.45); }
    50% { box-shadow: 0 0 0 1px rgba(232,112,44,0.35), 0 8px 46px -6px rgba(232,112,44,0.7); }
  }
}

/* Inputs (contact / forms) */
.sa-input, .sa-textarea, .sa-select {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--fg);
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: border-color 0.18s ease-out, box-shadow 0.18s ease-out;
}
.sa-input:focus, .sa-textarea:focus, .sa-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--ring);
}
.sa-textarea { resize: vertical; min-height: 120px; }
.sa-label {
  display: block;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
}
