/* ==========================================================================
   Our Locations — two office cards
   No animation yet; only colour/shadow hover transitions on buttons.
   ========================================================================== */

.loc {
  padding-block: clamp(56px, 7vw, 96px);
  background: var(--c-bg);
  scroll-margin-top: var(--header-h);
}

.loc-title {
  margin: 0;
  color: var(--c-ink);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.loc-title .accent {
  margin-left: -0.04em;
  color: var(--c-red);
}

.loc-lede {
  margin: 12px 0 0;
  color: var(--c-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.loc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
  margin-top: clamp(24px, 3vw, 40px);
}

/* Card --------------------------------------------------------------------- */

.loc-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: 24px;
  background: #fff;
}

/* Media: approved office photo, or a quiet typographic panel until supplied */
.loc-media {
  position: relative;
  aspect-ratio: 16 / 5;
  overflow: hidden;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(216, 38, 26, 0.1), transparent 60%),
    linear-gradient(180deg, #f7f7f8, #eeeff1);
  container-type: inline-size;
}

.loc-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loc-mark {
  position: absolute;
  left: 5cqi;
  bottom: -0.18em;
  color: transparent;
  font-size: 15cqi;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
  -webkit-text-stroke: 1.5px rgba(20, 20, 20, 0.12);
  user-select: none;
}

.loc-pin {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-red);
  color: #fff;
  box-shadow: 0 10px 20px -10px rgba(216, 38, 26, 0.7);
}

/* Body --------------------------------------------------------------------- */

.loc-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(20px, 2.2vw, 28px);
}

.loc-name {
  margin: 0;
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.loc-region {
  margin: 4px 0 0;
  color: var(--c-muted);
  font-size: 0.9rem;
}

.loc-details {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--c-line);
}

.loc-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.loc-row dt {
  padding-top: 2px;
  color: var(--c-red);
}

.loc-row dd {
  margin: 0;
  color: var(--c-ink);
  font-size: 0.95rem;
  line-height: 1.5;
}

.loc-row dd a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--c-red);
  text-underline-offset: 3px;
}

/* Multiple offices in one city */
.loc-office + .loc-office {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--c-line);
}

.loc-office-label {
  display: block;
  margin-bottom: 2px;
  color: var(--c-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.loc-office-address {
  display: block;
}

.loc-office-map {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.86rem;
}

.loc-phone-label {
  color: var(--c-muted);
  font-size: 0.86rem;
}

.loc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
}

.loc-actions .btn {
  flex: 1 1 auto;
}

/* Responsive ------------------------------------------------------------------ */

@media (max-width: 767.98px) {
  .loc-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .loc-media {
    aspect-ratio: 16 / 4.5;
  }
}
