/* RoadHand UI kit — shared CSS */
@import url("../colors_and_type.css");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--background); color: var(--on-surface); font-family: var(--font-body); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1408px; margin: 0 auto; padding: 0 32px; }

.caution-stripe { height: 12px; background: repeating-linear-gradient(45deg, #ff8c00 0 20px, #000 20px 40px); }
.caution-stripe.thin { height: 6px; }
.caution-stripe.thick { height: 16px; }
.caution-stripe.yellow { background: repeating-linear-gradient(45deg, #ffdb3c 0 20px, #000 20px 40px); }

.eyebrow {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary-container);
}

.btn {
  font-family: var(--font-headline);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 22px;
  font-size: 13px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 150ms ease-out;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: #ff8c00; color: #4d2600; }
.btn.outline { background: transparent; color: #ff8c00; border: 2px solid #ff8c00; padding: 12px 20px; }
.btn.outline:hover { background: rgba(255, 140, 0, 0.1); filter: none; }
.btn.ghost { background: transparent; color: #d2c7bc; }
.btn.ghost:hover { color: #ff8c00; filter: none; }
.btn.secondary { background: #2a2a2a; color: #e6e1dc; }

.badge {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.badge.success { background: #1bc268; color: #004922; }
.badge.warn { background: #ffdb3c; color: #725f00; }
.badge.danger { background: #93000a; color: #ffb4ab; }
.badge.neutral { background: #2a2a2a; color: #e6e1dc; }
.badge.live::before { content: ''; width: 6px; height: 6px; background: #1bc268; border-radius: 50%; box-shadow: 0 0 0 4px rgba(27,194,104,0.2); }

.card { background: #201f1f; padding: 24px; transition: background 150ms ease-out; }
.card.elevated { background: #2a2a2a; }
.card.low { background: #1c1b1b; }
.card.accent { border-left: 6px solid #ff8c00; }
.card.warn { border-left: 6px solid #ffdb3c; }
.card.danger { border-left: 6px solid #93000a; }
.card.success { border-left: 6px solid #1bc268; }
.card:hover { background: #2a2a2a; }

.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }

.metric { font-family: var(--font-headline); font-weight: 900; letter-spacing: -0.04em; line-height: 1; }

/* Photo wrapper: applies the standard darkening overlay */
.photo-wrap { position: relative; overflow: hidden; }
.photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; z-index: 0; }
.photo-wrap::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at top right, rgba(255,140,0,0.18), transparent 60%),
    linear-gradient(180deg, rgba(19,19,19,0.55) 0%, rgba(19,19,19,0.88) 70%, #131313 100%);
  pointer-events: none;
}

.hero-grid {
  background-image:
    linear-gradient(rgba(255, 140, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 140, 0, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Scrolling marquee */
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track { display: flex; gap: 64px; animation: marq 30s linear infinite; width: max-content; }

/* Word rotate */
.word-rotate { display: inline-block; min-width: 280px; color: #ff8c00; }

/* Hard-stamp block shadow */
.stamp { box-shadow: 8px 8px 0 0 #000; }

/* Focus ring */
input:focus, button:focus-visible { outline: 2px solid #ff8c00; outline-offset: 2px; }

/* nav scroll state */
.nav-fixed {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(32, 31, 31, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 4px solid #ff8c00;
}
