/* ============================================================================
   road-side.tech — LLQ-branded roadside intake.
   Palette: near-black + amber CTA + safety-orange accent. Space Grotesk for
   display + Inter body. Phone is ALWAYS visible + tap-to-call.
   ============================================================================ */

:root {
  --rs-ink:      #0e0f12;
  --rs-ink-soft: #2b3038;
  --rs-mute:     #6b7280;
  --rs-line:     rgba(14,15,18,.12);
  --rs-paper:    #f6f5f1;      /* warm off-white so it doesn't feel clinical */
  --rs-panel:    #ffffff;
  --rs-amber:    #f5a623;
  --rs-amber-d:  #cc8515;
  --rs-orange:   #e94e1b;      /* safety orange for emergency accents */
  --rs-green:    #2e8f5c;
  --rs-max:      1120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--rs-paper);
  color: var(--rs-ink);
  font: 400 16px/1.6 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rs-ink); text-underline-offset: 3px; }
a:hover { color: var(--rs-orange); }

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700; color: var(--rs-ink);
  letter-spacing: -.015em; line-height: 1.1; margin: 0 0 .6rem;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }

.rs-container { max-width: var(--rs-max); margin: 0 auto; padding: 0 1.5rem; }

/* ── Sticky topbar with always-visible tap-to-call ──────────────────── */
.rs-topbar {
  background: var(--rs-ink); color: #fff;
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.rs-topbar__inner {
  max-width: var(--rs-max); margin: 0 auto;
  padding: .85rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: .75rem; flex-wrap: wrap;
}
.rs-brand {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.25rem;
  color: #fff !important; text-decoration: none !important;
  letter-spacing: -.01em;
}
.rs-brand span { color: var(--rs-amber); }
.rs-call-now {
  display: inline-flex; flex-direction: column; align-items: flex-end;
  background: var(--rs-amber); color: var(--rs-ink) !important;
  padding: .45rem 1rem; border-radius: 6px;
  text-decoration: none !important;
  transition: background .12s;
  min-height: 46px;
  justify-content: center;
}
.rs-call-now:hover { background: var(--rs-amber-d); color: var(--rs-ink) !important; }
.rs-call-now__label { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.rs-call-now__num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.05rem; line-height: 1; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.rs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.5rem; border-radius: 6px;
  font: 700 15px/1 'Space Grotesk', sans-serif; letter-spacing: .01em;
  border: 2px solid transparent; cursor: pointer;
  text-decoration: none !important;
  transition: transform .1s, background .18s, border-color .18s, color .18s;
}
.rs-btn:active { transform: translateY(1px); }
.rs-btn--primary { background: var(--rs-amber); color: var(--rs-ink) !important; border-color: var(--rs-amber); }
.rs-btn--primary:hover { background: var(--rs-amber-d); border-color: var(--rs-amber-d); }
.rs-btn--big { padding: 1.15rem 1.8rem; font-size: 17px; }
.rs-btn--ghost { background: transparent; color: #fff !important; border-color: #fff; }
.rs-btn--ghost:hover { background: #fff; color: var(--rs-ink) !important; }
.rs-btn--dark { background: var(--rs-ink); color: #fff !important; border-color: var(--rs-ink); }
.rs-btn--dark:hover { background: #000; color: #fff !important; }
.rs-btn--outline { background: transparent; color: var(--rs-ink) !important; border-color: var(--rs-ink); }
.rs-btn--outline:hover { background: var(--rs-ink); color: #fff !important; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.rs-hero {
  background: var(--rs-ink);
  color: #fff;
  padding: 4rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.rs-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(245,166,35,.13) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(233,78,27,.10) 0%, transparent 45%);
  pointer-events: none;
}
.rs-hero__inner {
  position: relative; z-index: 1;
  max-width: var(--rs-max); margin: 0 auto;
  padding: 0 1.5rem;
}
.rs-hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(46,143,92,.14); color: #6dd28e;
  padding: .4rem .85rem; border-radius: 999px;
  font: 700 12px/1 'Inter', sans-serif; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.rs-hero__badge::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #2fd36a; box-shadow: 0 0 0 4px rgba(46,143,92,.25);
  animation: rs-pulse 1.6s ease-in-out infinite;
}
@keyframes rs-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .55; }
}
.rs-hero h1 { color: #fff; max-width: 22ch; margin-bottom: 1.25rem; }
.rs-hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,.82); max-width: 55ch; margin-bottom: 2rem;
}
.rs-hero__cta {
  display: flex; gap: .8rem; flex-wrap: wrap;
}
.rs-hero__phone {
  margin-top: 1.75rem; display: inline-flex; flex-direction: column;
  color: rgba(255,255,255,.6); font-size: 13px;
}
.rs-hero__phone a {
  color: var(--rs-amber) !important; font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: clamp(1.6rem, 3vw, 2rem);
  text-decoration: none !important; line-height: 1.2;
  margin-top: .2rem;
}

/* ── Sections + services grid ────────────────────────────────────────── */
.rs-section { padding: 4rem 0; }
.rs-section--paper { background: var(--rs-paper); }
.rs-section--dark  { background: var(--rs-ink); color: rgba(255,255,255,.9); }
.rs-section--dark h2, .rs-section--dark h3 { color: #fff; }
.rs-eyebrow {
  display: inline-block; font: 700 12px/1 'Inter', sans-serif;
  letter-spacing: .2em; text-transform: uppercase; color: var(--rs-orange);
  margin-bottom: .5rem;
}
.rs-section--dark .rs-eyebrow { color: var(--rs-amber); }

.rs-services {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-top: 2rem;
}
.rs-service {
  background: var(--rs-panel); border: 1px solid var(--rs-line);
  border-radius: 8px; padding: 1.3rem 1.3rem 1.4rem;
  transition: transform .12s, box-shadow .18s;
}
.rs-service:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(14,15,18,.06); }
.rs-service__icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--rs-amber); color: var(--rs-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.05rem;
  margin-bottom: .8rem;
}
.rs-service h3 { margin-bottom: .3rem; }
.rs-service p  { color: var(--rs-ink-soft); font-size: .93rem; margin: 0; }

/* ── Area map card ───────────────────────────────────────────────────── */
.rs-area {
  display: grid; gap: 2rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .rs-area { grid-template-columns: 1fr 1fr; } }
.rs-area__map {
  aspect-ratio: 4/3; background: #dedad0;
  border-radius: 10px; overflow: hidden; border: 1px solid var(--rs-line);
}

/* ── Request form ────────────────────────────────────────────────────── */
.rs-request {
  background: var(--rs-panel); border: 1px solid var(--rs-line);
  border-radius: 10px; padding: 1.75rem 1.75rem 2rem;
  max-width: 640px; margin: 2rem auto 0;
  box-shadow: 0 4px 20px rgba(14,15,18,.04);
}
.rs-request h2 { margin-bottom: .3rem; }
.rs-request__sub { color: var(--rs-mute); font-size: .9rem; margin-bottom: 1.5rem; }
.rs-step-tag {
  display: inline-block; font: 700 11px/1 'Inter', sans-serif;
  letter-spacing: .16em; text-transform: uppercase; color: var(--rs-orange);
  margin-bottom: .5rem;
}
.rs-field { margin-bottom: 1rem; }
.rs-field > label > span:first-child {
  display: block; font: 600 12px/1 'Inter', sans-serif;
  color: var(--rs-ink-soft); margin-bottom: .35rem;
  text-transform: uppercase; letter-spacing: .05em;
}
.rs-input, .rs-select, .rs-textarea {
  width: 100%; padding: .8rem .95rem;
  border: 1.5px solid var(--rs-line); border-radius: 6px;
  font: 400 15px/1.5 'Inter', sans-serif; color: var(--rs-ink);
  background: #fff;
}
.rs-textarea { min-height: 90px; resize: vertical; }
.rs-input:focus, .rs-select:focus, .rs-textarea:focus {
  outline: none; border-color: var(--rs-amber);
  box-shadow: 0 0 0 3px rgba(245,166,35,.2);
}
.rs-row-2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 520px) { .rs-row-2 { grid-template-columns: 1fr 1fr; } }
.rs-msg { padding: .8rem 1rem; border-radius: 6px; font-size: 14px; margin-bottom: 1rem; }
.rs-msg--err { background: #fdecea; color: #8a2418; border-left: 3px solid var(--rs-orange); }
.rs-msg--ok  { background: #eaf5ed; color: #1c4a2c; border-left: 3px solid var(--rs-green); }
.rs-service-picker {
  display: grid; gap: .55rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-bottom: 1.25rem;
}
.rs-service-picker input { position: absolute; opacity: 0; pointer-events: none; }
.rs-service-picker label {
  border: 2px solid var(--rs-line); border-radius: 6px;
  padding: .8rem .9rem; cursor: pointer;
  transition: border-color .12s, background .12s;
  font: 600 14px/1.3 'Inter', sans-serif;
  display: flex; flex-direction: column; gap: .1rem;
}
.rs-service-picker label:hover { border-color: var(--rs-ink); }
.rs-service-picker input:checked + label {
  border-color: var(--rs-amber); background: rgba(245,166,35,.09);
}
.rs-service-picker small { color: var(--rs-mute); font-weight: 500; font-size: 11.5px; }

.rs-loc-widget {
  border: 1.5px dashed var(--rs-line); border-radius: 8px;
  padding: 1rem; text-align: center;
  background: #fafaf7;
}
.rs-loc-widget__status {
  font-size: 13px; color: var(--rs-mute); margin-top: .5rem;
  min-height: 1.2em;
}
.rs-loc-widget__status.ok  { color: var(--rs-green); }
.rs-loc-widget__status.err { color: var(--rs-orange); }

/* ── Emergency banner ────────────────────────────────────────────────── */
.rs-emergency {
  background: #fdf3e6; color: #6b3d05;
  border-top: 3px solid var(--rs-orange);
  padding: .8rem 1.5rem; text-align: center; font-size: 13.5px;
}
.rs-emergency strong { color: var(--rs-orange); }

/* ── Rejection page ─────────────────────────────────────────────────── */
.rs-out {
  text-align: center; padding: 3rem 1.5rem 4rem;
}
.rs-out__icon {
  width: 72px; height: 72px; margin: 0 auto 1.25rem;
  border-radius: 50%; background: #fdf1e9;
  color: var(--rs-orange);
  font-family: 'Space Grotesk', sans-serif; font-size: 2.2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.rs-out h1 { max-width: 22ch; margin: 0 auto 1rem; }
.rs-out__sub { max-width: 46ch; margin: 0 auto 2rem; color: var(--rs-ink-soft); font-size: 1.05rem; }
.rs-out__alt {
  background: var(--rs-panel); border: 1px solid var(--rs-line);
  border-radius: 8px; padding: 1.5rem 1.5rem 1.8rem; max-width: 480px; margin: 0 auto;
  text-align: left;
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.rs-footer {
  background: var(--rs-ink); color: rgba(255,255,255,.75);
  padding: 2rem 0 2.5rem; font-size: 14px;
}
.rs-footer__inner {
  max-width: var(--rs-max); margin: 0 auto; padding: 0 1.5rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.rs-footer__brand { color: #fff; font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.05rem; margin-bottom: .3rem; }
.rs-footer__meta a { color: var(--rs-amber) !important; text-decoration: none; }
.rs-footer__legal { color: rgba(255,255,255,.5); font-size: 12.5px; align-self: flex-end; }
.rs-footer__legal a { color: rgba(255,255,255,.7) !important; }

/* ── Provider dashboard (very compact — reuses palette) ─────────────── */
.rs-office {
  background: #f2f3f7; min-height: 100vh;
  font: 400 14px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.rs-office__top {
  background: var(--rs-ink); color: #fff;
  padding: 12px 0;
}
.rs-office__top-inner {
  max-width: 1000px; margin: 0 auto; padding: 0 20px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.rs-office__top strong {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 15px; letter-spacing: .01em; color: #fff;
}
.rs-office__top nav a {
  color: #cfd8e5; margin-left: 16px; font-size: 13px; font-weight: 500;
  text-decoration: none;
}
.rs-office__top nav a.is-active, .rs-office__top nav a:hover { color: #fff; }
.rs-office__main { max-width: 1000px; margin: 0 auto; padding: 24px 20px; }
.rs-office__panel {
  background: #fff; border: 1px solid var(--rs-line);
  border-radius: 8px; padding: 20px; margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(14,15,18,.06);
}
.rs-office__panel h2 { margin: 0 0 12px; font-size: 16px; }
.rs-office__table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rs-office__table th, .rs-office__table td { padding: 10px 12px; text-align: left;
  border-top: 1px solid var(--rs-line); vertical-align: top; }
.rs-office__table th { background: #f9fafc; font: 700 11px/1 'Inter', sans-serif;
  text-transform: uppercase; letter-spacing: .06em; color: var(--rs-mute); border-top: none; }
.rs-office__chip {
  display: inline-block; padding: 2px 9px; border-radius: 99px;
  font: 700 10.5px/1.6 'Inter', sans-serif; letter-spacing: .04em;
  color: var(--rs-ink); background: rgba(14,15,18,.08);
  text-transform: uppercase;
}
.rs-office__chip.is-off { color: var(--rs-mute); background: rgba(14,15,18,.04); }

/* Range input polish for service-area editor. */
input[type=range] { -webkit-appearance: none; appearance: none;
  height: 6px; background: #e6e8ec; border-radius: 3px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none;
  appearance: none; width: 20px; height: 20px; background: var(--rs-amber);
  border-radius: 50%; cursor: pointer; border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2); }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px;
  background: var(--rs-amber); border-radius: 50%; cursor: pointer;
  border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
