/* RSTQ Modern — Our Offices (Contact Us page-id 1631 only)
 * Dark cards #1a1f26, teal #1eacc7 accents, gold #e6ae48 hover.
 * Mobile-friendly at 390px. Does not style forms / gform / LeadQuote.
 */
.rstq-offices {
  --rstq-off-ink: #1a1f26;
  --rstq-off-teal: #1eacc7;
  --rstq-off-teal-hover: #1796af;
  --rstq-off-gold: #e6ae48;
  --rstq-off-muted: #9aa3ad;
  margin: 28px 0 36px;
  padding: 0;
  clear: both;
}

.rstq-offices__inner {
  max-width: 100%;
}

.rstq-offices__eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rstq-off-teal);
  font-weight: 600;
}

.rstq-offices__title {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.25;
  color: #1f2933;
  font-weight: 600;
}

.rstq-offices__sub {
  margin: 0 0 20px;
  color: #5c6570;
  font-size: 15px;
  line-height: 1.5;
}

.rstq-offices__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 700px) {
  .rstq-offices__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

.rstq-offices__card {
  position: relative;
  background: var(--rstq-off-ink);
  border: 1px solid rgba(30, 172, 199, 0.28);
  border-radius: 12px;
  padding: 18px 16px 16px 48px;
  min-width: 0;
  box-shadow: 0 8px 22px rgba(15, 20, 25, 0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.rstq-offices__card:hover,
.rstq-offices__card:focus-within {
  border-color: var(--rstq-off-gold);
  box-shadow: 0 10px 28px rgba(230, 174, 72, 0.18);
  transform: translateY(-1px);
}

.rstq-offices__pin {
  position: absolute;
  left: 16px;
  top: 20px;
  width: 18px;
  height: 18px;
  border-radius: 50% 50% 50% 0;
  background: var(--rstq-off-teal);
  transform: rotate(-45deg);
  box-shadow: 0 0 0 4px rgba(30, 172, 199, 0.18);
}

.rstq-offices__pin::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a1f26;
}

.rstq-offices__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rstq-off-teal);
  font-weight: 600;
  margin: 0 0 6px;
}

.rstq-offices__addr {
  display: block;
  text-decoration: none;
  color: #ffffff;
  min-width: 0;
}

.rstq-offices__addr:hover,
.rstq-offices__addr:focus {
  color: var(--rstq-off-gold);
  outline: none;
}

.rstq-offices__street {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
}

.rstq-offices__city {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--rstq-off-muted);
  line-height: 1.4;
  word-break: break-word;
}

.rstq-offices__addr:hover .rstq-offices__city,
.rstq-offices__addr:focus .rstq-offices__city {
  color: #d6b36a;
}

.rstq-offices__cta {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rstq-off-teal);
}

.rstq-offices__addr:hover .rstq-offices__cta,
.rstq-offices__addr:focus .rstq-offices__cta {
  color: var(--rstq-off-gold);
}

/* 390px phones: keep cards full-bleed inside content column, no overflow */
@media (max-width: 419px) {
  .rstq-offices {
    margin: 22px 0 28px;
  }
  .rstq-offices__title {
    font-size: 22px;
  }
  .rstq-offices__card {
    padding: 16px 14px 14px 44px;
  }
  .rstq-offices__street {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rstq-offices__card {
    transition: none;
  }
  .rstq-offices__card:hover,
  .rstq-offices__card:focus-within {
    transform: none;
  }
}
