/* ==========================================================================
   FEATURES — services page extras (calculator, coverage, trusted-by)
   Ported from the original build's features.css, restyled for this site's
   dark theme and CSS variable names.
   ========================================================================== */

/* ---------- Locations ---------- */
/* .locations-grid is the masking viewport (overflow:hidden + edge fade).
   It holds two identical .locations-track rows back-to-back; the animation
   slides them from translateX(0) to translateX(-50%) — exactly the width
   of one track — so the moment it "resets" to 0% the second track is
   already sitting where the first one was. That's what makes it read as
   one continuous straight line instead of a bounce: animation-direction
   is left at its default "normal", never "alternate", so it always moves
   the same way and never reverses. */
.locations-grid {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.locations-track {
  display: flex;
  flex-shrink: 0;
  gap: 12px;
  padding-right: 12px;
  animation: locations-marquee 32s linear infinite;
  animation-direction: normal; /* explicit: straight line, never alternate/bounce */
  will-change: transform;
}
.locations-grid:hover .locations-track {
  animation-play-state: paused;
}
@keyframes locations-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
.location-chip {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--rr-mid);
  border-radius: 20px;
  font-size: 13px;
  color: var(--rr-white-dim);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.3s ease, color 0.3s ease,
              box-shadow 0.3s ease, background-color 0.3s ease;
}
.location-chip:hover {
  transform: translateY(-5px) scale(1.07);
  border-color: var(--rr-gold);
  color: var(--rr-gold);
  background-color: rgba(201, 162, 39, 0.08);
  box-shadow: 0 12px 26px rgba(201, 162, 39, 0.25);
}
.location-chip.location-hq {
  border-color: var(--rr-gold);
  color: var(--rr-gold);
}

/* ---------- Estimate calculator ---------- */
.calc-box {
  background: var(--rr-dark);
  border: 1px solid var(--rr-mid);
  border-radius: var(--radius);
  padding: 40px;
}
.calc-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.calc-field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rr-white-dim);
  margin-bottom: 8px;
}
.calc-field select,
.calc-field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--rr-mid);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font-body);
  background: var(--rr-black);
  color: var(--rr-white);
}
.calc-field select:focus,
.calc-field input:focus {
  outline: none;
  border-color: var(--rr-gold);
}

.calc-result {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rr-mid);
  display: none;
}
.calc-result.show { display: block; }
.calc-result .calc-amount {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--rr-gold);
}
.calc-result .calc-note {
  font-size: 13px;
  color: var(--rr-white-dim);
  margin-top: 6px;
}

/* ---------- Trusted by ---------- */
.trusted-by { padding: 40px 0; }
.trusted-by-label {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rr-white-dim);
  margin-bottom: 24px;
}
.trusted-by-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trusted-logo {
  font-family: var(--font-display);
  font-size: 18px;
  color: rgba(255,255,255,0.4);
}

@media (max-width: 700px) {
  .calc-row { grid-template-columns: 1fr; }
}