/* California office network. Uses the site's existing black, warm white,
   and safety-yellow palette while replacing the old two-location tabs. */
.offices-section {
  overflow: hidden;
  scroll-margin-top: 112px;
  padding-top: clamp(64px, 8vw, 104px);
  padding-bottom: clamp(64px, 8vw, 104px);
}

.offices-heading {
  width: min(760px, 100%);
  margin-bottom: 42px;
}

.offices-heading__eyebrow {
  color: #fff;
  margin-bottom: 14px;
}

.offices-heading__title {
  color: #fff;
  margin-top: 0;
  margin-bottom: 16px;
}

.offices-heading__copy {
  color: rgba(255, 255, 255, 0.72);
  max-width: 660px;
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.65;
}

.offices-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.office-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 300px;
  flex-direction: column;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(239, 140, 51, 0.16), transparent 38%),
    linear-gradient(145deg, #171717 0%, #0d0d0d 100%);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.office-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--primary);
}

.office-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 140, 51, 0.66);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.36);
}

.office-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.office-card__number {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(239, 140, 51, 0.56);
  border-radius: 50%;
  color: var(--primary);
  font-family: Anton, Impact, sans-serif;
  font-size: 17px;
  letter-spacing: 0.06em;
}

.office-card__label {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-align: right;
  text-transform: uppercase;
}

.office-card__city {
  color: #fff;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.08;
}

.office-card__address {
  color: rgba(255, 255, 255, 0.76);
  margin-bottom: 28px;
  font-size: 16px;
  font-style: normal;
  line-height: 1.65;
}

.office-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.office-card__link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: color 180ms ease;
}

.office-card__link:hover,
.office-card__link:focus-visible {
  color: var(--primary);
}

.office-card__link--directions {
  color: var(--primary);
}

.office-contact-summary {
  margin-top: 14px;
}

.office-contact-summary__copy {
  margin-bottom: 14px;
}

.office-contact-summary__phones {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.office-contact-summary__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--black);
  border-bottom: 2px solid var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.office-contact-summary__link:hover,
.office-contact-summary__link:focus-visible {
  color: #8a5100;
}

@media screen and (max-width: 991px) {
  .offices-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 620px) {
  .offices-heading {
    margin-bottom: 30px;
  }

  .offices-heading__copy {
    font-size: 16px;
  }

  .offices-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .office-card {
    min-height: 0;
    padding: 24px 22px 24px 26px;
  }

  .office-card__topline {
    margin-bottom: 22px;
  }

  .office-card__city {
    font-size: 28px;
  }

  .office-card__actions {
    justify-content: space-between;
  }
}
